diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e9b3abee7..632adfecb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ "name": "Default Linux Universal", "image": "mcr.microsoft.com/devcontainers/universal:2-linux", "features": { - "ghcr.io/devcontainers-contrib/features/poetry:2": {} + "ghcr.io/devcontainers-extra/features/poetry:2": {} }, "postCreateCommand": "./scripts/setup-envs.sh", "customizations": { diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 183bdbead..771497ce7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.8 + rev: v0.11.12 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/envs/pydantic-v1/poetry.lock b/envs/pydantic-v1/poetry.lock index 2e4574e91..454a4c7ea 100644 --- a/envs/pydantic-v1/poetry.lock +++ b/envs/pydantic-v1/poetry.lock @@ -144,75 +144,79 @@ files = [ [[package]] name = "coverage" -version = "7.8.0" +version = "7.9.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "coverage-7.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2931f66991175369859b5fd58529cd4b73582461877ecfd859b6549869287ffe"}, - {file = "coverage-7.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:52a523153c568d2c0ef8826f6cc23031dc86cffb8c6aeab92c4ff776e7951b28"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c8a5c139aae4c35cbd7cadca1df02ea8cf28a911534fc1b0456acb0b14234f3"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a26c0c795c3e0b63ec7da6efded5f0bc856d7c0b24b2ac84b4d1d7bc578d676"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:821f7bcbaa84318287115d54becb1915eece6918136c6f91045bb84e2f88739d"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a321c61477ff8ee705b8a5fed370b5710c56b3a52d17b983d9215861e37b642a"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:ed2144b8a78f9d94d9515963ed273d620e07846acd5d4b0a642d4849e8d91a0c"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:042e7841a26498fff7a37d6fda770d17519982f5b7d8bf5278d140b67b61095f"}, - {file = "coverage-7.8.0-cp310-cp310-win32.whl", hash = "sha256:f9983d01d7705b2d1f7a95e10bbe4091fabc03a46881a256c2787637b087003f"}, - {file = "coverage-7.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:5a570cd9bd20b85d1a0d7b009aaf6c110b52b5755c17be6962f8ccd65d1dbd23"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e7ac22a0bb2c7c49f441f7a6d46c9c80d96e56f5a8bc6972529ed43c8b694e27"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bf13d564d310c156d1c8e53877baf2993fb3073b2fc9f69790ca6a732eb4bfea"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5761c70c017c1b0d21b0815a920ffb94a670c8d5d409d9b38857874c21f70d7"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5ff52d790c7e1628241ffbcaeb33e07d14b007b6eb00a19320c7b8a7024c040"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d39fc4817fd67b3915256af5dda75fd4ee10621a3d484524487e33416c6f3543"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b44674870709017e4b4036e3d0d6c17f06a0e6d4436422e0ad29b882c40697d2"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8f99eb72bf27cbb167b636eb1726f590c00e1ad375002230607a844d9e9a2318"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b571bf5341ba8c6bc02e0baeaf3b061ab993bf372d982ae509807e7f112554e9"}, - {file = "coverage-7.8.0-cp311-cp311-win32.whl", hash = "sha256:e75a2ad7b647fd8046d58c3132d7eaf31b12d8a53c0e4b21fa9c4d23d6ee6d3c"}, - {file = "coverage-7.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:3043ba1c88b2139126fc72cb48574b90e2e0546d4c78b5299317f61b7f718b78"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bbb5cc845a0292e0c520656d19d7ce40e18d0e19b22cb3e0409135a575bf79fc"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4dfd9a93db9e78666d178d4f08a5408aa3f2474ad4d0e0378ed5f2ef71640cb6"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f017a61399f13aa6d1039f75cd467be388d157cd81f1a119b9d9a68ba6f2830d"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0915742f4c82208ebf47a2b154a5334155ed9ef9fe6190674b8a46c2fb89cb05"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a40fcf208e021eb14b0fac6bdb045c0e0cab53105f93ba0d03fd934c956143a"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a1f406a8e0995d654b2ad87c62caf6befa767885301f3b8f6f73e6f3c31ec3a6"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:77af0f6447a582fdc7de5e06fa3757a3ef87769fbb0fdbdeba78c23049140a47"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f2d32f95922927186c6dbc8bc60df0d186b6edb828d299ab10898ef3f40052fe"}, - {file = "coverage-7.8.0-cp312-cp312-win32.whl", hash = "sha256:769773614e676f9d8e8a0980dd7740f09a6ea386d0f383db6821df07d0f08545"}, - {file = "coverage-7.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:e5d2b9be5b0693cf21eb4ce0ec8d211efb43966f6657807f6859aab3814f946b"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5ac46d0c2dd5820ce93943a501ac5f6548ea81594777ca585bf002aa8854cacd"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:771eb7587a0563ca5bb6f622b9ed7f9d07bd08900f7589b4febff05f469bea00"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42421e04069fb2cbcbca5a696c4050b84a43b05392679d4068acbe65449b5c64"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:554fec1199d93ab30adaa751db68acec2b41c5602ac944bb19187cb9a41a8067"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5aaeb00761f985007b38cf463b1d160a14a22c34eb3f6a39d9ad6fc27cb73008"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:581a40c7b94921fffd6457ffe532259813fc68eb2bdda60fa8cc343414ce3733"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:f319bae0321bc838e205bf9e5bc28f0a3165f30c203b610f17ab5552cff90323"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:04bfec25a8ef1c5f41f5e7e5c842f6b615599ca8ba8391ec33a9290d9d2db3a3"}, - {file = "coverage-7.8.0-cp313-cp313-win32.whl", hash = "sha256:dd19608788b50eed889e13a5d71d832edc34fc9dfce606f66e8f9f917eef910d"}, - {file = "coverage-7.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:a9abbccd778d98e9c7e85038e35e91e67f5b520776781d9a1e2ee9d400869487"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:18c5ae6d061ad5b3e7eef4363fb27a0576012a7447af48be6c75b88494c6cf25"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:95aa6ae391a22bbbce1b77ddac846c98c5473de0372ba5c463480043a07bff42"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e013b07ba1c748dacc2a80e69a46286ff145935f260eb8c72df7185bf048f502"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d766a4f0e5aa1ba056ec3496243150698dc0481902e2b8559314368717be82b1"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad80e6b4a0c3cb6f10f29ae4c60e991f424e6b14219d46f1e7d442b938ee68a4"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b87eb6fc9e1bb8f98892a2458781348fa37e6925f35bb6ceb9d4afd54ba36c73"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:d1ba00ae33be84066cfbe7361d4e04dec78445b2b88bdb734d0d1cbab916025a"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f3c38e4e5ccbdc9198aecc766cedbb134b2d89bf64533973678dfcf07effd883"}, - {file = "coverage-7.8.0-cp313-cp313t-win32.whl", hash = "sha256:379fe315e206b14e21db5240f89dc0774bdd3e25c3c58c2c733c99eca96f1ada"}, - {file = "coverage-7.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:2e4b6b87bb0c846a9315e3ab4be2d52fac905100565f4b92f02c445c8799e257"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fa260de59dfb143af06dcf30c2be0b200bed2a73737a8a59248fcb9fa601ef0f"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:96121edfa4c2dfdda409877ea8608dd01de816a4dc4a0523356067b305e4e17a"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b8af63b9afa1031c0ef05b217faa598f3069148eeee6bb24b79da9012423b82"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:89b1f4af0d4afe495cd4787a68e00f30f1d15939f550e869de90a86efa7e0814"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94ec0be97723ae72d63d3aa41961a0b9a6f5a53ff599813c324548d18e3b9e8c"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:8a1d96e780bdb2d0cbb297325711701f7c0b6f89199a57f2049e90064c29f6bd"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:f1d8a2a57b47142b10374902777e798784abf400a004b14f1b0b9eaf1e528ba4"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:cf60dd2696b457b710dd40bf17ad269d5f5457b96442f7f85722bdb16fa6c899"}, - {file = "coverage-7.8.0-cp39-cp39-win32.whl", hash = "sha256:be945402e03de47ba1872cd5236395e0f4ad635526185a930735f66710e1bd3f"}, - {file = "coverage-7.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:90e7fbc6216ecaffa5a880cdc9c77b7418c1dcb166166b78dbc630d07f278cc3"}, - {file = "coverage-7.8.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:b8194fb8e50d556d5849753de991d390c5a1edeeba50f68e3a9253fbd8bf8ccd"}, - {file = "coverage-7.8.0-py3-none-any.whl", hash = "sha256:dbf364b4c5e7bae9250528167dfe40219b62e2d573c854d74be213e1e52069f7"}, - {file = "coverage-7.8.0.tar.gz", hash = "sha256:7a3d62b3b03b4b6fd41a085f3574874cf946cb4604d2b4d3e8dca8cd570ca501"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3d494fa4256e3cb161ca1df14a91d2d703c27d60452eb0d4a58bb05f52f676e4"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b613efceeabf242978d14e1a65626ec3be67c5261918a82a985f56c2a05475ee"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:673a4d2cb7ec78e1f2f6f41039f6785f27bca0f6bc0e722b53a58286d12754e1"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1edc2244932e9fed92ad14428b9480a97ecd37c970333688bd35048f6472f260"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec8b92a7617faa2017bd44c94583830bab8be175722d420501680abc4f5bc794"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d8f3ca1f128f11812d3baf0a482e7f36ffb856ac1ae14de3b5d1adcfb7af955d"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:c30eed34eb8206d9b8c2d0d9fa342fa98e10f34b1e9e1eb05f79ccbf4499c8ff"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:24e6f8e5f125cd8bff33593a484a079305c9f0be911f76c6432f580ade5c1a17"}, + {file = "coverage-7.9.0-cp310-cp310-win32.whl", hash = "sha256:a1b0317b4a8ff4d3703cd7aa642b4f963a71255abe4e878659f768238fab6602"}, + {file = "coverage-7.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:512b1ea57a11dfa23b7f3d8fe8690fcf8cd983a70ae4c2c262cf5c972618fa15"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:55b7b9df45174956e0f719a56cf60c0cb4a7f155668881d00de6384e2a3402f4"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:87bceebbc91a58c9264c43638729fcb45910805b9f86444f93654d988305b3a2"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:81da3b6e289bf9fc7dc159ab6d5222f5330ac6e94a6d06f147ba46e53fa6ec82"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b361684a91224d4362879c1b1802168d2435ff76666f1b7ba52fc300ad832dbc"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9a384ea4f77ac0a7e36c9a805ed95ef10f423bdb68b4e9487646cdf548a6a05"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:38a5642aa82ea6de0e4331e346f5ba188a9fdb7d727e00199f55031b85135d0a"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8c5ff4ca4890c0b57d3e80850534609493280c0f9e6ea2bd314b10cb8cbd76e0"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cd052a0c4727ede06393da3c1df1ae6ef6c079e6bdfefb39079877404b3edc22"}, + {file = "coverage-7.9.0-cp311-cp311-win32.whl", hash = "sha256:f73fd1128165e1d665cb7f863a91d00f073044a672c7dfa04ab400af4d1a9226"}, + {file = "coverage-7.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:dd62d62e782d3add529c8e7943f5600efd0d07dadf3819e5f9917edb4acf85d8"}, + {file = "coverage-7.9.0-cp311-cp311-win_arm64.whl", hash = "sha256:f75288785cc9a67aff3b04dafd8d0f0be67306018b224d319d23867a161578d6"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:969ed1ed0ab0325b50af3204f9024782180e64fb281f5a2952f479ec60a02aba"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1abd41781c874e716aaeecb8b27db5f4f2bc568f2ed8d41228aa087d567674f0"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0eb6e99487dffd28c88a4fc2ea4286beaf0207a43388775900c93e56cc5a8ae3"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c425c85ddb62b32d44f83fb20044fe32edceceee1db1f978c062eec020a73ea5"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0a1f7676bc90ceba67caa66850d689947d586f204ccf6478400c2bf39da5790"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f17055c50768d710d6abc789c9469d0353574780935e1381b83e63edc49ff530"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:298d2917a6bfadbb272e08545ed026af3965e4d2fe71e3f38bf0a816818b226e"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d9be5d26e5f817d478506e4d3c4ff7b92f17d980670b4791bf05baaa37ce2f88"}, + {file = "coverage-7.9.0-cp312-cp312-win32.whl", hash = "sha256:dc2784edd9ac9fe8692fc5505667deb0b05d895c016aaaf641031ed4a5f93d53"}, + {file = "coverage-7.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:18223198464a6d5549db1934cf77a15deb24bb88652c4f5f7cb21cd3ad853704"}, + {file = "coverage-7.9.0-cp312-cp312-win_arm64.whl", hash = "sha256:3b00194ff3c84d4b821822ff6c041f245fc55d0d5c7833fc4311d082e97595e8"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:122c60e92ab66c9c88e17565f67a91b3b3be5617cb50f73cfd34a4c60ed4aab0"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:813c11b367a6b3cf37212ec36b230f8d086c22b69dbf62877b40939fb2c79e74"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3f05e0f5e87f23d43fefe49e86655c6209dd4f9f034786b983e6803cf4554183"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62f465886fa4f86d5515da525aead97c5dff13a5cf997fc4c5097a1a59e063b2"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:549ea4ca901595bbe3270e1afdef98bf5d4d5791596efbdc90b00449a2bb1f91"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8cae1d4450945c74a6a65a09864ed3eaa917055cf70aa65f83ac1b9b0d8d5f9a"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d7b263910234c0d5ec913ec79ca921152fe874b805a7bcaf67118ef71708e5d2"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7d7b7425215963da8f5968096a20c5b5c9af4a86a950fcc25dcc2177ab33e9e5"}, + {file = "coverage-7.9.0-cp313-cp313-win32.whl", hash = "sha256:e7dcfa92867b0c53d2e22e985c66af946dc09e8bb13c556709e396e90a0adf5c"}, + {file = "coverage-7.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:aa34ca040785a2b768da489df0c036364d47a6c1c00bdd8f662b98fd3277d3d4"}, + {file = "coverage-7.9.0-cp313-cp313-win_arm64.whl", hash = "sha256:9c5dcb5cd3c52d84c5f52045e1c87c16bf189c2fbfa57cc0d811a3b4059939df"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b52d2fdc1940f90c4572bd48211475a7b102f75a7f9a5e6cfc6e3da7dc380c44"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4cc555a3e6ceb8841df01a4634374f5f9635e661f5c307da00bce19819e8bcdf"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:244f613617876b7cd32a097788d49c952a8f1698afb25275b2a825a4e895854e"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5c335d77539e66bc6f83e8f1ef207d038129d9b9acd9dc9f0ca42fa9eedf564a"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b335c7077c8da7bb8173d4f9ebd90ff1a97af6a6bec4fc4e6db4856ae80b31e"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:01cbc2c36895b7ab906514042c92b3fc9dd0526bf1c3251cb6aefd9c71ae6dda"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:1ac62880a9dff0726a193ce77a1bcdd4e8491009cb3a0510d31381e8b2c46d7a"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:95314eb306cf54af3d1147e27ba008cf78eed6f1309a1310772f4f05b12c9c65"}, + {file = "coverage-7.9.0-cp313-cp313t-win32.whl", hash = "sha256:c5cbf3ddfb68de8dc8ce33caa9321df27297a032aeaf2e99b278f183fb4ebc37"}, + {file = "coverage-7.9.0-cp313-cp313t-win_amd64.whl", hash = "sha256:e3ec9e1525eb7a0f89d31083539b398d921415d884e9f55400002a1e9fe0cf63"}, + {file = "coverage-7.9.0-cp313-cp313t-win_arm64.whl", hash = "sha256:a02efe6769f74245ce476e89db3d4e110db07b4c0c3d3f81728e2464bbbbcb8e"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:64dab59d812c1cbfc9cebadada377365874964acdf59b12e86487d25c2e0c29f"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:46b9dc640c6309fb49625d3569d4ba7abe2afcba645eb1e52bad97510f60ac26"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89358f4025ed424861311b33815a2866f7c94856c932b0ffc98180f655e813e2"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:589e37ae75d81fd53cd1ca624e07af4466e9e4ce259e3bfe2b147896857c06ea"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:29dea81eef5432076cee561329b3831bc988a4ce1bfaec90eee2078ff5311e6e"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7b3482588772b6b24601d1677aef299af28d6c212c70b0be27bdfc2e10fb00fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2debc0b9481b5fc76f771b3b31e89a0cd8791ad977654940a3523f3f2e5d98fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:304ded640bc2a60f14a2ff0fec98cce4c3f2e573c122f0548728c8dceba5abe7"}, + {file = "coverage-7.9.0-cp39-cp39-win32.whl", hash = "sha256:8e0a3a3f9b968007e1f56418a3586f9a983c84ac4e84d28d1c4f8b76c4226282"}, + {file = "coverage-7.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:cb3c07dd71d1ff52156d35ee6fa48458c3cec1add7fcce6a934f977fb80c48a5"}, + {file = "coverage-7.9.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:ccf1540a0e82ff525844880f988f6caaa2d037005e57bfe203b71cac7626145d"}, + {file = "coverage-7.9.0-py3-none-any.whl", hash = "sha256:79ea9a26b27c963cdf541e1eb9ac05311b012bc367d0e31816f1833b06c81c02"}, + {file = "coverage-7.9.0.tar.gz", hash = "sha256:1a93b43de2233a7670a8bf2520fed8ebd5eea6a65b47417500a9d882b0533fa2"}, ] [package.dependencies] @@ -324,7 +328,7 @@ testing = ["hatch", "pre-commit", "pytest", "tox"] [[package]] name = "githubkit" -version = "0.12.13" +version = "0.12.14" description = "GitHub SDK for Python" optional = false python-versions = "^3.9" @@ -519,19 +523,19 @@ files = [ [[package]] name = "pluggy" -version = "1.5.0" +version = "1.6.0" description = "plugin and hook calling mechanisms for python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, - {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, + {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, + {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, ] [package.extras] dev = ["pre-commit", "tox"] -testing = ["pytest", "pytest-benchmark"] +testing = ["coverage", "pytest", "pytest-benchmark"] [[package]] name = "pycparser" @@ -613,6 +617,21 @@ typing-extensions = ">=4.2.0" dotenv = ["python-dotenv (>=0.10.4)"] email = ["email-validator (>=1.0.3)"] +[[package]] +name = "pygments" +version = "2.19.1" +description = "Pygments is a syntax highlighting package written in Python." +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c"}, + {file = "pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f"}, +] + +[package.extras] +windows-terminal = ["colorama (>=0.4.6)"] + [[package]] name = "pyjwt" version = "2.10.1" @@ -636,37 +655,38 @@ tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"] [[package]] name = "pytest" -version = "8.3.5" +version = "8.4.0" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820"}, - {file = "pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845"}, + {file = "pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e"}, + {file = "pytest-8.4.0.tar.gz", hash = "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6"}, ] [package.dependencies] -colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} -iniconfig = "*" -packaging = "*" +colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1", markers = "python_version < \"3.11\""} +iniconfig = ">=1" +packaging = ">=20" pluggy = ">=1.5,<2" +pygments = ">=2.7.2" tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] -dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"] [[package]] name = "pytest-cov" -version = "6.1.1" +version = "6.2.0" description = "Pytest plugin for measuring coverage." optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pytest_cov-6.1.1-py3-none-any.whl", hash = "sha256:bddf29ed2d0ab6f4df17b4c55b0a657287db8684af9c42ea546b21b1041b3dde"}, - {file = "pytest_cov-6.1.1.tar.gz", hash = "sha256:46935f7aaefba760e716c2ebfbe1c216240b9592966e7da99ea8292d4d3e2a0a"}, + {file = "pytest_cov-6.2.0-py3-none-any.whl", hash = "sha256:bd19301caf600ead1169db089ed0ad7b8f2b962214330a696b8c85a0b497b2ff"}, + {file = "pytest_cov-6.2.0.tar.gz", hash = "sha256:9a4331e087a0f5074dc1e19fe0485a07a462b346cbb91e2ac903ec5504abce10"}, ] [package.dependencies] @@ -678,14 +698,14 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] [[package]] name = "pytest-xdist" -version = "3.6.1" +version = "3.7.0" description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pytest_xdist-3.6.1-py3-none-any.whl", hash = "sha256:9ed4adfb68a016610848639bb7e02c9352d5d9f03d04809919e2dafc3be4cca7"}, - {file = "pytest_xdist-3.6.1.tar.gz", hash = "sha256:ead156a4db231eec769737f57668ef58a2084a34b2e55c4a8fa20d861107300d"}, + {file = "pytest_xdist-3.7.0-py3-none-any.whl", hash = "sha256:7d3fbd255998265052435eb9daa4e99b62e6fb9cfb6efd1f858d4d8c0c7f0ca0"}, + {file = "pytest_xdist-3.7.0.tar.gz", hash = "sha256:f9248c99a7c15b7d2f90715df93610353a485827bc06eefb6566d23f6400f126"}, ] [package.dependencies] @@ -699,22 +719,22 @@ testing = ["filelock"] [[package]] name = "redis" -version = "6.0.0" +version = "6.2.0" description = "Python client for Redis database and key-value store" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "redis-6.0.0-py3-none-any.whl", hash = "sha256:a2e040aee2cdd947be1fa3a32e35a956cd839cc4c1dbbe4b2cdee5b9623fd27c"}, - {file = "redis-6.0.0.tar.gz", hash = "sha256:5446780d2425b787ed89c91ddbfa1be6d32370a636c8fdb687f11b1c26c1fa88"}, + {file = "redis-6.2.0-py3-none-any.whl", hash = "sha256:c8ddf316ee0aab65f04a11229e94a64b2618451dab7a67cb2f77eb799d872d5e"}, + {file = "redis-6.2.0.tar.gz", hash = "sha256:e821f129b75dde6cb99dd35e5c76e8c49512a5a0d8dfdc560b2fbd44b85ca977"}, ] [package.dependencies] async-timeout = {version = ">=4.0.3", markers = "python_full_version < \"3.11.3\""} [package.extras] -hiredis = ["hiredis (>=3.0.0)"] -jwt = ["pyjwt (>=2.9.0,<2.10.0)"] +hiredis = ["hiredis (>=3.2.0)"] +jwt = ["pyjwt (>=2.9.0)"] ocsp = ["cryptography (>=36.0.1)", "pyopenssl (>=20.0.1)", "requests (>=2.31.0)"] [[package]] @@ -774,27 +794,27 @@ files = [ [[package]] name = "typing-extensions" -version = "4.13.2" -description = "Backported and Experimental Type Hints for Python 3.8+" +version = "4.14.0" +description = "Backported and Experimental Type Hints for Python 3.9+" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c"}, - {file = "typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"}, + {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"}, + {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"}, ] [[package]] name = "zipp" -version = "3.21.0" +version = "3.23.0" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.9" groups = ["dev"] markers = "python_version == \"3.9\"" files = [ - {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"}, - {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"}, + {file = "zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e"}, + {file = "zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166"}, ] [package.extras] @@ -802,7 +822,7 @@ check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \" cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] enabler = ["pytest-enabler (>=2.2)"] -test = ["big-O", "importlib-resources ; python_version < \"3.9\"", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more_itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] type = ["pytest-mypy"] [metadata] diff --git a/envs/pydantic-v2/poetry.lock b/envs/pydantic-v2/poetry.lock index 4e9bdf11c..0b908fdd5 100644 --- a/envs/pydantic-v2/poetry.lock +++ b/envs/pydantic-v2/poetry.lock @@ -156,75 +156,79 @@ files = [ [[package]] name = "coverage" -version = "7.8.0" +version = "7.9.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "coverage-7.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2931f66991175369859b5fd58529cd4b73582461877ecfd859b6549869287ffe"}, - {file = "coverage-7.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:52a523153c568d2c0ef8826f6cc23031dc86cffb8c6aeab92c4ff776e7951b28"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c8a5c139aae4c35cbd7cadca1df02ea8cf28a911534fc1b0456acb0b14234f3"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a26c0c795c3e0b63ec7da6efded5f0bc856d7c0b24b2ac84b4d1d7bc578d676"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:821f7bcbaa84318287115d54becb1915eece6918136c6f91045bb84e2f88739d"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a321c61477ff8ee705b8a5fed370b5710c56b3a52d17b983d9215861e37b642a"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:ed2144b8a78f9d94d9515963ed273d620e07846acd5d4b0a642d4849e8d91a0c"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:042e7841a26498fff7a37d6fda770d17519982f5b7d8bf5278d140b67b61095f"}, - {file = "coverage-7.8.0-cp310-cp310-win32.whl", hash = "sha256:f9983d01d7705b2d1f7a95e10bbe4091fabc03a46881a256c2787637b087003f"}, - {file = "coverage-7.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:5a570cd9bd20b85d1a0d7b009aaf6c110b52b5755c17be6962f8ccd65d1dbd23"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e7ac22a0bb2c7c49f441f7a6d46c9c80d96e56f5a8bc6972529ed43c8b694e27"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bf13d564d310c156d1c8e53877baf2993fb3073b2fc9f69790ca6a732eb4bfea"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5761c70c017c1b0d21b0815a920ffb94a670c8d5d409d9b38857874c21f70d7"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5ff52d790c7e1628241ffbcaeb33e07d14b007b6eb00a19320c7b8a7024c040"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d39fc4817fd67b3915256af5dda75fd4ee10621a3d484524487e33416c6f3543"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b44674870709017e4b4036e3d0d6c17f06a0e6d4436422e0ad29b882c40697d2"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8f99eb72bf27cbb167b636eb1726f590c00e1ad375002230607a844d9e9a2318"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b571bf5341ba8c6bc02e0baeaf3b061ab993bf372d982ae509807e7f112554e9"}, - {file = "coverage-7.8.0-cp311-cp311-win32.whl", hash = "sha256:e75a2ad7b647fd8046d58c3132d7eaf31b12d8a53c0e4b21fa9c4d23d6ee6d3c"}, - {file = "coverage-7.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:3043ba1c88b2139126fc72cb48574b90e2e0546d4c78b5299317f61b7f718b78"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bbb5cc845a0292e0c520656d19d7ce40e18d0e19b22cb3e0409135a575bf79fc"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4dfd9a93db9e78666d178d4f08a5408aa3f2474ad4d0e0378ed5f2ef71640cb6"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f017a61399f13aa6d1039f75cd467be388d157cd81f1a119b9d9a68ba6f2830d"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0915742f4c82208ebf47a2b154a5334155ed9ef9fe6190674b8a46c2fb89cb05"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a40fcf208e021eb14b0fac6bdb045c0e0cab53105f93ba0d03fd934c956143a"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a1f406a8e0995d654b2ad87c62caf6befa767885301f3b8f6f73e6f3c31ec3a6"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:77af0f6447a582fdc7de5e06fa3757a3ef87769fbb0fdbdeba78c23049140a47"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f2d32f95922927186c6dbc8bc60df0d186b6edb828d299ab10898ef3f40052fe"}, - {file = "coverage-7.8.0-cp312-cp312-win32.whl", hash = "sha256:769773614e676f9d8e8a0980dd7740f09a6ea386d0f383db6821df07d0f08545"}, - {file = "coverage-7.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:e5d2b9be5b0693cf21eb4ce0ec8d211efb43966f6657807f6859aab3814f946b"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5ac46d0c2dd5820ce93943a501ac5f6548ea81594777ca585bf002aa8854cacd"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:771eb7587a0563ca5bb6f622b9ed7f9d07bd08900f7589b4febff05f469bea00"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42421e04069fb2cbcbca5a696c4050b84a43b05392679d4068acbe65449b5c64"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:554fec1199d93ab30adaa751db68acec2b41c5602ac944bb19187cb9a41a8067"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5aaeb00761f985007b38cf463b1d160a14a22c34eb3f6a39d9ad6fc27cb73008"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:581a40c7b94921fffd6457ffe532259813fc68eb2bdda60fa8cc343414ce3733"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:f319bae0321bc838e205bf9e5bc28f0a3165f30c203b610f17ab5552cff90323"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:04bfec25a8ef1c5f41f5e7e5c842f6b615599ca8ba8391ec33a9290d9d2db3a3"}, - {file = "coverage-7.8.0-cp313-cp313-win32.whl", hash = "sha256:dd19608788b50eed889e13a5d71d832edc34fc9dfce606f66e8f9f917eef910d"}, - {file = "coverage-7.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:a9abbccd778d98e9c7e85038e35e91e67f5b520776781d9a1e2ee9d400869487"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:18c5ae6d061ad5b3e7eef4363fb27a0576012a7447af48be6c75b88494c6cf25"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:95aa6ae391a22bbbce1b77ddac846c98c5473de0372ba5c463480043a07bff42"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e013b07ba1c748dacc2a80e69a46286ff145935f260eb8c72df7185bf048f502"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d766a4f0e5aa1ba056ec3496243150698dc0481902e2b8559314368717be82b1"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad80e6b4a0c3cb6f10f29ae4c60e991f424e6b14219d46f1e7d442b938ee68a4"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b87eb6fc9e1bb8f98892a2458781348fa37e6925f35bb6ceb9d4afd54ba36c73"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:d1ba00ae33be84066cfbe7361d4e04dec78445b2b88bdb734d0d1cbab916025a"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f3c38e4e5ccbdc9198aecc766cedbb134b2d89bf64533973678dfcf07effd883"}, - {file = "coverage-7.8.0-cp313-cp313t-win32.whl", hash = "sha256:379fe315e206b14e21db5240f89dc0774bdd3e25c3c58c2c733c99eca96f1ada"}, - {file = "coverage-7.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:2e4b6b87bb0c846a9315e3ab4be2d52fac905100565f4b92f02c445c8799e257"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fa260de59dfb143af06dcf30c2be0b200bed2a73737a8a59248fcb9fa601ef0f"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:96121edfa4c2dfdda409877ea8608dd01de816a4dc4a0523356067b305e4e17a"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b8af63b9afa1031c0ef05b217faa598f3069148eeee6bb24b79da9012423b82"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:89b1f4af0d4afe495cd4787a68e00f30f1d15939f550e869de90a86efa7e0814"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94ec0be97723ae72d63d3aa41961a0b9a6f5a53ff599813c324548d18e3b9e8c"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:8a1d96e780bdb2d0cbb297325711701f7c0b6f89199a57f2049e90064c29f6bd"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:f1d8a2a57b47142b10374902777e798784abf400a004b14f1b0b9eaf1e528ba4"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:cf60dd2696b457b710dd40bf17ad269d5f5457b96442f7f85722bdb16fa6c899"}, - {file = "coverage-7.8.0-cp39-cp39-win32.whl", hash = "sha256:be945402e03de47ba1872cd5236395e0f4ad635526185a930735f66710e1bd3f"}, - {file = "coverage-7.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:90e7fbc6216ecaffa5a880cdc9c77b7418c1dcb166166b78dbc630d07f278cc3"}, - {file = "coverage-7.8.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:b8194fb8e50d556d5849753de991d390c5a1edeeba50f68e3a9253fbd8bf8ccd"}, - {file = "coverage-7.8.0-py3-none-any.whl", hash = "sha256:dbf364b4c5e7bae9250528167dfe40219b62e2d573c854d74be213e1e52069f7"}, - {file = "coverage-7.8.0.tar.gz", hash = "sha256:7a3d62b3b03b4b6fd41a085f3574874cf946cb4604d2b4d3e8dca8cd570ca501"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3d494fa4256e3cb161ca1df14a91d2d703c27d60452eb0d4a58bb05f52f676e4"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b613efceeabf242978d14e1a65626ec3be67c5261918a82a985f56c2a05475ee"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:673a4d2cb7ec78e1f2f6f41039f6785f27bca0f6bc0e722b53a58286d12754e1"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1edc2244932e9fed92ad14428b9480a97ecd37c970333688bd35048f6472f260"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec8b92a7617faa2017bd44c94583830bab8be175722d420501680abc4f5bc794"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d8f3ca1f128f11812d3baf0a482e7f36ffb856ac1ae14de3b5d1adcfb7af955d"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:c30eed34eb8206d9b8c2d0d9fa342fa98e10f34b1e9e1eb05f79ccbf4499c8ff"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:24e6f8e5f125cd8bff33593a484a079305c9f0be911f76c6432f580ade5c1a17"}, + {file = "coverage-7.9.0-cp310-cp310-win32.whl", hash = "sha256:a1b0317b4a8ff4d3703cd7aa642b4f963a71255abe4e878659f768238fab6602"}, + {file = "coverage-7.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:512b1ea57a11dfa23b7f3d8fe8690fcf8cd983a70ae4c2c262cf5c972618fa15"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:55b7b9df45174956e0f719a56cf60c0cb4a7f155668881d00de6384e2a3402f4"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:87bceebbc91a58c9264c43638729fcb45910805b9f86444f93654d988305b3a2"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:81da3b6e289bf9fc7dc159ab6d5222f5330ac6e94a6d06f147ba46e53fa6ec82"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b361684a91224d4362879c1b1802168d2435ff76666f1b7ba52fc300ad832dbc"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9a384ea4f77ac0a7e36c9a805ed95ef10f423bdb68b4e9487646cdf548a6a05"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:38a5642aa82ea6de0e4331e346f5ba188a9fdb7d727e00199f55031b85135d0a"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8c5ff4ca4890c0b57d3e80850534609493280c0f9e6ea2bd314b10cb8cbd76e0"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cd052a0c4727ede06393da3c1df1ae6ef6c079e6bdfefb39079877404b3edc22"}, + {file = "coverage-7.9.0-cp311-cp311-win32.whl", hash = "sha256:f73fd1128165e1d665cb7f863a91d00f073044a672c7dfa04ab400af4d1a9226"}, + {file = "coverage-7.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:dd62d62e782d3add529c8e7943f5600efd0d07dadf3819e5f9917edb4acf85d8"}, + {file = "coverage-7.9.0-cp311-cp311-win_arm64.whl", hash = "sha256:f75288785cc9a67aff3b04dafd8d0f0be67306018b224d319d23867a161578d6"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:969ed1ed0ab0325b50af3204f9024782180e64fb281f5a2952f479ec60a02aba"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1abd41781c874e716aaeecb8b27db5f4f2bc568f2ed8d41228aa087d567674f0"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0eb6e99487dffd28c88a4fc2ea4286beaf0207a43388775900c93e56cc5a8ae3"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c425c85ddb62b32d44f83fb20044fe32edceceee1db1f978c062eec020a73ea5"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0a1f7676bc90ceba67caa66850d689947d586f204ccf6478400c2bf39da5790"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f17055c50768d710d6abc789c9469d0353574780935e1381b83e63edc49ff530"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:298d2917a6bfadbb272e08545ed026af3965e4d2fe71e3f38bf0a816818b226e"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d9be5d26e5f817d478506e4d3c4ff7b92f17d980670b4791bf05baaa37ce2f88"}, + {file = "coverage-7.9.0-cp312-cp312-win32.whl", hash = "sha256:dc2784edd9ac9fe8692fc5505667deb0b05d895c016aaaf641031ed4a5f93d53"}, + {file = "coverage-7.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:18223198464a6d5549db1934cf77a15deb24bb88652c4f5f7cb21cd3ad853704"}, + {file = "coverage-7.9.0-cp312-cp312-win_arm64.whl", hash = "sha256:3b00194ff3c84d4b821822ff6c041f245fc55d0d5c7833fc4311d082e97595e8"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:122c60e92ab66c9c88e17565f67a91b3b3be5617cb50f73cfd34a4c60ed4aab0"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:813c11b367a6b3cf37212ec36b230f8d086c22b69dbf62877b40939fb2c79e74"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3f05e0f5e87f23d43fefe49e86655c6209dd4f9f034786b983e6803cf4554183"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62f465886fa4f86d5515da525aead97c5dff13a5cf997fc4c5097a1a59e063b2"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:549ea4ca901595bbe3270e1afdef98bf5d4d5791596efbdc90b00449a2bb1f91"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8cae1d4450945c74a6a65a09864ed3eaa917055cf70aa65f83ac1b9b0d8d5f9a"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d7b263910234c0d5ec913ec79ca921152fe874b805a7bcaf67118ef71708e5d2"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7d7b7425215963da8f5968096a20c5b5c9af4a86a950fcc25dcc2177ab33e9e5"}, + {file = "coverage-7.9.0-cp313-cp313-win32.whl", hash = "sha256:e7dcfa92867b0c53d2e22e985c66af946dc09e8bb13c556709e396e90a0adf5c"}, + {file = "coverage-7.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:aa34ca040785a2b768da489df0c036364d47a6c1c00bdd8f662b98fd3277d3d4"}, + {file = "coverage-7.9.0-cp313-cp313-win_arm64.whl", hash = "sha256:9c5dcb5cd3c52d84c5f52045e1c87c16bf189c2fbfa57cc0d811a3b4059939df"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b52d2fdc1940f90c4572bd48211475a7b102f75a7f9a5e6cfc6e3da7dc380c44"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4cc555a3e6ceb8841df01a4634374f5f9635e661f5c307da00bce19819e8bcdf"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:244f613617876b7cd32a097788d49c952a8f1698afb25275b2a825a4e895854e"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5c335d77539e66bc6f83e8f1ef207d038129d9b9acd9dc9f0ca42fa9eedf564a"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b335c7077c8da7bb8173d4f9ebd90ff1a97af6a6bec4fc4e6db4856ae80b31e"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:01cbc2c36895b7ab906514042c92b3fc9dd0526bf1c3251cb6aefd9c71ae6dda"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:1ac62880a9dff0726a193ce77a1bcdd4e8491009cb3a0510d31381e8b2c46d7a"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:95314eb306cf54af3d1147e27ba008cf78eed6f1309a1310772f4f05b12c9c65"}, + {file = "coverage-7.9.0-cp313-cp313t-win32.whl", hash = "sha256:c5cbf3ddfb68de8dc8ce33caa9321df27297a032aeaf2e99b278f183fb4ebc37"}, + {file = "coverage-7.9.0-cp313-cp313t-win_amd64.whl", hash = "sha256:e3ec9e1525eb7a0f89d31083539b398d921415d884e9f55400002a1e9fe0cf63"}, + {file = "coverage-7.9.0-cp313-cp313t-win_arm64.whl", hash = "sha256:a02efe6769f74245ce476e89db3d4e110db07b4c0c3d3f81728e2464bbbbcb8e"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:64dab59d812c1cbfc9cebadada377365874964acdf59b12e86487d25c2e0c29f"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:46b9dc640c6309fb49625d3569d4ba7abe2afcba645eb1e52bad97510f60ac26"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89358f4025ed424861311b33815a2866f7c94856c932b0ffc98180f655e813e2"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:589e37ae75d81fd53cd1ca624e07af4466e9e4ce259e3bfe2b147896857c06ea"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:29dea81eef5432076cee561329b3831bc988a4ce1bfaec90eee2078ff5311e6e"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7b3482588772b6b24601d1677aef299af28d6c212c70b0be27bdfc2e10fb00fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2debc0b9481b5fc76f771b3b31e89a0cd8791ad977654940a3523f3f2e5d98fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:304ded640bc2a60f14a2ff0fec98cce4c3f2e573c122f0548728c8dceba5abe7"}, + {file = "coverage-7.9.0-cp39-cp39-win32.whl", hash = "sha256:8e0a3a3f9b968007e1f56418a3586f9a983c84ac4e84d28d1c4f8b76c4226282"}, + {file = "coverage-7.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:cb3c07dd71d1ff52156d35ee6fa48458c3cec1add7fcce6a934f977fb80c48a5"}, + {file = "coverage-7.9.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:ccf1540a0e82ff525844880f988f6caaa2d037005e57bfe203b71cac7626145d"}, + {file = "coverage-7.9.0-py3-none-any.whl", hash = "sha256:79ea9a26b27c963cdf541e1eb9ac05311b012bc367d0e31816f1833b06c81c02"}, + {file = "coverage-7.9.0.tar.gz", hash = "sha256:1a93b43de2233a7670a8bf2520fed8ebd5eea6a65b47417500a9d882b0533fa2"}, ] [package.dependencies] @@ -336,7 +340,7 @@ testing = ["hatch", "pre-commit", "pytest", "tox"] [[package]] name = "githubkit" -version = "0.12.13" +version = "0.12.14" description = "GitHub SDK for Python" optional = false python-versions = "^3.9" @@ -531,19 +535,19 @@ files = [ [[package]] name = "pluggy" -version = "1.5.0" +version = "1.6.0" description = "plugin and hook calling mechanisms for python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, - {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, + {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, + {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, ] [package.extras] dev = ["pre-commit", "tox"] -testing = ["pytest", "pytest-benchmark"] +testing = ["coverage", "pytest", "pytest-benchmark"] [[package]] name = "pycparser" @@ -560,14 +564,14 @@ files = [ [[package]] name = "pydantic" -version = "2.11.4" +version = "2.11.5" description = "Data validation using Python type hints" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pydantic-2.11.4-py3-none-any.whl", hash = "sha256:d9615eaa9ac5a063471da949c8fc16376a84afb5024688b3ff885693506764eb"}, - {file = "pydantic-2.11.4.tar.gz", hash = "sha256:32738d19d63a226a52eed76645a98ee07c1f410ee41d93b4afbfa85ed8111c2d"}, + {file = "pydantic-2.11.5-py3-none-any.whl", hash = "sha256:f9c26ba06f9747749ca1e5c94d6a85cb84254577553c8785576fd38fa64dc0f7"}, + {file = "pydantic-2.11.5.tar.gz", hash = "sha256:7f853db3d0ce78ce8bbb148c401c2cdd6431b3473c0cdff2755c7690952a7b7a"}, ] [package.dependencies] @@ -692,6 +696,21 @@ files = [ [package.dependencies] typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0" +[[package]] +name = "pygments" +version = "2.19.1" +description = "Pygments is a syntax highlighting package written in Python." +optional = false +python-versions = ">=3.8" +groups = ["dev"] +files = [ + {file = "pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c"}, + {file = "pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f"}, +] + +[package.extras] +windows-terminal = ["colorama (>=0.4.6)"] + [[package]] name = "pyjwt" version = "2.10.1" @@ -715,37 +734,38 @@ tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"] [[package]] name = "pytest" -version = "8.3.5" +version = "8.4.0" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820"}, - {file = "pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845"}, + {file = "pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e"}, + {file = "pytest-8.4.0.tar.gz", hash = "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6"}, ] [package.dependencies] -colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} -iniconfig = "*" -packaging = "*" +colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1", markers = "python_version < \"3.11\""} +iniconfig = ">=1" +packaging = ">=20" pluggy = ">=1.5,<2" +pygments = ">=2.7.2" tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] -dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"] [[package]] name = "pytest-cov" -version = "6.1.1" +version = "6.2.0" description = "Pytest plugin for measuring coverage." optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pytest_cov-6.1.1-py3-none-any.whl", hash = "sha256:bddf29ed2d0ab6f4df17b4c55b0a657287db8684af9c42ea546b21b1041b3dde"}, - {file = "pytest_cov-6.1.1.tar.gz", hash = "sha256:46935f7aaefba760e716c2ebfbe1c216240b9592966e7da99ea8292d4d3e2a0a"}, + {file = "pytest_cov-6.2.0-py3-none-any.whl", hash = "sha256:bd19301caf600ead1169db089ed0ad7b8f2b962214330a696b8c85a0b497b2ff"}, + {file = "pytest_cov-6.2.0.tar.gz", hash = "sha256:9a4331e087a0f5074dc1e19fe0485a07a462b346cbb91e2ac903ec5504abce10"}, ] [package.dependencies] @@ -757,14 +777,14 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] [[package]] name = "pytest-xdist" -version = "3.6.1" +version = "3.7.0" description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "pytest_xdist-3.6.1-py3-none-any.whl", hash = "sha256:9ed4adfb68a016610848639bb7e02c9352d5d9f03d04809919e2dafc3be4cca7"}, - {file = "pytest_xdist-3.6.1.tar.gz", hash = "sha256:ead156a4db231eec769737f57668ef58a2084a34b2e55c4a8fa20d861107300d"}, + {file = "pytest_xdist-3.7.0-py3-none-any.whl", hash = "sha256:7d3fbd255998265052435eb9daa4e99b62e6fb9cfb6efd1f858d4d8c0c7f0ca0"}, + {file = "pytest_xdist-3.7.0.tar.gz", hash = "sha256:f9248c99a7c15b7d2f90715df93610353a485827bc06eefb6566d23f6400f126"}, ] [package.dependencies] @@ -778,22 +798,22 @@ testing = ["filelock"] [[package]] name = "redis" -version = "6.0.0" +version = "6.2.0" description = "Python client for Redis database and key-value store" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "redis-6.0.0-py3-none-any.whl", hash = "sha256:a2e040aee2cdd947be1fa3a32e35a956cd839cc4c1dbbe4b2cdee5b9623fd27c"}, - {file = "redis-6.0.0.tar.gz", hash = "sha256:5446780d2425b787ed89c91ddbfa1be6d32370a636c8fdb687f11b1c26c1fa88"}, + {file = "redis-6.2.0-py3-none-any.whl", hash = "sha256:c8ddf316ee0aab65f04a11229e94a64b2618451dab7a67cb2f77eb799d872d5e"}, + {file = "redis-6.2.0.tar.gz", hash = "sha256:e821f129b75dde6cb99dd35e5c76e8c49512a5a0d8dfdc560b2fbd44b85ca977"}, ] [package.dependencies] async-timeout = {version = ">=4.0.3", markers = "python_full_version < \"3.11.3\""} [package.extras] -hiredis = ["hiredis (>=3.0.0)"] -jwt = ["pyjwt (>=2.9.0,<2.10.0)"] +hiredis = ["hiredis (>=3.2.0)"] +jwt = ["pyjwt (>=2.9.0)"] ocsp = ["cryptography (>=36.0.1)", "pyopenssl (>=20.0.1)", "requests (>=2.31.0)"] [[package]] @@ -853,26 +873,26 @@ files = [ [[package]] name = "typing-extensions" -version = "4.13.2" -description = "Backported and Experimental Type Hints for Python 3.8+" +version = "4.14.0" +description = "Backported and Experimental Type Hints for Python 3.9+" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c"}, - {file = "typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"}, + {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"}, + {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"}, ] [[package]] name = "typing-inspection" -version = "0.4.0" +version = "0.4.1" description = "Runtime typing introspection tools" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f"}, - {file = "typing_inspection-0.4.0.tar.gz", hash = "sha256:9765c87de36671694a67904bf2c96e395be9c6439bb6c87b5142569dcdd65122"}, + {file = "typing_inspection-0.4.1-py3-none-any.whl", hash = "sha256:389055682238f53b04f7badcb49b989835495a96700ced5dab2d8feae4b26f51"}, + {file = "typing_inspection-0.4.1.tar.gz", hash = "sha256:6ae134cc0203c33377d43188d4064e9b357dba58cff3185f22924610e70a9d28"}, ] [package.dependencies] @@ -880,15 +900,15 @@ typing-extensions = ">=4.12.0" [[package]] name = "zipp" -version = "3.21.0" +version = "3.23.0" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.9" groups = ["dev"] markers = "python_version == \"3.9\"" files = [ - {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"}, - {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"}, + {file = "zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e"}, + {file = "zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166"}, ] [package.extras] @@ -896,7 +916,7 @@ check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \" cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] enabler = ["pytest-enabler (>=2.2)"] -test = ["big-O", "importlib-resources ; python_version < \"3.9\"", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more_itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] type = ["pytest-mypy"] [metadata] diff --git a/envs/test/poetry.lock b/envs/test/poetry.lock index 239a9f31b..f0970c949 100644 --- a/envs/test/poetry.lock +++ b/envs/test/poetry.lock @@ -51,75 +51,79 @@ files = [ [[package]] name = "coverage" -version = "7.8.0" +version = "7.9.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["main"] files = [ - {file = "coverage-7.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2931f66991175369859b5fd58529cd4b73582461877ecfd859b6549869287ffe"}, - {file = "coverage-7.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:52a523153c568d2c0ef8826f6cc23031dc86cffb8c6aeab92c4ff776e7951b28"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c8a5c139aae4c35cbd7cadca1df02ea8cf28a911534fc1b0456acb0b14234f3"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a26c0c795c3e0b63ec7da6efded5f0bc856d7c0b24b2ac84b4d1d7bc578d676"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:821f7bcbaa84318287115d54becb1915eece6918136c6f91045bb84e2f88739d"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a321c61477ff8ee705b8a5fed370b5710c56b3a52d17b983d9215861e37b642a"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:ed2144b8a78f9d94d9515963ed273d620e07846acd5d4b0a642d4849e8d91a0c"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:042e7841a26498fff7a37d6fda770d17519982f5b7d8bf5278d140b67b61095f"}, - {file = "coverage-7.8.0-cp310-cp310-win32.whl", hash = "sha256:f9983d01d7705b2d1f7a95e10bbe4091fabc03a46881a256c2787637b087003f"}, - {file = "coverage-7.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:5a570cd9bd20b85d1a0d7b009aaf6c110b52b5755c17be6962f8ccd65d1dbd23"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e7ac22a0bb2c7c49f441f7a6d46c9c80d96e56f5a8bc6972529ed43c8b694e27"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bf13d564d310c156d1c8e53877baf2993fb3073b2fc9f69790ca6a732eb4bfea"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5761c70c017c1b0d21b0815a920ffb94a670c8d5d409d9b38857874c21f70d7"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5ff52d790c7e1628241ffbcaeb33e07d14b007b6eb00a19320c7b8a7024c040"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d39fc4817fd67b3915256af5dda75fd4ee10621a3d484524487e33416c6f3543"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b44674870709017e4b4036e3d0d6c17f06a0e6d4436422e0ad29b882c40697d2"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8f99eb72bf27cbb167b636eb1726f590c00e1ad375002230607a844d9e9a2318"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b571bf5341ba8c6bc02e0baeaf3b061ab993bf372d982ae509807e7f112554e9"}, - {file = "coverage-7.8.0-cp311-cp311-win32.whl", hash = "sha256:e75a2ad7b647fd8046d58c3132d7eaf31b12d8a53c0e4b21fa9c4d23d6ee6d3c"}, - {file = "coverage-7.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:3043ba1c88b2139126fc72cb48574b90e2e0546d4c78b5299317f61b7f718b78"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bbb5cc845a0292e0c520656d19d7ce40e18d0e19b22cb3e0409135a575bf79fc"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4dfd9a93db9e78666d178d4f08a5408aa3f2474ad4d0e0378ed5f2ef71640cb6"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f017a61399f13aa6d1039f75cd467be388d157cd81f1a119b9d9a68ba6f2830d"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0915742f4c82208ebf47a2b154a5334155ed9ef9fe6190674b8a46c2fb89cb05"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a40fcf208e021eb14b0fac6bdb045c0e0cab53105f93ba0d03fd934c956143a"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a1f406a8e0995d654b2ad87c62caf6befa767885301f3b8f6f73e6f3c31ec3a6"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:77af0f6447a582fdc7de5e06fa3757a3ef87769fbb0fdbdeba78c23049140a47"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f2d32f95922927186c6dbc8bc60df0d186b6edb828d299ab10898ef3f40052fe"}, - {file = "coverage-7.8.0-cp312-cp312-win32.whl", hash = "sha256:769773614e676f9d8e8a0980dd7740f09a6ea386d0f383db6821df07d0f08545"}, - {file = "coverage-7.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:e5d2b9be5b0693cf21eb4ce0ec8d211efb43966f6657807f6859aab3814f946b"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5ac46d0c2dd5820ce93943a501ac5f6548ea81594777ca585bf002aa8854cacd"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:771eb7587a0563ca5bb6f622b9ed7f9d07bd08900f7589b4febff05f469bea00"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42421e04069fb2cbcbca5a696c4050b84a43b05392679d4068acbe65449b5c64"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:554fec1199d93ab30adaa751db68acec2b41c5602ac944bb19187cb9a41a8067"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5aaeb00761f985007b38cf463b1d160a14a22c34eb3f6a39d9ad6fc27cb73008"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:581a40c7b94921fffd6457ffe532259813fc68eb2bdda60fa8cc343414ce3733"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:f319bae0321bc838e205bf9e5bc28f0a3165f30c203b610f17ab5552cff90323"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:04bfec25a8ef1c5f41f5e7e5c842f6b615599ca8ba8391ec33a9290d9d2db3a3"}, - {file = "coverage-7.8.0-cp313-cp313-win32.whl", hash = "sha256:dd19608788b50eed889e13a5d71d832edc34fc9dfce606f66e8f9f917eef910d"}, - {file = "coverage-7.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:a9abbccd778d98e9c7e85038e35e91e67f5b520776781d9a1e2ee9d400869487"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:18c5ae6d061ad5b3e7eef4363fb27a0576012a7447af48be6c75b88494c6cf25"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:95aa6ae391a22bbbce1b77ddac846c98c5473de0372ba5c463480043a07bff42"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e013b07ba1c748dacc2a80e69a46286ff145935f260eb8c72df7185bf048f502"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d766a4f0e5aa1ba056ec3496243150698dc0481902e2b8559314368717be82b1"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad80e6b4a0c3cb6f10f29ae4c60e991f424e6b14219d46f1e7d442b938ee68a4"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b87eb6fc9e1bb8f98892a2458781348fa37e6925f35bb6ceb9d4afd54ba36c73"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:d1ba00ae33be84066cfbe7361d4e04dec78445b2b88bdb734d0d1cbab916025a"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f3c38e4e5ccbdc9198aecc766cedbb134b2d89bf64533973678dfcf07effd883"}, - {file = "coverage-7.8.0-cp313-cp313t-win32.whl", hash = "sha256:379fe315e206b14e21db5240f89dc0774bdd3e25c3c58c2c733c99eca96f1ada"}, - {file = "coverage-7.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:2e4b6b87bb0c846a9315e3ab4be2d52fac905100565f4b92f02c445c8799e257"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fa260de59dfb143af06dcf30c2be0b200bed2a73737a8a59248fcb9fa601ef0f"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:96121edfa4c2dfdda409877ea8608dd01de816a4dc4a0523356067b305e4e17a"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b8af63b9afa1031c0ef05b217faa598f3069148eeee6bb24b79da9012423b82"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:89b1f4af0d4afe495cd4787a68e00f30f1d15939f550e869de90a86efa7e0814"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94ec0be97723ae72d63d3aa41961a0b9a6f5a53ff599813c324548d18e3b9e8c"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:8a1d96e780bdb2d0cbb297325711701f7c0b6f89199a57f2049e90064c29f6bd"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:f1d8a2a57b47142b10374902777e798784abf400a004b14f1b0b9eaf1e528ba4"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:cf60dd2696b457b710dd40bf17ad269d5f5457b96442f7f85722bdb16fa6c899"}, - {file = "coverage-7.8.0-cp39-cp39-win32.whl", hash = "sha256:be945402e03de47ba1872cd5236395e0f4ad635526185a930735f66710e1bd3f"}, - {file = "coverage-7.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:90e7fbc6216ecaffa5a880cdc9c77b7418c1dcb166166b78dbc630d07f278cc3"}, - {file = "coverage-7.8.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:b8194fb8e50d556d5849753de991d390c5a1edeeba50f68e3a9253fbd8bf8ccd"}, - {file = "coverage-7.8.0-py3-none-any.whl", hash = "sha256:dbf364b4c5e7bae9250528167dfe40219b62e2d573c854d74be213e1e52069f7"}, - {file = "coverage-7.8.0.tar.gz", hash = "sha256:7a3d62b3b03b4b6fd41a085f3574874cf946cb4604d2b4d3e8dca8cd570ca501"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3d494fa4256e3cb161ca1df14a91d2d703c27d60452eb0d4a58bb05f52f676e4"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b613efceeabf242978d14e1a65626ec3be67c5261918a82a985f56c2a05475ee"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:673a4d2cb7ec78e1f2f6f41039f6785f27bca0f6bc0e722b53a58286d12754e1"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1edc2244932e9fed92ad14428b9480a97ecd37c970333688bd35048f6472f260"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec8b92a7617faa2017bd44c94583830bab8be175722d420501680abc4f5bc794"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d8f3ca1f128f11812d3baf0a482e7f36ffb856ac1ae14de3b5d1adcfb7af955d"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:c30eed34eb8206d9b8c2d0d9fa342fa98e10f34b1e9e1eb05f79ccbf4499c8ff"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:24e6f8e5f125cd8bff33593a484a079305c9f0be911f76c6432f580ade5c1a17"}, + {file = "coverage-7.9.0-cp310-cp310-win32.whl", hash = "sha256:a1b0317b4a8ff4d3703cd7aa642b4f963a71255abe4e878659f768238fab6602"}, + {file = "coverage-7.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:512b1ea57a11dfa23b7f3d8fe8690fcf8cd983a70ae4c2c262cf5c972618fa15"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:55b7b9df45174956e0f719a56cf60c0cb4a7f155668881d00de6384e2a3402f4"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:87bceebbc91a58c9264c43638729fcb45910805b9f86444f93654d988305b3a2"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:81da3b6e289bf9fc7dc159ab6d5222f5330ac6e94a6d06f147ba46e53fa6ec82"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b361684a91224d4362879c1b1802168d2435ff76666f1b7ba52fc300ad832dbc"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9a384ea4f77ac0a7e36c9a805ed95ef10f423bdb68b4e9487646cdf548a6a05"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:38a5642aa82ea6de0e4331e346f5ba188a9fdb7d727e00199f55031b85135d0a"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8c5ff4ca4890c0b57d3e80850534609493280c0f9e6ea2bd314b10cb8cbd76e0"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cd052a0c4727ede06393da3c1df1ae6ef6c079e6bdfefb39079877404b3edc22"}, + {file = "coverage-7.9.0-cp311-cp311-win32.whl", hash = "sha256:f73fd1128165e1d665cb7f863a91d00f073044a672c7dfa04ab400af4d1a9226"}, + {file = "coverage-7.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:dd62d62e782d3add529c8e7943f5600efd0d07dadf3819e5f9917edb4acf85d8"}, + {file = "coverage-7.9.0-cp311-cp311-win_arm64.whl", hash = "sha256:f75288785cc9a67aff3b04dafd8d0f0be67306018b224d319d23867a161578d6"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:969ed1ed0ab0325b50af3204f9024782180e64fb281f5a2952f479ec60a02aba"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1abd41781c874e716aaeecb8b27db5f4f2bc568f2ed8d41228aa087d567674f0"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0eb6e99487dffd28c88a4fc2ea4286beaf0207a43388775900c93e56cc5a8ae3"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c425c85ddb62b32d44f83fb20044fe32edceceee1db1f978c062eec020a73ea5"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0a1f7676bc90ceba67caa66850d689947d586f204ccf6478400c2bf39da5790"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f17055c50768d710d6abc789c9469d0353574780935e1381b83e63edc49ff530"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:298d2917a6bfadbb272e08545ed026af3965e4d2fe71e3f38bf0a816818b226e"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d9be5d26e5f817d478506e4d3c4ff7b92f17d980670b4791bf05baaa37ce2f88"}, + {file = "coverage-7.9.0-cp312-cp312-win32.whl", hash = "sha256:dc2784edd9ac9fe8692fc5505667deb0b05d895c016aaaf641031ed4a5f93d53"}, + {file = "coverage-7.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:18223198464a6d5549db1934cf77a15deb24bb88652c4f5f7cb21cd3ad853704"}, + {file = "coverage-7.9.0-cp312-cp312-win_arm64.whl", hash = "sha256:3b00194ff3c84d4b821822ff6c041f245fc55d0d5c7833fc4311d082e97595e8"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:122c60e92ab66c9c88e17565f67a91b3b3be5617cb50f73cfd34a4c60ed4aab0"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:813c11b367a6b3cf37212ec36b230f8d086c22b69dbf62877b40939fb2c79e74"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3f05e0f5e87f23d43fefe49e86655c6209dd4f9f034786b983e6803cf4554183"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62f465886fa4f86d5515da525aead97c5dff13a5cf997fc4c5097a1a59e063b2"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:549ea4ca901595bbe3270e1afdef98bf5d4d5791596efbdc90b00449a2bb1f91"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8cae1d4450945c74a6a65a09864ed3eaa917055cf70aa65f83ac1b9b0d8d5f9a"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d7b263910234c0d5ec913ec79ca921152fe874b805a7bcaf67118ef71708e5d2"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7d7b7425215963da8f5968096a20c5b5c9af4a86a950fcc25dcc2177ab33e9e5"}, + {file = "coverage-7.9.0-cp313-cp313-win32.whl", hash = "sha256:e7dcfa92867b0c53d2e22e985c66af946dc09e8bb13c556709e396e90a0adf5c"}, + {file = "coverage-7.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:aa34ca040785a2b768da489df0c036364d47a6c1c00bdd8f662b98fd3277d3d4"}, + {file = "coverage-7.9.0-cp313-cp313-win_arm64.whl", hash = "sha256:9c5dcb5cd3c52d84c5f52045e1c87c16bf189c2fbfa57cc0d811a3b4059939df"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b52d2fdc1940f90c4572bd48211475a7b102f75a7f9a5e6cfc6e3da7dc380c44"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4cc555a3e6ceb8841df01a4634374f5f9635e661f5c307da00bce19819e8bcdf"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:244f613617876b7cd32a097788d49c952a8f1698afb25275b2a825a4e895854e"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5c335d77539e66bc6f83e8f1ef207d038129d9b9acd9dc9f0ca42fa9eedf564a"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b335c7077c8da7bb8173d4f9ebd90ff1a97af6a6bec4fc4e6db4856ae80b31e"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:01cbc2c36895b7ab906514042c92b3fc9dd0526bf1c3251cb6aefd9c71ae6dda"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:1ac62880a9dff0726a193ce77a1bcdd4e8491009cb3a0510d31381e8b2c46d7a"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:95314eb306cf54af3d1147e27ba008cf78eed6f1309a1310772f4f05b12c9c65"}, + {file = "coverage-7.9.0-cp313-cp313t-win32.whl", hash = "sha256:c5cbf3ddfb68de8dc8ce33caa9321df27297a032aeaf2e99b278f183fb4ebc37"}, + {file = "coverage-7.9.0-cp313-cp313t-win_amd64.whl", hash = "sha256:e3ec9e1525eb7a0f89d31083539b398d921415d884e9f55400002a1e9fe0cf63"}, + {file = "coverage-7.9.0-cp313-cp313t-win_arm64.whl", hash = "sha256:a02efe6769f74245ce476e89db3d4e110db07b4c0c3d3f81728e2464bbbbcb8e"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:64dab59d812c1cbfc9cebadada377365874964acdf59b12e86487d25c2e0c29f"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:46b9dc640c6309fb49625d3569d4ba7abe2afcba645eb1e52bad97510f60ac26"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89358f4025ed424861311b33815a2866f7c94856c932b0ffc98180f655e813e2"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:589e37ae75d81fd53cd1ca624e07af4466e9e4ce259e3bfe2b147896857c06ea"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:29dea81eef5432076cee561329b3831bc988a4ce1bfaec90eee2078ff5311e6e"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7b3482588772b6b24601d1677aef299af28d6c212c70b0be27bdfc2e10fb00fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2debc0b9481b5fc76f771b3b31e89a0cd8791ad977654940a3523f3f2e5d98fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:304ded640bc2a60f14a2ff0fec98cce4c3f2e573c122f0548728c8dceba5abe7"}, + {file = "coverage-7.9.0-cp39-cp39-win32.whl", hash = "sha256:8e0a3a3f9b968007e1f56418a3586f9a983c84ac4e84d28d1c4f8b76c4226282"}, + {file = "coverage-7.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:cb3c07dd71d1ff52156d35ee6fa48458c3cec1add7fcce6a934f977fb80c48a5"}, + {file = "coverage-7.9.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:ccf1540a0e82ff525844880f988f6caaa2d037005e57bfe203b71cac7626145d"}, + {file = "coverage-7.9.0-py3-none-any.whl", hash = "sha256:79ea9a26b27c963cdf541e1eb9ac05311b012bc367d0e31816f1833b06c81c02"}, + {file = "coverage-7.9.0.tar.gz", hash = "sha256:1a93b43de2233a7670a8bf2520fed8ebd5eea6a65b47417500a9d882b0533fa2"}, ] [package.dependencies] @@ -245,53 +249,69 @@ files = [ [[package]] name = "pluggy" -version = "1.5.0" +version = "1.6.0" description = "plugin and hook calling mechanisms for python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main"] files = [ - {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, - {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, + {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, + {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, ] [package.extras] dev = ["pre-commit", "tox"] -testing = ["pytest", "pytest-benchmark"] +testing = ["coverage", "pytest", "pytest-benchmark"] + +[[package]] +name = "pygments" +version = "2.19.1" +description = "Pygments is a syntax highlighting package written in Python." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c"}, + {file = "pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f"}, +] + +[package.extras] +windows-terminal = ["colorama (>=0.4.6)"] [[package]] name = "pytest" -version = "8.3.5" +version = "8.4.0" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main"] files = [ - {file = "pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820"}, - {file = "pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845"}, + {file = "pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e"}, + {file = "pytest-8.4.0.tar.gz", hash = "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6"}, ] [package.dependencies] -colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} -iniconfig = "*" -packaging = "*" +colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1", markers = "python_version < \"3.11\""} +iniconfig = ">=1" +packaging = ">=20" pluggy = ">=1.5,<2" +pygments = ">=2.7.2" tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] -dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"] [[package]] name = "pytest-cov" -version = "6.1.1" +version = "6.2.0" description = "Pytest plugin for measuring coverage." optional = false python-versions = ">=3.9" groups = ["main"] files = [ - {file = "pytest_cov-6.1.1-py3-none-any.whl", hash = "sha256:bddf29ed2d0ab6f4df17b4c55b0a657287db8684af9c42ea546b21b1041b3dde"}, - {file = "pytest_cov-6.1.1.tar.gz", hash = "sha256:46935f7aaefba760e716c2ebfbe1c216240b9592966e7da99ea8292d4d3e2a0a"}, + {file = "pytest_cov-6.2.0-py3-none-any.whl", hash = "sha256:bd19301caf600ead1169db089ed0ad7b8f2b962214330a696b8c85a0b497b2ff"}, + {file = "pytest_cov-6.2.0.tar.gz", hash = "sha256:9a4331e087a0f5074dc1e19fe0485a07a462b346cbb91e2ac903ec5504abce10"}, ] [package.dependencies] @@ -303,14 +323,14 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] [[package]] name = "pytest-xdist" -version = "3.6.1" +version = "3.7.0" description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main"] files = [ - {file = "pytest_xdist-3.6.1-py3-none-any.whl", hash = "sha256:9ed4adfb68a016610848639bb7e02c9352d5d9f03d04809919e2dafc3be4cca7"}, - {file = "pytest_xdist-3.6.1.tar.gz", hash = "sha256:ead156a4db231eec769737f57668ef58a2084a34b2e55c4a8fa20d861107300d"}, + {file = "pytest_xdist-3.7.0-py3-none-any.whl", hash = "sha256:7d3fbd255998265052435eb9daa4e99b62e6fb9cfb6efd1f858d4d8c0c7f0ca0"}, + {file = "pytest_xdist-3.7.0.tar.gz", hash = "sha256:f9248c99a7c15b7d2f90715df93610353a485827bc06eefb6566d23f6400f126"}, ] [package.dependencies] @@ -324,22 +344,22 @@ testing = ["filelock"] [[package]] name = "redis" -version = "6.0.0" +version = "6.2.0" description = "Python client for Redis database and key-value store" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main"] files = [ - {file = "redis-6.0.0-py3-none-any.whl", hash = "sha256:a2e040aee2cdd947be1fa3a32e35a956cd839cc4c1dbbe4b2cdee5b9623fd27c"}, - {file = "redis-6.0.0.tar.gz", hash = "sha256:5446780d2425b787ed89c91ddbfa1be6d32370a636c8fdb687f11b1c26c1fa88"}, + {file = "redis-6.2.0-py3-none-any.whl", hash = "sha256:c8ddf316ee0aab65f04a11229e94a64b2618451dab7a67cb2f77eb799d872d5e"}, + {file = "redis-6.2.0.tar.gz", hash = "sha256:e821f129b75dde6cb99dd35e5c76e8c49512a5a0d8dfdc560b2fbd44b85ca977"}, ] [package.dependencies] async-timeout = {version = ">=4.0.3", markers = "python_full_version < \"3.11.3\""} [package.extras] -hiredis = ["hiredis (>=3.0.0)"] -jwt = ["pyjwt (>=2.9.0,<2.10.0)"] +hiredis = ["hiredis (>=3.2.0)"] +jwt = ["pyjwt (>=2.9.0)"] ocsp = ["cryptography (>=36.0.1)", "pyopenssl (>=20.0.1)", "requests (>=2.31.0)"] [[package]] @@ -399,28 +419,28 @@ files = [ [[package]] name = "typing-extensions" -version = "4.13.2" -description = "Backported and Experimental Type Hints for Python 3.8+" +version = "4.14.0" +description = "Backported and Experimental Type Hints for Python 3.9+" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main"] markers = "python_version < \"3.13\"" files = [ - {file = "typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c"}, - {file = "typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"}, + {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"}, + {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"}, ] [[package]] name = "zipp" -version = "3.21.0" +version = "3.23.0" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.9" groups = ["main"] markers = "python_version == \"3.9\"" files = [ - {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"}, - {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"}, + {file = "zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e"}, + {file = "zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166"}, ] [package.extras] @@ -428,7 +448,7 @@ check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \" cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] enabler = ["pytest-enabler (>=2.2)"] -test = ["big-O", "importlib-resources ; python_version < \"3.9\"", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more_itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] type = ["pytest-mypy"] [metadata] diff --git a/githubkit/__init__.py b/githubkit/__init__.py index 3852dcd29..147f7e05b 100644 --- a/githubkit/__init__.py +++ b/githubkit/__init__.py @@ -16,5 +16,5 @@ from .config import Config as Config from .core import GitHubCore as GitHubCore from .github import GitHub as GitHub -from .paginator import Paginator as Paginator +from .paginator import Paginator as Paginator # for backward compatibility from .response import Response as Response diff --git a/githubkit/auth/app.py b/githubkit/auth/app.py index d187042f2..5b01fbc28 100644 --- a/githubkit/auth/app.py +++ b/githubkit/auth/app.py @@ -212,9 +212,13 @@ def sync_auth_flow( response.read() response = self._parse_installation_auth_response(response) token = response.parsed_data.token - expire = datetime.strptime( - response.parsed_data.expires_at, "%Y-%m-%dT%H:%M:%SZ" - ).replace(tzinfo=timezone.utc) - datetime.now(timezone.utc) + expire = ( + datetime.strptime( + response.parsed_data.expires_at, "%Y-%m-%dT%H:%M:%SZ" + ).replace(tzinfo=timezone.utc) + - datetime.now(timezone.utc) + - timedelta(minutes=1) + ) cache.set(key, token, expire) request.headers["Authorization"] = f"token {token}" yield request @@ -250,9 +254,13 @@ async def async_auth_flow( await response.aread() response = self._parse_installation_auth_response(response) token = response.parsed_data.token - expire = datetime.strptime( - response.parsed_data.expires_at, "%Y-%m-%dT%H:%M:%SZ" - ).replace(tzinfo=timezone.utc) - datetime.now(timezone.utc) + expire = ( + datetime.strptime( + response.parsed_data.expires_at, "%Y-%m-%dT%H:%M:%SZ" + ).replace(tzinfo=timezone.utc) + - datetime.now(timezone.utc) + - timedelta(minutes=1) + ) await cache.aset(key, token, expire) request.headers["Authorization"] = f"token {token}" yield request diff --git a/githubkit/rest/__init__.py b/githubkit/rest/__init__.py index b1aba7ace..091713168 100644 --- a/githubkit/rest/__init__.py +++ b/githubkit/rest/__init__.py @@ -631,6 +631,9 @@ from githubkit.versions.v2022_11_28.models import ( DependabotPublicKey as DependabotPublicKey, ) + from githubkit.versions.v2022_11_28.models import ( + DependabotRepositoryAccessDetails as DependabotRepositoryAccessDetails, + ) from githubkit.versions.v2022_11_28.models import ( DependabotSecret as DependabotSecret, ) @@ -1050,6 +1053,9 @@ from githubkit.versions.v2022_11_28.models import ( MinimalRepository as MinimalRepository, ) + from githubkit.versions.v2022_11_28.models import ( + MinimalRepositoryPropCustomProperties as MinimalRepositoryPropCustomProperties, + ) from githubkit.versions.v2022_11_28.models import ( MinimalRepositoryPropLicense as MinimalRepositoryPropLicense, ) @@ -1142,6 +1148,12 @@ from githubkit.versions.v2022_11_28.models import ( OrganizationSimpleWebhooks as OrganizationSimpleWebhooks, ) + from githubkit.versions.v2022_11_28.models import ( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrganizationsOrgDependabotRepositoryAccessPatchBody as OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) from githubkit.versions.v2022_11_28.models import ( OrganizationUpdateIssueType as OrganizationUpdateIssueType, ) @@ -1279,6 +1291,18 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostBody as OrgsOrgAttestationsBulkListPostBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostResponse200 as OrgsOrgAttestationsBulkListPostResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostResponse200PropPageInfo as OrgsOrgAttestationsBulkListPostResponse200PropPageInfo, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) @@ -1965,6 +1989,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryInvitation as RepositoryInvitation, ) + from githubkit.versions.v2022_11_28.models import ( + RepositoryPropCodeSearchIndexStatus as RepositoryPropCodeSearchIndexStatus, + ) from githubkit.versions.v2022_11_28.models import ( RepositoryPropPermissions as RepositoryPropPermissions, ) @@ -3419,6 +3446,12 @@ from githubkit.versions.v2022_11_28.models import ( UserSshSigningKeysPostBody as UserSshSigningKeysPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof0 as UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof1 as UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) from githubkit.versions.v2022_11_28.models import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) @@ -9773,6 +9806,7 @@ "LicenseSimple", "Repository", "RepositoryPropPermissions", + "RepositoryPropCodeSearchIndexStatus", "InstallationToken", "ScopedInstallation", "Authorization", @@ -9805,6 +9839,19 @@ "DependabotAlertSecurityAdvisoryPropReferencesItems", "DependabotAlertWithRepository", "DependabotAlertWithRepositoryPropDependency", + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueBody", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", "OrganizationSecretScanningAlert", "Milestone", "IssueType", @@ -9859,10 +9906,12 @@ "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", + "MinimalRepositoryPropCustomProperties", "Thread", "ThreadPropSubject", "ThreadSubscription", "OrganizationSimple", + "DependabotRepositoryAccessDetails", "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", "OrganizationFull", @@ -10406,6 +10455,7 @@ "RepositoryRuleDetailedOneof19", "RepositoryRuleDetailedOneof20", "SecretScanningAlert", + "SecretScanningLocation", "SecretScanningPushProtectionBypass", "SecretScanningScanHistory", "SecretScanningScan", @@ -12464,20 +12514,6 @@ "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", "WebhookSecretScanningAlertCreated", "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", "WebhookSecretScanningAlertLocationCreatedFormEncoded", "WebhookSecretScanningAlertPubliclyLeaked", "WebhookSecretScanningAlertReopened", @@ -12675,6 +12711,8 @@ "NotificationsPutBody", "NotificationsPutResponse202", "NotificationsThreadsThreadIdSubscriptionPutBody", + "OrganizationsOrgDependabotRepositoryAccessPatchBody", + "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody", "OrgsOrgPatchBody", "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", @@ -12716,6 +12754,10 @@ "OrgsOrgActionsVariablesNamePatchBody", "OrgsOrgActionsVariablesNameRepositoriesGetResponse200", "OrgsOrgActionsVariablesNameRepositoriesPutBody", + "OrgsOrgAttestationsBulkListPostBody", + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", @@ -13100,6 +13142,8 @@ "UserSocialAccountsPostBody", "UserSocialAccountsDeleteBody", "UserSshSigningKeysPostBody", + "UsersUsernameAttestationsDeleteRequestPostBodyOneof0", + "UsersUsernameAttestationsDeleteRequestPostBodyOneof1", "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", diff --git a/githubkit/versions/ghec_v2022_11_28/models/__init__.py b/githubkit/versions/ghec_v2022_11_28/models/__init__.py index 1a995ed58..57209f608 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/models/__init__.py @@ -58,6 +58,9 @@ from .group_0018 import Installation as Installation from .group_0019 import LicenseSimple as LicenseSimple from .group_0020 import Repository as Repository + from .group_0020 import ( + RepositoryPropCodeSearchIndexStatus as RepositoryPropCodeSearchIndexStatus, + ) from .group_0020 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import InstallationToken as InstallationToken from .group_0022 import ScopedInstallation as ScopedInstallation @@ -486,8572 +489,8605 @@ from .group_0141 import ( RulesetVersionWithStateAllof1PropState as RulesetVersionWithStateAllof1PropState, ) + from .group_0142 import SecretScanningLocationCommit as SecretScanningLocationCommit from .group_0142 import ( - OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, + SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, + ) + from .group_0142 import ( + SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, + ) + from .group_0142 import ( + SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, + ) + from .group_0142 import ( + SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, + ) + from .group_0142 import ( + SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, + ) + from .group_0142 import ( + SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0143 import ActionsBillingUsage as ActionsBillingUsage from .group_0143 import ( - ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, + SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, + ) + from .group_0143 import ( + SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, + ) + from .group_0143 import ( + SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, + ) + from .group_0143 import ( + SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) from .group_0144 import ( - AdvancedSecurityActiveCommitters as AdvancedSecurityActiveCommitters, + SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) from .group_0144 import ( + SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, + ) + from .group_0145 import ( + OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, + ) + from .group_0146 import ActionsBillingUsage as ActionsBillingUsage + from .group_0146 import ( + ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, + ) + from .group_0147 import ( + AdvancedSecurityActiveCommitters as AdvancedSecurityActiveCommitters, + ) + from .group_0147 import ( AdvancedSecurityActiveCommittersRepository as AdvancedSecurityActiveCommittersRepository, ) - from .group_0144 import ( + from .group_0147 import ( AdvancedSecurityActiveCommittersUser as AdvancedSecurityActiveCommittersUser, ) - from .group_0145 import GetAllCostCenters as GetAllCostCenters - from .group_0145 import ( + from .group_0148 import GetAllCostCenters as GetAllCostCenters + from .group_0148 import ( GetAllCostCentersPropCostCentersItems as GetAllCostCentersPropCostCentersItems, ) - from .group_0145 import ( + from .group_0148 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItems as GetAllCostCentersPropCostCentersItemsPropResourcesItems, ) - from .group_0146 import PackagesBillingUsage as PackagesBillingUsage - from .group_0147 import CombinedBillingUsage as CombinedBillingUsage - from .group_0148 import BillingUsageReport as BillingUsageReport - from .group_0148 import ( + from .group_0149 import PackagesBillingUsage as PackagesBillingUsage + from .group_0150 import CombinedBillingUsage as CombinedBillingUsage + from .group_0151 import BillingUsageReport as BillingUsageReport + from .group_0151 import ( BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems, ) - from .group_0149 import Milestone as Milestone - from .group_0150 import IssueType as IssueType - from .group_0151 import ReactionRollup as ReactionRollup - from .group_0152 import Issue as Issue - from .group_0152 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0152 import IssuePropPullRequest as IssuePropPullRequest - from .group_0152 import SubIssuesSummary as SubIssuesSummary - from .group_0153 import IssueComment as IssueComment - from .group_0154 import Actor as Actor - from .group_0154 import Event as Event - from .group_0154 import EventPropPayload as EventPropPayload - from .group_0154 import ( + from .group_0152 import Milestone as Milestone + from .group_0153 import IssueType as IssueType + from .group_0154 import ReactionRollup as ReactionRollup + from .group_0155 import Issue as Issue + from .group_0155 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0155 import IssuePropPullRequest as IssuePropPullRequest + from .group_0155 import SubIssuesSummary as SubIssuesSummary + from .group_0156 import IssueComment as IssueComment + from .group_0157 import Actor as Actor + from .group_0157 import Event as Event + from .group_0157 import EventPropPayload as EventPropPayload + from .group_0157 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0154 import EventPropRepo as EventPropRepo - from .group_0155 import Feed as Feed - from .group_0155 import FeedPropLinks as FeedPropLinks - from .group_0155 import LinkWithType as LinkWithType - from .group_0156 import BaseGist as BaseGist - from .group_0156 import BaseGistPropFiles as BaseGistPropFiles - from .group_0157 import GistHistory as GistHistory - from .group_0157 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0157 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0157 import ( + from .group_0157 import EventPropRepo as EventPropRepo + from .group_0158 import Feed as Feed + from .group_0158 import FeedPropLinks as FeedPropLinks + from .group_0158 import LinkWithType as LinkWithType + from .group_0159 import BaseGist as BaseGist + from .group_0159 import BaseGistPropFiles as BaseGistPropFiles + from .group_0160 import GistHistory as GistHistory + from .group_0160 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0160 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0160 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0158 import GistSimple as GistSimple - from .group_0158 import GistSimplePropFiles as GistSimplePropFiles - from .group_0158 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0158 import PublicUser as PublicUser - from .group_0158 import PublicUserPropPlan as PublicUserPropPlan - from .group_0159 import GistComment as GistComment - from .group_0160 import GistCommit as GistCommit - from .group_0160 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0161 import GitignoreTemplate as GitignoreTemplate - from .group_0162 import License as License - from .group_0163 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0164 import MarketplacePurchase as MarketplacePurchase - from .group_0165 import ( + from .group_0161 import GistSimple as GistSimple + from .group_0161 import GistSimplePropFiles as GistSimplePropFiles + from .group_0161 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0161 import PublicUser as PublicUser + from .group_0161 import PublicUserPropPlan as PublicUserPropPlan + from .group_0162 import GistComment as GistComment + from .group_0163 import GistCommit as GistCommit + from .group_0163 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0164 import GitignoreTemplate as GitignoreTemplate + from .group_0165 import License as License + from .group_0166 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0167 import MarketplacePurchase as MarketplacePurchase + from .group_0168 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0165 import ( + from .group_0168 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0166 import ApiOverview as ApiOverview - from .group_0166 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0166 import ( + from .group_0169 import ApiOverview as ApiOverview + from .group_0169 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0169 import ( ApiOverviewPropDomainsPropActionsInbound as ApiOverviewPropDomainsPropActionsInbound, ) - from .group_0166 import ( + from .group_0169 import ( ApiOverviewPropDomainsPropArtifactAttestations as ApiOverviewPropDomainsPropArtifactAttestations, ) - from .group_0166 import ( + from .group_0169 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0167 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0167 import ( + from .group_0170 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0170 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropCodeSecurity as SecurityAndAnalysisPropCodeSecurity, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningAiDetection as SecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningValidityChecks as SecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_0168 import CodeOfConduct as CodeOfConduct - from .group_0168 import MinimalRepository as MinimalRepository - from .group_0168 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0168 import ( - MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, + from .group_0171 import CodeOfConduct as CodeOfConduct + from .group_0171 import MinimalRepository as MinimalRepository + from .group_0171 import ( + MinimalRepositoryPropCustomProperties as MinimalRepositoryPropCustomProperties, ) - from .group_0169 import Thread as Thread - from .group_0169 import ThreadPropSubject as ThreadPropSubject - from .group_0170 import ThreadSubscription as ThreadSubscription + from .group_0171 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense from .group_0171 import ( - OrganizationCustomRepositoryRole as OrganizationCustomRepositoryRole, + MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0172 import OrganizationFull as OrganizationFull - from .group_0172 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0173 import OidcCustomSub as OidcCustomSub + from .group_0172 import Thread as Thread + from .group_0172 import ThreadPropSubject as ThreadPropSubject + from .group_0173 import ThreadSubscription as ThreadSubscription from .group_0174 import ( + OrganizationCustomRepositoryRole as OrganizationCustomRepositoryRole, + ) + from .group_0175 import ( + DependabotRepositoryAccessDetails as DependabotRepositoryAccessDetails, + ) + from .group_0176 import OrganizationFull as OrganizationFull + from .group_0176 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0177 import OidcCustomSub as OidcCustomSub + from .group_0178 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0175 import ActionsPublicKey as ActionsPublicKey - from .group_0176 import SecretScanningBypassRequest as SecretScanningBypassRequest - from .group_0176 import ( + from .group_0179 import ActionsPublicKey as ActionsPublicKey + from .group_0180 import SecretScanningBypassRequest as SecretScanningBypassRequest + from .group_0180 import ( SecretScanningBypassRequestPropDataItems as SecretScanningBypassRequestPropDataItems, ) - from .group_0176 import ( + from .group_0180 import ( SecretScanningBypassRequestPropOrganization as SecretScanningBypassRequestPropOrganization, ) - from .group_0176 import ( + from .group_0180 import ( SecretScanningBypassRequestPropRepository as SecretScanningBypassRequestPropRepository, ) - from .group_0176 import ( + from .group_0180 import ( SecretScanningBypassRequestPropRequester as SecretScanningBypassRequestPropRequester, ) - from .group_0177 import CampaignSummary as CampaignSummary - from .group_0177 import ( + from .group_0181 import CampaignSummary as CampaignSummary + from .group_0181 import ( CampaignSummaryPropAlertStats as CampaignSummaryPropAlertStats, ) - from .group_0178 import CodespaceMachine as CodespaceMachine - from .group_0179 import Codespace as Codespace - from .group_0179 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0179 import ( + from .group_0182 import CodespaceMachine as CodespaceMachine + from .group_0183 import Codespace as Codespace + from .group_0183 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0183 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0180 import CodespacesPublicKey as CodespacesPublicKey - from .group_0181 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0181 import ( + from .group_0184 import CodespacesPublicKey as CodespacesPublicKey + from .group_0185 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0185 import ( CopilotOrganizationSeatBreakdown as CopilotOrganizationSeatBreakdown, ) - from .group_0182 import CredentialAuthorization as CredentialAuthorization - from .group_0183 import ( + from .group_0186 import CredentialAuthorization as CredentialAuthorization + from .group_0187 import ( OrganizationCustomRepositoryRoleCreateSchema as OrganizationCustomRepositoryRoleCreateSchema, ) - from .group_0184 import ( + from .group_0188 import ( OrganizationCustomRepositoryRoleUpdateSchema as OrganizationCustomRepositoryRoleUpdateSchema, ) - from .group_0185 import DependabotPublicKey as DependabotPublicKey - from .group_0186 import ( + from .group_0189 import DependabotPublicKey as DependabotPublicKey + from .group_0190 import ( SecretScanningDismissalRequest as SecretScanningDismissalRequest, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestPropDataItems as SecretScanningDismissalRequestPropDataItems, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestPropOrganization as SecretScanningDismissalRequestPropOrganization, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestPropRepository as SecretScanningDismissalRequestPropRepository, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestPropRequester as SecretScanningDismissalRequestPropRequester, ) - from .group_0187 import Package as Package - from .group_0188 import ExternalGroup as ExternalGroup - from .group_0188 import ( + from .group_0191 import Package as Package + from .group_0192 import ExternalGroup as ExternalGroup + from .group_0192 import ( ExternalGroupPropMembersItems as ExternalGroupPropMembersItems, ) - from .group_0188 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems - from .group_0189 import ExternalGroups as ExternalGroups - from .group_0189 import ( + from .group_0192 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems + from .group_0193 import ExternalGroups as ExternalGroups + from .group_0193 import ( ExternalGroupsPropGroupsItems as ExternalGroupsPropGroupsItems, ) - from .group_0190 import OrganizationInvitation as OrganizationInvitation - from .group_0191 import ( + from .group_0194 import OrganizationInvitation as OrganizationInvitation + from .group_0195 import ( RepositoryFineGrainedPermission as RepositoryFineGrainedPermission, ) - from .group_0192 import OrgHook as OrgHook - from .group_0192 import OrgHookPropConfig as OrgHookPropConfig - from .group_0193 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems - from .group_0194 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems - from .group_0195 import ApiInsightsSummaryStats as ApiInsightsSummaryStats - from .group_0196 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems - from .group_0197 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems - from .group_0198 import InteractionLimitResponse as InteractionLimitResponse - from .group_0199 import InteractionLimit as InteractionLimit - from .group_0200 import OrganizationCreateIssueType as OrganizationCreateIssueType - from .group_0201 import OrganizationUpdateIssueType as OrganizationUpdateIssueType - from .group_0202 import OrgMembership as OrgMembership - from .group_0202 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0203 import Migration as Migration - from .group_0204 import ( + from .group_0196 import OrgHook as OrgHook + from .group_0196 import OrgHookPropConfig as OrgHookPropConfig + from .group_0197 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems + from .group_0198 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems + from .group_0199 import ApiInsightsSummaryStats as ApiInsightsSummaryStats + from .group_0200 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems + from .group_0201 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems + from .group_0202 import InteractionLimitResponse as InteractionLimitResponse + from .group_0203 import InteractionLimit as InteractionLimit + from .group_0204 import OrganizationCreateIssueType as OrganizationCreateIssueType + from .group_0205 import OrganizationUpdateIssueType as OrganizationUpdateIssueType + from .group_0206 import OrgMembership as OrgMembership + from .group_0206 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0207 import Migration as Migration + from .group_0208 import ( OrganizationFineGrainedPermission as OrganizationFineGrainedPermission, ) - from .group_0205 import OrganizationRole as OrganizationRole - from .group_0205 import ( + from .group_0209 import OrganizationRole as OrganizationRole + from .group_0209 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0206 import ( + from .group_0210 import ( OrganizationCustomOrganizationRoleCreateSchema as OrganizationCustomOrganizationRoleCreateSchema, ) - from .group_0207 import ( + from .group_0211 import ( OrganizationCustomOrganizationRoleUpdateSchema as OrganizationCustomOrganizationRoleUpdateSchema, ) - from .group_0208 import TeamRoleAssignment as TeamRoleAssignment - from .group_0208 import ( + from .group_0212 import TeamRoleAssignment as TeamRoleAssignment + from .group_0212 import ( TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, ) - from .group_0209 import UserRoleAssignment as UserRoleAssignment - from .group_0210 import PackageVersion as PackageVersion - from .group_0210 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0210 import ( + from .group_0213 import UserRoleAssignment as UserRoleAssignment + from .group_0214 import PackageVersion as PackageVersion + from .group_0214 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0214 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0210 import ( + from .group_0214 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0213 import ( + from .group_0217 import ( OrgPrivateRegistryConfigurationWithSelectedRepositories as OrgPrivateRegistryConfigurationWithSelectedRepositories, ) - from .group_0214 import Project as Project - from .group_0215 import CustomPropertyValue as CustomPropertyValue - from .group_0216 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0217 import CodeOfConductSimple as CodeOfConductSimple - from .group_0218 import FullRepository as FullRepository - from .group_0218 import ( + from .group_0218 import Project as Project + from .group_0219 import CustomPropertyValue as CustomPropertyValue + from .group_0220 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0221 import CodeOfConductSimple as CodeOfConductSimple + from .group_0222 import FullRepository as FullRepository + from .group_0222 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0218 import ( + from .group_0222 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0219 import RuleSuitesItems as RuleSuitesItems - from .group_0220 import RuleSuite as RuleSuite - from .group_0220 import ( + from .group_0223 import RuleSuitesItems as RuleSuitesItems + from .group_0224 import RuleSuite as RuleSuite + from .group_0224 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0220 import ( + from .group_0224 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0221 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0222 import RepositoryAdvisory as RepositoryAdvisory - from .group_0222 import ( + from .group_0225 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0226 import RepositoryAdvisory as RepositoryAdvisory + from .group_0226 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0222 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0222 import ( + from .group_0226 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0226 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0223 import GroupMapping as GroupMapping - from .group_0223 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems - from .group_0224 import TeamFull as TeamFull - from .group_0224 import TeamOrganization as TeamOrganization - from .group_0224 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0225 import TeamDiscussion as TeamDiscussion - from .group_0226 import TeamDiscussionComment as TeamDiscussionComment - from .group_0227 import Reaction as Reaction - from .group_0228 import TeamMembership as TeamMembership - from .group_0229 import TeamProject as TeamProject - from .group_0229 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0230 import TeamRepository as TeamRepository - from .group_0230 import ( + from .group_0227 import GroupMapping as GroupMapping + from .group_0227 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems + from .group_0228 import TeamFull as TeamFull + from .group_0228 import TeamOrganization as TeamOrganization + from .group_0228 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0229 import TeamDiscussion as TeamDiscussion + from .group_0230 import TeamDiscussionComment as TeamDiscussionComment + from .group_0231 import Reaction as Reaction + from .group_0232 import TeamMembership as TeamMembership + from .group_0233 import TeamProject as TeamProject + from .group_0233 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0234 import TeamRepository as TeamRepository + from .group_0234 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0231 import ProjectCard as ProjectCard - from .group_0232 import ProjectColumn as ProjectColumn - from .group_0233 import ( + from .group_0235 import ProjectCard as ProjectCard + from .group_0236 import ProjectColumn as ProjectColumn + from .group_0237 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0234 import RateLimit as RateLimit - from .group_0235 import RateLimitOverview as RateLimitOverview - from .group_0236 import ( + from .group_0238 import RateLimit as RateLimit + from .group_0239 import RateLimitOverview as RateLimitOverview + from .group_0240 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0237 import Artifact as Artifact - from .group_0237 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0238 import ActionsCacheList as ActionsCacheList - from .group_0238 import ( + from .group_0241 import Artifact as Artifact + from .group_0241 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0242 import ActionsCacheList as ActionsCacheList + from .group_0242 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0239 import Job as Job - from .group_0239 import JobPropStepsItems as JobPropStepsItems - from .group_0240 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0241 import ActionsSecret as ActionsSecret - from .group_0242 import ActionsVariable as ActionsVariable - from .group_0243 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0244 import ( + from .group_0243 import Job as Job + from .group_0243 import JobPropStepsItems as JobPropStepsItems + from .group_0244 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0245 import ActionsSecret as ActionsSecret + from .group_0246 import ActionsVariable as ActionsVariable + from .group_0247 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0248 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0245 import PullRequestMinimal as PullRequestMinimal - from .group_0245 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0245 import ( + from .group_0249 import PullRequestMinimal as PullRequestMinimal + from .group_0249 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0249 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0245 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0245 import ( + from .group_0249 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0249 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0246 import SimpleCommit as SimpleCommit - from .group_0246 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0246 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0247 import ReferencedWorkflow as ReferencedWorkflow - from .group_0247 import WorkflowRun as WorkflowRun - from .group_0248 import EnvironmentApprovals as EnvironmentApprovals - from .group_0248 import ( + from .group_0250 import SimpleCommit as SimpleCommit + from .group_0250 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0250 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0251 import ReferencedWorkflow as ReferencedWorkflow + from .group_0251 import WorkflowRun as WorkflowRun + from .group_0252 import EnvironmentApprovals as EnvironmentApprovals + from .group_0252 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0249 import ( + from .group_0253 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0250 import ( + from .group_0254 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0251 import PendingDeployment as PendingDeployment - from .group_0251 import ( + from .group_0255 import PendingDeployment as PendingDeployment + from .group_0255 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0251 import ( + from .group_0255 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0252 import Deployment as Deployment - from .group_0252 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0253 import WorkflowRunUsage as WorkflowRunUsage - from .group_0253 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0253 import ( + from .group_0256 import Deployment as Deployment + from .group_0256 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0257 import WorkflowRunUsage as WorkflowRunUsage + from .group_0257 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0257 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0254 import WorkflowUsage as WorkflowUsage - from .group_0254 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0254 import ( + from .group_0258 import WorkflowUsage as WorkflowUsage + from .group_0258 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0258 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0254 import ( + from .group_0258 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0254 import ( + from .group_0258 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0255 import Activity as Activity - from .group_0256 import Autolink as Autolink - from .group_0257 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0258 import ( + from .group_0259 import Activity as Activity + from .group_0260 import Autolink as Autolink + from .group_0261 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0262 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0259 import ( + from .group_0263 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0259 import ( + from .group_0263 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0260 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0260 import ( + from .group_0264 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0264 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0261 import BranchProtection as BranchProtection - from .group_0261 import ( + from .group_0265 import BranchProtection as BranchProtection + from .group_0265 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0261 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0261 import ( + from .group_0265 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0265 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0261 import ( + from .group_0265 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0262 import ShortBranch as ShortBranch - from .group_0262 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0263 import GitUser as GitUser - from .group_0264 import Verification as Verification - from .group_0265 import DiffEntry as DiffEntry - from .group_0266 import Commit as Commit - from .group_0266 import CommitPropParentsItems as CommitPropParentsItems - from .group_0266 import CommitPropStats as CommitPropStats - from .group_0266 import EmptyObject as EmptyObject - from .group_0267 import CommitPropCommit as CommitPropCommit - from .group_0267 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0268 import BranchWithProtection as BranchWithProtection - from .group_0268 import ( + from .group_0266 import ShortBranch as ShortBranch + from .group_0266 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0267 import GitUser as GitUser + from .group_0268 import Verification as Verification + from .group_0269 import DiffEntry as DiffEntry + from .group_0270 import Commit as Commit + from .group_0270 import CommitPropParentsItems as CommitPropParentsItems + from .group_0270 import CommitPropStats as CommitPropStats + from .group_0270 import EmptyObject as EmptyObject + from .group_0271 import CommitPropCommit as CommitPropCommit + from .group_0271 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0272 import BranchWithProtection as BranchWithProtection + from .group_0272 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0269 import ProtectedBranch as ProtectedBranch - from .group_0269 import ( + from .group_0273 import ProtectedBranch as ProtectedBranch + from .group_0273 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0269 import StatusCheckPolicy as StatusCheckPolicy - from .group_0269 import ( + from .group_0273 import StatusCheckPolicy as StatusCheckPolicy + from .group_0273 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0270 import ( + from .group_0274 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0271 import ( + from .group_0275 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0271 import ( + from .group_0275 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0272 import DeploymentSimple as DeploymentSimple - from .group_0273 import CheckRun as CheckRun - from .group_0273 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0273 import CheckRunPropOutput as CheckRunPropOutput - from .group_0274 import CheckAnnotation as CheckAnnotation - from .group_0275 import CheckSuite as CheckSuite - from .group_0275 import ( + from .group_0276 import DeploymentSimple as DeploymentSimple + from .group_0277 import CheckRun as CheckRun + from .group_0277 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0277 import CheckRunPropOutput as CheckRunPropOutput + from .group_0278 import CheckAnnotation as CheckAnnotation + from .group_0279 import CheckSuite as CheckSuite + from .group_0279 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0276 import CheckSuitePreference as CheckSuitePreference - from .group_0276 import ( + from .group_0280 import CheckSuitePreference as CheckSuitePreference + from .group_0280 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0276 import ( + from .group_0280 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0277 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0278 import CodeScanningAlert as CodeScanningAlert - from .group_0278 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0279 import CodeScanningAutofix as CodeScanningAutofix - from .group_0280 import CodeScanningAutofixCommits as CodeScanningAutofixCommits - from .group_0281 import ( + from .group_0281 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0282 import CodeScanningAlert as CodeScanningAlert + from .group_0282 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0283 import CodeScanningAutofix as CodeScanningAutofix + from .group_0284 import CodeScanningAutofixCommits as CodeScanningAutofixCommits + from .group_0285 import ( CodeScanningAutofixCommitsResponse as CodeScanningAutofixCommitsResponse, ) - from .group_0282 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0283 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0284 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0285 import ( + from .group_0286 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0287 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0288 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0289 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0286 import ( + from .group_0290 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0287 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0288 import ( + from .group_0291 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0292 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0289 import ( + from .group_0293 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0289 import ( + from .group_0293 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0290 import ( + from .group_0294 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0291 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0292 import ( + from .group_0295 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0296 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0293 import ( + from .group_0297 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0294 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0295 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0296 import ( + from .group_0298 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0299 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0300 import ( CodeSecurityConfigurationForRepository as CodeSecurityConfigurationForRepository, ) - from .group_0297 import CodeownersErrors as CodeownersErrors - from .group_0297 import ( + from .group_0301 import CodeownersErrors as CodeownersErrors + from .group_0301 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0298 import ( + from .group_0302 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0299 import RepositoryInvitation as RepositoryInvitation - from .group_0300 import Collaborator as Collaborator - from .group_0300 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0300 import ( + from .group_0303 import RepositoryInvitation as RepositoryInvitation + from .group_0304 import Collaborator as Collaborator + from .group_0304 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0304 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0301 import CommitComment as CommitComment - from .group_0301 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0302 import BranchShort as BranchShort - from .group_0302 import BranchShortPropCommit as BranchShortPropCommit - from .group_0303 import Link as Link - from .group_0304 import AutoMerge as AutoMerge - from .group_0305 import PullRequestSimple as PullRequestSimple - from .group_0305 import ( + from .group_0305 import CommitComment as CommitComment + from .group_0305 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0306 import BranchShort as BranchShort + from .group_0306 import BranchShortPropCommit as BranchShortPropCommit + from .group_0307 import Link as Link + from .group_0308 import AutoMerge as AutoMerge + from .group_0309 import PullRequestSimple as PullRequestSimple + from .group_0309 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0306 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0306 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0307 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0308 import CombinedCommitStatus as CombinedCommitStatus - from .group_0308 import SimpleCommitStatus as SimpleCommitStatus - from .group_0309 import Status as Status - from .group_0310 import CommunityHealthFile as CommunityHealthFile - from .group_0310 import CommunityProfile as CommunityProfile - from .group_0310 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0311 import CommitComparison as CommitComparison - from .group_0312 import ContentTree as ContentTree - from .group_0312 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0312 import ( + from .group_0310 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0310 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0311 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0312 import CombinedCommitStatus as CombinedCommitStatus + from .group_0312 import SimpleCommitStatus as SimpleCommitStatus + from .group_0313 import Status as Status + from .group_0314 import CommunityHealthFile as CommunityHealthFile + from .group_0314 import CommunityProfile as CommunityProfile + from .group_0314 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0315 import CommitComparison as CommitComparison + from .group_0316 import ContentTree as ContentTree + from .group_0316 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0316 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0312 import ContentTreePropLinks as ContentTreePropLinks - from .group_0313 import ContentDirectoryItems as ContentDirectoryItems - from .group_0313 import ( + from .group_0316 import ContentTreePropLinks as ContentTreePropLinks + from .group_0317 import ContentDirectoryItems as ContentDirectoryItems + from .group_0317 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0314 import ContentFile as ContentFile - from .group_0314 import ContentFilePropLinks as ContentFilePropLinks - from .group_0315 import ContentSymlink as ContentSymlink - from .group_0315 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0316 import ContentSubmodule as ContentSubmodule - from .group_0316 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0317 import FileCommit as FileCommit - from .group_0317 import FileCommitPropCommit as FileCommitPropCommit - from .group_0317 import ( + from .group_0318 import ContentFile as ContentFile + from .group_0318 import ContentFilePropLinks as ContentFilePropLinks + from .group_0319 import ContentSymlink as ContentSymlink + from .group_0319 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0320 import ContentSubmodule as ContentSubmodule + from .group_0320 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0321 import FileCommit as FileCommit + from .group_0321 import FileCommitPropCommit as FileCommitPropCommit + from .group_0321 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0317 import ( + from .group_0321 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0317 import ( + from .group_0321 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0317 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0317 import ( + from .group_0321 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0321 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0317 import FileCommitPropContent as FileCommitPropContent - from .group_0317 import ( + from .group_0321 import FileCommitPropContent as FileCommitPropContent + from .group_0321 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0318 import RepositoryRuleViolationError as RepositoryRuleViolationError - from .group_0318 import ( + from .group_0322 import RepositoryRuleViolationError as RepositoryRuleViolationError + from .group_0322 import ( RepositoryRuleViolationErrorPropMetadata as RepositoryRuleViolationErrorPropMetadata, ) - from .group_0318 import ( + from .group_0322 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanning as RepositoryRuleViolationErrorPropMetadataPropSecretScanning, ) - from .group_0318 import ( + from .group_0322 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems, ) - from .group_0319 import Contributor as Contributor - from .group_0320 import DependabotAlert as DependabotAlert - from .group_0321 import ( + from .group_0323 import Contributor as Contributor + from .group_0324 import DependabotAlert as DependabotAlert + from .group_0325 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0322 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0322 import ( + from .group_0326 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0326 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0323 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0323 import ( + from .group_0327 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0327 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItems as DependencyGraphSpdxSbomPropSbomPropRelationshipsItems, ) - from .group_0324 import Metadata as Metadata - from .group_0325 import Dependency as Dependency - from .group_0326 import Manifest as Manifest - from .group_0326 import ManifestPropFile as ManifestPropFile - from .group_0326 import ManifestPropResolved as ManifestPropResolved - from .group_0327 import Snapshot as Snapshot - from .group_0327 import SnapshotPropDetector as SnapshotPropDetector - from .group_0327 import SnapshotPropJob as SnapshotPropJob - from .group_0327 import SnapshotPropManifests as SnapshotPropManifests - from .group_0328 import DeploymentStatus as DeploymentStatus - from .group_0329 import ( + from .group_0328 import Metadata as Metadata + from .group_0329 import Dependency as Dependency + from .group_0330 import Manifest as Manifest + from .group_0330 import ManifestPropFile as ManifestPropFile + from .group_0330 import ManifestPropResolved as ManifestPropResolved + from .group_0331 import Snapshot as Snapshot + from .group_0331 import SnapshotPropDetector as SnapshotPropDetector + from .group_0331 import SnapshotPropJob as SnapshotPropJob + from .group_0331 import SnapshotPropManifests as SnapshotPropManifests + from .group_0332 import DeploymentStatus as DeploymentStatus + from .group_0333 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0330 import Environment as Environment - from .group_0330 import ( + from .group_0334 import Environment as Environment + from .group_0334 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0330 import ( + from .group_0334 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0330 import ( + from .group_0334 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0331 import ( + from .group_0335 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0332 import ( + from .group_0336 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0333 import ( + from .group_0337 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0334 import ( + from .group_0338 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0335 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0336 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0336 import ( + from .group_0339 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0340 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0340 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0337 import ShortBlob as ShortBlob - from .group_0338 import Blob as Blob - from .group_0339 import GitCommit as GitCommit - from .group_0339 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0339 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0339 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0339 import GitCommitPropTree as GitCommitPropTree - from .group_0339 import GitCommitPropVerification as GitCommitPropVerification - from .group_0340 import GitRef as GitRef - from .group_0340 import GitRefPropObject as GitRefPropObject - from .group_0341 import GitTag as GitTag - from .group_0341 import GitTagPropObject as GitTagPropObject - from .group_0341 import GitTagPropTagger as GitTagPropTagger - from .group_0342 import GitTree as GitTree - from .group_0342 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0343 import HookResponse as HookResponse - from .group_0344 import Hook as Hook - from .group_0345 import Import as Import - from .group_0345 import ( + from .group_0341 import ShortBlob as ShortBlob + from .group_0342 import Blob as Blob + from .group_0343 import GitCommit as GitCommit + from .group_0343 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0343 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0343 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0343 import GitCommitPropTree as GitCommitPropTree + from .group_0343 import GitCommitPropVerification as GitCommitPropVerification + from .group_0344 import GitRef as GitRef + from .group_0344 import GitRefPropObject as GitRefPropObject + from .group_0345 import GitTag as GitTag + from .group_0345 import GitTagPropObject as GitTagPropObject + from .group_0345 import GitTagPropTagger as GitTagPropTagger + from .group_0346 import GitTree as GitTree + from .group_0346 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0347 import HookResponse as HookResponse + from .group_0348 import Hook as Hook + from .group_0349 import Import as Import + from .group_0349 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0346 import PorterAuthor as PorterAuthor - from .group_0347 import PorterLargeFile as PorterLargeFile - from .group_0348 import IssueEvent as IssueEvent - from .group_0348 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0348 import IssueEventLabel as IssueEventLabel - from .group_0348 import IssueEventMilestone as IssueEventMilestone - from .group_0348 import IssueEventProjectCard as IssueEventProjectCard - from .group_0348 import IssueEventRename as IssueEventRename - from .group_0349 import LabeledIssueEvent as LabeledIssueEvent - from .group_0349 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0350 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0350 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0351 import AssignedIssueEvent as AssignedIssueEvent - from .group_0352 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0353 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0353 import ( + from .group_0350 import PorterAuthor as PorterAuthor + from .group_0351 import PorterLargeFile as PorterLargeFile + from .group_0352 import IssueEvent as IssueEvent + from .group_0352 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0352 import IssueEventLabel as IssueEventLabel + from .group_0352 import IssueEventMilestone as IssueEventMilestone + from .group_0352 import IssueEventProjectCard as IssueEventProjectCard + from .group_0352 import IssueEventRename as IssueEventRename + from .group_0353 import LabeledIssueEvent as LabeledIssueEvent + from .group_0353 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0354 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0354 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0355 import AssignedIssueEvent as AssignedIssueEvent + from .group_0356 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0357 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0357 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0354 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0354 import ( + from .group_0358 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0358 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0355 import RenamedIssueEvent as RenamedIssueEvent - from .group_0355 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0356 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0357 import ( + from .group_0359 import RenamedIssueEvent as RenamedIssueEvent + from .group_0359 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0360 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0361 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0358 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0358 import ( + from .group_0362 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0362 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0359 import LockedIssueEvent as LockedIssueEvent - from .group_0360 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0360 import ( + from .group_0363 import LockedIssueEvent as LockedIssueEvent + from .group_0364 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0364 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0361 import ( + from .group_0365 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0361 import ( + from .group_0365 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0362 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0362 import ( + from .group_0366 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0366 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0363 import ( + from .group_0367 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0363 import ( + from .group_0367 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0364 import TimelineCommentEvent as TimelineCommentEvent - from .group_0365 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0366 import ( + from .group_0368 import TimelineCommentEvent as TimelineCommentEvent + from .group_0369 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0370 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0367 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0367 import ( + from .group_0371 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0371 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0368 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0368 import ( + from .group_0372 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0372 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0368 import ( + from .group_0372 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0368 import ( + from .group_0372 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0369 import PullRequestReviewComment as PullRequestReviewComment - from .group_0369 import ( + from .group_0373 import PullRequestReviewComment as PullRequestReviewComment + from .group_0373 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0369 import ( + from .group_0373 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0369 import ( + from .group_0373 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0369 import ( + from .group_0373 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0369 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0370 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0371 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0372 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0373 import DeployKey as DeployKey - from .group_0374 import Language as Language - from .group_0375 import LicenseContent as LicenseContent - from .group_0375 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0376 import MergedUpstream as MergedUpstream - from .group_0377 import Page as Page - from .group_0377 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0377 import PagesSourceHash as PagesSourceHash - from .group_0378 import PageBuild as PageBuild - from .group_0378 import PageBuildPropError as PageBuildPropError - from .group_0379 import PageBuildStatus as PageBuildStatus - from .group_0380 import PageDeployment as PageDeployment - from .group_0381 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0382 import PagesHealthCheck as PagesHealthCheck - from .group_0382 import ( + from .group_0373 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0374 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0375 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0376 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0377 import DeployKey as DeployKey + from .group_0378 import Language as Language + from .group_0379 import LicenseContent as LicenseContent + from .group_0379 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0380 import MergedUpstream as MergedUpstream + from .group_0381 import Page as Page + from .group_0381 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0381 import PagesSourceHash as PagesSourceHash + from .group_0382 import PageBuild as PageBuild + from .group_0382 import PageBuildPropError as PageBuildPropError + from .group_0383 import PageBuildStatus as PageBuildStatus + from .group_0384 import PageDeployment as PageDeployment + from .group_0385 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0386 import PagesHealthCheck as PagesHealthCheck + from .group_0386 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0382 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0383 import PullRequest as PullRequest - from .group_0384 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0385 import PullRequestPropBase as PullRequestPropBase - from .group_0385 import PullRequestPropHead as PullRequestPropHead - from .group_0386 import PullRequestPropLinks as PullRequestPropLinks - from .group_0387 import PullRequestMergeResult as PullRequestMergeResult - from .group_0388 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0389 import PullRequestReview as PullRequestReview - from .group_0389 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0389 import ( + from .group_0386 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0387 import PullRequest as PullRequest + from .group_0388 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0389 import PullRequestPropBase as PullRequestPropBase + from .group_0389 import PullRequestPropHead as PullRequestPropHead + from .group_0390 import PullRequestPropLinks as PullRequestPropLinks + from .group_0391 import PullRequestMergeResult as PullRequestMergeResult + from .group_0392 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0393 import PullRequestReview as PullRequestReview + from .group_0393 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0393 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0389 import ( + from .group_0393 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0390 import ReviewComment as ReviewComment - from .group_0391 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0392 import ReleaseAsset as ReleaseAsset - from .group_0393 import Release as Release - from .group_0394 import ReleaseNotesContent as ReleaseNotesContent - from .group_0395 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0396 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0397 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0398 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0399 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0400 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0401 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0402 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0403 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0404 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0405 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0406 import ( + from .group_0394 import ReviewComment as ReviewComment + from .group_0395 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0396 import ReleaseAsset as ReleaseAsset + from .group_0397 import Release as Release + from .group_0398 import ReleaseNotesContent as ReleaseNotesContent + from .group_0399 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0400 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0401 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0402 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0403 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0404 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0405 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0406 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0407 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0408 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0409 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0410 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0407 import ( + from .group_0411 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0408 import ( + from .group_0412 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0409 import ( + from .group_0413 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0410 import ( + from .group_0414 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0411 import ( + from .group_0415 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0412 import ( + from .group_0416 import ( RepositoryRuleDetailedOneof16 as RepositoryRuleDetailedOneof16, ) - from .group_0413 import ( + from .group_0417 import ( RepositoryRuleDetailedOneof17 as RepositoryRuleDetailedOneof17, ) - from .group_0414 import ( + from .group_0418 import ( RepositoryRuleDetailedOneof18 as RepositoryRuleDetailedOneof18, ) - from .group_0415 import ( + from .group_0419 import ( RepositoryRuleDetailedOneof19 as RepositoryRuleDetailedOneof19, ) - from .group_0416 import ( + from .group_0420 import ( RepositoryRuleDetailedOneof20 as RepositoryRuleDetailedOneof20, ) - from .group_0417 import SecretScanningAlert as SecretScanningAlert - from .group_0418 import ( + from .group_0421 import SecretScanningAlert as SecretScanningAlert + from .group_0422 import SecretScanningLocation as SecretScanningLocation + from .group_0423 import ( SecretScanningPushProtectionBypass as SecretScanningPushProtectionBypass, ) - from .group_0419 import SecretScanningScan as SecretScanningScan - from .group_0419 import SecretScanningScanHistory as SecretScanningScanHistory - from .group_0419 import ( + from .group_0424 import SecretScanningScan as SecretScanningScan + from .group_0424 import SecretScanningScanHistory as SecretScanningScanHistory + from .group_0424 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItems as SecretScanningScanHistoryPropCustomPatternBackfillScansItems, ) - from .group_0420 import ( + from .group_0425 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) - from .group_0421 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0421 import ( + from .group_0426 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0426 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0421 import ( + from .group_0426 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0421 import ( + from .group_0426 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0422 import ( + from .group_0427 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0422 import ( + from .group_0427 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0422 import ( + from .group_0427 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0423 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0423 import ( + from .group_0428 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0428 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0423 import ( + from .group_0428 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0423 import ( + from .group_0428 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0424 import Stargazer as Stargazer - from .group_0425 import CommitActivity as CommitActivity - from .group_0426 import ContributorActivity as ContributorActivity - from .group_0426 import ( + from .group_0429 import Stargazer as Stargazer + from .group_0430 import CommitActivity as CommitActivity + from .group_0431 import ContributorActivity as ContributorActivity + from .group_0431 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0427 import ParticipationStats as ParticipationStats - from .group_0428 import RepositorySubscription as RepositorySubscription - from .group_0429 import Tag as Tag - from .group_0429 import TagPropCommit as TagPropCommit - from .group_0430 import TagProtection as TagProtection - from .group_0431 import Topic as Topic - from .group_0432 import Traffic as Traffic - from .group_0433 import CloneTraffic as CloneTraffic - from .group_0434 import ContentTraffic as ContentTraffic - from .group_0435 import ReferrerTraffic as ReferrerTraffic - from .group_0436 import ViewTraffic as ViewTraffic - from .group_0437 import GroupResponse as GroupResponse - from .group_0437 import ( + from .group_0432 import ParticipationStats as ParticipationStats + from .group_0433 import RepositorySubscription as RepositorySubscription + from .group_0434 import Tag as Tag + from .group_0434 import TagPropCommit as TagPropCommit + from .group_0435 import TagProtection as TagProtection + from .group_0436 import Topic as Topic + from .group_0437 import Traffic as Traffic + from .group_0438 import CloneTraffic as CloneTraffic + from .group_0439 import ContentTraffic as ContentTraffic + from .group_0440 import ReferrerTraffic as ReferrerTraffic + from .group_0441 import ViewTraffic as ViewTraffic + from .group_0442 import GroupResponse as GroupResponse + from .group_0442 import ( GroupResponsePropMembersItems as GroupResponsePropMembersItems, ) - from .group_0438 import Meta as Meta - from .group_0439 import ScimEnterpriseGroupList as ScimEnterpriseGroupList - from .group_0439 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse - from .group_0439 import ( + from .group_0443 import Meta as Meta + from .group_0444 import ScimEnterpriseGroupList as ScimEnterpriseGroupList + from .group_0444 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse + from .group_0444 import ( ScimEnterpriseGroupResponseMergedMembers as ScimEnterpriseGroupResponseMergedMembers, ) - from .group_0440 import ( + from .group_0445 import ( ScimEnterpriseGroupResponseAllof1 as ScimEnterpriseGroupResponseAllof1, ) - from .group_0440 import ( + from .group_0445 import ( ScimEnterpriseGroupResponseAllof1PropMembersItems as ScimEnterpriseGroupResponseAllof1PropMembersItems, ) - from .group_0441 import Group as Group - from .group_0441 import GroupPropMembersItems as GroupPropMembersItems - from .group_0442 import PatchSchema as PatchSchema - from .group_0442 import ( + from .group_0446 import Group as Group + from .group_0446 import GroupPropMembersItems as GroupPropMembersItems + from .group_0447 import PatchSchema as PatchSchema + from .group_0447 import ( PatchSchemaPropOperationsItems as PatchSchemaPropOperationsItems, ) - from .group_0443 import UserEmailsResponseItems as UserEmailsResponseItems - from .group_0443 import UserNameResponse as UserNameResponse - from .group_0444 import UserRoleItems as UserRoleItems - from .group_0445 import UserResponse as UserResponse - from .group_0446 import ScimEnterpriseUserList as ScimEnterpriseUserList - from .group_0446 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse - from .group_0447 import ( + from .group_0448 import UserEmailsResponseItems as UserEmailsResponseItems + from .group_0448 import UserNameResponse as UserNameResponse + from .group_0449 import UserRoleItems as UserRoleItems + from .group_0450 import UserResponse as UserResponse + from .group_0451 import ScimEnterpriseUserList as ScimEnterpriseUserList + from .group_0451 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse + from .group_0452 import ( ScimEnterpriseUserResponseAllof1 as ScimEnterpriseUserResponseAllof1, ) - from .group_0448 import ( + from .group_0453 import ( ScimEnterpriseUserResponseAllof1PropGroupsItems as ScimEnterpriseUserResponseAllof1PropGroupsItems, ) - from .group_0449 import User as User - from .group_0449 import UserEmailsItems as UserEmailsItems - from .group_0449 import UserName as UserName - from .group_0450 import ScimUser as ScimUser - from .group_0450 import ScimUserList as ScimUserList - from .group_0450 import ScimUserPropEmailsItems as ScimUserPropEmailsItems - from .group_0450 import ScimUserPropGroupsItems as ScimUserPropGroupsItems - from .group_0450 import ScimUserPropMeta as ScimUserPropMeta - from .group_0450 import ScimUserPropName as ScimUserPropName - from .group_0450 import ScimUserPropOperationsItems as ScimUserPropOperationsItems - from .group_0450 import ( + from .group_0454 import User as User + from .group_0454 import UserEmailsItems as UserEmailsItems + from .group_0454 import UserName as UserName + from .group_0455 import ScimUser as ScimUser + from .group_0455 import ScimUserList as ScimUserList + from .group_0455 import ScimUserPropEmailsItems as ScimUserPropEmailsItems + from .group_0455 import ScimUserPropGroupsItems as ScimUserPropGroupsItems + from .group_0455 import ScimUserPropMeta as ScimUserPropMeta + from .group_0455 import ScimUserPropName as ScimUserPropName + from .group_0455 import ScimUserPropOperationsItems as ScimUserPropOperationsItems + from .group_0455 import ( ScimUserPropOperationsItemsPropValueOneof1 as ScimUserPropOperationsItemsPropValueOneof1, ) - from .group_0450 import ScimUserPropRolesItems as ScimUserPropRolesItems - from .group_0451 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0451 import ( + from .group_0455 import ScimUserPropRolesItems as ScimUserPropRolesItems + from .group_0456 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0456 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0452 import CodeSearchResultItem as CodeSearchResultItem - from .group_0452 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0453 import CommitSearchResultItem as CommitSearchResultItem - from .group_0453 import ( + from .group_0457 import CodeSearchResultItem as CodeSearchResultItem + from .group_0457 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0458 import CommitSearchResultItem as CommitSearchResultItem + from .group_0458 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0453 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0454 import ( + from .group_0458 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0459 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0454 import ( + from .group_0459 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0454 import ( + from .group_0459 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0455 import IssueSearchResultItem as IssueSearchResultItem - from .group_0455 import ( + from .group_0460 import IssueSearchResultItem as IssueSearchResultItem + from .group_0460 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0455 import ( + from .group_0460 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0455 import ( + from .group_0460 import ( IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, ) - from .group_0455 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0456 import LabelSearchResultItem as LabelSearchResultItem - from .group_0456 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0457 import RepoSearchResultItem as RepoSearchResultItem - from .group_0457 import ( + from .group_0460 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0461 import LabelSearchResultItem as LabelSearchResultItem + from .group_0461 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0462 import RepoSearchResultItem as RepoSearchResultItem + from .group_0462 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0457 import ( + from .group_0462 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0458 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0458 import TopicSearchResultItem as TopicSearchResultItem - from .group_0458 import ( + from .group_0463 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0463 import TopicSearchResultItem as TopicSearchResultItem + from .group_0463 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0458 import ( + from .group_0463 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0458 import ( + from .group_0463 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0458 import ( + from .group_0463 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0459 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0459 import UserSearchResultItem as UserSearchResultItem - from .group_0460 import PrivateUser as PrivateUser - from .group_0460 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0461 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0462 import CodespaceExportDetails as CodespaceExportDetails - from .group_0463 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0463 import ( + from .group_0464 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0464 import UserSearchResultItem as UserSearchResultItem + from .group_0465 import PrivateUser as PrivateUser + from .group_0465 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0466 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0467 import CodespaceExportDetails as CodespaceExportDetails + from .group_0468 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0468 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0463 import ( + from .group_0468 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0464 import Email as Email - from .group_0465 import GpgKey as GpgKey - from .group_0465 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0465 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0465 import ( + from .group_0469 import Email as Email + from .group_0470 import GpgKey as GpgKey + from .group_0470 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0470 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0470 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0466 import Key as Key - from .group_0467 import MarketplaceAccount as MarketplaceAccount - from .group_0467 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0468 import SocialAccount as SocialAccount - from .group_0469 import SshSigningKey as SshSigningKey - from .group_0470 import StarredRepository as StarredRepository - from .group_0471 import Hovercard as Hovercard - from .group_0471 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0472 import KeySimple as KeySimple - from .group_0473 import BillingUsageReportUser as BillingUsageReportUser - from .group_0473 import ( + from .group_0471 import Key as Key + from .group_0472 import MarketplaceAccount as MarketplaceAccount + from .group_0472 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0473 import SocialAccount as SocialAccount + from .group_0474 import SshSigningKey as SshSigningKey + from .group_0475 import StarredRepository as StarredRepository + from .group_0476 import Hovercard as Hovercard + from .group_0476 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0477 import KeySimple as KeySimple + from .group_0478 import BillingUsageReportUser as BillingUsageReportUser + from .group_0478 import ( BillingUsageReportUserPropUsageItemsItems as BillingUsageReportUserPropUsageItemsItems, ) - from .group_0474 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0475 import SimpleInstallation as SimpleInstallation - from .group_0476 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0477 import RepositoryWebhooks as RepositoryWebhooks - from .group_0477 import ( + from .group_0479 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0480 import SimpleInstallation as SimpleInstallation + from .group_0481 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0482 import RepositoryWebhooks as RepositoryWebhooks + from .group_0482 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0478 import WebhooksRule as WebhooksRule - from .group_0479 import ExemptionResponse as ExemptionResponse - from .group_0480 import DismissalRequestCodeScanning as DismissalRequestCodeScanning - from .group_0480 import ( + from .group_0483 import WebhooksRule as WebhooksRule + from .group_0484 import ExemptionResponse as ExemptionResponse + from .group_0485 import DismissalRequestCodeScanning as DismissalRequestCodeScanning + from .group_0485 import ( DismissalRequestCodeScanningMetadata as DismissalRequestCodeScanningMetadata, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestCodeScanningPropDataItems as DismissalRequestCodeScanningPropDataItems, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestSecretScanning as DismissalRequestSecretScanning, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestSecretScanningMetadata as DismissalRequestSecretScanningMetadata, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestSecretScanningPropDataItems as DismissalRequestSecretScanningPropDataItems, ) - from .group_0480 import ExemptionRequest as ExemptionRequest - from .group_0480 import ( + from .group_0485 import ExemptionRequest as ExemptionRequest + from .group_0485 import ( ExemptionRequestPushRulesetBypass as ExemptionRequestPushRulesetBypass, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestPushRulesetBypassPropDataItems as ExemptionRequestPushRulesetBypassPropDataItems, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanning as ExemptionRequestSecretScanning, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanningMetadata as ExemptionRequestSecretScanningMetadata, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanningPropDataItems as ExemptionRequestSecretScanningPropDataItems, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanningPropDataItemsPropLocationsItems as ExemptionRequestSecretScanningPropDataItemsPropLocationsItems, ) - from .group_0481 import SimpleCheckSuite as SimpleCheckSuite - from .group_0482 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0482 import ( + from .group_0486 import SimpleCheckSuite as SimpleCheckSuite + from .group_0487 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0487 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0483 import WebhooksDeployKey as WebhooksDeployKey - from .group_0484 import WebhooksWorkflow as WebhooksWorkflow - from .group_0485 import WebhooksApprover as WebhooksApprover - from .group_0485 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0485 import ( + from .group_0488 import WebhooksDeployKey as WebhooksDeployKey + from .group_0489 import WebhooksWorkflow as WebhooksWorkflow + from .group_0490 import WebhooksApprover as WebhooksApprover + from .group_0490 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0490 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0486 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0487 import WebhooksUser as WebhooksUser - from .group_0488 import WebhooksAnswer as WebhooksAnswer - from .group_0488 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0488 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0489 import Discussion as Discussion - from .group_0489 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0489 import DiscussionPropCategory as DiscussionPropCategory - from .group_0489 import DiscussionPropReactions as DiscussionPropReactions - from .group_0489 import DiscussionPropUser as DiscussionPropUser - from .group_0489 import Label as Label - from .group_0490 import WebhooksComment as WebhooksComment - from .group_0490 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0490 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0491 import WebhooksLabel as WebhooksLabel - from .group_0492 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0493 import ( + from .group_0491 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0492 import WebhooksUser as WebhooksUser + from .group_0493 import WebhooksAnswer as WebhooksAnswer + from .group_0493 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0493 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0494 import Discussion as Discussion + from .group_0494 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0494 import DiscussionPropCategory as DiscussionPropCategory + from .group_0494 import DiscussionPropReactions as DiscussionPropReactions + from .group_0494 import DiscussionPropUser as DiscussionPropUser + from .group_0494 import Label as Label + from .group_0495 import WebhooksComment as WebhooksComment + from .group_0495 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0495 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0496 import WebhooksLabel as WebhooksLabel + from .group_0497 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0498 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0494 import WebhooksIssueComment as WebhooksIssueComment - from .group_0494 import ( + from .group_0499 import WebhooksIssueComment as WebhooksIssueComment + from .group_0499 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0494 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0495 import WebhooksChanges as WebhooksChanges - from .group_0495 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0496 import WebhooksIssue as WebhooksIssue - from .group_0496 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0496 import ( + from .group_0499 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0500 import WebhooksChanges as WebhooksChanges + from .group_0500 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0501 import WebhooksIssue as WebhooksIssue + from .group_0501 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0501 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0496 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0496 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0496 import ( + from .group_0501 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0501 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0501 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0496 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0496 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0496 import ( + from .group_0501 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0501 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0501 import ( WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, ) - from .group_0496 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0497 import WebhooksMilestone as WebhooksMilestone - from .group_0497 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0498 import WebhooksIssue2 as WebhooksIssue2 - from .group_0498 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0498 import ( + from .group_0501 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0502 import WebhooksMilestone as WebhooksMilestone + from .group_0502 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0503 import WebhooksIssue2 as WebhooksIssue2 + from .group_0503 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0503 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0498 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0498 import ( + from .group_0503 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0503 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0498 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0498 import ( + from .group_0503 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0503 import ( WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, ) - from .group_0498 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0499 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0500 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0500 import ( + from .group_0503 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0504 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0505 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0505 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0500 import ( + from .group_0505 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0501 import ( + from .group_0506 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0501 import ( + from .group_0506 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0501 import ( + from .group_0506 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0502 import WebhooksTeam as WebhooksTeam - from .group_0502 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0503 import MergeGroup as MergeGroup - from .group_0504 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0504 import ( + from .group_0507 import WebhooksTeam as WebhooksTeam + from .group_0507 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0508 import MergeGroup as MergeGroup + from .group_0509 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0509 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0505 import WebhooksMembership as WebhooksMembership - from .group_0505 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0506 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0506 import ( + from .group_0510 import WebhooksMembership as WebhooksMembership + from .group_0510 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0511 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0507 import WebhooksProjectCard as WebhooksProjectCard - from .group_0507 import ( + from .group_0512 import WebhooksProjectCard as WebhooksProjectCard + from .group_0512 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0508 import WebhooksProject as WebhooksProject - from .group_0508 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0509 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0510 import ProjectsV2 as ProjectsV2 - from .group_0511 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0511 import ( + from .group_0513 import WebhooksProject as WebhooksProject + from .group_0513 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0514 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0515 import ProjectsV2 as ProjectsV2 + from .group_0516 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0516 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0512 import ProjectsV2Item as ProjectsV2Item - from .group_0513 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate - from .group_0514 import PullRequestWebhook as PullRequestWebhook - from .group_0515 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0516 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0516 import ( + from .group_0517 import ProjectsV2Item as ProjectsV2Item + from .group_0518 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0519 import PullRequestWebhook as PullRequestWebhook + from .group_0520 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0521 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0521 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0516 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0516 import ( + from .group_0521 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0516 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0516 import ( + from .group_0521 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0516 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0517 import WebhooksReviewComment as WebhooksReviewComment - from .group_0517 import ( + from .group_0521 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0522 import WebhooksReviewComment as WebhooksReviewComment + from .group_0522 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0518 import WebhooksReview as WebhooksReview - from .group_0518 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0518 import ( + from .group_0523 import WebhooksReview as WebhooksReview + from .group_0523 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0523 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0518 import ( + from .group_0523 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0518 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0519 import WebhooksRelease as WebhooksRelease - from .group_0519 import ( + from .group_0523 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0524 import WebhooksRelease as WebhooksRelease + from .group_0524 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0519 import ( + from .group_0524 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0519 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0519 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0520 import WebhooksRelease1 as WebhooksRelease1 - from .group_0520 import ( + from .group_0524 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0524 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0525 import WebhooksRelease1 as WebhooksRelease1 + from .group_0525 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0520 import ( + from .group_0525 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0520 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0520 import ( + from .group_0525 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0525 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0521 import WebhooksAlert as WebhooksAlert - from .group_0521 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0522 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0523 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0523 import ( + from .group_0526 import WebhooksAlert as WebhooksAlert + from .group_0526 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0527 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0528 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0528 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0524 import WebhooksSponsorship as WebhooksSponsorship - from .group_0524 import ( + from .group_0529 import WebhooksSponsorship as WebhooksSponsorship + from .group_0529 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0524 import ( + from .group_0529 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0524 import ( + from .group_0529 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0524 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0525 import WebhooksChanges8 as WebhooksChanges8 - from .group_0525 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0525 import ( + from .group_0529 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0530 import WebhooksChanges8 as WebhooksChanges8 + from .group_0530 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0530 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0526 import WebhooksTeam1 as WebhooksTeam1 - from .group_0526 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0527 import ( + from .group_0531 import WebhooksTeam1 as WebhooksTeam1 + from .group_0531 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0532 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0528 import ( + from .group_0533 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0529 import ( + from .group_0534 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0530 import ( + from .group_0535 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, ) - from .group_0532 import ( + from .group_0537 import ( WebhookExemptionRequestCancelled as WebhookExemptionRequestCancelled, ) - from .group_0533 import ( + from .group_0538 import ( WebhookExemptionRequestCompleted as WebhookExemptionRequestCompleted, ) - from .group_0534 import ( + from .group_0539 import ( WebhookExemptionRequestCreated as WebhookExemptionRequestCreated, ) - from .group_0535 import ( + from .group_0540 import ( WebhookExemptionRequestResponseDismissed as WebhookExemptionRequestResponseDismissed, ) - from .group_0536 import ( + from .group_0541 import ( WebhookExemptionRequestResponseSubmitted as WebhookExemptionRequestResponseSubmitted, ) - from .group_0537 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0538 import ( + from .group_0542 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0543 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0539 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0540 import ( + from .group_0544 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0545 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0541 import ( + from .group_0546 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0541 import ( + from .group_0546 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0542 import ( + from .group_0547 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0543 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0544 import ( + from .group_0548 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0549 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0545 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0545 import ( + from .group_0550 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0546 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0546 import ( + from .group_0551 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0547 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0547 import ( + from .group_0552 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0554 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0554 import ( + from .group_0559 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0559 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0554 import ( + from .group_0559 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0554 import ( + from .group_0559 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0555 import WebhookCreate as WebhookCreate - from .group_0556 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0557 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0557 import ( + from .group_0560 import WebhookCreate as WebhookCreate + from .group_0561 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0562 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0562 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0558 import ( + from .group_0563 import ( WebhookCustomPropertyPromotedToEnterprise as WebhookCustomPropertyPromotedToEnterprise, ) - from .group_0559 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0560 import ( + from .group_0564 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0565 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0561 import WebhookDelete as WebhookDelete - from .group_0562 import ( + from .group_0566 import WebhookDelete as WebhookDelete + from .group_0567 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0563 import ( + from .group_0568 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0564 import ( + from .group_0569 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0565 import ( + from .group_0570 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0566 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0567 import ( + from .group_0571 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0572 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0568 import ( + from .group_0573 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0569 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0570 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0571 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0571 import ( + from .group_0574 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0575 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0576 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0576 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0572 import ( + from .group_0577 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0577 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0578 import ( + from .group_0582 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0583 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0578 import ( + from .group_0583 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0578 import ( + from .group_0583 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0578 import ( + from .group_0583 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0579 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0580 import ( + from .group_0584 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0585 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0581 import ( + from .group_0586 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0582 import ( + from .group_0587 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0582 import ( + from .group_0587 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0582 import ( + from .group_0587 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0583 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0584 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0585 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0585 import ( + from .group_0588 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0589 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0590 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0590 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0585 import ( + from .group_0590 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0585 import ( + from .group_0590 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0586 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0587 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0588 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0589 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0590 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0591 import ( + from .group_0591 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0592 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0593 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0594 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0595 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0596 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0592 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0593 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0594 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0595 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0596 import WebhookFork as WebhookFork - from .group_0597 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0597 import ( + from .group_0597 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0598 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0599 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0600 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0601 import WebhookFork as WebhookFork + from .group_0602 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0602 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0597 import ( + from .group_0602 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0598 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0598 import ( + from .group_0603 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0603 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0598 import ( + from .group_0603 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0599 import ( + from .group_0604 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0600 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0600 import ( + from .group_0605 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0605 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0600 import ( + from .group_0605 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0601 import ( + from .group_0606 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0602 import WebhookGollum as WebhookGollum - from .group_0602 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0603 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0604 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0605 import ( + from .group_0607 import WebhookGollum as WebhookGollum + from .group_0607 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0608 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0609 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0610 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0606 import ( + from .group_0611 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0606 import ( + from .group_0611 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0607 import ( + from .group_0612 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0607 import ( + from .group_0612 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0608 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0609 import ( + from .group_0613 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0614 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0610 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0611 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0612 import ( + from .group_0615 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0616 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0617 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0615 import ( + from .group_0620 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0615 import ( + from .group_0620 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0615 import ( + from .group_0620 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0617 import ( + from .group_0622 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0620 import ( + from .group_0625 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0622 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0623 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0624 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0625 import ( + from .group_0629 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0630 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0625 import ( + from .group_0630 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0625 import ( + from .group_0630 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0625 import ( + from .group_0630 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0627 import ( + from .group_0632 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0627 import ( + from .group_0632 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0627 import ( + from .group_0632 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0628 import ( + from .group_0633 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0629 import ( + from .group_0634 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0630 import ( + from .group_0635 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0630 import ( + from .group_0635 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0631 import ( + from .group_0636 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0632 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0634 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0635 import ( + from .group_0640 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0636 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0637 import ( + from .group_0641 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0642 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0637 import ( + from .group_0642 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0637 import ( + from .group_0642 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0637 import ( + from .group_0642 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0639 import ( + from .group_0644 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0639 import ( + from .group_0644 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0639 import ( + from .group_0644 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0640 import ( + from .group_0645 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0641 import ( + from .group_0646 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0642 import ( + from .group_0647 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0642 import ( + from .group_0647 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0643 import ( + from .group_0648 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0644 import ( + from .group_0649 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0646 import ( + from .group_0651 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0647 import ( + from .group_0652 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0648 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0649 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0650 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0650 import ( + from .group_0653 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0654 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0655 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0652 import ( + from .group_0657 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0653 import ( + from .group_0658 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0654 import ( + from .group_0659 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0654 import ( + from .group_0659 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0655 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0656 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0656 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0658 import ( + from .group_0663 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0659 import ( + from .group_0664 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0660 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0661 import ( + from .group_0665 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0666 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0662 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0663 import ( + from .group_0667 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0668 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0664 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0664 import ( + from .group_0669 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0669 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0664 import ( + from .group_0669 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0664 import ( + from .group_0669 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0665 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0665 import ( + from .group_0670 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0670 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0666 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0667 import ( + from .group_0671 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0672 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0668 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0669 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0669 import ( + from .group_0673 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0674 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0674 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0670 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0671 import ( + from .group_0675 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0676 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0672 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0673 import ( + from .group_0677 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0678 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0675 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0675 import ( + from .group_0680 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0676 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0677 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0678 import ( + from .group_0681 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0682 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0683 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0679 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0680 import ( + from .group_0684 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0685 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0682 import WebhookIssuesTyped as WebhookIssuesTyped - from .group_0683 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0684 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0685 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0686 import ( + from .group_0687 import WebhookIssuesTyped as WebhookIssuesTyped + from .group_0688 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0689 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0690 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0691 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0687 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0688 import WebhookIssuesUntyped as WebhookIssuesUntyped - from .group_0689 import WebhookLabelCreated as WebhookLabelCreated - from .group_0690 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0691 import WebhookLabelEdited as WebhookLabelEdited - from .group_0691 import ( + from .group_0692 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0693 import WebhookIssuesUntyped as WebhookIssuesUntyped + from .group_0694 import WebhookLabelCreated as WebhookLabelCreated + from .group_0695 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0696 import WebhookLabelEdited as WebhookLabelEdited + from .group_0696 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0691 import ( + from .group_0696 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0691 import ( + from .group_0696 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0691 import ( + from .group_0696 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0692 import ( + from .group_0697 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0696 import ( + from .group_0701 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0697 import WebhookMemberAdded as WebhookMemberAdded - from .group_0697 import ( + from .group_0702 import WebhookMemberAdded as WebhookMemberAdded + from .group_0702 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0697 import ( + from .group_0702 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0697 import ( + from .group_0702 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0698 import WebhookMemberEdited as WebhookMemberEdited - from .group_0698 import ( + from .group_0703 import WebhookMemberEdited as WebhookMemberEdited + from .group_0703 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0698 import ( + from .group_0703 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0698 import ( + from .group_0703 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0699 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0700 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0700 import ( + from .group_0704 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0705 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0705 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0701 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0701 import ( + from .group_0706 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0706 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0702 import ( + from .group_0707 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0703 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0704 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0704 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0704 import ( + from .group_0708 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0709 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0709 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0709 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0705 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0706 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0707 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0708 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0708 import ( + from .group_0710 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0711 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0712 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0713 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0713 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0708 import ( + from .group_0713 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0708 import ( + from .group_0713 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0708 import ( + from .group_0713 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0709 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0710 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0711 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0712 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0713 import ( + from .group_0714 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0715 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0716 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0717 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0718 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0714 import ( + from .group_0719 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0714 import ( + from .group_0719 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0714 import ( + from .group_0719 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0715 import ( + from .group_0720 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0716 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0716 import ( + from .group_0721 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0721 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0716 import ( + from .group_0721 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0717 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0717 import ( + from .group_0722 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0722 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0717 import ( + from .group_0722 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0717 import ( + from .group_0722 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0718 import WebhookPackagePublished as WebhookPackagePublished - from .group_0719 import ( + from .group_0723 import WebhookPackagePublished as WebhookPackagePublished + from .group_0724 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0721 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0722 import ( + from .group_0726 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0727 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0724 import WebhookPageBuild as WebhookPageBuild - from .group_0724 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0724 import ( + from .group_0729 import WebhookPageBuild as WebhookPageBuild + from .group_0729 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0729 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0729 import WebhookPing as WebhookPing - from .group_0730 import WebhookPingPropHook as WebhookPingPropHook - from .group_0730 import ( + from .group_0734 import WebhookPing as WebhookPing + from .group_0735 import WebhookPingPropHook as WebhookPingPropHook + from .group_0735 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0731 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0732 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0732 import ( + from .group_0736 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0737 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0737 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0732 import ( + from .group_0737 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0733 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0734 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0734 import ( + from .group_0738 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0739 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0739 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0734 import ( + from .group_0739 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0735 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0735 import ( + from .group_0740 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0740 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0735 import ( + from .group_0740 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0736 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0736 import ( + from .group_0741 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0741 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0736 import ( + from .group_0741 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0736 import ( + from .group_0741 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0736 import ( + from .group_0741 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0737 import ( + from .group_0742 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0737 import ( + from .group_0742 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0738 import ( + from .group_0743 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0738 import ( + from .group_0743 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0739 import WebhookProjectClosed as WebhookProjectClosed - from .group_0740 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0741 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0742 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0742 import ( + from .group_0744 import WebhookProjectClosed as WebhookProjectClosed + from .group_0745 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0746 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0747 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0747 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0742 import ( + from .group_0747 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0743 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0744 import WebhookProjectCreated as WebhookProjectCreated - from .group_0745 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0746 import WebhookProjectEdited as WebhookProjectEdited - from .group_0746 import ( + from .group_0748 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0749 import WebhookProjectCreated as WebhookProjectCreated + from .group_0750 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0751 import WebhookProjectEdited as WebhookProjectEdited + from .group_0751 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0746 import ( + from .group_0751 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0746 import ( + from .group_0751 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0747 import WebhookProjectReopened as WebhookProjectReopened - from .group_0748 import ( + from .group_0752 import WebhookProjectReopened as WebhookProjectReopened + from .group_0753 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0749 import ( + from .group_0754 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0750 import ( + from .group_0755 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0752 import ( + from .group_0757 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0753 import ( + from .group_0758 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0753 import ( + from .group_0758 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0753 import ( + from .group_0758 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0754 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0755 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0756 import ProjectsV2IterationSetting as ProjectsV2IterationSetting - from .group_0756 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption - from .group_0756 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0756 import ( + from .group_0759 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0760 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0761 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0761 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0761 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0757 import ( + from .group_0762 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0757 import ( + from .group_0762 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0757 import ( + from .group_0762 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0758 import ( + from .group_0763 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0759 import ( + from .group_0764 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0760 import ( + from .group_0765 import ( WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, ) - from .group_0761 import ( + from .group_0766 import ( WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, ) - from .group_0763 import WebhookPublic as WebhookPublic - from .group_0764 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0764 import ( + from .group_0768 import WebhookPublic as WebhookPublic + from .group_0769 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0767 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0768 import ( + from .group_0772 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0773 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0769 import ( + from .group_0774 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0770 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0770 import ( + from .group_0775 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0771 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0771 import ( + from .group_0776 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0776 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0772 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0772 import ( + from .group_0777 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0773 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0773 import ( + from .group_0778 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0774 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0774 import ( + from .group_0779 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0779 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0775 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0776 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0777 import ( + from .group_0780 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0781 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0782 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0778 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0779 import ( + from .group_0783 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0784 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0792 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0792 import ( + from .group_0797 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0793 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0793 import ( + from .group_0798 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0794 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0794 import ( + from .group_0799 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0795 import WebhookPush as WebhookPush - from .group_0795 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0795 import ( + from .group_0800 import WebhookPush as WebhookPush + from .group_0800 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0800 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0795 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0795 import ( + from .group_0800 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0800 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0795 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0795 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0795 import ( + from .group_0800 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0800 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0800 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0796 import ( + from .group_0801 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0797 import ( + from .group_0802 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0797 import ( + from .group_0802 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0797 import ( + from .group_0802 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0799 import ( + from .group_0804 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0800 import ( + from .group_0805 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0800 import ( + from .group_0805 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0800 import ( + from .group_0805 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0802 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0803 import WebhookReleaseDeleted as WebhookReleaseDeleted - from .group_0804 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0804 import ( + from .group_0807 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0808 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0809 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0809 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesPropTagName as WebhookReleaseEditedPropChangesPropTagName, ) - from .group_0805 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0805 import ( + from .group_0810 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0810 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0806 import WebhookReleasePublished as WebhookReleasePublished - from .group_0807 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0808 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0809 import ( + from .group_0811 import WebhookReleasePublished as WebhookReleasePublished + from .group_0812 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0813 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0814 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0810 import ( + from .group_0815 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0811 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0812 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0813 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0814 import ( + from .group_0816 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0817 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0818 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0819 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0814 import ( + from .group_0819 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0815 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0815 import ( + from .group_0820 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0820 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0816 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0817 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0818 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0819 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0819 import ( + from .group_0821 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0822 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0823 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0824 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0824 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0819 import ( + from .group_0824 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0819 import ( + from .group_0824 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0820 import ( + from .group_0825 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0821 import ( + from .group_0826 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0822 import ( + from .group_0827 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0823 import ( + from .group_0828 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0823 import ( + from .group_0828 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0823 import ( + from .group_0828 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0824 import ( + from .group_0829 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0826 import ( + from .group_0831 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0828 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0828 import ( + from .group_0833 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0833 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0829 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0830 import ( + from .group_0834 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0835 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0831 import ( + from .group_0836 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0831 import ( + from .group_0836 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0831 import ( + from .group_0836 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0832 import ( + from .group_0837 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0833 import ( + from .group_0838 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0833 import ( + from .group_0838 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0833 import ( + from .group_0838 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0834 import ( + from .group_0839 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0835 import SecretScanningLocation as SecretScanningLocation - from .group_0835 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0835 import ( - SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, - ) - from .group_0835 import ( - SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, - ) - from .group_0835 import ( - SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, - ) - from .group_0835 import ( - SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, - ) - from .group_0835 import ( - SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, - ) - from .group_0835 import ( - SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, - ) - from .group_0835 import ( - SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, - ) - from .group_0835 import ( + from .group_0840 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0836 import ( + from .group_0841 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0837 import ( + from .group_0842 import ( WebhookSecretScanningAlertPubliclyLeaked as WebhookSecretScanningAlertPubliclyLeaked, ) - from .group_0838 import ( + from .group_0843 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0839 import ( + from .group_0844 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0840 import ( + from .group_0845 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0841 import ( + from .group_0846 import ( WebhookSecretScanningScanCompleted as WebhookSecretScanningScanCompleted, ) - from .group_0842 import ( + from .group_0847 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0843 import ( + from .group_0848 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0844 import ( + from .group_0849 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0846 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0847 import ( + from .group_0851 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0852 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0848 import ( + from .group_0853 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0849 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0850 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0851 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0851 import ( + from .group_0854 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0855 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0856 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0856 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0851 import ( + from .group_0856 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0852 import ( + from .group_0857 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0853 import ( + from .group_0858 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0854 import ( + from .group_0859 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0855 import WebhookStarCreated as WebhookStarCreated - from .group_0856 import WebhookStarDeleted as WebhookStarDeleted - from .group_0857 import WebhookStatus as WebhookStatus - from .group_0857 import ( + from .group_0860 import WebhookStarCreated as WebhookStarCreated + from .group_0861 import WebhookStarDeleted as WebhookStarDeleted + from .group_0862 import WebhookStatus as WebhookStatus + from .group_0862 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0857 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0857 import ( + from .group_0862 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0862 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0858 import ( + from .group_0863 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0859 import ( + from .group_0864 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0860 import ( + from .group_0865 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0861 import ( + from .group_0866 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0862 import ( + from .group_0867 import ( WebhookSubIssuesParentIssueAdded as WebhookSubIssuesParentIssueAdded, ) - from .group_0863 import ( + from .group_0868 import ( WebhookSubIssuesParentIssueRemoved as WebhookSubIssuesParentIssueRemoved, ) - from .group_0864 import ( + from .group_0869 import ( WebhookSubIssuesSubIssueAdded as WebhookSubIssuesSubIssueAdded, ) - from .group_0865 import ( + from .group_0870 import ( WebhookSubIssuesSubIssueRemoved as WebhookSubIssuesSubIssueRemoved, ) - from .group_0866 import WebhookTeamAdd as WebhookTeamAdd - from .group_0867 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0867 import ( + from .group_0871 import WebhookTeamAdd as WebhookTeamAdd + from .group_0872 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0868 import WebhookTeamCreated as WebhookTeamCreated - from .group_0868 import ( + from .group_0873 import WebhookTeamCreated as WebhookTeamCreated + from .group_0873 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0869 import WebhookTeamDeleted as WebhookTeamDeleted - from .group_0869 import ( + from .group_0874 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0874 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0870 import WebhookTeamEdited as WebhookTeamEdited - from .group_0870 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0870 import ( + from .group_0875 import WebhookTeamEdited as WebhookTeamEdited + from .group_0875 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0875 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0872 import WebhookWatchStarted as WebhookWatchStarted - from .group_0873 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0873 import ( + from .group_0877 import WebhookWatchStarted as WebhookWatchStarted + from .group_0878 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0878 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0874 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0874 import ( + from .group_0879 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0879 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0874 import ( + from .group_0879 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0875 import ( + from .group_0880 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0875 import ( + from .group_0880 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0876 import ( + from .group_0881 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0876 import ( + from .group_0881 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0877 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0877 import ( + from .group_0882 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0882 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0877 import ( + from .group_0882 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0878 import ( + from .group_0883 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0878 import ( + from .group_0883 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0879 import ( + from .group_0884 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0879 import ( + from .group_0884 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0880 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_0880 import ( + from .group_0885 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_0885 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0880 import ( + from .group_0885 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0881 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0881 import ( + from .group_0886 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0886 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0881 import ( + from .group_0886 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0882 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0882 import ( + from .group_0887 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0883 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0883 import ( + from .group_0888 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0884 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0884 import ( + from .group_0889 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0885 import ( + from .group_0890 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0886 import ( + from .group_0891 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0887 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0888 import ( + from .group_0892 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0893 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0889 import ( + from .group_0894 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0890 import ( + from .group_0895 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0891 import ( + from .group_0896 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0892 import ( + from .group_0897 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0893 import ( + from .group_0898 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0894 import ( + from .group_0899 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0895 import CredentialsRevokePostBody as CredentialsRevokePostBody - from .group_0896 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0897 import ( + from .group_0900 import CredentialsRevokePostBody as CredentialsRevokePostBody + from .group_0901 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0902 import ( EnterprisesEnterpriseActionsHostedRunnersGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersGetResponse200, ) - from .group_0898 import ( + from .group_0903 import ( EnterprisesEnterpriseActionsHostedRunnersPostBody as EnterprisesEnterpriseActionsHostedRunnersPostBody, ) - from .group_0898 import ( + from .group_0903 import ( EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage as EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage, ) - from .group_0899 import ( + from .group_0904 import ( EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - from .group_0900 import ( + from .group_0905 import ( EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200, ) - from .group_0901 import ( + from .group_0906 import ( EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200, ) - from .group_0902 import ( + from .group_0907 import ( EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200 as EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200, ) - from .group_0903 import ( + from .group_0908 import ( EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody as EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody, ) - from .group_0904 import ( + from .group_0909 import ( EnterprisesEnterpriseActionsPermissionsPutBody as EnterprisesEnterpriseActionsPermissionsPutBody, ) - from .group_0905 import ( + from .group_0910 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200 as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200, ) - from .group_0906 import ( + from .group_0911 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody, ) - from .group_0907 import ( + from .group_0912 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200, ) - from .group_0907 import RunnerGroupsEnterprise as RunnerGroupsEnterprise - from .group_0908 import ( + from .group_0912 import RunnerGroupsEnterprise as RunnerGroupsEnterprise + from .group_0913 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBody as EnterprisesEnterpriseActionsRunnerGroupsPostBody, ) - from .group_0909 import ( + from .group_0914 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0910 import ( + from .group_0915 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200, ) - from .group_0911 import ( + from .group_0916 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody, ) - from .group_0912 import ( + from .group_0917 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0913 import ( + from .group_0918 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0914 import ( + from .group_0919 import ( EnterprisesEnterpriseActionsRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnersGetResponse200, ) - from .group_0915 import ( + from .group_0920 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, ) - from .group_0916 import ( + from .group_0921 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201 as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0917 import ( + from .group_0922 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0918 import ( + from .group_0923 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0919 import ( + from .group_0924 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0920 import ( + from .group_0925 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0921 import ( + from .group_0926 import ( EnterprisesEnterpriseAuditLogStreamsPostBody as EnterprisesEnterpriseAuditLogStreamsPostBody, ) - from .group_0922 import ( + from .group_0927 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody as EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody, ) - from .group_0923 import ( + from .group_0928 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422 as EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422, ) - from .group_0924 import ( + from .group_0929 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503 as EnterprisesEnterpriseCodeScanningAlertsGetResponse503, ) - from .group_0925 import ( + from .group_0930 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsPostBody, ) - from .group_0925 import ( + from .group_0930 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0926 import ( + from .group_0931 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0926 import ( + from .group_0931 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0927 import ( + from .group_0932 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0928 import ( + from .group_0933 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0929 import ( + from .group_0934 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0930 import ( + from .group_0935 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody, ) - from .group_0931 import ( + from .group_0936 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, ) - from .group_0932 import ( + from .group_0937 import ( + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200 as EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, + ) + from .group_0938 import ( EnterprisesEnterpriseNetworkConfigurationsGetResponse200 as EnterprisesEnterpriseNetworkConfigurationsGetResponse200, ) - from .group_0933 import ( + from .group_0939 import ( EnterprisesEnterpriseNetworkConfigurationsPostBody as EnterprisesEnterpriseNetworkConfigurationsPostBody, ) - from .group_0934 import ( + from .group_0940 import ( EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody as EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody, ) - from .group_0935 import ( + from .group_0941 import ( EnterprisesEnterprisePropertiesSchemaPatchBody as EnterprisesEnterprisePropertiesSchemaPatchBody, ) - from .group_0936 import ( + from .group_0942 import ( EnterprisesEnterpriseRulesetsPostBody as EnterprisesEnterpriseRulesetsPostBody, ) - from .group_0937 import ( + from .group_0943 import ( EnterprisesEnterpriseRulesetsRulesetIdPutBody as EnterprisesEnterpriseRulesetsRulesetIdPutBody, ) - from .group_0938 import ( + from .group_0944 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody, ) - from .group_0939 import ( + from .group_0945 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200, ) - from .group_0940 import ( + from .group_0946 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody, ) - from .group_0941 import ( + from .group_0947 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200, ) - from .group_0942 import GistsPostBody as GistsPostBody - from .group_0942 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0943 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0943 import ( + from .group_0948 import GistsPostBody as GistsPostBody + from .group_0948 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0949 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0949 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0944 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0944 import ( + from .group_0950 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0950 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0945 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0946 import ( + from .group_0951 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0952 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0947 import ( + from .group_0953 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0948 import ( + from .group_0954 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0949 import MarkdownPostBody as MarkdownPostBody - from .group_0950 import NotificationsPutBody as NotificationsPutBody - from .group_0951 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0952 import ( + from .group_0955 import MarkdownPostBody as MarkdownPostBody + from .group_0956 import NotificationsPutBody as NotificationsPutBody + from .group_0957 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0958 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0953 import ( + from .group_0959 import ( OrganizationsOrganizationIdCustomRolesGetResponse200 as OrganizationsOrganizationIdCustomRolesGetResponse200, ) - from .group_0954 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0955 import ( + from .group_0960 import ( + OrganizationsOrgDependabotRepositoryAccessPatchBody as OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) + from .group_0961 import ( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + from .group_0962 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0963 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0955 import ( + from .group_0963 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0956 import ( + from .group_0964 import ( OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, ) - from .group_0957 import ( + from .group_0965 import ( OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, ) - from .group_0957 import ( + from .group_0965 import ( OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, ) - from .group_0958 import ( + from .group_0966 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - from .group_0959 import ( + from .group_0967 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, ) - from .group_0960 import ( + from .group_0968 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, ) - from .group_0961 import ( + from .group_0969 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, ) - from .group_0962 import ( + from .group_0970 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, ) - from .group_0963 import ( + from .group_0971 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0964 import ( + from .group_0972 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0965 import ( + from .group_0973 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0966 import ( + from .group_0974 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0966 import RunnerGroupsOrg as RunnerGroupsOrg - from .group_0967 import ( + from .group_0974 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0975 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0968 import ( + from .group_0976 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0969 import ( + from .group_0977 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, ) - from .group_0970 import ( + from .group_0978 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0971 import ( + from .group_0979 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0972 import ( + from .group_0980 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0973 import ( + from .group_0981 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0974 import ( + from .group_0982 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0975 import ( + from .group_0983 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0976 import ( + from .group_0984 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0977 import ( + from .group_0985 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0978 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0978 import ( + from .group_0986 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0986 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0979 import ( + from .group_0987 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0980 import ( + from .group_0988 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0981 import ( + from .group_0989 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0982 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0982 import ( + from .group_0990 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0990 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0983 import ( + from .group_0991 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0984 import ( + from .group_0992 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0985 import ( + from .group_0993 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0986 import ( + from .group_0994 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0987 import ( + from .group_0995 import ( + OrgsOrgAttestationsBulkListPostBody as OrgsOrgAttestationsBulkListPostBody, + ) + from .group_0996 import ( + OrgsOrgAttestationsBulkListPostResponse200 as OrgsOrgAttestationsBulkListPostResponse200, + ) + from .group_0996 import ( + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, + ) + from .group_0996 import ( + OrgsOrgAttestationsBulkListPostResponse200PropPageInfo as OrgsOrgAttestationsBulkListPostResponse200PropPageInfo, + ) + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_0988 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody - from .group_0988 import ( + from .group_0998 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody + from .group_0998 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems, ) - from .group_0989 import ( + from .group_0999 import ( OrgsOrgCampaignsCampaignNumberPatchBody as OrgsOrgCampaignsCampaignNumberPatchBody, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0991 import ( + from .group_1001 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0993 import ( + from .group_1003 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0994 import ( + from .group_1004 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0995 import ( + from .group_1005 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0996 import ( + from .group_1006 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0997 import ( + from .group_1007 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0998 import ( + from .group_1008 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0999 import ( + from .group_1009 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_1000 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1000 import ( + from .group_1010 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1010 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_1001 import ( + from .group_1011 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_1002 import ( + from .group_1012 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1003 import ( + from .group_1013 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1004 import ( + from .group_1014 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_1005 import ( + from .group_1015 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_1006 import ( + from .group_1016 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_1007 import ( + from .group_1017 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_1008 import ( + from .group_1018 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_1009 import ( + from .group_1019 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_1010 import ( + from .group_1020 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_1011 import ( + from .group_1021 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_1012 import ( + from .group_1022 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_1013 import ( + from .group_1023 import ( OrgsOrgCustomRepositoryRolesGetResponse200 as OrgsOrgCustomRepositoryRolesGetResponse200, ) - from .group_1014 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_1014 import ( + from .group_1024 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_1024 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_1015 import ( + from .group_1025 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_1016 import ( + from .group_1026 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1017 import ( + from .group_1027 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_1018 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_1018 import ( + from .group_1028 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_1028 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_1019 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_1019 import ( + from .group_1029 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_1029 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_1020 import ( + from .group_1030 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_1021 import ( + from .group_1031 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_1022 import ( + from .group_1032 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_1023 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_1024 import ( + from .group_1033 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_1034 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_1025 import ( + from .group_1035 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_1026 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody - from .group_1027 import ( + from .group_1036 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_1037 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_1028 import ( + from .group_1038 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_1029 import ( + from .group_1039 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_1030 import ( + from .group_1040 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_1031 import ( + from .group_1041 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_1032 import ( + from .group_1042 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_1033 import ( + from .group_1043 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_1034 import ( + from .group_1044 import ( OrgPrivateRegistryConfiguration as OrgPrivateRegistryConfiguration, ) - from .group_1034 import ( + from .group_1044 import ( OrgsOrgPrivateRegistriesGetResponse200 as OrgsOrgPrivateRegistriesGetResponse200, ) - from .group_1035 import ( + from .group_1045 import ( OrgsOrgPrivateRegistriesPostBody as OrgsOrgPrivateRegistriesPostBody, ) - from .group_1036 import ( + from .group_1046 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200 as OrgsOrgPrivateRegistriesPublicKeyGetResponse200, ) - from .group_1037 import ( + from .group_1047 import ( OrgsOrgPrivateRegistriesSecretNamePatchBody as OrgsOrgPrivateRegistriesSecretNamePatchBody, ) - from .group_1038 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_1039 import ( + from .group_1048 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_1049 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_1040 import ( + from .group_1050 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_1041 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_1041 import ( + from .group_1051 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_1051 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_1042 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_1043 import ( + from .group_1052 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_1053 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_1044 import ( + from .group_1054 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, ) - from .group_1045 import ( + from .group_1055 import ( OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, ) - from .group_1046 import ( + from .group_1056 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, ) - from .group_1047 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_1048 import ( + from .group_1057 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_1058 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_1049 import ( + from .group_1059 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_1050 import ( + from .group_1060 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_1051 import ( + from .group_1061 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1052 import ( + from .group_1062 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1053 import ( + from .group_1063 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1054 import ( + from .group_1064 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1055 import ( + from .group_1065 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBody as OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, ) - from .group_1056 import ( + from .group_1066 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_1057 import ( + from .group_1067 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_1058 import ( + from .group_1068 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_1059 import ( + from .group_1069 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_1060 import ( + from .group_1070 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, ) - from .group_1060 import ( + from .group_1070 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1061 import ( + from .group_1071 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_1062 import ( + from .group_1072 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_1063 import ( + from .group_1073 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_1064 import ( + from .group_1074 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_1065 import ( + from .group_1075 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_1066 import ( + from .group_1076 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_1066 import ( + from .group_1076 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_1067 import ( + from .group_1077 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_1067 import ( + from .group_1077 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_1068 import ( + from .group_1078 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_1069 import ( + from .group_1079 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_1070 import ( + from .group_1080 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_1071 import ( + from .group_1081 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_1071 import ( + from .group_1081 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_1072 import ( + from .group_1082 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_1073 import ( + from .group_1083 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_1074 import ( + from .group_1084 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_1075 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1076 import ( + from .group_1085 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_1086 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_1077 import ( + from .group_1087 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_1078 import ( + from .group_1088 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_1079 import ( + from .group_1089 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_1080 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody - from .group_1080 import ( + from .group_1090 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_1081 import ( + from .group_1091 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_1082 import ( + from .group_1092 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_1083 import ( + from .group_1093 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_1084 import ( + from .group_1094 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_1085 import ( + from .group_1095 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_1086 import ( + from .group_1096 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_1087 import ( + from .group_1097 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_1088 import ( + from .group_1098 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_1089 import ( + from .group_1099 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_1090 import ( + from .group_1100 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_1091 import ( + from .group_1101 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1092 import ( + from .group_1102 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_1093 import ( + from .group_1103 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_1094 import ( + from .group_1104 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_1095 import ( + from .group_1105 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_1096 import ( + from .group_1106 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_1097 import ( + from .group_1107 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_1098 import ( + from .group_1108 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_1099 import ( + from .group_1109 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_1100 import ( + from .group_1110 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_1101 import ( + from .group_1111 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_1102 import ( + from .group_1112 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1103 import ( + from .group_1113 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1103 import Workflow as Workflow - from .group_1104 import ( + from .group_1113 import Workflow as Workflow + from .group_1114 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_1104 import ( + from .group_1114 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_1105 import ( + from .group_1115 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_1107 import ( + from .group_1117 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_1109 import ( + from .group_1119 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_1111 import ( + from .group_1121 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_1111 import ( + from .group_1121 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_1111 import ( + from .group_1121 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_1112 import ( + from .group_1122 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_1112 import ( + from .group_1122 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_1113 import ( + from .group_1123 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1114 import ( + from .group_1124 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1115 import ( + from .group_1125 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_1116 import ( + from .group_1126 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, ) - from .group_1117 import ( + from .group_1127 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, ) - from .group_1118 import ( + from .group_1128 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, ) - from .group_1119 import ( + from .group_1129 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_1120 import ( + from .group_1130 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_1121 import ( + from .group_1131 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_1122 import ( + from .group_1132 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, ) - from .group_1123 import ( + from .group_1133 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, ) - from .group_1124 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, ) - from .group_1125 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_1126 import ( + from .group_1136 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody, ) - from .group_1127 import ( + from .group_1137 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200 as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1129 import ( + from .group_1139 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_1130 import ( + from .group_1140 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_1132 import ( + from .group_1142 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_1133 import ( + from .group_1143 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_1134 import ( + from .group_1144 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1135 import ( + from .group_1145 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_1135 import ( + from .group_1145 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_1136 import ( + from .group_1146 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_1137 import ( + from .group_1147 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1138 import ( + from .group_1148 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_1139 import ( + from .group_1149 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_1140 import ( + from .group_1150 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_1141 import ( + from .group_1151 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_1142 import ( + from .group_1152 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1143 import ( + from .group_1153 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1144 import ( + from .group_1154 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1144 import ( + from .group_1154 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_1145 import ( + from .group_1155 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1146 import ( + from .group_1156 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1146 import ( + from .group_1156 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1147 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1147 import ( + from .group_1157 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1157 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1148 import ( + from .group_1158 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1149 import ( + from .group_1159 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1150 import ( + from .group_1160 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1151 import ( + from .group_1161 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1152 import ( + from .group_1162 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1153 import ( + from .group_1163 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1154 import ( + from .group_1164 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1154 import ( + from .group_1164 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1154 import ( + from .group_1164 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1155 import ( + from .group_1165 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1155 import ( + from .group_1165 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1155 import ( + from .group_1165 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1156 import ( + from .group_1166 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1157 import DependabotSecret as DependabotSecret - from .group_1157 import ( + from .group_1167 import DependabotSecret as DependabotSecret + from .group_1167 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1158 import ( + from .group_1168 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1159 import ( + from .group_1169 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1160 import ( + from .group_1170 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1160 import ( + from .group_1170 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1161 import ( + from .group_1171 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1162 import ( + from .group_1172 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1163 import ( + from .group_1173 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody, ) - from .group_1164 import ( + from .group_1174 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200 as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200, ) - from .group_1165 import ( + from .group_1175 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1165 import ( + from .group_1175 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1166 import ( + from .group_1176 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1166 import ( + from .group_1176 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1167 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1167 import ( + from .group_1177 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1177 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1168 import ( + from .group_1178 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1169 import ( + from .group_1179 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1170 import ( + from .group_1180 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_1171 import ( + from .group_1181 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1172 import ( + from .group_1182 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_1173 import ( + from .group_1183 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1174 import ( + from .group_1184 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1175 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1176 import ( + from .group_1185 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1186 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1177 import ( + from .group_1187 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1177 import ( + from .group_1187 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1177 import ( + from .group_1187 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1178 import ( + from .group_1188 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1179 import ( + from .group_1189 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1180 import ( + from .group_1190 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1180 import ( + from .group_1190 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1181 import ( + from .group_1191 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1181 import ( + from .group_1191 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1182 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1182 import ( + from .group_1192 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1192 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1183 import ( + from .group_1193 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1184 import ( + from .group_1194 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1185 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1186 import ( + from .group_1195 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1196 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) - from .group_1187 import ( + from .group_1197 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1188 import ( + from .group_1198 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1189 import ( + from .group_1199 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1190 import ( + from .group_1200 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1191 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1191 import ( + from .group_1201 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1201 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1192 import ( + from .group_1202 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1193 import ( + from .group_1203 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1194 import ( + from .group_1204 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1194 import ( + from .group_1204 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1195 import ( + from .group_1205 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1196 import ( + from .group_1206 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1197 import ( + from .group_1207 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1198 import ( + from .group_1208 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1199 import ( + from .group_1209 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1199 import ( + from .group_1209 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1200 import ( + from .group_1210 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1201 import ( + from .group_1211 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1202 import ( + from .group_1212 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1202 import ( + from .group_1212 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_1203 import ( + from .group_1213 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1204 import ( + from .group_1214 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1205 import ( + from .group_1215 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1206 import ( + from .group_1216 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody, ) - from .group_1207 import ( + from .group_1217 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody, ) - from .group_1208 import ( + from .group_1218 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody, ) - from .group_1209 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1210 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1211 import ( + from .group_1219 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1220 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1221 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1212 import ( + from .group_1222 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1213 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1214 import ( + from .group_1223 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1224 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1215 import ( + from .group_1225 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1216 import ( + from .group_1226 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) - from .group_1217 import ( + from .group_1227 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1218 import ( + from .group_1228 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1219 import ( + from .group_1229 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1220 import ( + from .group_1230 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1221 import ( + from .group_1231 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1222 import ( + from .group_1232 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1223 import ( + from .group_1233 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1224 import ( + from .group_1234 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1225 import ( + from .group_1235 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1226 import ( + from .group_1236 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1227 import ( + from .group_1237 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1228 import ( + from .group_1238 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1229 import ( + from .group_1239 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1230 import ( + from .group_1240 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1231 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1232 import ( + from .group_1241 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1242 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1233 import ( + from .group_1243 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_1234 import ( + from .group_1244 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1235 import ( + from .group_1245 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1236 import ( + from .group_1246 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_1237 import ( + from .group_1247 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1238 import ( + from .group_1248 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1239 import ( + from .group_1249 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1240 import ( + from .group_1250 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1241 import ( + from .group_1251 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1242 import ( + from .group_1252 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1243 import ( + from .group_1253 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1244 import ( + from .group_1254 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1244 import ( + from .group_1254 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1245 import ( + from .group_1255 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_1246 import ( + from .group_1256 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_1247 import ( + from .group_1257 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_1248 import ( + from .group_1258 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1249 import ( + from .group_1259 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1250 import ( + from .group_1260 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1251 import ( + from .group_1261 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1252 import ( + from .group_1262 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1253 import ( + from .group_1263 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) - from .group_1254 import ( + from .group_1264 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_1255 import ( + from .group_1265 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1256 import ( + from .group_1266 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1257 import ( + from .group_1267 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1258 import ( + from .group_1268 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, ) - from .group_1259 import ( + from .group_1269 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1260 import ( + from .group_1270 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) - from .group_1261 import ( + from .group_1271 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1262 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody - from .group_1263 import ( + from .group_1272 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_1273 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1264 import ( + from .group_1274 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1265 import ( + from .group_1275 import ( ScimV2OrganizationsOrgUsersPostBody as ScimV2OrganizationsOrgUsersPostBody, ) - from .group_1265 import ( + from .group_1275 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems, ) - from .group_1265 import ( + from .group_1275 import ( ScimV2OrganizationsOrgUsersPostBodyPropName as ScimV2OrganizationsOrgUsersPostBodyPropName, ) - from .group_1266 import ( + from .group_1276 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBody as ScimV2OrganizationsOrgUsersScimUserIdPutBody, ) - from .group_1266 import ( + from .group_1276 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems, ) - from .group_1266 import ( + from .group_1276 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBody as ScimV2OrganizationsOrgUsersScimUserIdPatchBody, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items, ) - from .group_1268 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1269 import ( + from .group_1278 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1279 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) - from .group_1270 import ( + from .group_1280 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_1271 import ( + from .group_1281 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1272 import ( + from .group_1282 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1273 import ( + from .group_1283 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1274 import ( + from .group_1284 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1275 import ( + from .group_1285 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_1276 import ( + from .group_1286 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1277 import ( + from .group_1287 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1278 import ( + from .group_1288 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) - from .group_1279 import ( + from .group_1289 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBody as TeamsTeamIdTeamSyncGroupMappingsPatchBody, ) - from .group_1279 import ( + from .group_1289 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1280 import UserPatchBody as UserPatchBody - from .group_1281 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1282 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1283 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1283 import ( + from .group_1290 import UserPatchBody as UserPatchBody + from .group_1291 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1292 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1293 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1293 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_1284 import CodespacesSecret as CodespacesSecret - from .group_1284 import ( + from .group_1294 import CodespacesSecret as CodespacesSecret + from .group_1294 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) - from .group_1285 import ( + from .group_1295 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_1286 import ( + from .group_1296 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1287 import ( + from .group_1297 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1288 import ( + from .group_1298 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) - from .group_1289 import ( + from .group_1299 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_1290 import ( + from .group_1300 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from .group_1291 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1292 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 - from .group_1293 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1294 import UserGpgKeysPostBody as UserGpgKeysPostBody - from .group_1295 import ( + from .group_1301 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1302 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1303 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1304 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_1305 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1296 import ( + from .group_1306 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_1297 import ( + from .group_1307 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from .group_1298 import UserKeysPostBody as UserKeysPostBody - from .group_1299 import ( + from .group_1308 import UserKeysPostBody as UserKeysPostBody + from .group_1309 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1300 import UserMigrationsPostBody as UserMigrationsPostBody - from .group_1301 import UserProjectsPostBody as UserProjectsPostBody - from .group_1302 import UserReposPostBody as UserReposPostBody - from .group_1303 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1304 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_1305 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody - from .group_1306 import ( + from .group_1310 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_1311 import UserProjectsPostBody as UserProjectsPostBody + from .group_1312 import UserReposPostBody as UserReposPostBody + from .group_1313 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1314 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_1315 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_1316 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof0 as UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + ) + from .group_1317 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof1 as UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) else: @@ -9100,6 +9136,7 @@ ".group_0020": ( "Repository", "RepositoryPropPermissions", + "RepositoryPropCodeSearchIndexStatus", ), ".group_0021": ("InstallationToken",), ".group_0022": ("ScopedInstallation",), @@ -9368,87 +9405,106 @@ ".group_0139": ("RulesetVersionWithState",), ".group_0140": ("RulesetVersionWithStateAllof1",), ".group_0141": ("RulesetVersionWithStateAllof1PropState",), - ".group_0142": ("OrganizationSecretScanningAlert",), + ".group_0142": ( + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueBody", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + ), ".group_0143": ( + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestReviewComment", + ), + ".group_0144": ( + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", + ), + ".group_0145": ("OrganizationSecretScanningAlert",), + ".group_0146": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0144": ( + ".group_0147": ( "AdvancedSecurityActiveCommitters", "AdvancedSecurityActiveCommittersRepository", "AdvancedSecurityActiveCommittersUser", ), - ".group_0145": ( + ".group_0148": ( "GetAllCostCenters", "GetAllCostCentersPropCostCentersItems", "GetAllCostCentersPropCostCentersItemsPropResourcesItems", ), - ".group_0146": ("PackagesBillingUsage",), - ".group_0147": ("CombinedBillingUsage",), - ".group_0148": ( + ".group_0149": ("PackagesBillingUsage",), + ".group_0150": ("CombinedBillingUsage",), + ".group_0151": ( "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", ), - ".group_0149": ("Milestone",), - ".group_0150": ("IssueType",), - ".group_0151": ("ReactionRollup",), - ".group_0152": ( + ".group_0152": ("Milestone",), + ".group_0153": ("IssueType",), + ".group_0154": ("ReactionRollup",), + ".group_0155": ( "Issue", "SubIssuesSummary", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0153": ("IssueComment",), - ".group_0154": ( + ".group_0156": ("IssueComment",), + ".group_0157": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0155": ( + ".group_0158": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0156": ( + ".group_0159": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0157": ( + ".group_0160": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0158": ( + ".group_0161": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0159": ("GistComment",), - ".group_0160": ( + ".group_0162": ("GistComment",), + ".group_0163": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0161": ("GitignoreTemplate",), - ".group_0162": ("License",), - ".group_0163": ("MarketplaceListingPlan",), - ".group_0164": ("MarketplacePurchase",), - ".group_0165": ( + ".group_0164": ("GitignoreTemplate",), + ".group_0165": ("License",), + ".group_0166": ("MarketplaceListingPlan",), + ".group_0167": ("MarketplacePurchase",), + ".group_0168": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0166": ( + ".group_0169": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", "ApiOverviewPropDomainsPropActionsInbound", "ApiOverviewPropDomainsPropArtifactAttestations", ), - ".group_0167": ( + ".group_0170": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropCodeSecurity", @@ -9459,138 +9515,140 @@ "SecurityAndAnalysisPropSecretScanningAiDetection", "SecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_0168": ( + ".group_0171": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", + "MinimalRepositoryPropCustomProperties", ), - ".group_0169": ( + ".group_0172": ( "Thread", "ThreadPropSubject", ), - ".group_0170": ("ThreadSubscription",), - ".group_0171": ("OrganizationCustomRepositoryRole",), - ".group_0172": ( + ".group_0173": ("ThreadSubscription",), + ".group_0174": ("OrganizationCustomRepositoryRole",), + ".group_0175": ("DependabotRepositoryAccessDetails",), + ".group_0176": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0173": ("OidcCustomSub",), - ".group_0174": ("ActionsOrganizationPermissions",), - ".group_0175": ("ActionsPublicKey",), - ".group_0176": ( + ".group_0177": ("OidcCustomSub",), + ".group_0178": ("ActionsOrganizationPermissions",), + ".group_0179": ("ActionsPublicKey",), + ".group_0180": ( "SecretScanningBypassRequest", "SecretScanningBypassRequestPropRepository", "SecretScanningBypassRequestPropOrganization", "SecretScanningBypassRequestPropRequester", "SecretScanningBypassRequestPropDataItems", ), - ".group_0177": ( + ".group_0181": ( "CampaignSummary", "CampaignSummaryPropAlertStats", ), - ".group_0178": ("CodespaceMachine",), - ".group_0179": ( + ".group_0182": ("CodespaceMachine",), + ".group_0183": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0180": ("CodespacesPublicKey",), - ".group_0181": ( + ".group_0184": ("CodespacesPublicKey",), + ".group_0185": ( "CopilotOrganizationDetails", "CopilotOrganizationSeatBreakdown", ), - ".group_0182": ("CredentialAuthorization",), - ".group_0183": ("OrganizationCustomRepositoryRoleCreateSchema",), - ".group_0184": ("OrganizationCustomRepositoryRoleUpdateSchema",), - ".group_0185": ("DependabotPublicKey",), - ".group_0186": ( + ".group_0186": ("CredentialAuthorization",), + ".group_0187": ("OrganizationCustomRepositoryRoleCreateSchema",), + ".group_0188": ("OrganizationCustomRepositoryRoleUpdateSchema",), + ".group_0189": ("DependabotPublicKey",), + ".group_0190": ( "SecretScanningDismissalRequest", "SecretScanningDismissalRequestPropRepository", "SecretScanningDismissalRequestPropOrganization", "SecretScanningDismissalRequestPropRequester", "SecretScanningDismissalRequestPropDataItems", ), - ".group_0187": ("Package",), - ".group_0188": ( + ".group_0191": ("Package",), + ".group_0192": ( "ExternalGroup", "ExternalGroupPropTeamsItems", "ExternalGroupPropMembersItems", ), - ".group_0189": ( + ".group_0193": ( "ExternalGroups", "ExternalGroupsPropGroupsItems", ), - ".group_0190": ("OrganizationInvitation",), - ".group_0191": ("RepositoryFineGrainedPermission",), - ".group_0192": ( + ".group_0194": ("OrganizationInvitation",), + ".group_0195": ("RepositoryFineGrainedPermission",), + ".group_0196": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0193": ("ApiInsightsRouteStatsItems",), - ".group_0194": ("ApiInsightsSubjectStatsItems",), - ".group_0195": ("ApiInsightsSummaryStats",), - ".group_0196": ("ApiInsightsTimeStatsItems",), - ".group_0197": ("ApiInsightsUserStatsItems",), - ".group_0198": ("InteractionLimitResponse",), - ".group_0199": ("InteractionLimit",), - ".group_0200": ("OrganizationCreateIssueType",), - ".group_0201": ("OrganizationUpdateIssueType",), - ".group_0202": ( + ".group_0197": ("ApiInsightsRouteStatsItems",), + ".group_0198": ("ApiInsightsSubjectStatsItems",), + ".group_0199": ("ApiInsightsSummaryStats",), + ".group_0200": ("ApiInsightsTimeStatsItems",), + ".group_0201": ("ApiInsightsUserStatsItems",), + ".group_0202": ("InteractionLimitResponse",), + ".group_0203": ("InteractionLimit",), + ".group_0204": ("OrganizationCreateIssueType",), + ".group_0205": ("OrganizationUpdateIssueType",), + ".group_0206": ( "OrgMembership", "OrgMembershipPropPermissions", ), - ".group_0203": ("Migration",), - ".group_0204": ("OrganizationFineGrainedPermission",), - ".group_0205": ( + ".group_0207": ("Migration",), + ".group_0208": ("OrganizationFineGrainedPermission",), + ".group_0209": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0206": ("OrganizationCustomOrganizationRoleCreateSchema",), - ".group_0207": ("OrganizationCustomOrganizationRoleUpdateSchema",), - ".group_0208": ( + ".group_0210": ("OrganizationCustomOrganizationRoleCreateSchema",), + ".group_0211": ("OrganizationCustomOrganizationRoleUpdateSchema",), + ".group_0212": ( "TeamRoleAssignment", "TeamRoleAssignmentPropPermissions", ), - ".group_0209": ("UserRoleAssignment",), - ".group_0210": ( + ".group_0213": ("UserRoleAssignment",), + ".group_0214": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0211": ( + ".group_0215": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0212": ( + ".group_0216": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0213": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), - ".group_0214": ("Project",), - ".group_0215": ("CustomPropertyValue",), - ".group_0216": ("OrgRepoCustomPropertyValues",), - ".group_0217": ("CodeOfConductSimple",), - ".group_0218": ( + ".group_0217": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), + ".group_0218": ("Project",), + ".group_0219": ("CustomPropertyValue",), + ".group_0220": ("OrgRepoCustomPropertyValues",), + ".group_0221": ("CodeOfConductSimple",), + ".group_0222": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0219": ("RuleSuitesItems",), - ".group_0220": ( + ".group_0223": ("RuleSuitesItems",), + ".group_0224": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0221": ("RepositoryAdvisoryCredit",), - ".group_0222": ( + ".group_0225": ("RepositoryAdvisoryCredit",), + ".group_0226": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -9600,82 +9658,82 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0223": ( + ".group_0227": ( "GroupMapping", "GroupMappingPropGroupsItems", ), - ".group_0224": ( + ".group_0228": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0225": ("TeamDiscussion",), - ".group_0226": ("TeamDiscussionComment",), - ".group_0227": ("Reaction",), - ".group_0228": ("TeamMembership",), - ".group_0229": ( + ".group_0229": ("TeamDiscussion",), + ".group_0230": ("TeamDiscussionComment",), + ".group_0231": ("Reaction",), + ".group_0232": ("TeamMembership",), + ".group_0233": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0230": ( + ".group_0234": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0231": ("ProjectCard",), - ".group_0232": ("ProjectColumn",), - ".group_0233": ("ProjectCollaboratorPermission",), - ".group_0234": ("RateLimit",), - ".group_0235": ("RateLimitOverview",), - ".group_0236": ("RateLimitOverviewPropResources",), - ".group_0237": ( + ".group_0235": ("ProjectCard",), + ".group_0236": ("ProjectColumn",), + ".group_0237": ("ProjectCollaboratorPermission",), + ".group_0238": ("RateLimit",), + ".group_0239": ("RateLimitOverview",), + ".group_0240": ("RateLimitOverviewPropResources",), + ".group_0241": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0238": ( + ".group_0242": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0239": ( + ".group_0243": ( "Job", "JobPropStepsItems", ), - ".group_0240": ("OidcCustomSubRepo",), - ".group_0241": ("ActionsSecret",), - ".group_0242": ("ActionsVariable",), - ".group_0243": ("ActionsRepositoryPermissions",), - ".group_0244": ("ActionsWorkflowAccessToRepository",), - ".group_0245": ( + ".group_0244": ("OidcCustomSubRepo",), + ".group_0245": ("ActionsSecret",), + ".group_0246": ("ActionsVariable",), + ".group_0247": ("ActionsRepositoryPermissions",), + ".group_0248": ("ActionsWorkflowAccessToRepository",), + ".group_0249": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0246": ( + ".group_0250": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0247": ( + ".group_0251": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0248": ( + ".group_0252": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0249": ("ReviewCustomGatesCommentRequired",), - ".group_0250": ("ReviewCustomGatesStateRequired",), - ".group_0251": ( + ".group_0253": ("ReviewCustomGatesCommentRequired",), + ".group_0254": ("ReviewCustomGatesStateRequired",), + ".group_0255": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0252": ( + ".group_0256": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0253": ( + ".group_0257": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -9685,22 +9743,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0254": ( + ".group_0258": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0255": ("Activity",), - ".group_0256": ("Autolink",), - ".group_0257": ("CheckAutomatedSecurityFixes",), - ".group_0258": ("ProtectedBranchPullRequestReview",), - ".group_0259": ( + ".group_0259": ("Activity",), + ".group_0260": ("Autolink",), + ".group_0261": ("CheckAutomatedSecurityFixes",), + ".group_0262": ("ProtectedBranchPullRequestReview",), + ".group_0263": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0260": ( + ".group_0264": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -9708,7 +9766,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0261": ( + ".group_0265": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -9722,28 +9780,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0262": ( + ".group_0266": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0263": ("GitUser",), - ".group_0264": ("Verification",), - ".group_0265": ("DiffEntry",), - ".group_0266": ( + ".group_0267": ("GitUser",), + ".group_0268": ("Verification",), + ".group_0269": ("DiffEntry",), + ".group_0270": ( "Commit", "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0267": ( + ".group_0271": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0268": ( + ".group_0272": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0269": ( + ".group_0273": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -9757,117 +9815,117 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0270": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0271": ( + ".group_0274": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0275": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0272": ("DeploymentSimple",), - ".group_0273": ( + ".group_0276": ("DeploymentSimple",), + ".group_0277": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0274": ("CheckAnnotation",), - ".group_0275": ( + ".group_0278": ("CheckAnnotation",), + ".group_0279": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0276": ( + ".group_0280": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0277": ("CodeScanningAlertItems",), - ".group_0278": ( + ".group_0281": ("CodeScanningAlertItems",), + ".group_0282": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0279": ("CodeScanningAutofix",), - ".group_0280": ("CodeScanningAutofixCommits",), - ".group_0281": ("CodeScanningAutofixCommitsResponse",), - ".group_0282": ("CodeScanningAnalysis",), - ".group_0283": ("CodeScanningAnalysisDeletion",), - ".group_0284": ("CodeScanningCodeqlDatabase",), - ".group_0285": ("CodeScanningVariantAnalysisRepository",), - ".group_0286": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0287": ("CodeScanningVariantAnalysis",), - ".group_0288": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0289": ( + ".group_0283": ("CodeScanningAutofix",), + ".group_0284": ("CodeScanningAutofixCommits",), + ".group_0285": ("CodeScanningAutofixCommitsResponse",), + ".group_0286": ("CodeScanningAnalysis",), + ".group_0287": ("CodeScanningAnalysisDeletion",), + ".group_0288": ("CodeScanningCodeqlDatabase",), + ".group_0289": ("CodeScanningVariantAnalysisRepository",), + ".group_0290": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0291": ("CodeScanningVariantAnalysis",), + ".group_0292": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0293": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0290": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0291": ("CodeScanningDefaultSetup",), - ".group_0292": ("CodeScanningDefaultSetupUpdate",), - ".group_0293": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0294": ("CodeScanningSarifsReceipt",), - ".group_0295": ("CodeScanningSarifsStatus",), - ".group_0296": ("CodeSecurityConfigurationForRepository",), - ".group_0297": ( + ".group_0294": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0295": ("CodeScanningDefaultSetup",), + ".group_0296": ("CodeScanningDefaultSetupUpdate",), + ".group_0297": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0298": ("CodeScanningSarifsReceipt",), + ".group_0299": ("CodeScanningSarifsStatus",), + ".group_0300": ("CodeSecurityConfigurationForRepository",), + ".group_0301": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0298": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0299": ("RepositoryInvitation",), - ".group_0300": ( + ".group_0302": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0303": ("RepositoryInvitation",), + ".group_0304": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0301": ( + ".group_0305": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0302": ( + ".group_0306": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0303": ("Link",), - ".group_0304": ("AutoMerge",), - ".group_0305": ( + ".group_0307": ("Link",), + ".group_0308": ("AutoMerge",), + ".group_0309": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0306": ( + ".group_0310": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0307": ("PullRequestSimplePropLinks",), - ".group_0308": ( + ".group_0311": ("PullRequestSimplePropLinks",), + ".group_0312": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0309": ("Status",), - ".group_0310": ( + ".group_0313": ("Status",), + ".group_0314": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0311": ("CommitComparison",), - ".group_0312": ( + ".group_0315": ("CommitComparison",), + ".group_0316": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0313": ( + ".group_0317": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0314": ( + ".group_0318": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0315": ( + ".group_0319": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0316": ( + ".group_0320": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0317": ( + ".group_0321": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -9878,20 +9936,20 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0318": ( + ".group_0322": ( "RepositoryRuleViolationError", "RepositoryRuleViolationErrorPropMetadata", "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ), - ".group_0319": ("Contributor",), - ".group_0320": ("DependabotAlert",), - ".group_0321": ("DependabotAlertPropDependency",), - ".group_0322": ( + ".group_0323": ("Contributor",), + ".group_0324": ("DependabotAlert",), + ".group_0325": ("DependabotAlertPropDependency",), + ".group_0326": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0323": ( + ".group_0327": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", @@ -9899,39 +9957,39 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0324": ("Metadata",), - ".group_0325": ("Dependency",), - ".group_0326": ( + ".group_0328": ("Metadata",), + ".group_0329": ("Dependency",), + ".group_0330": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0327": ( + ".group_0331": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0328": ("DeploymentStatus",), - ".group_0329": ("DeploymentBranchPolicySettings",), - ".group_0330": ( + ".group_0332": ("DeploymentStatus",), + ".group_0333": ("DeploymentBranchPolicySettings",), + ".group_0334": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0331": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0332": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0333": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0334": ("DeploymentBranchPolicyNamePattern",), - ".group_0335": ("CustomDeploymentRuleApp",), - ".group_0336": ( + ".group_0335": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0336": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0337": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0338": ("DeploymentBranchPolicyNamePattern",), + ".group_0339": ("CustomDeploymentRuleApp",), + ".group_0340": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0337": ("ShortBlob",), - ".group_0338": ("Blob",), - ".group_0339": ( + ".group_0341": ("ShortBlob",), + ".group_0342": ("Blob",), + ".group_0343": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -9939,28 +9997,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0340": ( + ".group_0344": ( "GitRef", "GitRefPropObject", ), - ".group_0341": ( + ".group_0345": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0342": ( + ".group_0346": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0343": ("HookResponse",), - ".group_0344": ("Hook",), - ".group_0345": ( + ".group_0347": ("HookResponse",), + ".group_0348": ("Hook",), + ".group_0349": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0346": ("PorterAuthor",), - ".group_0347": ("PorterLargeFile",), - ".group_0348": ( + ".group_0350": ("PorterAuthor",), + ".group_0351": ("PorterLargeFile",), + ".group_0352": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -9968,55 +10026,55 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0349": ( + ".group_0353": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0350": ( + ".group_0354": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0351": ("AssignedIssueEvent",), - ".group_0352": ("UnassignedIssueEvent",), - ".group_0353": ( + ".group_0355": ("AssignedIssueEvent",), + ".group_0356": ("UnassignedIssueEvent",), + ".group_0357": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0354": ( + ".group_0358": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0355": ( + ".group_0359": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0356": ("ReviewRequestedIssueEvent",), - ".group_0357": ("ReviewRequestRemovedIssueEvent",), - ".group_0358": ( + ".group_0360": ("ReviewRequestedIssueEvent",), + ".group_0361": ("ReviewRequestRemovedIssueEvent",), + ".group_0362": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0359": ("LockedIssueEvent",), - ".group_0360": ( + ".group_0363": ("LockedIssueEvent",), + ".group_0364": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0361": ( + ".group_0365": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0362": ( + ".group_0366": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0363": ( + ".group_0367": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0364": ("TimelineCommentEvent",), - ".group_0365": ("TimelineCrossReferencedEvent",), - ".group_0366": ("TimelineCrossReferencedEventPropSource",), - ".group_0367": ( + ".group_0368": ("TimelineCommentEvent",), + ".group_0369": ("TimelineCrossReferencedEvent",), + ".group_0370": ("TimelineCrossReferencedEventPropSource",), + ".group_0371": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -10024,13 +10082,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0368": ( + ".group_0372": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0369": ( + ".group_0373": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -10038,161 +10096,162 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0370": ("TimelineAssignedIssueEvent",), - ".group_0371": ("TimelineUnassignedIssueEvent",), - ".group_0372": ("StateChangeIssueEvent",), - ".group_0373": ("DeployKey",), - ".group_0374": ("Language",), - ".group_0375": ( + ".group_0374": ("TimelineAssignedIssueEvent",), + ".group_0375": ("TimelineUnassignedIssueEvent",), + ".group_0376": ("StateChangeIssueEvent",), + ".group_0377": ("DeployKey",), + ".group_0378": ("Language",), + ".group_0379": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0376": ("MergedUpstream",), - ".group_0377": ( + ".group_0380": ("MergedUpstream",), + ".group_0381": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0378": ( + ".group_0382": ( "PageBuild", "PageBuildPropError", ), - ".group_0379": ("PageBuildStatus",), - ".group_0380": ("PageDeployment",), - ".group_0381": ("PagesDeploymentStatus",), - ".group_0382": ( + ".group_0383": ("PageBuildStatus",), + ".group_0384": ("PageDeployment",), + ".group_0385": ("PagesDeploymentStatus",), + ".group_0386": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0383": ("PullRequest",), - ".group_0384": ("PullRequestPropLabelsItems",), - ".group_0385": ( + ".group_0387": ("PullRequest",), + ".group_0388": ("PullRequestPropLabelsItems",), + ".group_0389": ( "PullRequestPropHead", "PullRequestPropBase", ), - ".group_0386": ("PullRequestPropLinks",), - ".group_0387": ("PullRequestMergeResult",), - ".group_0388": ("PullRequestReviewRequest",), - ".group_0389": ( + ".group_0390": ("PullRequestPropLinks",), + ".group_0391": ("PullRequestMergeResult",), + ".group_0392": ("PullRequestReviewRequest",), + ".group_0393": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0390": ("ReviewComment",), - ".group_0391": ("ReviewCommentPropLinks",), - ".group_0392": ("ReleaseAsset",), - ".group_0393": ("Release",), - ".group_0394": ("ReleaseNotesContent",), - ".group_0395": ("RepositoryRuleRulesetInfo",), - ".group_0396": ("RepositoryRuleDetailedOneof0",), - ".group_0397": ("RepositoryRuleDetailedOneof1",), - ".group_0398": ("RepositoryRuleDetailedOneof2",), - ".group_0399": ("RepositoryRuleDetailedOneof3",), - ".group_0400": ("RepositoryRuleDetailedOneof4",), - ".group_0401": ("RepositoryRuleDetailedOneof5",), - ".group_0402": ("RepositoryRuleDetailedOneof6",), - ".group_0403": ("RepositoryRuleDetailedOneof7",), - ".group_0404": ("RepositoryRuleDetailedOneof8",), - ".group_0405": ("RepositoryRuleDetailedOneof9",), - ".group_0406": ("RepositoryRuleDetailedOneof10",), - ".group_0407": ("RepositoryRuleDetailedOneof11",), - ".group_0408": ("RepositoryRuleDetailedOneof12",), - ".group_0409": ("RepositoryRuleDetailedOneof13",), - ".group_0410": ("RepositoryRuleDetailedOneof14",), - ".group_0411": ("RepositoryRuleDetailedOneof15",), - ".group_0412": ("RepositoryRuleDetailedOneof16",), - ".group_0413": ("RepositoryRuleDetailedOneof17",), - ".group_0414": ("RepositoryRuleDetailedOneof18",), - ".group_0415": ("RepositoryRuleDetailedOneof19",), - ".group_0416": ("RepositoryRuleDetailedOneof20",), - ".group_0417": ("SecretScanningAlert",), - ".group_0418": ("SecretScanningPushProtectionBypass",), - ".group_0419": ( + ".group_0394": ("ReviewComment",), + ".group_0395": ("ReviewCommentPropLinks",), + ".group_0396": ("ReleaseAsset",), + ".group_0397": ("Release",), + ".group_0398": ("ReleaseNotesContent",), + ".group_0399": ("RepositoryRuleRulesetInfo",), + ".group_0400": ("RepositoryRuleDetailedOneof0",), + ".group_0401": ("RepositoryRuleDetailedOneof1",), + ".group_0402": ("RepositoryRuleDetailedOneof2",), + ".group_0403": ("RepositoryRuleDetailedOneof3",), + ".group_0404": ("RepositoryRuleDetailedOneof4",), + ".group_0405": ("RepositoryRuleDetailedOneof5",), + ".group_0406": ("RepositoryRuleDetailedOneof6",), + ".group_0407": ("RepositoryRuleDetailedOneof7",), + ".group_0408": ("RepositoryRuleDetailedOneof8",), + ".group_0409": ("RepositoryRuleDetailedOneof9",), + ".group_0410": ("RepositoryRuleDetailedOneof10",), + ".group_0411": ("RepositoryRuleDetailedOneof11",), + ".group_0412": ("RepositoryRuleDetailedOneof12",), + ".group_0413": ("RepositoryRuleDetailedOneof13",), + ".group_0414": ("RepositoryRuleDetailedOneof14",), + ".group_0415": ("RepositoryRuleDetailedOneof15",), + ".group_0416": ("RepositoryRuleDetailedOneof16",), + ".group_0417": ("RepositoryRuleDetailedOneof17",), + ".group_0418": ("RepositoryRuleDetailedOneof18",), + ".group_0419": ("RepositoryRuleDetailedOneof19",), + ".group_0420": ("RepositoryRuleDetailedOneof20",), + ".group_0421": ("SecretScanningAlert",), + ".group_0422": ("SecretScanningLocation",), + ".group_0423": ("SecretScanningPushProtectionBypass",), + ".group_0424": ( "SecretScanningScanHistory", "SecretScanningScan", "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ), - ".group_0420": ( + ".group_0425": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1", ), - ".group_0421": ( + ".group_0426": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0422": ( + ".group_0427": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0423": ( + ".group_0428": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0424": ("Stargazer",), - ".group_0425": ("CommitActivity",), - ".group_0426": ( + ".group_0429": ("Stargazer",), + ".group_0430": ("CommitActivity",), + ".group_0431": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0427": ("ParticipationStats",), - ".group_0428": ("RepositorySubscription",), - ".group_0429": ( + ".group_0432": ("ParticipationStats",), + ".group_0433": ("RepositorySubscription",), + ".group_0434": ( "Tag", "TagPropCommit", ), - ".group_0430": ("TagProtection",), - ".group_0431": ("Topic",), - ".group_0432": ("Traffic",), - ".group_0433": ("CloneTraffic",), - ".group_0434": ("ContentTraffic",), - ".group_0435": ("ReferrerTraffic",), - ".group_0436": ("ViewTraffic",), - ".group_0437": ( + ".group_0435": ("TagProtection",), + ".group_0436": ("Topic",), + ".group_0437": ("Traffic",), + ".group_0438": ("CloneTraffic",), + ".group_0439": ("ContentTraffic",), + ".group_0440": ("ReferrerTraffic",), + ".group_0441": ("ViewTraffic",), + ".group_0442": ( "GroupResponse", "GroupResponsePropMembersItems", ), - ".group_0438": ("Meta",), - ".group_0439": ( + ".group_0443": ("Meta",), + ".group_0444": ( "ScimEnterpriseGroupResponse", "ScimEnterpriseGroupResponseMergedMembers", "ScimEnterpriseGroupList", ), - ".group_0440": ( + ".group_0445": ( "ScimEnterpriseGroupResponseAllof1", "ScimEnterpriseGroupResponseAllof1PropMembersItems", ), - ".group_0441": ( + ".group_0446": ( "Group", "GroupPropMembersItems", ), - ".group_0442": ( + ".group_0447": ( "PatchSchema", "PatchSchemaPropOperationsItems", ), - ".group_0443": ( + ".group_0448": ( "UserNameResponse", "UserEmailsResponseItems", ), - ".group_0444": ("UserRoleItems",), - ".group_0445": ("UserResponse",), - ".group_0446": ( + ".group_0449": ("UserRoleItems",), + ".group_0450": ("UserResponse",), + ".group_0451": ( "ScimEnterpriseUserResponse", "ScimEnterpriseUserList", ), - ".group_0447": ("ScimEnterpriseUserResponseAllof1",), - ".group_0448": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), - ".group_0449": ( + ".group_0452": ("ScimEnterpriseUserResponseAllof1",), + ".group_0453": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), + ".group_0454": ( "User", "UserName", "UserEmailsItems", ), - ".group_0450": ( + ".group_0455": ( "ScimUserList", "ScimUser", "ScimUserPropName", @@ -10203,41 +10262,41 @@ "ScimUserPropOperationsItems", "ScimUserPropOperationsItemsPropValueOneof1", ), - ".group_0451": ( + ".group_0456": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0452": ( + ".group_0457": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0453": ( + ".group_0458": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0454": ( + ".group_0459": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0455": ( + ".group_0460": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0456": ( + ".group_0461": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0457": ( + ".group_0462": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0458": ( + ".group_0463": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -10245,49 +10304,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0459": ( + ".group_0464": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0460": ( + ".group_0465": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0461": ("CodespacesUserPublicKey",), - ".group_0462": ("CodespaceExportDetails",), - ".group_0463": ( + ".group_0466": ("CodespacesUserPublicKey",), + ".group_0467": ("CodespaceExportDetails",), + ".group_0468": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0464": ("Email",), - ".group_0465": ( + ".group_0469": ("Email",), + ".group_0470": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0466": ("Key",), - ".group_0467": ( + ".group_0471": ("Key",), + ".group_0472": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0468": ("SocialAccount",), - ".group_0469": ("SshSigningKey",), - ".group_0470": ("StarredRepository",), - ".group_0471": ( + ".group_0473": ("SocialAccount",), + ".group_0474": ("SshSigningKey",), + ".group_0475": ("StarredRepository",), + ".group_0476": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0472": ("KeySimple",), - ".group_0473": ( + ".group_0477": ("KeySimple",), + ".group_0478": ( "BillingUsageReportUser", "BillingUsageReportUserPropUsageItemsItems", ), - ".group_0474": ("EnterpriseWebhooks",), - ".group_0475": ("SimpleInstallation",), - ".group_0476": ("OrganizationSimpleWebhooks",), - ".group_0477": ( + ".group_0479": ("EnterpriseWebhooks",), + ".group_0480": ("SimpleInstallation",), + ".group_0481": ("OrganizationSimpleWebhooks",), + ".group_0482": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -10295,9 +10354,9 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0478": ("WebhooksRule",), - ".group_0479": ("ExemptionResponse",), - ".group_0480": ( + ".group_0483": ("WebhooksRule",), + ".group_0484": ("ExemptionResponse",), + ".group_0485": ( "ExemptionRequest", "ExemptionRequestSecretScanningMetadata", "DismissalRequestSecretScanningMetadata", @@ -10312,26 +10371,26 @@ "ExemptionRequestSecretScanningPropDataItems", "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", ), - ".group_0481": ("SimpleCheckSuite",), - ".group_0482": ( + ".group_0486": ("SimpleCheckSuite",), + ".group_0487": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0483": ("WebhooksDeployKey",), - ".group_0484": ("WebhooksWorkflow",), - ".group_0485": ( + ".group_0488": ("WebhooksDeployKey",), + ".group_0489": ("WebhooksWorkflow",), + ".group_0490": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0486": ("WebhooksWorkflowJobRun",), - ".group_0487": ("WebhooksUser",), - ".group_0488": ( + ".group_0491": ("WebhooksWorkflowJobRun",), + ".group_0492": ("WebhooksUser",), + ".group_0493": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0489": ( + ".group_0494": ( "Discussion", "Label", "DiscussionPropAnswerChosenBy", @@ -10339,24 +10398,24 @@ "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0490": ( + ".group_0495": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0491": ("WebhooksLabel",), - ".group_0492": ("WebhooksRepositoriesItems",), - ".group_0493": ("WebhooksRepositoriesAddedItems",), - ".group_0494": ( + ".group_0496": ("WebhooksLabel",), + ".group_0497": ("WebhooksRepositoriesItems",), + ".group_0498": ("WebhooksRepositoriesAddedItems",), + ".group_0499": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0495": ( + ".group_0500": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0496": ( + ".group_0501": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -10371,11 +10430,11 @@ "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", ), - ".group_0497": ( + ".group_0502": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0498": ( + ".group_0503": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -10390,31 +10449,31 @@ "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", ), - ".group_0499": ("WebhooksUserMannequin",), - ".group_0500": ( + ".group_0504": ("WebhooksUserMannequin",), + ".group_0505": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0501": ( + ".group_0506": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0502": ( + ".group_0507": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0503": ("MergeGroup",), - ".group_0504": ( + ".group_0508": ("MergeGroup",), + ".group_0509": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0505": ( + ".group_0510": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0506": ( + ".group_0511": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -10430,25 +10489,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0507": ( + ".group_0512": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0508": ( + ".group_0513": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0509": ("WebhooksProjectColumn",), - ".group_0510": ("ProjectsV2",), - ".group_0511": ( + ".group_0514": ("WebhooksProjectColumn",), + ".group_0515": ("ProjectsV2",), + ".group_0516": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0512": ("ProjectsV2Item",), - ".group_0513": ("ProjectsV2StatusUpdate",), - ".group_0514": ("PullRequestWebhook",), - ".group_0515": ("PullRequestWebhookAllof1",), - ".group_0516": ( + ".group_0517": ("ProjectsV2Item",), + ".group_0518": ("ProjectsV2StatusUpdate",), + ".group_0519": ("PullRequestWebhook",), + ".group_0520": ("PullRequestWebhookAllof1",), + ".group_0521": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -10486,7 +10545,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0517": ( + ".group_0522": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -10495,33 +10554,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0518": ( + ".group_0523": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0519": ( + ".group_0524": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0520": ( + ".group_0525": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0521": ( + ".group_0526": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0522": ("SecretScanningAlertWebhook",), - ".group_0523": ( + ".group_0527": ("SecretScanningAlertWebhook",), + ".group_0528": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -10531,27 +10590,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0524": ( + ".group_0529": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0525": ( + ".group_0530": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0526": ( + ".group_0531": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0527": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0528": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0529": ("WebhookBranchProtectionRuleCreated",), - ".group_0530": ("WebhookBranchProtectionRuleDeleted",), - ".group_0531": ( + ".group_0532": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0533": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0534": ("WebhookBranchProtectionRuleCreated",), + ".group_0535": ("WebhookBranchProtectionRuleDeleted",), + ".group_0536": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -10566,23 +10625,23 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0532": ("WebhookExemptionRequestCancelled",), - ".group_0533": ("WebhookExemptionRequestCompleted",), - ".group_0534": ("WebhookExemptionRequestCreated",), - ".group_0535": ("WebhookExemptionRequestResponseDismissed",), - ".group_0536": ("WebhookExemptionRequestResponseSubmitted",), - ".group_0537": ("WebhookCheckRunCompleted",), - ".group_0538": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0539": ("WebhookCheckRunCreated",), - ".group_0540": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0541": ( + ".group_0537": ("WebhookExemptionRequestCancelled",), + ".group_0538": ("WebhookExemptionRequestCompleted",), + ".group_0539": ("WebhookExemptionRequestCreated",), + ".group_0540": ("WebhookExemptionRequestResponseDismissed",), + ".group_0541": ("WebhookExemptionRequestResponseSubmitted",), + ".group_0542": ("WebhookCheckRunCompleted",), + ".group_0543": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0544": ("WebhookCheckRunCreated",), + ".group_0545": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0546": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0542": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0543": ("WebhookCheckRunRerequested",), - ".group_0544": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0545": ( + ".group_0547": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0548": ("WebhookCheckRunRerequested",), + ".group_0549": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0550": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -10597,7 +10656,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0546": ( + ".group_0551": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -10612,7 +10671,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0547": ( + ".group_0552": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -10627,7 +10686,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0548": ( + ".group_0553": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -10637,7 +10696,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0549": ( + ".group_0554": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -10648,7 +10707,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", ), - ".group_0550": ( + ".group_0555": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -10657,7 +10716,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0551": ( + ".group_0556": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -10667,7 +10726,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0552": ( + ".group_0557": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -10677,7 +10736,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0553": ( + ".group_0558": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -10686,32 +10745,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0554": ( + ".group_0559": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0555": ("WebhookCreate",), - ".group_0556": ("WebhookCustomPropertyCreated",), - ".group_0557": ( + ".group_0560": ("WebhookCreate",), + ".group_0561": ("WebhookCustomPropertyCreated",), + ".group_0562": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0558": ("WebhookCustomPropertyPromotedToEnterprise",), - ".group_0559": ("WebhookCustomPropertyUpdated",), - ".group_0560": ("WebhookCustomPropertyValuesUpdated",), - ".group_0561": ("WebhookDelete",), - ".group_0562": ("WebhookDependabotAlertAutoDismissed",), - ".group_0563": ("WebhookDependabotAlertAutoReopened",), - ".group_0564": ("WebhookDependabotAlertCreated",), - ".group_0565": ("WebhookDependabotAlertDismissed",), - ".group_0566": ("WebhookDependabotAlertFixed",), - ".group_0567": ("WebhookDependabotAlertReintroduced",), - ".group_0568": ("WebhookDependabotAlertReopened",), - ".group_0569": ("WebhookDeployKeyCreated",), - ".group_0570": ("WebhookDeployKeyDeleted",), - ".group_0571": ( + ".group_0563": ("WebhookCustomPropertyPromotedToEnterprise",), + ".group_0564": ("WebhookCustomPropertyUpdated",), + ".group_0565": ("WebhookCustomPropertyValuesUpdated",), + ".group_0566": ("WebhookDelete",), + ".group_0567": ("WebhookDependabotAlertAutoDismissed",), + ".group_0568": ("WebhookDependabotAlertAutoReopened",), + ".group_0569": ("WebhookDependabotAlertCreated",), + ".group_0570": ("WebhookDependabotAlertDismissed",), + ".group_0571": ("WebhookDependabotAlertFixed",), + ".group_0572": ("WebhookDependabotAlertReintroduced",), + ".group_0573": ("WebhookDependabotAlertReopened",), + ".group_0574": ("WebhookDeployKeyCreated",), + ".group_0575": ("WebhookDeployKeyDeleted",), + ".group_0576": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -10733,8 +10792,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0572": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0573": ( + ".group_0577": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0578": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -10752,7 +10811,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0574": ( + ".group_0579": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -10770,7 +10829,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0575": ( + ".group_0580": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -10790,7 +10849,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0576": ( + ".group_0581": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -10818,119 +10877,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0577": ("WebhookDiscussionAnswered",), - ".group_0578": ( + ".group_0582": ("WebhookDiscussionAnswered",), + ".group_0583": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0579": ("WebhookDiscussionClosed",), - ".group_0580": ("WebhookDiscussionCommentCreated",), - ".group_0581": ("WebhookDiscussionCommentDeleted",), - ".group_0582": ( + ".group_0584": ("WebhookDiscussionClosed",), + ".group_0585": ("WebhookDiscussionCommentCreated",), + ".group_0586": ("WebhookDiscussionCommentDeleted",), + ".group_0587": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0583": ("WebhookDiscussionCreated",), - ".group_0584": ("WebhookDiscussionDeleted",), - ".group_0585": ( + ".group_0588": ("WebhookDiscussionCreated",), + ".group_0589": ("WebhookDiscussionDeleted",), + ".group_0590": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0586": ("WebhookDiscussionLabeled",), - ".group_0587": ("WebhookDiscussionLocked",), - ".group_0588": ("WebhookDiscussionPinned",), - ".group_0589": ("WebhookDiscussionReopened",), - ".group_0590": ("WebhookDiscussionTransferred",), - ".group_0591": ("WebhookDiscussionTransferredPropChanges",), - ".group_0592": ("WebhookDiscussionUnanswered",), - ".group_0593": ("WebhookDiscussionUnlabeled",), - ".group_0594": ("WebhookDiscussionUnlocked",), - ".group_0595": ("WebhookDiscussionUnpinned",), - ".group_0596": ("WebhookFork",), - ".group_0597": ( + ".group_0591": ("WebhookDiscussionLabeled",), + ".group_0592": ("WebhookDiscussionLocked",), + ".group_0593": ("WebhookDiscussionPinned",), + ".group_0594": ("WebhookDiscussionReopened",), + ".group_0595": ("WebhookDiscussionTransferred",), + ".group_0596": ("WebhookDiscussionTransferredPropChanges",), + ".group_0597": ("WebhookDiscussionUnanswered",), + ".group_0598": ("WebhookDiscussionUnlabeled",), + ".group_0599": ("WebhookDiscussionUnlocked",), + ".group_0600": ("WebhookDiscussionUnpinned",), + ".group_0601": ("WebhookFork",), + ".group_0602": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0598": ( + ".group_0603": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0599": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0600": ( + ".group_0604": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0605": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0601": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0602": ( + ".group_0606": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0607": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0603": ("WebhookInstallationCreated",), - ".group_0604": ("WebhookInstallationDeleted",), - ".group_0605": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0606": ( + ".group_0608": ("WebhookInstallationCreated",), + ".group_0609": ("WebhookInstallationDeleted",), + ".group_0610": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0611": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0607": ( + ".group_0612": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0608": ("WebhookInstallationSuspend",), - ".group_0609": ( + ".group_0613": ("WebhookInstallationSuspend",), + ".group_0614": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0610": ("WebhookInstallationUnsuspend",), - ".group_0611": ("WebhookIssueCommentCreated",), - ".group_0612": ( + ".group_0615": ("WebhookInstallationUnsuspend",), + ".group_0616": ("WebhookIssueCommentCreated",), + ".group_0617": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0613": ( + ".group_0618": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0614": ( + ".group_0619": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0615": ( + ".group_0620": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0616": ( + ".group_0621": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0617": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0618": ( + ".group_0622": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0623": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0619": ( + ".group_0624": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0620": ( + ".group_0625": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0621": ( + ".group_0626": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -10940,43 +10999,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0622": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0623": ( + ".group_0627": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0628": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0624": ("WebhookIssueCommentDeleted",), - ".group_0625": ( + ".group_0629": ("WebhookIssueCommentDeleted",), + ".group_0630": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0626": ( + ".group_0631": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0627": ( + ".group_0632": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0628": ( + ".group_0633": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0629": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0630": ( + ".group_0634": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0635": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0631": ( + ".group_0636": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0632": ( + ".group_0637": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0633": ( + ".group_0638": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -10986,43 +11045,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0634": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0635": ( + ".group_0639": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0640": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0636": ("WebhookIssueCommentEdited",), - ".group_0637": ( + ".group_0641": ("WebhookIssueCommentEdited",), + ".group_0642": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0638": ( + ".group_0643": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0639": ( + ".group_0644": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0640": ( + ".group_0645": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0641": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0642": ( + ".group_0646": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0647": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0643": ( + ".group_0648": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0644": ( + ".group_0649": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0645": ( + ".group_0650": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -11032,13 +11091,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0646": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0647": ( + ".group_0651": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0652": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0648": ("WebhookIssuesAssigned",), - ".group_0649": ("WebhookIssuesClosed",), - ".group_0650": ( + ".group_0653": ("WebhookIssuesAssigned",), + ".group_0654": ("WebhookIssuesClosed",), + ".group_0655": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -11046,7 +11105,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0651": ( + ".group_0656": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -11054,18 +11113,18 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0652": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0653": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0654": ( + ".group_0657": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0658": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0659": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0655": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0656": ( + ".group_0660": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0661": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequest", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0657": ( + ".group_0662": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -11075,10 +11134,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0658": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0659": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0660": ("WebhookIssuesDeleted",), - ".group_0661": ( + ".group_0663": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0664": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0665": ("WebhookIssuesDeleted",), + ".group_0666": ( "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", "WebhookIssuesDeletedPropIssuePropAssigneesItems", @@ -11093,8 +11152,8 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0662": ("WebhookIssuesDemilestoned",), - ".group_0663": ( + ".group_0667": ("WebhookIssuesDemilestoned",), + ".group_0668": ( "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", @@ -11109,13 +11168,13 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0664": ( + ".group_0669": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", "WebhookIssuesEditedPropChangesPropTitle", ), - ".group_0665": ( + ".group_0670": ( "WebhookIssuesEditedPropIssue", "WebhookIssuesEditedPropIssuePropAssignee", "WebhookIssuesEditedPropIssuePropAssigneesItems", @@ -11130,8 +11189,8 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0666": ("WebhookIssuesLabeled",), - ".group_0667": ( + ".group_0671": ("WebhookIssuesLabeled",), + ".group_0672": ( "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", "WebhookIssuesLabeledPropIssuePropAssigneesItems", @@ -11146,8 +11205,8 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0668": ("WebhookIssuesLocked",), - ".group_0669": ( + ".group_0673": ("WebhookIssuesLocked",), + ".group_0674": ( "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", "WebhookIssuesLockedPropIssuePropAssigneesItems", @@ -11162,8 +11221,8 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0670": ("WebhookIssuesMilestoned",), - ".group_0671": ( + ".group_0675": ("WebhookIssuesMilestoned",), + ".group_0676": ( "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", "WebhookIssuesMilestonedPropIssuePropAssigneesItems", @@ -11178,8 +11237,8 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0672": ("WebhookIssuesOpened",), - ".group_0673": ( + ".group_0677": ("WebhookIssuesOpened",), + ".group_0678": ( "WebhookIssuesOpenedPropChanges", "WebhookIssuesOpenedPropChangesPropOldRepository", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", @@ -11187,7 +11246,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0674": ( + ".group_0679": ( "WebhookIssuesOpenedPropChangesPropOldIssue", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", @@ -11202,7 +11261,7 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", ), - ".group_0675": ( + ".group_0680": ( "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", "WebhookIssuesOpenedPropIssuePropAssigneesItems", @@ -11217,9 +11276,9 @@ "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropIssuePropUser", ), - ".group_0676": ("WebhookIssuesPinned",), - ".group_0677": ("WebhookIssuesReopened",), - ".group_0678": ( + ".group_0681": ("WebhookIssuesPinned",), + ".group_0682": ("WebhookIssuesReopened",), + ".group_0683": ( "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", "WebhookIssuesReopenedPropIssuePropAssigneesItems", @@ -11234,8 +11293,8 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0679": ("WebhookIssuesTransferred",), - ".group_0680": ( + ".group_0684": ("WebhookIssuesTransferred",), + ".group_0685": ( "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewRepository", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", @@ -11243,7 +11302,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0681": ( + ".group_0686": ( "WebhookIssuesTransferredPropChangesPropNewIssue", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", @@ -11258,11 +11317,11 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ), - ".group_0682": ("WebhookIssuesTyped",), - ".group_0683": ("WebhookIssuesUnassigned",), - ".group_0684": ("WebhookIssuesUnlabeled",), - ".group_0685": ("WebhookIssuesUnlocked",), - ".group_0686": ( + ".group_0687": ("WebhookIssuesTyped",), + ".group_0688": ("WebhookIssuesUnassigned",), + ".group_0689": ("WebhookIssuesUnlabeled",), + ".group_0690": ("WebhookIssuesUnlocked",), + ".group_0691": ( "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", "WebhookIssuesUnlockedPropIssuePropAssigneesItems", @@ -11277,104 +11336,104 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0687": ("WebhookIssuesUnpinned",), - ".group_0688": ("WebhookIssuesUntyped",), - ".group_0689": ("WebhookLabelCreated",), - ".group_0690": ("WebhookLabelDeleted",), - ".group_0691": ( + ".group_0692": ("WebhookIssuesUnpinned",), + ".group_0693": ("WebhookIssuesUntyped",), + ".group_0694": ("WebhookLabelCreated",), + ".group_0695": ("WebhookLabelDeleted",), + ".group_0696": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0692": ("WebhookMarketplacePurchaseCancelled",), - ".group_0693": ( + ".group_0697": ("WebhookMarketplacePurchaseCancelled",), + ".group_0698": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0694": ( + ".group_0699": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0695": ( + ".group_0700": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0696": ("WebhookMarketplacePurchasePurchased",), - ".group_0697": ( + ".group_0701": ("WebhookMarketplacePurchasePurchased",), + ".group_0702": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0698": ( + ".group_0703": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0699": ("WebhookMemberRemoved",), - ".group_0700": ( + ".group_0704": ("WebhookMemberRemoved",), + ".group_0705": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0701": ( + ".group_0706": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0702": ("WebhookMergeGroupChecksRequested",), - ".group_0703": ("WebhookMergeGroupDestroyed",), - ".group_0704": ( + ".group_0707": ("WebhookMergeGroupChecksRequested",), + ".group_0708": ("WebhookMergeGroupDestroyed",), + ".group_0709": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0705": ("WebhookMilestoneClosed",), - ".group_0706": ("WebhookMilestoneCreated",), - ".group_0707": ("WebhookMilestoneDeleted",), - ".group_0708": ( + ".group_0710": ("WebhookMilestoneClosed",), + ".group_0711": ("WebhookMilestoneCreated",), + ".group_0712": ("WebhookMilestoneDeleted",), + ".group_0713": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0709": ("WebhookMilestoneOpened",), - ".group_0710": ("WebhookOrgBlockBlocked",), - ".group_0711": ("WebhookOrgBlockUnblocked",), - ".group_0712": ("WebhookOrganizationDeleted",), - ".group_0713": ("WebhookOrganizationMemberAdded",), - ".group_0714": ( + ".group_0714": ("WebhookMilestoneOpened",), + ".group_0715": ("WebhookOrgBlockBlocked",), + ".group_0716": ("WebhookOrgBlockUnblocked",), + ".group_0717": ("WebhookOrganizationDeleted",), + ".group_0718": ("WebhookOrganizationMemberAdded",), + ".group_0719": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0715": ("WebhookOrganizationMemberRemoved",), - ".group_0716": ( + ".group_0720": ("WebhookOrganizationMemberRemoved",), + ".group_0721": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0717": ( + ".group_0722": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0718": ("WebhookPackagePublished",), - ".group_0719": ( + ".group_0723": ("WebhookPackagePublished",), + ".group_0724": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0720": ( + ".group_0725": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -11406,13 +11465,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0721": ("WebhookPackageUpdated",), - ".group_0722": ( + ".group_0726": ("WebhookPackageUpdated",), + ".group_0727": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0723": ( + ".group_0728": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -11421,75 +11480,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0724": ( + ".group_0729": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0725": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0726": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0727": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0728": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0729": ("WebhookPing",), - ".group_0730": ( + ".group_0730": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0731": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0732": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0733": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0734": ("WebhookPing",), + ".group_0735": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0731": ("WebhookPingFormEncoded",), - ".group_0732": ( + ".group_0736": ("WebhookPingFormEncoded",), + ".group_0737": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0733": ("WebhookProjectCardCreated",), - ".group_0734": ( + ".group_0738": ("WebhookProjectCardCreated",), + ".group_0739": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0735": ( + ".group_0740": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0736": ( + ".group_0741": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0737": ( + ".group_0742": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0738": ( + ".group_0743": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0739": ("WebhookProjectClosed",), - ".group_0740": ("WebhookProjectColumnCreated",), - ".group_0741": ("WebhookProjectColumnDeleted",), - ".group_0742": ( + ".group_0744": ("WebhookProjectClosed",), + ".group_0745": ("WebhookProjectColumnCreated",), + ".group_0746": ("WebhookProjectColumnDeleted",), + ".group_0747": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0743": ("WebhookProjectColumnMoved",), - ".group_0744": ("WebhookProjectCreated",), - ".group_0745": ("WebhookProjectDeleted",), - ".group_0746": ( + ".group_0748": ("WebhookProjectColumnMoved",), + ".group_0749": ("WebhookProjectCreated",), + ".group_0750": ("WebhookProjectDeleted",), + ".group_0751": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0747": ("WebhookProjectReopened",), - ".group_0748": ("WebhookProjectsV2ProjectClosed",), - ".group_0749": ("WebhookProjectsV2ProjectCreated",), - ".group_0750": ("WebhookProjectsV2ProjectDeleted",), - ".group_0751": ( + ".group_0752": ("WebhookProjectReopened",), + ".group_0753": ("WebhookProjectsV2ProjectClosed",), + ".group_0754": ("WebhookProjectsV2ProjectCreated",), + ".group_0755": ("WebhookProjectsV2ProjectDeleted",), + ".group_0756": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -11497,15 +11556,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0752": ("WebhookProjectsV2ItemArchived",), - ".group_0753": ( + ".group_0757": ("WebhookProjectsV2ItemArchived",), + ".group_0758": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0754": ("WebhookProjectsV2ItemCreated",), - ".group_0755": ("WebhookProjectsV2ItemDeleted",), - ".group_0756": ( + ".group_0759": ("WebhookProjectsV2ItemCreated",), + ".group_0760": ("WebhookProjectsV2ItemDeleted",), + ".group_0761": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", @@ -11514,16 +11573,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0757": ( + ".group_0762": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0758": ("WebhookProjectsV2ItemRestored",), - ".group_0759": ("WebhookProjectsV2ProjectReopened",), - ".group_0760": ("WebhookProjectsV2StatusUpdateCreated",), - ".group_0761": ("WebhookProjectsV2StatusUpdateDeleted",), - ".group_0762": ( + ".group_0763": ("WebhookProjectsV2ItemRestored",), + ".group_0764": ("WebhookProjectsV2ProjectReopened",), + ".group_0765": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0766": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0767": ( "WebhookProjectsV2StatusUpdateEdited", "WebhookProjectsV2StatusUpdateEditedPropChanges", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", @@ -11531,8 +11590,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ), - ".group_0763": ("WebhookPublic",), - ".group_0764": ( + ".group_0768": ("WebhookPublic",), + ".group_0769": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -11571,7 +11630,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0765": ( + ".group_0770": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -11610,7 +11669,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0766": ( + ".group_0771": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -11649,10 +11708,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0767": ("WebhookPullRequestClosed",), - ".group_0768": ("WebhookPullRequestConvertedToDraft",), - ".group_0769": ("WebhookPullRequestDemilestoned",), - ".group_0770": ( + ".group_0772": ("WebhookPullRequestClosed",), + ".group_0773": ("WebhookPullRequestConvertedToDraft",), + ".group_0774": ("WebhookPullRequestDemilestoned",), + ".group_0775": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -11691,7 +11750,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0771": ( + ".group_0776": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -11700,7 +11759,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0772": ( + ".group_0777": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -11739,7 +11798,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0773": ( + ".group_0778": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -11778,7 +11837,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0774": ( + ".group_0779": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -11817,11 +11876,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0775": ("WebhookPullRequestMilestoned",), - ".group_0776": ("WebhookPullRequestOpened",), - ".group_0777": ("WebhookPullRequestReadyForReview",), - ".group_0778": ("WebhookPullRequestReopened",), - ".group_0779": ( + ".group_0780": ("WebhookPullRequestMilestoned",), + ".group_0781": ("WebhookPullRequestOpened",), + ".group_0782": ("WebhookPullRequestReadyForReview",), + ".group_0783": ("WebhookPullRequestReopened",), + ".group_0784": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -11866,7 +11925,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0780": ( + ".group_0785": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -11904,7 +11963,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0781": ( + ".group_0786": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -11942,7 +12001,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0782": ( + ".group_0787": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -11985,7 +12044,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0783": ( + ".group_0788": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -12025,7 +12084,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0784": ( + ".group_0789": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -12065,7 +12124,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0785": ( + ".group_0790": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -12106,7 +12165,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0786": ( + ".group_0791": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -12146,7 +12205,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0787": ( + ".group_0792": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -12187,7 +12246,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0788": ( + ".group_0793": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -12225,7 +12284,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0789": ( + ".group_0794": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -12271,7 +12330,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0790": ( + ".group_0795": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -12317,7 +12376,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0791": ( + ".group_0796": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -12356,7 +12415,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0792": ( + ".group_0797": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -12395,7 +12454,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0793": ( + ".group_0798": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -12434,7 +12493,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0794": ( + ".group_0799": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -12473,7 +12532,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0795": ( + ".group_0800": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -12488,13 +12547,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0796": ("WebhookRegistryPackagePublished",), - ".group_0797": ( + ".group_0801": ("WebhookRegistryPackagePublished",), + ".group_0802": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0798": ( + ".group_0803": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -12525,13 +12584,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0799": ("WebhookRegistryPackageUpdated",), - ".group_0800": ( + ".group_0804": ("WebhookRegistryPackageUpdated",), + ".group_0805": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0801": ( + ".group_0806": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -12540,9 +12599,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0802": ("WebhookReleaseCreated",), - ".group_0803": ("WebhookReleaseDeleted",), - ".group_0804": ( + ".group_0807": ("WebhookReleaseCreated",), + ".group_0808": ("WebhookReleaseDeleted",), + ".group_0809": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", @@ -12550,7 +12609,7 @@ "WebhookReleaseEditedPropChangesPropTagName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0805": ( + ".group_0810": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -12558,19 +12617,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0806": ("WebhookReleasePublished",), - ".group_0807": ("WebhookReleaseReleased",), - ".group_0808": ("WebhookReleaseUnpublished",), - ".group_0809": ("WebhookRepositoryAdvisoryPublished",), - ".group_0810": ("WebhookRepositoryAdvisoryReported",), - ".group_0811": ("WebhookRepositoryArchived",), - ".group_0812": ("WebhookRepositoryCreated",), - ".group_0813": ("WebhookRepositoryDeleted",), - ".group_0814": ( + ".group_0811": ("WebhookReleasePublished",), + ".group_0812": ("WebhookReleaseReleased",), + ".group_0813": ("WebhookReleaseUnpublished",), + ".group_0814": ("WebhookRepositoryAdvisoryPublished",), + ".group_0815": ("WebhookRepositoryAdvisoryReported",), + ".group_0816": ("WebhookRepositoryArchived",), + ".group_0817": ("WebhookRepositoryCreated",), + ".group_0818": ("WebhookRepositoryDeleted",), + ".group_0819": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0815": ( + ".group_0820": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -12578,25 +12637,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0816": ("WebhookRepositoryImport",), - ".group_0817": ("WebhookRepositoryPrivatized",), - ".group_0818": ("WebhookRepositoryPublicized",), - ".group_0819": ( + ".group_0821": ("WebhookRepositoryImport",), + ".group_0822": ("WebhookRepositoryPrivatized",), + ".group_0823": ("WebhookRepositoryPublicized",), + ".group_0824": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0820": ("WebhookRepositoryRulesetCreated",), - ".group_0821": ("WebhookRepositoryRulesetDeleted",), - ".group_0822": ("WebhookRepositoryRulesetEdited",), - ".group_0823": ( + ".group_0825": ("WebhookRepositoryRulesetCreated",), + ".group_0826": ("WebhookRepositoryRulesetDeleted",), + ".group_0827": ("WebhookRepositoryRulesetEdited",), + ".group_0828": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0824": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0825": ( + ".group_0829": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0830": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -12604,15 +12663,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0826": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0827": ( + ".group_0831": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0832": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0828": ( + ".group_0833": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -12620,47 +12679,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0829": ("WebhookRepositoryUnarchived",), - ".group_0830": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0831": ( + ".group_0834": ("WebhookRepositoryUnarchived",), + ".group_0835": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0836": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0832": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0833": ( + ".group_0837": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0838": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0834": ("WebhookSecretScanningAlertCreated",), - ".group_0835": ( - "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", - ), - ".group_0836": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0837": ("WebhookSecretScanningAlertPubliclyLeaked",), - ".group_0838": ("WebhookSecretScanningAlertReopened",), - ".group_0839": ("WebhookSecretScanningAlertResolved",), - ".group_0840": ("WebhookSecretScanningAlertValidated",), - ".group_0841": ("WebhookSecretScanningScanCompleted",), - ".group_0842": ("WebhookSecurityAdvisoryPublished",), - ".group_0843": ("WebhookSecurityAdvisoryUpdated",), - ".group_0844": ("WebhookSecurityAdvisoryWithdrawn",), - ".group_0845": ( + ".group_0839": ("WebhookSecretScanningAlertCreated",), + ".group_0840": ("WebhookSecretScanningAlertLocationCreated",), + ".group_0841": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0842": ("WebhookSecretScanningAlertPubliclyLeaked",), + ".group_0843": ("WebhookSecretScanningAlertReopened",), + ".group_0844": ("WebhookSecretScanningAlertResolved",), + ".group_0845": ("WebhookSecretScanningAlertValidated",), + ".group_0846": ("WebhookSecretScanningScanCompleted",), + ".group_0847": ("WebhookSecurityAdvisoryPublished",), + ".group_0848": ("WebhookSecurityAdvisoryUpdated",), + ".group_0849": ("WebhookSecurityAdvisoryWithdrawn",), + ".group_0850": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", @@ -12670,22 +12713,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0846": ("WebhookSecurityAndAnalysis",), - ".group_0847": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0848": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0849": ("WebhookSponsorshipCancelled",), - ".group_0850": ("WebhookSponsorshipCreated",), - ".group_0851": ( + ".group_0851": ("WebhookSecurityAndAnalysis",), + ".group_0852": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0853": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0854": ("WebhookSponsorshipCancelled",), + ".group_0855": ("WebhookSponsorshipCreated",), + ".group_0856": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0852": ("WebhookSponsorshipPendingCancellation",), - ".group_0853": ("WebhookSponsorshipPendingTierChange",), - ".group_0854": ("WebhookSponsorshipTierChanged",), - ".group_0855": ("WebhookStarCreated",), - ".group_0856": ("WebhookStarDeleted",), - ".group_0857": ( + ".group_0857": ("WebhookSponsorshipPendingCancellation",), + ".group_0858": ("WebhookSponsorshipPendingTierChange",), + ".group_0859": ("WebhookSponsorshipTierChanged",), + ".group_0860": ("WebhookStarCreated",), + ".group_0861": ("WebhookStarDeleted",), + ".group_0862": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -12699,16 +12742,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0858": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0859": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0860": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0861": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0862": ("WebhookSubIssuesParentIssueAdded",), - ".group_0863": ("WebhookSubIssuesParentIssueRemoved",), - ".group_0864": ("WebhookSubIssuesSubIssueAdded",), - ".group_0865": ("WebhookSubIssuesSubIssueRemoved",), - ".group_0866": ("WebhookTeamAdd",), - ".group_0867": ( + ".group_0863": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0864": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0865": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0866": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0867": ("WebhookSubIssuesParentIssueAdded",), + ".group_0868": ("WebhookSubIssuesParentIssueRemoved",), + ".group_0869": ("WebhookSubIssuesSubIssueAdded",), + ".group_0870": ("WebhookSubIssuesSubIssueRemoved",), + ".group_0871": ("WebhookTeamAdd",), + ".group_0872": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -12716,7 +12759,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0868": ( + ".group_0873": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -12724,7 +12767,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0869": ( + ".group_0874": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -12732,7 +12775,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0870": ( + ".group_0875": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -12748,7 +12791,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0871": ( + ".group_0876": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -12756,48 +12799,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0872": ("WebhookWatchStarted",), - ".group_0873": ( + ".group_0877": ("WebhookWatchStarted",), + ".group_0878": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0874": ( + ".group_0879": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0875": ( + ".group_0880": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0876": ( + ".group_0881": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0877": ( + ".group_0882": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0878": ( + ".group_0883": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0879": ( + ".group_0884": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0880": ( + ".group_0885": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0881": ( + ".group_0886": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0882": ( + ".group_0887": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -12816,7 +12859,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0883": ( + ".group_0888": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -12835,7 +12878,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0884": ( + ".group_0889": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -12854,359 +12897,370 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0885": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0886": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0887": ("AppHookConfigPatchBody",), - ".group_0888": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0889": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0890": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0891": ("ApplicationsClientIdTokenPostBody",), - ".group_0892": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0893": ("ApplicationsClientIdTokenPatchBody",), - ".group_0894": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0895": ("CredentialsRevokePostBody",), - ".group_0896": ("EmojisGetResponse200",), - ".group_0897": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",), - ".group_0898": ( + ".group_0890": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0891": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0892": ("AppHookConfigPatchBody",), + ".group_0893": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0894": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0895": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0896": ("ApplicationsClientIdTokenPostBody",), + ".group_0897": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0898": ("ApplicationsClientIdTokenPatchBody",), + ".group_0899": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0900": ("CredentialsRevokePostBody",), + ".group_0901": ("EmojisGetResponse200",), + ".group_0902": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",), + ".group_0903": ( "EnterprisesEnterpriseActionsHostedRunnersPostBody", "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", ), - ".group_0899": ( + ".group_0904": ( "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200", ), - ".group_0900": ( + ".group_0905": ( "EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200", ), - ".group_0901": ( + ".group_0906": ( "EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200", ), - ".group_0902": ( + ".group_0907": ( "EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200", ), - ".group_0903": ( + ".group_0908": ( "EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody", ), - ".group_0904": ("EnterprisesEnterpriseActionsPermissionsPutBody",), - ".group_0905": ( + ".group_0909": ("EnterprisesEnterpriseActionsPermissionsPutBody",), + ".group_0910": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200", ), - ".group_0906": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), - ".group_0907": ( + ".group_0911": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), + ".group_0912": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", "RunnerGroupsEnterprise", ), - ".group_0908": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), - ".group_0909": ( + ".group_0913": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), + ".group_0914": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody", ), - ".group_0910": ( + ".group_0915": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", ), - ".group_0911": ( + ".group_0916": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody", ), - ".group_0912": ( + ".group_0917": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0913": ( + ".group_0918": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody", ), - ".group_0914": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), - ".group_0915": ( + ".group_0919": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), + ".group_0920": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody", ), - ".group_0916": ( + ".group_0921": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201", ), - ".group_0917": ( + ".group_0922": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200", ), - ".group_0918": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), - ".group_0919": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), - ".group_0920": ( + ".group_0923": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), + ".group_0924": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), + ".group_0925": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200", ), - ".group_0921": ("EnterprisesEnterpriseAuditLogStreamsPostBody",), - ".group_0922": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",), - ".group_0923": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",), - ".group_0924": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), - ".group_0925": ( + ".group_0926": ("EnterprisesEnterpriseAuditLogStreamsPostBody",), + ".group_0927": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",), + ".group_0928": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",), + ".group_0929": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), + ".group_0930": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0926": ( + ".group_0931": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0927": ( + ".group_0932": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0928": ( + ".group_0933": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0929": ( + ".group_0934": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0930": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), - ".group_0931": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), - ".group_0932": ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",), - ".group_0933": ("EnterprisesEnterpriseNetworkConfigurationsPostBody",), - ".group_0934": ( + ".group_0935": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), + ".group_0936": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), + ".group_0937": ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200",), + ".group_0938": ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",), + ".group_0939": ("EnterprisesEnterpriseNetworkConfigurationsPostBody",), + ".group_0940": ( "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody", ), - ".group_0935": ("EnterprisesEnterprisePropertiesSchemaPatchBody",), - ".group_0936": ("EnterprisesEnterpriseRulesetsPostBody",), - ".group_0937": ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",), - ".group_0938": ( + ".group_0941": ("EnterprisesEnterprisePropertiesSchemaPatchBody",), + ".group_0942": ("EnterprisesEnterpriseRulesetsPostBody",), + ".group_0943": ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",), + ".group_0944": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", ), - ".group_0939": ( + ".group_0945": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", ), - ".group_0940": ( + ".group_0946": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", ), - ".group_0941": ( + ".group_0947": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", ), - ".group_0942": ( + ".group_0948": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0943": ( + ".group_0949": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0944": ( + ".group_0950": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0945": ("GistsGistIdCommentsPostBody",), - ".group_0946": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0947": ("GistsGistIdStarGetResponse404",), - ".group_0948": ("InstallationRepositoriesGetResponse200",), - ".group_0949": ("MarkdownPostBody",), - ".group_0950": ("NotificationsPutBody",), - ".group_0951": ("NotificationsPutResponse202",), - ".group_0952": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0953": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), - ".group_0954": ("OrgsOrgPatchBody",), - ".group_0955": ( + ".group_0951": ("GistsGistIdCommentsPostBody",), + ".group_0952": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0953": ("GistsGistIdStarGetResponse404",), + ".group_0954": ("InstallationRepositoriesGetResponse200",), + ".group_0955": ("MarkdownPostBody",), + ".group_0956": ("NotificationsPutBody",), + ".group_0957": ("NotificationsPutResponse202",), + ".group_0958": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0959": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), + ".group_0960": ("OrganizationsOrgDependabotRepositoryAccessPatchBody",), + ".group_0961": ( + "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody", + ), + ".group_0962": ("OrgsOrgPatchBody",), + ".group_0963": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0956": ("OrgsOrgActionsHostedRunnersGetResponse200",), - ".group_0957": ( + ".group_0964": ("OrgsOrgActionsHostedRunnersGetResponse200",), + ".group_0965": ( "OrgsOrgActionsHostedRunnersPostBody", "OrgsOrgActionsHostedRunnersPostBodyPropImage", ), - ".group_0958": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), - ".group_0959": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), - ".group_0960": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), - ".group_0961": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), - ".group_0962": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), - ".group_0963": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0964": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0965": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0966": ( + ".group_0966": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), + ".group_0967": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), + ".group_0968": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), + ".group_0969": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), + ".group_0970": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), + ".group_0971": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0972": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0973": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0974": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0967": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0968": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0969": ( + ".group_0975": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0976": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0977": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", ), - ".group_0970": ( + ".group_0978": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0971": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0972": ( + ".group_0979": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0980": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0973": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0974": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0975": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0976": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0977": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0978": ( + ".group_0981": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0982": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0983": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0984": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0985": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0986": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0979": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0980": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0981": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0982": ( + ".group_0987": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0988": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0989": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0990": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0983": ("OrgsOrgActionsVariablesPostBody",), - ".group_0984": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0985": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0986": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0987": ( + ".group_0991": ("OrgsOrgActionsVariablesPostBody",), + ".group_0992": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0993": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0994": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0995": ("OrgsOrgAttestationsBulkListPostBody",), + ".group_0996": ( + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", + ), + ".group_0997": ( "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0988": ( + ".group_0998": ( "OrgsOrgCampaignsPostBody", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", ), - ".group_0989": ("OrgsOrgCampaignsCampaignNumberPatchBody",), - ".group_0990": ( + ".group_0999": ("OrgsOrgCampaignsCampaignNumberPatchBody",), + ".group_1000": ( "OrgsOrgCodeSecurityConfigurationsPostBody", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0991": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), - ".group_0992": ( + ".group_1001": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_1002": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0993": ( + ".group_1003": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0994": ( + ".group_1004": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0995": ( + ".group_1005": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0996": ("OrgsOrgCodespacesGetResponse200",), - ".group_0997": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0998": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0999": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_1000": ( + ".group_1006": ("OrgsOrgCodespacesGetResponse200",), + ".group_1007": ("OrgsOrgCodespacesAccessPutBody",), + ".group_1008": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_1009": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_1010": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_1001": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_1002": ( + ".group_1011": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_1012": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_1003": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1004": ("OrgsOrgCopilotBillingSeatsGetResponse200",), - ".group_1005": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_1006": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_1007": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_1008": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_1009": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_1010": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_1011": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_1012": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_1013": ("OrgsOrgCustomRepositoryRolesGetResponse200",), - ".group_1014": ( + ".group_1013": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1014": ("OrgsOrgCopilotBillingSeatsGetResponse200",), + ".group_1015": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_1016": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_1017": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_1018": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_1019": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_1020": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_1021": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_1022": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_1023": ("OrgsOrgCustomRepositoryRolesGetResponse200",), + ".group_1024": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_1015": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_1016": ( + ".group_1025": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_1026": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_1017": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_1018": ( + ".group_1027": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_1028": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_1019": ( + ".group_1029": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_1020": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_1021": ("OrgsOrgInstallationsGetResponse200",), - ".group_1022": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_1023": ("OrgsOrgInvitationsPostBody",), - ".group_1024": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_1025": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_1026": ("OrgsOrgMigrationsPostBody",), - ".group_1027": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_1028": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_1029": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_1030": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_1031": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_1032": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_1033": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_1034": ( + ".group_1030": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_1031": ("OrgsOrgInstallationsGetResponse200",), + ".group_1032": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_1033": ("OrgsOrgInvitationsPostBody",), + ".group_1034": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_1035": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_1036": ("OrgsOrgMigrationsPostBody",), + ".group_1037": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_1038": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_1039": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_1040": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_1041": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_1042": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_1043": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_1044": ( "OrgsOrgPrivateRegistriesGetResponse200", "OrgPrivateRegistryConfiguration", ), - ".group_1035": ("OrgsOrgPrivateRegistriesPostBody",), - ".group_1036": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), - ".group_1037": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), - ".group_1038": ("OrgsOrgProjectsPostBody",), - ".group_1039": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_1040": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_1041": ( + ".group_1045": ("OrgsOrgPrivateRegistriesPostBody",), + ".group_1046": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), + ".group_1047": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), + ".group_1048": ("OrgsOrgProjectsPostBody",), + ".group_1049": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_1050": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_1051": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_1042": ("OrgsOrgRulesetsPostBody",), - ".group_1043": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_1044": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",), - ".group_1045": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), - ".group_1046": ( + ".group_1052": ("OrgsOrgRulesetsPostBody",), + ".group_1053": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_1054": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",), + ".group_1055": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), + ".group_1056": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", ), - ".group_1047": ("OrgsOrgTeamsPostBody",), - ".group_1048": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_1049": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_1050": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_1051": ( + ".group_1057": ("OrgsOrgTeamsPostBody",), + ".group_1058": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_1059": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_1060": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_1061": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_1052": ( + ".group_1062": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1053": ( + ".group_1063": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1054": ( + ".group_1064": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_1055": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), - ".group_1056": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_1057": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_1058": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_1059": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_1060": ( + ".group_1065": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), + ".group_1066": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_1067": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_1068": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_1069": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_1070": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1061": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_1062": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_1063": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_1064": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_1065": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_1066": ( + ".group_1071": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_1072": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_1073": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_1074": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_1075": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_1076": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_1067": ( + ".group_1077": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_1068": ("ProjectsColumnsColumnIdPatchBody",), - ".group_1069": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_1070": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_1071": ( + ".group_1078": ("ProjectsColumnsColumnIdPatchBody",), + ".group_1079": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_1080": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_1081": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_1072": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_1073": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_1074": ("ProjectsProjectIdDeleteResponse403",), - ".group_1075": ("ProjectsProjectIdPatchBody",), - ".group_1076": ("ProjectsProjectIdPatchResponse403",), - ".group_1077": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_1078": ("ProjectsProjectIdColumnsPostBody",), - ".group_1079": ("ReposOwnerRepoDeleteResponse403",), - ".group_1080": ( + ".group_1082": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_1083": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_1084": ("ProjectsProjectIdDeleteResponse403",), + ".group_1085": ("ProjectsProjectIdPatchBody",), + ".group_1086": ("ProjectsProjectIdPatchResponse403",), + ".group_1087": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_1088": ("ProjectsProjectIdColumnsPostBody",), + ".group_1089": ("ReposOwnerRepoDeleteResponse403",), + ".group_1090": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -13217,55 +13271,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_1081": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_1082": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_1083": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_1084": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_1085": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_1086": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_1087": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_1088": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_1089": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_1090": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_1091": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_1092": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_1093": ( + ".group_1091": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_1092": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_1093": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_1094": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_1095": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_1096": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_1097": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_1098": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_1099": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_1100": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_1101": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_1102": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_1103": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_1094": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_1095": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_1096": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_1097": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_1098": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_1099": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_1100": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_1101": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_1102": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_1103": ( + ".group_1104": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_1105": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_1106": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_1107": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_1108": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_1109": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_1110": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_1111": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_1112": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_1113": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_1104": ( + ".group_1114": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_1105": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_1106": ( + ".group_1115": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_1116": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_1107": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_1108": ( + ".group_1117": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_1118": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_1109": ("ReposOwnerRepoAutolinksPostBody",), - ".group_1110": ( + ".group_1119": ("ReposOwnerRepoAutolinksPostBody",), + ".group_1120": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -13274,368 +13328,370 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_1111": ( + ".group_1121": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_1112": ( + ".group_1122": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_1113": ( + ".group_1123": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_1114": ( + ".group_1124": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_1115": ( + ".group_1125": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_1116": ( + ".group_1126": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody", ), - ".group_1117": ( + ".group_1127": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody", ), - ".group_1118": ( + ".group_1128": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody", ), - ".group_1119": ( + ".group_1129": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_1120": ( + ".group_1130": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_1121": ( + ".group_1131": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_1122": ( + ".group_1132": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody", ), - ".group_1123": ( + ".group_1133": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody", ), - ".group_1124": ( + ".group_1134": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody", ), - ".group_1125": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_1126": ( + ".group_1135": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_1136": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody", ), - ".group_1127": ( + ".group_1137": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200", ), - ".group_1128": ( + ".group_1138": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_1129": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_1130": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_1131": ( + ".group_1139": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_1140": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_1141": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_1132": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_1133": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_1134": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_1135": ( + ".group_1142": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_1143": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_1144": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_1145": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_1136": ( + ".group_1146": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_1137": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_1138": ( + ".group_1147": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_1148": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_1139": ( + ".group_1149": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_1140": ( + ".group_1150": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_1141": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_1142": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_1143": ("ReposOwnerRepoCodespacesPostBody",), - ".group_1144": ( + ".group_1151": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_1152": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_1153": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1154": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_1145": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_1146": ( + ".group_1155": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1156": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_1147": ( + ".group_1157": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_1148": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_1149": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_1150": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1151": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1152": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1153": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1154": ( + ".group_1158": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1159": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1160": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1161": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1162": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1163": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1164": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1155": ( + ".group_1165": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1156": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1157": ( + ".group_1166": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1167": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1158": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1159": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1160": ( + ".group_1168": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1169": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1170": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1161": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1162": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1163": ( + ".group_1171": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1172": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1173": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody", ), - ".group_1164": ( + ".group_1174": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200", ), - ".group_1165": ( + ".group_1175": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1166": ( + ".group_1176": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1167": ( + ".group_1177": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1168": ( + ".group_1178": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1169": ( + ".group_1179": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1170": ( + ".group_1180": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1171": ( + ".group_1181": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1172": ( + ".group_1182": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1173": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1174": ( + ".group_1183": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1184": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1175": ("ReposOwnerRepoForksPostBody",), - ".group_1176": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1177": ( + ".group_1185": ("ReposOwnerRepoForksPostBody",), + ".group_1186": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1187": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1178": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1179": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1180": ( + ".group_1188": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1189": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1190": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1181": ( + ".group_1191": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1182": ( + ".group_1192": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1183": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1184": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1185": ("ReposOwnerRepoImportPutBody",), - ".group_1186": ("ReposOwnerRepoImportPatchBody",), - ".group_1187": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1188": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1189": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1190": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1191": ( + ".group_1193": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1194": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1195": ("ReposOwnerRepoImportPutBody",), + ".group_1196": ("ReposOwnerRepoImportPatchBody",), + ".group_1197": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1198": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1199": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1200": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1201": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1192": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1193": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1194": ( + ".group_1202": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1203": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1204": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1195": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1196": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1197": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1198": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1199": ( + ".group_1205": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1206": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1207": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1208": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1209": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1200": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1201": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1202": ( + ".group_1210": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1211": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1212": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1203": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1204": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1205": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1206": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), - ".group_1207": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), - ".group_1208": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), - ".group_1209": ("ReposOwnerRepoKeysPostBody",), - ".group_1210": ("ReposOwnerRepoLabelsPostBody",), - ".group_1211": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1212": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1213": ("ReposOwnerRepoMergesPostBody",), - ".group_1214": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1215": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1216": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1217": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1218": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1219": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1220": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1221": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1222": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1223": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1224": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1225": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1226": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1227": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1228": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1229": ("ReposOwnerRepoProjectsPostBody",), - ".group_1230": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1231": ("ReposOwnerRepoPullsPostBody",), - ".group_1232": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1233": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1234": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1235": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1236": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1237": ( + ".group_1213": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1214": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1215": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1216": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), + ".group_1217": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), + ".group_1218": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), + ".group_1219": ("ReposOwnerRepoKeysPostBody",), + ".group_1220": ("ReposOwnerRepoLabelsPostBody",), + ".group_1221": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1222": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1223": ("ReposOwnerRepoMergesPostBody",), + ".group_1224": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1225": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1226": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1227": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1228": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1229": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1230": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1231": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1232": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1233": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1234": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1235": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1236": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1237": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1238": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1239": ("ReposOwnerRepoProjectsPostBody",), + ".group_1240": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1241": ("ReposOwnerRepoPullsPostBody",), + ".group_1242": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1243": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1244": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1245": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1246": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1247": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1238": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1239": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1240": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1241": ( + ".group_1248": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1249": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1250": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1251": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1242": ( + ".group_1252": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1243": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1244": ( + ".group_1253": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1254": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1245": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1246": ( + ".group_1255": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1256": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1247": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1248": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1249": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1250": ("ReposOwnerRepoReleasesPostBody",), - ".group_1251": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1252": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1253": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1254": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1255": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1256": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1257": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1258": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), - ".group_1259": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1260": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1261": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1262": ("ReposOwnerRepoTopicsPutBody",), - ".group_1263": ("ReposOwnerRepoTransferPostBody",), - ".group_1264": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1265": ( + ".group_1257": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1258": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1259": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1260": ("ReposOwnerRepoReleasesPostBody",), + ".group_1261": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1262": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1263": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1264": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1265": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1266": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1267": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1268": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), + ".group_1269": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1270": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1271": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1272": ("ReposOwnerRepoTopicsPutBody",), + ".group_1273": ("ReposOwnerRepoTransferPostBody",), + ".group_1274": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1275": ( "ScimV2OrganizationsOrgUsersPostBody", "ScimV2OrganizationsOrgUsersPostBodyPropName", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ), - ".group_1266": ( + ".group_1276": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBody", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ), - ".group_1267": ( + ".group_1277": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", ), - ".group_1268": ("TeamsTeamIdPatchBody",), - ".group_1269": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1270": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1271": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1272": ( + ".group_1278": ("TeamsTeamIdPatchBody",), + ".group_1279": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1280": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1281": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1282": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1273": ( + ".group_1283": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1274": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1275": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1276": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1277": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1278": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1279": ( + ".group_1284": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1285": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1286": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1287": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1288": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1289": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBody", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1280": ("UserPatchBody",), - ".group_1281": ("UserCodespacesGetResponse200",), - ".group_1282": ("UserCodespacesPostBodyOneof0",), - ".group_1283": ( + ".group_1290": ("UserPatchBody",), + ".group_1291": ("UserCodespacesGetResponse200",), + ".group_1292": ("UserCodespacesPostBodyOneof0",), + ".group_1293": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1284": ( + ".group_1294": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1285": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1286": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1287": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1288": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1289": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1290": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1291": ("UserEmailVisibilityPatchBody",), - ".group_1292": ("UserEmailsPostBodyOneof0",), - ".group_1293": ("UserEmailsDeleteBodyOneof0",), - ".group_1294": ("UserGpgKeysPostBody",), - ".group_1295": ("UserInstallationsGetResponse200",), - ".group_1296": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1297": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1298": ("UserKeysPostBody",), - ".group_1299": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1300": ("UserMigrationsPostBody",), - ".group_1301": ("UserProjectsPostBody",), - ".group_1302": ("UserReposPostBody",), - ".group_1303": ("UserSocialAccountsPostBody",), - ".group_1304": ("UserSocialAccountsDeleteBody",), - ".group_1305": ("UserSshSigningKeysPostBody",), - ".group_1306": ( + ".group_1295": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1296": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1297": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1298": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1299": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1300": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1301": ("UserEmailVisibilityPatchBody",), + ".group_1302": ("UserEmailsPostBodyOneof0",), + ".group_1303": ("UserEmailsDeleteBodyOneof0",), + ".group_1304": ("UserGpgKeysPostBody",), + ".group_1305": ("UserInstallationsGetResponse200",), + ".group_1306": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1307": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1308": ("UserKeysPostBody",), + ".group_1309": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1310": ("UserMigrationsPostBody",), + ".group_1311": ("UserProjectsPostBody",), + ".group_1312": ("UserReposPostBody",), + ".group_1313": ("UserSocialAccountsPostBody",), + ".group_1314": ("UserSocialAccountsDeleteBody",), + ".group_1315": ("UserSshSigningKeysPostBody",), + ".group_1316": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",), + ".group_1317": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",), + ".group_1318": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0010.py b/githubkit/versions/ghec_v2022_11_28/models/group_0010.py index c5a0ce797..348e6f2b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0010.py @@ -48,14 +48,13 @@ class actors within GitHub. permissions: IntegrationPropPermissions = Field( description="The set of permissions for the GitHub app" ) - events: list[str] = Field(description="The list of events for the GitHub app") + events: list[str] = Field( + description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." + ) installations_count: Missing[int] = Field( default=UNSET, - description="The number of installations associated with the GitHub app", + description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", ) - client_secret: Missing[str] = Field(default=UNSET) - webhook_secret: Missing[Union[str, None]] = Field(default=UNSET) - pem: Missing[str] = Field(default=UNSET) model_rebuild(Integration) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0020.py b/githubkit/versions/ghec_v2022_11_28/models/group_0020.py index d2cd51e0b..d792fc704 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0020.py @@ -185,6 +185,10 @@ class Repository(GitHubModel): default=UNSET, description="Whether anonymous git access is enabled for this repository", ) + code_search_index_status: Missing[RepositoryPropCodeSearchIndexStatus] = Field( + default=UNSET, + description="The status of the code search index for this repository", + ) class RepositoryPropPermissions(GitHubModel): @@ -197,10 +201,22 @@ class RepositoryPropPermissions(GitHubModel): maintain: Missing[bool] = Field(default=UNSET) +class RepositoryPropCodeSearchIndexStatus(GitHubModel): + """RepositoryPropCodeSearchIndexStatus + + The status of the code search index for this repository + """ + + lexical_search_ok: Missing[bool] = Field(default=UNSET) + lexical_commit_sha: Missing[str] = Field(default=UNSET) + + model_rebuild(Repository) model_rebuild(RepositoryPropPermissions) +model_rebuild(RepositoryPropCodeSearchIndexStatus) __all__ = ( "Repository", + "RepositoryPropCodeSearchIndexStatus", "RepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0068.py b/githubkit/versions/ghec_v2022_11_28/models/group_0068.py index b645cea80..0a8d3f937 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0068.py @@ -69,9 +69,11 @@ class EnterpriseTeam(GitHubModel): id: int = Field() name: str = Field() + description: Missing[str] = Field(default=UNSET) slug: str = Field() url: str = Field() - sync_to_organizations: str = Field() + sync_to_organizations: Missing[str] = Field(default=UNSET) + organization_selection_type: Missing[str] = Field(default=UNSET) group_id: Missing[Union[str, None]] = Field(default=UNSET) group_name: Missing[Union[str, None]] = Field(default=UNSET) html_url: str = Field() diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0142.py b/githubkit/versions/ghec_v2022_11_28/models/group_0142.py index 352233482..33230057f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0142.py @@ -9,111 +9,141 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0058 import SimpleRepository +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + end_line: float = Field( + description="Line number at which the secret ends in the file" ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET + end_line: float = Field( + description="Line number at which the secret ends in the file" ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment that was optionally added when this alert was closed", + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the secret was publicly leaked." + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." ) -model_rebuild(OrganizationSecretScanningAlert) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestReview) -__all__ = ("OrganizationSecretScanningAlert",) +__all__ = ( + "SecretScanningLocationCommit", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationWikiCommit", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0143.py b/githubkit/versions/ghec_v2022_11_28/models/group_0143.py index 6546dd05e..a6d3ca865 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0143.py @@ -12,96 +12,65 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle - total_minutes_used: int = Field( - description="The sum of the free and paid GitHub Actions minutes used." - ) - total_paid_minutes_used: int = Field( - description="The total paid GitHub Actions minutes used." - ) - included_minutes: int = Field( - description="The amount of free GitHub Actions minutes available." + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." ) - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment - ubuntu: Missing[int] = Field( - default=UNSET, - alias="UBUNTU", - description="Total minutes used on Ubuntu runner machines.", - ) - macos: Missing[int] = Field( - default=UNSET, - alias="MACOS", - description="Total minutes used on macOS runner machines.", - ) - windows: Missing[int] = Field( - default=UNSET, - alias="WINDOWS", - description="Total minutes used on Windows runner machines.", - ) - ubuntu_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 4 core runner machines.", - ) - ubuntu_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 8 core runner machines.", - ) - ubuntu_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 16 core runner machines.", - ) - ubuntu_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 32 core runner machines.", - ) - ubuntu_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 64 core runner machines.", - ) - windows_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 4 core runner machines.", - ) - windows_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 8 core runner machines.", - ) - windows_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 16 core runner machines.", - ) - windows_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 32 core runner machines.", - ) - windows_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 64 core runner machines.", + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." ) - macos_12_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on macOS 12 core runner machines.", + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." ) - total: Missing[int] = Field( - default=UNSET, description="Total minutes used on all runner machines." + + +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str = Field( + description="The API URL to get the pull request review comment where the secret was detected." ) -model_rebuild(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestReviewComment) __all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", + "SecretScanningLocationIssueComment", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationPullRequestTitle", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0144.py b/githubkit/versions/ghec_v2022_11_28/models/group_0144.py index d579b5f48..a909a64f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0144.py @@ -12,50 +12,36 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class AdvancedSecurityActiveCommitters(GitHubModel): - """AdvancedSecurityActiveCommitters""" - - total_advanced_security_committers: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - maximum_advanced_security_committers: Missing[int] = Field( - default=UNSET, - description="The total number of GitHub Advanced Security licences required if all repositories were to enable GitHub Advanced Security", - ) - purchased_advanced_security_committers: Missing[int] = Field( - default=UNSET, - description="The total number of GitHub Advanced Security licences purchased", - ) - repositories: list[AdvancedSecurityActiveCommittersRepository] = Field() +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ -class AdvancedSecurityActiveCommittersRepository(GitHubModel): - """AdvancedSecurityActiveCommittersRepository""" + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) - name: str = Field() - advanced_security_committers: int = Field() - advanced_security_committers_breakdown: list[ - AdvancedSecurityActiveCommittersUser - ] = Field() +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment -class AdvancedSecurityActiveCommittersUser(GitHubModel): - """AdvancedSecurityActiveCommittersUser""" + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ - user_login: str = Field() - last_pushed_date: str = Field() - last_pushed_email: str = Field() + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." + ) -model_rebuild(AdvancedSecurityActiveCommitters) -model_rebuild(AdvancedSecurityActiveCommittersRepository) -model_rebuild(AdvancedSecurityActiveCommittersUser) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationPullRequestComment) __all__ = ( - "AdvancedSecurityActiveCommitters", - "AdvancedSecurityActiveCommittersRepository", - "AdvancedSecurityActiveCommittersUser", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0145.py b/githubkit/versions/ghec_v2022_11_28/models/group_0145.py index 085b1d2ec..f5c3a72b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0145.py @@ -9,42 +9,152 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class GetAllCostCenters(GitHubModel): - """GetAllCostCenters""" - - cost_centers: Missing[list[GetAllCostCentersPropCostCentersItems]] = Field( - default=UNSET, alias="costCenters" - ) - - -class GetAllCostCentersPropCostCentersItems(GitHubModel): - """GetAllCostCentersPropCostCentersItems""" - - id: str = Field(description="ID of the cost center.") - name: str = Field(description="Name of the cost center.") - resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() +from .group_0003 import SimpleUser +from .group_0058 import SimpleRepository +from .group_0142 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0143 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0144 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" +class OrganizationSecretScanningAlert(GitHubModel): + """OrganizationSecretScanningAlert""" - type: str = Field(description="Type of the resource.") - name: str = Field(description="Name of the resource.") + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." + ) + repository: Missing[SimpleRepository] = Field( + default=UNSET, title="Simple Repository", description="A GitHub repository." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET + ) + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment that was optionally added when this alert was closed", + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", + ) + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", + ) -model_rebuild(GetAllCostCenters) -model_rebuild(GetAllCostCentersPropCostCentersItems) -model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) +model_rebuild(OrganizationSecretScanningAlert) -__all__ = ( - "GetAllCostCenters", - "GetAllCostCentersPropCostCentersItems", - "GetAllCostCentersPropCostCentersItemsPropResourcesItems", -) +__all__ = ("OrganizationSecretScanningAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0146.py b/githubkit/versions/ghec_v2022_11_28/models/group_0146.py index b7be403af..6546dd05e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0146.py @@ -12,22 +12,96 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" - total_gigabytes_bandwidth_used: int = Field( - description="Sum of the free and paid storage space (GB) for GitHuub Packages." + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." ) - total_paid_gigabytes_bandwidth_used: int = Field( - description="Total paid storage space (GB) for GitHuub Packages." + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -model_rebuild(PackagesBillingUsage) +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" -__all__ = ("PackagesBillingUsage",) + ubuntu: Missing[int] = Field( + default=UNSET, + alias="UBUNTU", + description="Total minutes used on Ubuntu runner machines.", + ) + macos: Missing[int] = Field( + default=UNSET, + alias="MACOS", + description="Total minutes used on macOS runner machines.", + ) + windows: Missing[int] = Field( + default=UNSET, + alias="WINDOWS", + description="Total minutes used on Windows runner machines.", + ) + ubuntu_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 4 core runner machines.", + ) + ubuntu_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 8 core runner machines.", + ) + ubuntu_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 16 core runner machines.", + ) + ubuntu_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 32 core runner machines.", + ) + ubuntu_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 64 core runner machines.", + ) + windows_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 4 core runner machines.", + ) + windows_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 8 core runner machines.", + ) + windows_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 16 core runner machines.", + ) + windows_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 32 core runner machines.", + ) + windows_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 64 core runner machines.", + ) + macos_12_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on macOS 12 core runner machines.", + ) + total: Missing[int] = Field( + default=UNSET, description="Total minutes used on all runner machines." + ) + + +model_rebuild(ActionsBillingUsage) +model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) + +__all__ = ( + "ActionsBillingUsage", + "ActionsBillingUsagePropMinutesUsedBreakdown", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0147.py b/githubkit/versions/ghec_v2022_11_28/models/group_0147.py index 7f2b2b444..d579b5f48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0147.py @@ -12,22 +12,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" +class AdvancedSecurityActiveCommitters(GitHubModel): + """AdvancedSecurityActiveCommitters""" - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." + total_advanced_security_committers: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + maximum_advanced_security_committers: Missing[int] = Field( + default=UNSET, + description="The total number of GitHub Advanced Security licences required if all repositories were to enable GitHub Advanced Security", ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." - ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." + purchased_advanced_security_committers: Missing[int] = Field( + default=UNSET, + description="The total number of GitHub Advanced Security licences purchased", ) + repositories: list[AdvancedSecurityActiveCommittersRepository] = Field() + + +class AdvancedSecurityActiveCommittersRepository(GitHubModel): + """AdvancedSecurityActiveCommittersRepository""" + + name: str = Field() + advanced_security_committers: int = Field() + advanced_security_committers_breakdown: list[ + AdvancedSecurityActiveCommittersUser + ] = Field() + + +class AdvancedSecurityActiveCommittersUser(GitHubModel): + """AdvancedSecurityActiveCommittersUser""" + + user_login: str = Field() + last_pushed_date: str = Field() + last_pushed_email: str = Field() -model_rebuild(CombinedBillingUsage) +model_rebuild(AdvancedSecurityActiveCommitters) +model_rebuild(AdvancedSecurityActiveCommittersRepository) +model_rebuild(AdvancedSecurityActiveCommittersUser) -__all__ = ("CombinedBillingUsage",) +__all__ = ( + "AdvancedSecurityActiveCommitters", + "AdvancedSecurityActiveCommittersRepository", + "AdvancedSecurityActiveCommittersUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0148.py b/githubkit/versions/ghec_v2022_11_28/models/group_0148.py index 856ee3686..085b1d2ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0148.py @@ -16,48 +16,35 @@ from githubkit.utils import UNSET -class BillingUsageReport(GitHubModel): - """BillingUsageReport""" +class GetAllCostCenters(GitHubModel): + """GetAllCostCenters""" - usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" + cost_centers: Missing[list[GetAllCostCentersPropCostCentersItems]] = Field( + default=UNSET, alias="costCenters" ) -class BillingUsageReportPropUsageItemsItems(GitHubModel): - """BillingUsageReportPropUsageItemsItems""" +class GetAllCostCentersPropCostCentersItems(GitHubModel): + """GetAllCostCentersPropCostCentersItems""" - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - organization_name: str = Field( - alias="organizationName", description="Name of the organization." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) + id: str = Field(description="ID of the cost center.") + name: str = Field(description="Name of the cost center.") + resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() + + +class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + + type: str = Field(description="Type of the resource.") + name: str = Field(description="Name of the resource.") -model_rebuild(BillingUsageReport) -model_rebuild(BillingUsageReportPropUsageItemsItems) +model_rebuild(GetAllCostCenters) +model_rebuild(GetAllCostCentersPropCostCentersItems) +model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) __all__ = ( - "BillingUsageReport", - "BillingUsageReportPropUsageItemsItems", + "GetAllCostCenters", + "GetAllCostCentersPropCostCentersItems", + "GetAllCostCentersPropCostCentersItemsPropResourcesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0149.py b/githubkit/versions/ghec_v2022_11_28/models/group_0149.py index 5c7ac6985..b7be403af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0149.py @@ -9,42 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser - - -class Milestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - url: str = Field() - html_url: str = Field() - labels_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - state: Literal["open", "closed"] = Field( - default="open", description="The state of the milestone." + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." + ) + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." + ) + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." ) - title: str = Field(description="The title of the milestone.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - open_issues: int = Field() - closed_issues: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - due_on: Union[datetime, None] = Field() -model_rebuild(Milestone) +model_rebuild(PackagesBillingUsage) -__all__ = ("Milestone",) +__all__ = ("PackagesBillingUsage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0150.py b/githubkit/versions/ghec_v2022_11_28/models/group_0150.py index 699a0740c..7f2b2b444 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0150.py @@ -9,47 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class IssueType(GitHubModel): - """Issue Type - The type of issue. - """ +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - id: int = Field(description="The unique identifier of the issue type.") - node_id: str = Field(description="The node identifier of the issue type.") - name: str = Field(description="The name of the issue type.") - description: Union[str, None] = Field( - description="The description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="The color of the issue type.") - created_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type created." + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." ) - updated_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type last updated." + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." ) - is_enabled: Missing[bool] = Field( - default=UNSET, description="The enabled state of the issue type." + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." ) -model_rebuild(IssueType) +model_rebuild(CombinedBillingUsage) -__all__ = ("IssueType",) +__all__ = ("CombinedBillingUsage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0151.py b/githubkit/versions/ghec_v2022_11_28/models/group_0151.py index fd85f1373..856ee3686 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0151.py @@ -12,23 +12,52 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReactionRollup(GitHubModel): - """Reaction Rollup""" - - url: str = Field() - total_count: int = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - laugh: int = Field() - confused: int = Field() - heart: int = Field() - hooray: int = Field() - eyes: int = Field() - rocket: int = Field() - - -model_rebuild(ReactionRollup) - -__all__ = ("ReactionRollup",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class BillingUsageReport(GitHubModel): + """BillingUsageReport""" + + usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" + ) + + +class BillingUsageReportPropUsageItemsItems(GitHubModel): + """BillingUsageReportPropUsageItemsItems""" + + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." + ) + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." + ) + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." + ) + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." + ) + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." + ) + organization_name: str = Field( + alias="organizationName", description="Name of the organization." + ) + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." + ) + + +model_rebuild(BillingUsageReport) +model_rebuild(BillingUsageReportPropUsageItemsItems) + +__all__ = ( + "BillingUsageReport", + "BillingUsageReportPropUsageItemsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py index e9f6e8fc5..5c7ac6985 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py @@ -15,128 +15,36 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0149 import Milestone -from .group_0150 import IssueType -from .group_0151 import ReactionRollup -class Issue(GitHubModel): - """Issue +class Milestone(GitHubModel): + """Milestone - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. + A collection of related issues and pull requests. """ + url: str = Field() + html_url: str = Field() + labels_url: str = Field() id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue") - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - number: int = Field( - description="Number uniquely identifying the issue within its repository" - ) - state: str = Field(description="State of the issue; either 'open' or 'closed'") - state_reason: Missing[ - Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - user: Union[None, SimpleUser] = Field() - labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( - description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" - ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + state: Literal["open", "closed"] = Field( + default="open", description="The state of the milestone." + ) + title: str = Field(description="The title of the milestone.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + open_issues: int = Field() + closed_issues: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - sub_issues_summary: Missing[SubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - - -class SubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - - -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() + closed_at: Union[datetime, None] = Field() + due_on: Union[datetime, None] = Field() -model_rebuild(Issue) -model_rebuild(SubIssuesSummary) -model_rebuild(IssuePropLabelsItemsOneof1) -model_rebuild(IssuePropPullRequest) +model_rebuild(Milestone) -__all__ = ( - "Issue", - "IssuePropLabelsItemsOneof1", - "IssuePropPullRequest", - "SubIssuesSummary", -) +__all__ = ("Milestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0153.py b/githubkit/versions/ghec_v2022_11_28/models/group_0153.py index 29219f782..699a0740c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0153.py @@ -18,49 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0151 import ReactionRollup +class IssueType(GitHubModel): + """Issue Type -class IssueComment(GitHubModel): - """Issue Comment - - Comments provide a way for people to collaborate on an issue. + The type of issue. """ - id: int = Field(description="Unique identifier of the issue comment") - node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" + id: int = Field(description="The unique identifier of the issue type.") + node_id: str = Field(description="The node identifier of the issue type.") + name: str = Field(description="The name of the issue type.") + description: Union[str, None] = Field( + description="The description of the issue type." + ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="The color of the issue type.") + created_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type created." ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + updated_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type last updated." ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + is_enabled: Missing[bool] = Field( + default=UNSET, description="The enabled state of the issue type." ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(IssueComment) +model_rebuild(IssueType) -__all__ = ("IssueComment",) +__all__ = ("IssueType",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0154.py b/githubkit/versions/ghec_v2022_11_28/models/group_0154.py index c0719debe..fd85f1373 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0154.py @@ -9,95 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0152 import Issue -from .group_0153 import IssueComment - - -class EventPropPayload(GitHubModel): - """EventPropPayload""" - - action: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - comment: Missing[IssueComment] = Field( - default=UNSET, - title="Issue Comment", - description="Comments provide a way for people to collaborate on an issue.", - ) - pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) - - -class EventPropPayloadPropPagesItems(GitHubModel): - """EventPropPayloadPropPagesItems""" - - page_name: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - summary: Missing[Union[str, None]] = Field(default=UNSET) - action: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - - -class Event(GitHubModel): - """Event - - Event - """ - - id: str = Field() - type: Union[str, None] = Field() - actor: Actor = Field(title="Actor", description="Actor") - repo: EventPropRepo = Field() - org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") - payload: EventPropPayload = Field() - public: bool = Field() - created_at: Union[datetime, None] = Field() - - -class Actor(GitHubModel): - """Actor - - Actor - """ - - id: int = Field() - login: str = Field() - display_login: Missing[str] = Field(default=UNSET) - gravatar_id: Union[str, None] = Field() - url: str = Field() - avatar_url: str = Field() -class EventPropRepo(GitHubModel): - """EventPropRepo""" +class ReactionRollup(GitHubModel): + """Reaction Rollup""" - id: int = Field() - name: str = Field() url: str = Field() + total_count: int = Field() + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + laugh: int = Field() + confused: int = Field() + heart: int = Field() + hooray: int = Field() + eyes: int = Field() + rocket: int = Field() -model_rebuild(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(ReactionRollup) -__all__ = ( - "Actor", - "Event", - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "EventPropRepo", -) +__all__ = ("ReactionRollup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0155.py b/githubkit/versions/ghec_v2022_11_28/models/group_0155.py index a40a69c97..6b5d7ab15 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0155.py @@ -9,86 +9,134 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0152 import Milestone +from .group_0153 import IssueType +from .group_0154 import ReactionRollup -class Feed(GitHubModel): - """Feed - Feed - """ +class Issue(GitHubModel): + """Issue - timeline_url: str = Field() - user_url: str = Field() - current_user_public_url: Missing[str] = Field(default=UNSET) - current_user_url: Missing[str] = Field(default=UNSET) - current_user_actor_url: Missing[str] = Field(default=UNSET) - current_user_organization_url: Missing[str] = Field(default=UNSET) - current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) - security_advisories_url: Missing[str] = Field(default=UNSET) - repository_discussions_url: Missing[str] = Field( - default=UNSET, description="A feed of discussions for a given repository." - ) - repository_discussions_category_url: Missing[str] = Field( - default=UNSET, - description="A feed of discussions for a given repository and category.", - ) - links: FeedPropLinks = Field(alias="_links") - - -class FeedPropLinks(GitHubModel): - """FeedPropLinks""" + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. + """ - timeline: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" + id: int = Field() + node_id: str = Field() + url: str = Field(description="URL for the issue") + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" ) - user: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" ) - security_advisories: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + user: Union[None, SimpleUser] = Field() + labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - current_user_public: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." ) - current_user_actor: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - current_user_organization: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) - repository_discussions: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - repository_discussions_category: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" ) -class LinkWithType(GitHubModel): - """Link With Type +class SubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - Hypermedia Link with Type - """ + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssuePropLabelsItemsOneof1(GitHubModel): + """IssuePropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + + +class IssuePropPullRequest(GitHubModel): + """IssuePropPullRequest""" - href: str = Field() - type: str = Field() + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(Issue) +model_rebuild(SubIssuesSummary) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) __all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", + "SubIssuesSummary", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0156.py b/githubkit/versions/ghec_v2022_11_28/models/group_0156.py index f2be178a2..c4ea3d8f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0156.py @@ -10,56 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0154 import ReactionRollup -class BaseGist(GitHubModel): - """Base Gist +class IssueComment(GitHubModel): + """Issue Comment - Base Gist + Comments provide a way for people to collaborate on an issue. """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() + id: int = Field(description="Unique identifier of the issue comment") node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) html_url: str = Field() - files: BaseGistPropFiles = Field() - public: bool = Field() + user: Union[None, SimpleUser] = Field() created_at: datetime = Field() updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) - - -class BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(IssueComment) -__all__ = ( - "BaseGist", - "BaseGistPropFiles", -) +__all__ = ("IssueComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0157.py b/githubkit/versions/ghec_v2022_11_28/models/group_0157.py index 825cce14c..6dafcdaa3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0157.py @@ -10,79 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0155 import Issue +from .group_0156 import IssueComment -class GistHistory(GitHubModel): - """Gist History +class EventPropPayload(GitHubModel): + """EventPropPayload""" - Gist History - """ - - user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - committed_at: Missing[datetime] = Field(default=UNSET) - change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + comment: Missing[IssueComment] = Field( + default=UNSET, + title="Issue Comment", + description="Comments provide a way for people to collaborate on an issue.", + ) + pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) -class GistHistoryPropChangeStatus(GitHubModel): - """GistHistoryPropChangeStatus""" +class EventPropPayloadPropPagesItems(GitHubModel): + """EventPropPayloadPropPagesItems""" - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) + page_name: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + summary: Missing[Union[str, None]] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -class GistSimplePropForkOf(GitHubModel): - """Gist +class Event(GitHubModel): + """Event - Gist + Event """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() - html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) + created_at: Union[datetime, None] = Field() -class GistSimplePropForkOfPropFiles(ExtraGitHubModel): - """GistSimplePropForkOfPropFiles""" +class Actor(GitHubModel): + """Actor + + Actor + """ + + id: int = Field() + login: str = Field() + display_login: Missing[str] = Field(default=UNSET) + gravatar_id: Union[str, None] = Field() + url: str = Field() + avatar_url: str = Field() + + +class EventPropRepo(GitHubModel): + """EventPropRepo""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(GistHistory) -model_rebuild(GistHistoryPropChangeStatus) -model_rebuild(GistSimplePropForkOf) -model_rebuild(GistSimplePropForkOfPropFiles) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) __all__ = ( - "GistHistory", - "GistHistoryPropChangeStatus", - "GistSimplePropForkOf", - "GistSimplePropForkOfPropFiles", + "Actor", + "Event", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "EventPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0158.py b/githubkit/versions/ghec_v2022_11_28/models/group_0158.py index 0b757b794..a40a69c97 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0158.py @@ -9,136 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0157 import GistHistory, GistSimplePropForkOf - -class GistSimple(GitHubModel): - """Gist Simple +class Feed(GitHubModel): + """Feed - Gist Simple + Feed """ - forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) - history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) - fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( - default=UNSET, title="Gist", description="Gist" + timeline_url: str = Field() + user_url: str = Field() + current_user_public_url: Missing[str] = Field(default=UNSET) + current_user_url: Missing[str] = Field(default=UNSET) + current_user_actor_url: Missing[str] = Field(default=UNSET) + current_user_organization_url: Missing[str] = Field(default=UNSET) + current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) + security_advisories_url: Missing[str] = Field(default=UNSET) + repository_discussions_url: Missing[str] = Field( + default=UNSET, description="A feed of discussions for a given repository." ) - url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - git_pull_url: Missing[str] = Field(default=UNSET) - git_push_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - files: Missing[GistSimplePropFiles] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Missing[Union[str, None]] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository_discussions_category_url: Missing[str] = Field( + default=UNSET, + description="A feed of discussions for a given repository and category.", ) - truncated: Missing[bool] = Field(default=UNSET) - - -class GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" + links: FeedPropLinks = Field(alias="_links") -class GistSimplePropForksItems(GitHubModel): - """GistSimplePropForksItems""" +class FeedPropLinks(GitHubModel): + """FeedPropLinks""" - id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[PublicUser] = Field( - default=UNSET, title="Public User", description="Public User" + timeline: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + user: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + security_advisories: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_public: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_actor: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organization: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) + repository_discussions: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + repository_discussions_category: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) -class PublicUser(GitHubModel): - """Public User +class LinkWithType(GitHubModel): + """Link With Type - Public User + Hypermedia Link with Type """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() + href: str = Field() type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[PublicUserPropPlan] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - disk_usage: Missing[int] = Field(default=UNSET) - collaborators: Missing[int] = Field(default=UNSET) - - -class PublicUserPropPlan(GitHubModel): - """PublicUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() - - -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) + + +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) __all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", + "Feed", + "FeedPropLinks", + "LinkWithType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0159.py b/githubkit/versions/ghec_v2022_11_28/models/group_0159.py index 429704889..f2be178a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0159.py @@ -10,43 +10,56 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -class GistComment(GitHubModel): - """Gist Comment +class BaseGist(GitHubModel): + """Base Gist - A comment made to a gist. + Base Gist """ - id: int = Field() - node_id: str = Field() url: str = Field() - body: str = Field(max_length=65535, description="The comment text.") - user: Union[None, SimpleUser] = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: BaseGistPropFiles = Field() + public: bool = Field() created_at: datetime = Field() updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) + + +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" -model_rebuild(GistComment) +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) -__all__ = ("GistComment",) +__all__ = ( + "BaseGist", + "BaseGistPropFiles", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0160.py b/githubkit/versions/ghec_v2022_11_28/models/group_0160.py index d417526bd..825cce14c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0160.py @@ -10,42 +10,79 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -class GistCommit(GitHubModel): - """Gist Commit +class GistHistory(GitHubModel): + """Gist History - Gist Commit + Gist History """ - url: str = Field() - version: str = Field() - user: Union[None, SimpleUser] = Field() - change_status: GistCommitPropChangeStatus = Field() - committed_at: datetime = Field() + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + committed_at: Missing[datetime] = Field(default=UNSET) + change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class GistCommitPropChangeStatus(GitHubModel): - """GistCommitPropChangeStatus""" +class GistHistoryPropChangeStatus(GitHubModel): + """GistHistoryPropChangeStatus""" total: Missing[int] = Field(default=UNSET) additions: Missing[int] = Field(default=UNSET) deletions: Missing[int] = Field(default=UNSET) -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) +class GistSimplePropForkOf(GitHubModel): + """Gist + + Gist + """ + + url: str = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) + + +class GistSimplePropForkOfPropFiles(ExtraGitHubModel): + """GistSimplePropForkOfPropFiles""" + + +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) __all__ = ( - "GistCommit", - "GistCommitPropChangeStatus", + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0161.py b/githubkit/versions/ghec_v2022_11_28/models/group_0161.py index 68fca7a2b..d42ebdfa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0161.py @@ -9,21 +9,136 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0160 import GistHistory, GistSimplePropForkOf -class GitignoreTemplate(GitHubModel): - """Gitignore Template +class GistSimple(GitHubModel): + """Gist Simple - Gitignore Template + Gist Simple """ + forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) + history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) + fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( + default=UNSET, title="Gist", description="Gist" + ) + url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + git_pull_url: Missing[str] = Field(default=UNSET) + git_push_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + files: Missing[GistSimplePropFiles] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Missing[Union[str, None]] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + truncated: Missing[bool] = Field(default=UNSET) + + +class GistSimplePropFiles(ExtraGitHubModel): + """GistSimplePropFiles""" + + +class GistSimplePropForksItems(GitHubModel): + """GistSimplePropForksItems""" + + id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[PublicUser] = Field( + default=UNSET, title="Public User", description="Public User" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class PublicUser(GitHubModel): + """Public User + + Public User + """ + + login: str = Field() + id: int = Field() + user_view_type: Missing[str] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + plan: Missing[PublicUserPropPlan] = Field(default=UNSET) + private_gists: Missing[int] = Field(default=UNSET) + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + disk_usage: Missing[int] = Field(default=UNSET) + collaborators: Missing[int] = Field(default=UNSET) + + +class PublicUserPropPlan(GitHubModel): + """PublicUserPropPlan""" + + collaborators: int = Field() name: str = Field() - source: str = Field() + space: int = Field() + private_repos: int = Field() -model_rebuild(GitignoreTemplate) +model_rebuild(GistSimple) +model_rebuild(GistSimplePropFiles) +model_rebuild(GistSimplePropForksItems) +model_rebuild(PublicUser) +model_rebuild(PublicUserPropPlan) -__all__ = ("GitignoreTemplate",) +__all__ = ( + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0162.py b/githubkit/versions/ghec_v2022_11_28/models/group_0162.py index 783d62fbc..429704889 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0162.py @@ -9,34 +9,44 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class License(GitHubModel): - """License - License +class GistComment(GitHubModel): + """Gist Comment + + A comment made to a gist. """ - key: str = Field() - name: str = Field() - spdx_id: Union[str, None] = Field() - url: Union[str, None] = Field() + id: int = Field() node_id: str = Field() - html_url: str = Field() - description: str = Field() - implementation: str = Field() - permissions: list[str] = Field() - conditions: list[str] = Field() - limitations: list[str] = Field() - body: str = Field() - featured: bool = Field() - - -model_rebuild(License) - -__all__ = ("License",) + url: str = Field() + body: str = Field(max_length=65535, description="The comment text.") + user: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +model_rebuild(GistComment) + +__all__ = ("GistComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0163.py b/githubkit/versions/ghec_v2022_11_28/models/group_0163.py index f13661e40..d417526bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0163.py @@ -9,34 +9,43 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistCommit(GitHubModel): + """Gist Commit + + Gist Commit """ url: str = Field() - accounts_url: str = Field() - id: int = Field() - number: int = Field() - name: str = Field() - description: str = Field() - monthly_price_in_cents: int = Field() - yearly_price_in_cents: int = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - has_free_trial: bool = Field() - unit_name: Union[str, None] = Field() - state: str = Field() - bullets: list[str] = Field() - - -model_rebuild(MarketplaceListingPlan) - -__all__ = ("MarketplaceListingPlan",) + version: str = Field() + user: Union[None, SimpleUser] = Field() + change_status: GistCommitPropChangeStatus = Field() + committed_at: datetime = Field() + + +class GistCommitPropChangeStatus(GitHubModel): + """GistCommitPropChangeStatus""" + + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + + +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) + +__all__ = ( + "GistCommit", + "GistCommitPropChangeStatus", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0164.py b/githubkit/versions/ghec_v2022_11_28/models/group_0164.py index 451123843..68fca7a2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0164.py @@ -9,38 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0165 import ( - MarketplacePurchasePropMarketplacePendingChange, - MarketplacePurchasePropMarketplacePurchase, -) -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase +class GitignoreTemplate(GitHubModel): + """Gitignore Template - Marketplace Purchase + Gitignore Template """ - url: str = Field() - type: str = Field() - id: int = Field() - login: str = Field() - organization_billing_email: Missing[str] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - marketplace_pending_change: Missing[ - Union[MarketplacePurchasePropMarketplacePendingChange, None] - ] = Field(default=UNSET) - marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() + name: str = Field() + source: str = Field() -model_rebuild(MarketplacePurchase) +model_rebuild(GitignoreTemplate) -__all__ = ("MarketplacePurchase",) +__all__ = ("GitignoreTemplate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0165.py b/githubkit/versions/ghec_v2022_11_28/models/group_0165.py index 63ae0aded..783d62fbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0165.py @@ -14,47 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0163 import MarketplaceListingPlan - - -class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): - """MarketplacePurchasePropMarketplacePendingChange""" - - is_installed: Missing[bool] = Field(default=UNSET) - effective_date: Missing[str] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: Missing[str] = Field(default=UNSET) - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - is_installed: Missing[bool] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - on_free_trial: Missing[bool] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -model_rebuild(MarketplacePurchasePropMarketplacePendingChange) -model_rebuild(MarketplacePurchasePropMarketplacePurchase) - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChange", - "MarketplacePurchasePropMarketplacePurchase", -) + + +class License(GitHubModel): + """License + + License + """ + + key: str = Field() + name: str = Field() + spdx_id: Union[str, None] = Field() + url: Union[str, None] = Field() + node_id: str = Field() + html_url: str = Field() + description: str = Field() + implementation: str = Field() + permissions: list[str] = Field() + conditions: list[str] = Field() + limitations: list[str] = Field() + body: str = Field() + featured: bool = Field() + + +model_rebuild(License) + +__all__ = ("License",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0166.py b/githubkit/versions/ghec_v2022_11_28/models/group_0166.py index b8030b113..f13661e40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0166.py @@ -9,89 +9,34 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ApiOverview(GitHubModel): - """Api Overview +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan - Api Overview + Marketplace Listing Plan """ - verifiable_password_authentication: bool = Field() - ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( - default=UNSET - ) - ssh_keys: Missing[list[str]] = Field(default=UNSET) - hooks: Missing[list[str]] = Field(default=UNSET) - github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) - web: Missing[list[str]] = Field(default=UNSET) - api: Missing[list[str]] = Field(default=UNSET) - git: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - pages: Missing[list[str]] = Field(default=UNSET) - importer: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_macos: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - dependabot: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) - - -class ApiOverviewPropSshKeyFingerprints(GitHubModel): - """ApiOverviewPropSshKeyFingerprints""" - - sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") - sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") - sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") - sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") - - -class ApiOverviewPropDomains(GitHubModel): - """ApiOverviewPropDomains""" - - website: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( - default=UNSET - ) - artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( - Field(default=UNSET) - ) - - -class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): - """ApiOverviewPropDomainsPropActionsInbound""" - - full_domains: Missing[list[str]] = Field(default=UNSET) - wildcard_domains: Missing[list[str]] = Field(default=UNSET) - - -class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: Missing[str] = Field(default=UNSET) - services: Missing[list[str]] = Field(default=UNSET) + url: str = Field() + accounts_url: str = Field() + id: int = Field() + number: int = Field() + name: str = Field() + description: str = Field() + monthly_price_in_cents: int = Field() + yearly_price_in_cents: int = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + has_free_trial: bool = Field() + unit_name: Union[str, None] = Field() + state: str = Field() + bullets: list[str] = Field() -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) -model_rebuild(ApiOverviewPropDomainsPropActionsInbound) -model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) +model_rebuild(MarketplaceListingPlan) -__all__ = ( - "ApiOverview", - "ApiOverviewPropDomains", - "ApiOverviewPropDomainsPropActionsInbound", - "ApiOverviewPropDomainsPropArtifactAttestations", - "ApiOverviewPropSshKeyFingerprints", -) +__all__ = ("MarketplaceListingPlan",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0167.py b/githubkit/versions/ghec_v2022_11_28/models/group_0167.py index ea6c438b5..169fac073 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0167.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,109 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" - - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( - default=UNSET - ) - code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = Field( - default=UNSET, - description="Enable or disable Dependabot security updates for the repository.", - ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( - default=UNSET - ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - secret_scanning_non_provider_patterns: Missing[ - SecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field(default=UNSET) - secret_scanning_ai_detection: Missing[ - SecurityAndAnalysisPropSecretScanningAiDetection - ] = Field(default=UNSET) - secret_scanning_validity_checks: Missing[ - SecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropCodeSecurity(GitHubModel): - """SecurityAndAnalysisPropCodeSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) +from .group_0168 import ( + MarketplacePurchasePropMarketplacePendingChange, + MarketplacePurchasePropMarketplacePurchase, +) -class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): - """SecurityAndAnalysisPropDependabotSecurityUpdates +class MarketplacePurchase(GitHubModel): + """Marketplace Purchase - Enable or disable Dependabot security updates for the repository. + Marketplace Purchase """ - status: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of Dependabot security updates for the repository.", - ) - - -class SecurityAndAnalysisPropSecretScanning(GitHubModel): - """SecurityAndAnalysisPropSecretScanning""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningAiDetection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningValidityChecks(GitHubModel): - """SecurityAndAnalysisPropSecretScanningValidityChecks""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + url: str = Field() + type: str = Field() + id: int = Field() + login: str = Field() + organization_billing_email: Missing[str] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + marketplace_pending_change: Missing[ + Union[MarketplacePurchasePropMarketplacePendingChange, None] + ] = Field(default=UNSET) + marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() -model_rebuild(SecurityAndAnalysis) -model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(SecurityAndAnalysisPropCodeSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) -model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) -model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) -model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) +model_rebuild(MarketplacePurchase) -__all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropCodeSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningAiDetection", - "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "SecurityAndAnalysisPropSecretScanningPushProtection", - "SecurityAndAnalysisPropSecretScanningValidityChecks", -) +__all__ = ("MarketplacePurchase",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0168.py b/githubkit/versions/ghec_v2022_11_28/models/group_0168.py index a05e6c2a1..6e39fb11e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0168.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,155 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0167 import SecurityAndAnalysis - - -class MinimalRepository(GitHubModel): - """Minimal Repository - - Minimal Repository - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: str = Field() - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field( - default=UNSET, - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - ) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - created_at: Missing[Union[datetime, None]] = Field(default=UNSET) - updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) - permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - code_of_conduct: Missing[CodeOfConduct] = Field( - default=UNSET, title="Code Of Conduct", description="Code Of Conduct" - ) - license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( - default=UNSET, alias="license" - ) - forks: Missing[int] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET - ) - - -class CodeOfConduct(GitHubModel): - """Code Of Conduct +from .group_0166 import MarketplaceListingPlan - Code Of Conduct - """ - key: str = Field() - name: str = Field() - url: str = Field() - body: Missing[str] = Field(default=UNSET) - html_url: Union[str, None] = Field() +class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): + """MarketplacePurchasePropMarketplacePendingChange""" - -class MinimalRepositoryPropPermissions(GitHubModel): - """MinimalRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + effective_date: Missing[str] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -class MinimalRepositoryPropLicense(GitHubModel): - """MinimalRepositoryPropLicense""" +class MarketplacePurchasePropMarketplacePurchase(GitHubModel): + """MarketplacePurchasePropMarketplacePurchase""" - key: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - spdx_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + billing_cycle: Missing[str] = Field(default=UNSET) + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + on_free_trial: Missing[bool] = Field(default=UNSET) + free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -model_rebuild(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "CodeOfConduct", - "MinimalRepository", - "MinimalRepositoryPropLicense", - "MinimalRepositoryPropPermissions", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0169.py b/githubkit/versions/ghec_v2022_11_28/models/group_0169.py index f125efe1c..b8030b113 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0169.py @@ -9,47 +9,89 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0168 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Thread(GitHubModel): - """Thread +class ApiOverview(GitHubModel): + """Api Overview - Thread + Api Overview """ - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + verifiable_password_authentication: bool = Field() + ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( + default=UNSET + ) + ssh_keys: Missing[list[str]] = Field(default=UNSET) + hooks: Missing[list[str]] = Field(default=UNSET) + github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) + web: Missing[list[str]] = Field(default=UNSET) + api: Missing[list[str]] = Field(default=UNSET) + git: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + pages: Missing[list[str]] = Field(default=UNSET) + importer: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_macos: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + dependabot: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) + + +class ApiOverviewPropSshKeyFingerprints(GitHubModel): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") + sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") + sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") + sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") + + +class ApiOverviewPropDomains(GitHubModel): + """ApiOverviewPropDomains""" + + website: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( + default=UNSET + ) + artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( + Field(default=UNSET) ) - subject: ThreadPropSubject = Field() - reason: str = Field() - unread: bool = Field() - updated_at: str = Field() - last_read_at: Union[str, None] = Field() - url: str = Field() - subscription_url: str = Field() -class ThreadPropSubject(GitHubModel): - """ThreadPropSubject""" +class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): + """ApiOverviewPropDomainsPropActionsInbound""" + + full_domains: Missing[list[str]] = Field(default=UNSET) + wildcard_domains: Missing[list[str]] = Field(default=UNSET) + + +class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): + """ApiOverviewPropDomainsPropArtifactAttestations""" - title: str = Field() - url: str = Field() - latest_comment_url: str = Field() - type: str = Field() + trust_domain: Missing[str] = Field(default=UNSET) + services: Missing[list[str]] = Field(default=UNSET) -model_rebuild(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) +model_rebuild(ApiOverviewPropDomainsPropActionsInbound) +model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) __all__ = ( - "Thread", - "ThreadPropSubject", + "ApiOverview", + "ApiOverviewPropDomains", + "ApiOverviewPropDomainsPropActionsInbound", + "ApiOverviewPropDomainsPropArtifactAttestations", + "ApiOverviewPropSshKeyFingerprints", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0170.py b/githubkit/versions/ghec_v2022_11_28/models/group_0170.py index 3f78547c4..ea6c438b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0170.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0170.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -19,21 +18,108 @@ from githubkit.utils import UNSET -class ThreadSubscription(GitHubModel): - """Thread Subscription +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" - Thread Subscription + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + default=UNSET + ) + code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( + default=UNSET, + description="Enable or disable Dependabot security updates for the repository.", + ) + secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + default=UNSET + ) + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + secret_scanning_ai_detection: Missing[ + SecurityAndAnalysisPropSecretScanningAiDetection + ] = Field(default=UNSET) + secret_scanning_validity_checks: Missing[ + SecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropCodeSecurity(GitHubModel): + """SecurityAndAnalysisPropCodeSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - subscribed: bool = Field() - ignored: bool = Field() - reason: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - url: str = Field() - thread_url: Missing[str] = Field(default=UNSET) - repository_url: Missing[str] = Field(default=UNSET) + status: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of Dependabot security updates for the repository.", + ) + + +class SecurityAndAnalysisPropSecretScanning(GitHubModel): + """SecurityAndAnalysisPropSecretScanning""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningAiDetection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningValidityChecks(GitHubModel): + """SecurityAndAnalysisPropSecretScanningValidityChecks""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -model_rebuild(ThreadSubscription) +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropCodeSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) +model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) +model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) -__all__ = ("ThreadSubscription",) +__all__ = ( + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropCodeSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningAiDetection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningValidityChecks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0171.py b/githubkit/versions/ghec_v2022_11_28/models/group_0171.py index 15376e3fa..0cd634e0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0171.py @@ -10,40 +10,178 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0170 import SecurityAndAnalysis -class OrganizationCustomRepositoryRole(GitHubModel): - """Organization Custom Repository Role +class MinimalRepository(GitHubModel): + """Minimal Repository - Custom repository roles created by organization owners + Minimal Repository """ - id: int = Field(description="The unique identifier of the custom role.") - name: str = Field(description="The name of the custom role.") - description: Missing[Union[str, None]] = Field( + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: str = Field() + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field( default=UNSET, - description="A short description about who this role is for or what permissions it grants.", + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", ) - base_role: Literal["read", "triage", "write", "maintain"] = Field( - description="The system role from which this role inherits permissions." + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + created_at: Missing[Union[datetime, None]] = Field(default=UNSET) + updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) + permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + code_of_conduct: Missing[CodeOfConduct] = Field( + default=UNSET, title="Code Of Conduct", description="Code Of Conduct" ) - permissions: list[str] = Field( - description="A list of additional permissions included in this role." + license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( + default=UNSET, alias="license" ) - organization: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() + forks: Missing[int] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + custom_properties: Missing[MinimalRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class CodeOfConduct(GitHubModel): + """Code Of Conduct + + Code Of Conduct + """ + + key: str = Field() + name: str = Field() + url: str = Field() + body: Missing[str] = Field(default=UNSET) + html_url: Union[str, None] = Field() + + +class MinimalRepositoryPropPermissions(GitHubModel): + """MinimalRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +class MinimalRepositoryPropLicense(GitHubModel): + """MinimalRepositoryPropLicense""" + + key: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + spdx_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + + +class MinimalRepositoryPropCustomProperties(ExtraGitHubModel): + """MinimalRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -model_rebuild(OrganizationCustomRepositoryRole) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MinimalRepositoryPropCustomProperties) -__all__ = ("OrganizationCustomRepositoryRole",) +__all__ = ( + "CodeOfConduct", + "MinimalRepository", + "MinimalRepositoryPropCustomProperties", + "MinimalRepositoryPropLicense", + "MinimalRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0172.py b/githubkit/versions/ghec_v2022_11_28/models/group_0172.py index ac65c20d8..6f465f051 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0172.py @@ -9,140 +9,47 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0171 import MinimalRepository -class OrganizationFull(GitHubModel): - """Organization Full - Prevents users in the organization from using insecure methods of two-factor - authentication to fulfill a two-factor requirement. - Removes non-compliant outside collaborators from the organization and its - repositories. +class Thread(GitHubModel): + """Thread - GitHub currently defines SMS as an insecure method of two-factor authentication. - - If your users are managed by the enterprise this policy will not affect them. - The first admin account of the enterprise will still be affected. + Thread """ - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field( - default=UNSET, - description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", - ) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional URL string to display to contributors who are blocked from pushing a secret.", - ) - secret_scanning_validity_checks_enabled: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", + id: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) + subject: ThreadPropSubject = Field() + reason: str = Field() + unread: bool = Field() + updated_at: str = Field() + last_read_at: Union[str, None] = Field() + url: str = Field() + subscription_url: str = Field() -class OrganizationFullPropPlan(GitHubModel): - """OrganizationFullPropPlan""" +class ThreadPropSubject(GitHubModel): + """ThreadPropSubject""" - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + title: str = Field() + url: str = Field() + latest_comment_url: str = Field() + type: str = Field() -model_rebuild(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) __all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", + "Thread", + "ThreadPropSubject", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0173.py b/githubkit/versions/ghec_v2022_11_28/models/group_0173.py index e3255a143..3f78547c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0173.py @@ -9,22 +9,31 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization +class ThreadSubscription(GitHubModel): + """Thread Subscription - Actions OIDC Subject customization + Thread Subscription """ - include_claim_keys: list[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." - ) + subscribed: bool = Field() + ignored: bool = Field() + reason: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + url: str = Field() + thread_url: Missing[str] = Field(default=UNSET) + repository_url: Missing[str] = Field(default=UNSET) -model_rebuild(OidcCustomSub) +model_rebuild(ThreadSubscription) -__all__ = ("OidcCustomSub",) +__all__ = ("ThreadSubscription",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0174.py b/githubkit/versions/ghec_v2022_11_28/models/group_0174.py index 3efa01ac1..15376e3fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0174.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,27 +18,32 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ActionsOrganizationPermissions(GitHubModel): - """ActionsOrganizationPermissions""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - selected_repositories_url: Missing[str] = Field( +class OrganizationCustomRepositoryRole(GitHubModel): + """Organization Custom Repository Role + + Custom repository roles created by organization owners + """ + + id: int = Field(description="The unique identifier of the custom role.") + name: str = Field(description="The name of the custom role.") + description: Missing[Union[str, None]] = Field( default=UNSET, - description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", + description="A short description about who this role is for or what permissions it grants.", ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + base_role: Literal["read", "triage", "write", "maintain"] = Field( + description="The system role from which this role inherits permissions." ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + permissions: list[str] = Field( + description="A list of additional permissions included in this role." ) + organization: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ActionsOrganizationPermissions) +model_rebuild(OrganizationCustomRepositoryRole) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ("OrganizationCustomRepositoryRole",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0175.py b/githubkit/versions/ghec_v2022_11_28/models/group_0175.py index 9d8938959..e1dd3d064 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0175.py @@ -9,27 +9,33 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0058 import SimpleRepository + -class ActionsPublicKey(GitHubModel): - """ActionsPublicKey +class DependabotRepositoryAccessDetails(GitHubModel): + """Dependabot Repository Access Details - The public key used for setting Actions Secrets. + Information about repositories that Dependabot is able to access in an + organization """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + default_level: Missing[Union[None, Literal["public", "internal"]]] = Field( + default=UNSET, + description="The default repository access level for Dependabot updates.", + ) + accessible_repositories: Missing[list[Union[None, SimpleRepository]]] = Field( + default=UNSET + ) -model_rebuild(ActionsPublicKey) +model_rebuild(DependabotRepositoryAccessDetails) -__all__ = ("ActionsPublicKey",) +__all__ = ("DependabotRepositoryAccessDetails",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0176.py b/githubkit/versions/ghec_v2022_11_28/models/group_0176.py index cc195d21c..0160f55d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0176.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,143 +18,143 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0053 import BypassResponse +class OrganizationFull(GitHubModel): + """Organization Full -class SecretScanningBypassRequest(GitHubModel): - """Secret scanning bypass request + Prevents users in the organization from using insecure methods of two-factor + authentication to fulfill a two-factor requirement. + Removes non-compliant outside collaborators from the organization and its + repositories. - A bypass request made by a user asking to be exempted from push protection in - this repository. + GitHub currently defines SMS as an insecure method of two-factor authentication. + + If your users are managed by the enterprise this policy will not affect them. + The first admin account of the enterprise will still be affected. """ - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the bypass request." - ) - number: Missing[int] = Field( + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field( default=UNSET, - description="The number uniquely identifying the bypass request within its repository.", - ) - repository: Missing[SecretScanningBypassRequestPropRepository] = Field( - default=UNSET, description="The repository the bypass request is for." + description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", ) - organization: Missing[SecretScanningBypassRequestPropOrganization] = Field( + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + default_repository_branch: Missing[Union[str, None]] = Field( default=UNSET, - description="The organization associated with the repository the bypass request is for.", - ) - requester: Missing[SecretScanningBypassRequestPropRequester] = Field( - default=UNSET, description="The user who requested the bypass." - ) - request_type: Missing[str] = Field( - default=UNSET, description="The type of request." - ) - data: Missing[Union[list[SecretScanningBypassRequestPropDataItems], None]] = Field( + description="The default branch for repositories created in this organization.", + ) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_delete_repositories: Missing[bool] = Field(default=UNSET) + members_can_change_repo_visibility: Missing[bool] = Field(default=UNSET) + members_can_invite_outside_collaborators: Missing[bool] = Field(default=UNSET) + members_can_delete_issues: Missing[bool] = Field(default=UNSET) + display_commenter_full_name_setting_enabled: Missing[bool] = Field(default=UNSET) + readers_can_create_discussions: Missing[bool] = Field(default=UNSET) + members_can_create_teams: Missing[bool] = Field(default=UNSET) + members_can_view_dependency_insights: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="Data describing the push rules that are being requested to be bypassed.", + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - resource_identifier: Missing[str] = Field( + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="The unique identifier for the request type of the bypass request. For example, a commit SHA.", + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - status: Missing[ - Literal[ - "pending", "denied", "approved", "cancelled", "completed", "expired", "open" - ] - ] = Field(default=UNSET, description="The status of the bypass request.") - requester_comment: Missing[Union[str, None]] = Field( + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="The comment the requester provided when creating the bypass request.", - ) - expires_at: Missing[datetime] = Field( - default=UNSET, description="The date and time the bypass request will expire." - ) - created_at: Missing[datetime] = Field( - default=UNSET, description="The date and time the bypass request was created." - ) - responses: Missing[Union[list[BypassResponse], None]] = Field( - default=UNSET, description="The responses to the bypass request." + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field( - default=UNSET, description="The URL to view the bypass request in a browser." + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - - -class SecretScanningBypassRequestPropRepository(GitHubModel): - """SecretScanningBypassRequestPropRepository - - The repository the bypass request is for. - """ - - id: Missing[int] = Field( - default=UNSET, description="The ID of the repository the bypass request is for." + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - name: Missing[str] = Field( + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="The name of the repository the bypass request is for.", + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - full_name: Missing[str] = Field( + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( default=UNSET, - description="The full name of the repository the bypass request is for.", + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", ) - - -class SecretScanningBypassRequestPropOrganization(GitHubModel): - """SecretScanningBypassRequestPropOrganization - - The organization associated with the repository the bypass request is for. - """ - - id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") - name: Missing[str] = Field( - default=UNSET, description="The name of the organization." + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional URL string to display to contributors who are blocked from pushing a secret.", ) - - -class SecretScanningBypassRequestPropRequester(GitHubModel): - """SecretScanningBypassRequestPropRequester - - The user who requested the bypass. - """ - - actor_id: Missing[int] = Field( - default=UNSET, description="The ID of the GitHub user who requested the bypass." + secret_scanning_validity_checks_enabled: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", ) - actor_name: Missing[str] = Field( + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + deploy_keys_enabled_for_repositories: Missing[bool] = Field( default=UNSET, - description="The name of the GitHub user who requested the bypass.", + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", ) -class SecretScanningBypassRequestPropDataItems(GitHubModel): - """SecretScanningBypassRequestPropDataItems""" +class OrganizationFullPropPlan(GitHubModel): + """OrganizationFullPropPlan""" - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - bypass_reason: Missing[Literal["used_in_tests", "false_positive", "fix_later"]] = ( - Field(default=UNSET, description="The reason the bypass was requested.") - ) - path: Missing[str] = Field( - default=UNSET, - description="The path in the repo where the secret was located during the request.", - ) - branch: Missing[str] = Field( - default=UNSET, - description="The branch in the repo where the secret was located during the request.", - ) + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(SecretScanningBypassRequest) -model_rebuild(SecretScanningBypassRequestPropRepository) -model_rebuild(SecretScanningBypassRequestPropOrganization) -model_rebuild(SecretScanningBypassRequestPropRequester) -model_rebuild(SecretScanningBypassRequestPropDataItems) +model_rebuild(OrganizationFull) +model_rebuild(OrganizationFullPropPlan) __all__ = ( - "SecretScanningBypassRequest", - "SecretScanningBypassRequestPropDataItems", - "SecretScanningBypassRequestPropOrganization", - "SecretScanningBypassRequestPropRepository", - "SecretScanningBypassRequestPropRequester", + "OrganizationFull", + "OrganizationFullPropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0177.py b/githubkit/versions/ghec_v2022_11_28/models/group_0177.py index 88855a741..e3255a143 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0177.py @@ -9,71 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0067 import Team -class CampaignSummary(GitHubModel): - """Campaign summary +class OidcCustomSub(GitHubModel): + """Actions OIDC Subject customization - The campaign metadata and alert stats. + Actions OIDC Subject customization """ - number: int = Field(description="The number of the newly created campaign") - created_at: datetime = Field( - description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - name: Missing[str] = Field(default=UNSET, description="The campaign name") - description: str = Field(description="The campaign description") - managers: list[SimpleUser] = Field(description="The campaign managers") - team_managers: Missing[list[Team]] = Field( - default=UNSET, description="The campaign team managers" - ) - published_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - ends_at: datetime = Field( - description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + include_claim_keys: list[str] = Field( + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." ) - closed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", - ) - state: Literal["open", "closed"] = Field( - title="Campaign state", - description="Indicates whether a campaign is open or closed", - ) - contact_link: Union[str, None] = Field( - description="The contact link of the campaign." - ) - alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) - - -class CampaignSummaryPropAlertStats(GitHubModel): - """CampaignSummaryPropAlertStats""" - - open_count: int = Field(description="The number of open alerts") - closed_count: int = Field(description="The number of closed alerts") - in_progress_count: int = Field(description="The number of in-progress alerts") -model_rebuild(CampaignSummary) -model_rebuild(CampaignSummaryPropAlertStats) +model_rebuild(OidcCustomSub) -__all__ = ( - "CampaignSummary", - "CampaignSummaryPropAlertStats", -) +__all__ = ("OidcCustomSub",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0178.py b/githubkit/versions/ghec_v2022_11_28/models/group_0178.py index db250979c..3efa01ac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0178.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespaceMachine(GitHubModel): - """Codespace machine +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" - A description of the machine powering a codespace. - """ - - name: str = Field(description="The name of the machine.") - display_name: str = Field( - description="The display name of the machine includes cores, memory, and storage." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - operating_system: str = Field(description="The operating system of the machine.") - storage_in_bytes: int = Field( - description="How much storage is available to the codespace." + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - cpus: int = Field(description="How many cores are available to the codespace.") - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( - description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' + selected_actions_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) -model_rebuild(CodespaceMachine) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ("CodespaceMachine",) +__all__ = ("ActionsOrganizationPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0179.py b/githubkit/versions/ghec_v2022_11_28/models/group_0179.py index e30782fa1..9d8938959 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0179.py @@ -9,166 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0168 import MinimalRepository -from .group_0178 import CodespaceMachine - - -class Codespace(GitHubModel): - """Codespace - - A codespace. - """ - - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespacePropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) - last_known_stop_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", - ) - -class CodespacePropGitStatus(GitHubModel): - """CodespacePropGitStatus +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey - Details about the codespace's git repository. + The public key used for setting Actions Secrets. """ - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class CodespacePropRuntimeConstraints(GitHubModel): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(ActionsPublicKey) -__all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", -) +__all__ = ("ActionsPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0180.py b/githubkit/versions/ghec_v2022_11_28/models/group_0180.py index 1a40b558a..cc195d21c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0180.py @@ -9,27 +9,152 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0053 import BypassResponse + -class CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey +class SecretScanningBypassRequest(GitHubModel): + """Secret scanning bypass request - The public key used for setting Codespaces secrets. + A bypass request made by a user asking to be exempted from push protection in + this repository. """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the bypass request." + ) + number: Missing[int] = Field( + default=UNSET, + description="The number uniquely identifying the bypass request within its repository.", + ) + repository: Missing[SecretScanningBypassRequestPropRepository] = Field( + default=UNSET, description="The repository the bypass request is for." + ) + organization: Missing[SecretScanningBypassRequestPropOrganization] = Field( + default=UNSET, + description="The organization associated with the repository the bypass request is for.", + ) + requester: Missing[SecretScanningBypassRequestPropRequester] = Field( + default=UNSET, description="The user who requested the bypass." + ) + request_type: Missing[str] = Field( + default=UNSET, description="The type of request." + ) + data: Missing[Union[list[SecretScanningBypassRequestPropDataItems], None]] = Field( + default=UNSET, + description="Data describing the push rules that are being requested to be bypassed.", + ) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the bypass request. For example, a commit SHA.", + ) + status: Missing[ + Literal[ + "pending", "denied", "approved", "cancelled", "completed", "expired", "open" + ] + ] = Field(default=UNSET, description="The status of the bypass request.") + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the bypass request.", + ) + expires_at: Missing[datetime] = Field( + default=UNSET, description="The date and time the bypass request will expire." + ) + created_at: Missing[datetime] = Field( + default=UNSET, description="The date and time the bypass request was created." + ) + responses: Missing[Union[list[BypassResponse], None]] = Field( + default=UNSET, description="The responses to the bypass request." + ) url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the bypass request in a browser." + ) + + +class SecretScanningBypassRequestPropRepository(GitHubModel): + """SecretScanningBypassRequestPropRepository + + The repository the bypass request is for. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the repository the bypass request is for." + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the repository the bypass request is for.", + ) + full_name: Missing[str] = Field( + default=UNSET, + description="The full name of the repository the bypass request is for.", + ) + + +class SecretScanningBypassRequestPropOrganization(GitHubModel): + """SecretScanningBypassRequestPropOrganization + + The organization associated with the repository the bypass request is for. + """ + + id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") + name: Missing[str] = Field( + default=UNSET, description="The name of the organization." + ) + + +class SecretScanningBypassRequestPropRequester(GitHubModel): + """SecretScanningBypassRequestPropRequester + + The user who requested the bypass. + """ + + actor_id: Missing[int] = Field( + default=UNSET, description="The ID of the GitHub user who requested the bypass." + ) + actor_name: Missing[str] = Field( + default=UNSET, + description="The name of the GitHub user who requested the bypass.", + ) + + +class SecretScanningBypassRequestPropDataItems(GitHubModel): + """SecretScanningBypassRequestPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + bypass_reason: Missing[Literal["used_in_tests", "false_positive", "fix_later"]] = ( + Field(default=UNSET, description="The reason the bypass was requested.") + ) + path: Missing[str] = Field( + default=UNSET, + description="The path in the repo where the secret was located during the request.", + ) + branch: Missing[str] = Field( + default=UNSET, + description="The branch in the repo where the secret was located during the request.", + ) -model_rebuild(CodespacesPublicKey) +model_rebuild(SecretScanningBypassRequest) +model_rebuild(SecretScanningBypassRequestPropRepository) +model_rebuild(SecretScanningBypassRequestPropOrganization) +model_rebuild(SecretScanningBypassRequestPropRequester) +model_rebuild(SecretScanningBypassRequestPropDataItems) -__all__ = ("CodespacesPublicKey",) +__all__ = ( + "SecretScanningBypassRequest", + "SecretScanningBypassRequestPropDataItems", + "SecretScanningBypassRequestPropOrganization", + "SecretScanningBypassRequestPropRepository", + "SecretScanningBypassRequestPropRequester", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0181.py b/githubkit/versions/ghec_v2022_11_28/models/group_0181.py index 5c75bf257..88855a741 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0181.py @@ -9,85 +9,71 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0067 import Team -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. +class CampaignSummary(GitHubModel): + """Campaign summary + + The campaign metadata and alert stats. """ - seat_breakdown: CopilotOrganizationSeatBreakdown = Field( - title="Copilot Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", + number: int = Field(description="The number of the newly created campaign") + created_at: datetime = Field( + description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( - description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." + updated_at: datetime = Field( + description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing Copilot Chat in the IDE.", + name: Missing[str] = Field(default=UNSET, description="The campaign name") + description: str = Field(description="The campaign description") + managers: list[SimpleUser] = Field(description="The campaign managers") + team_managers: Missing[list[Team]] = Field( + default=UNSET, description="The campaign team managers" ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + published_at: Missing[datetime] = Field( default=UNSET, - description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", + description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing Copilot in the CLI.", + ends_at: datetime = Field( + description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - plan_type: Missing[Literal["business", "enterprise"]] = Field( + closed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", ) + state: Literal["open", "closed"] = Field( + title="Campaign state", + description="Indicates whether a campaign is open or closed", + ) + contact_link: Union[str, None] = Field( + description="The contact link of the campaign." + ) + alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) -class CopilotOrganizationSeatBreakdown(GitHubModel): - """Copilot Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ +class CampaignSummaryPropAlertStats(GitHubModel): + """CampaignSummaryPropAlertStats""" - total: Missing[int] = Field( - default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", - ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." - ) - pending_cancellation: Missing[int] = Field( - default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", - ) - pending_invitation: Missing[int] = Field( - default=UNSET, - description="The number of users who have been invited to receive a Copilot seat through this organization.", - ) - active_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", - ) - inactive_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", - ) + open_count: int = Field(description="The number of open alerts") + closed_count: int = Field(description="The number of closed alerts") + in_progress_count: int = Field(description="The number of in-progress alerts") -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotOrganizationSeatBreakdown) +model_rebuild(CampaignSummary) +model_rebuild(CampaignSummaryPropAlertStats) __all__ = ( - "CopilotOrganizationDetails", - "CopilotOrganizationSeatBreakdown", + "CampaignSummary", + "CampaignSummaryPropAlertStats", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0182.py b/githubkit/versions/ghec_v2022_11_28/models/group_0182.py index 18c7fd8c8..db250979c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0182.py @@ -9,63 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class CredentialAuthorization(GitHubModel): - """Credential Authorization +class CodespaceMachine(GitHubModel): + """Codespace machine - Credential Authorization + A description of the machine powering a codespace. """ - login: str = Field(description="User login that owns the underlying credential.") - credential_id: int = Field( - description="Unique identifier for the authorization of the credential. Use this to revoke authorization of the underlying token or key." + name: str = Field(description="The name of the machine.") + display_name: str = Field( + description="The display name of the machine includes cores, memory, and storage." ) - credential_type: str = Field( - description="Human-readable description of the credential type." + operating_system: str = Field(description="The operating system of the machine.") + storage_in_bytes: int = Field( + description="How much storage is available to the codespace." ) - token_last_eight: Missing[str] = Field( - default=UNSET, - description="Last eight characters of the credential. Only included in responses with credential_type of personal access token.", + memory_in_bytes: int = Field( + description="How much memory is available to the codespace." ) - credential_authorized_at: datetime = Field( - description="Date when the credential was authorized for use." - ) - scopes: Missing[list[str]] = Field( - default=UNSET, description="List of oauth scopes the token has been granted." - ) - fingerprint: Missing[str] = Field( - default=UNSET, - description="Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key.", - ) - credential_accessed_at: Union[datetime, None] = Field( - description="Date when the credential was last accessed. May be null if it was never accessed" - ) - authorized_credential_id: Union[int, None] = Field( - description="The ID of the underlying token that was authorized by the user. This will remain unchanged across authorizations of the token." - ) - authorized_credential_title: Missing[Union[str, None]] = Field( - default=UNSET, - description="The title given to the ssh key. This will only be present when the credential is an ssh key.", - ) - authorized_credential_note: Missing[Union[str, None]] = Field( - default=UNSET, - description="The note given to the token. This will only be present when the credential is a token.", - ) - authorized_credential_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The expiry for the token. This will only be present when the credential is a token.", + cpus: int = Field(description="How many cores are available to the codespace.") + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( + description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' ) -model_rebuild(CredentialAuthorization) +model_rebuild(CodespaceMachine) -__all__ = ("CredentialAuthorization",) +__all__ = ("CodespaceMachine",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0183.py b/githubkit/versions/ghec_v2022_11_28/models/group_0183.py index 239aec0c5..1cbc2cfc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0183.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0183.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,23 +18,157 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0171 import MinimalRepository +from .group_0182 import CodespaceMachine -class OrganizationCustomRepositoryRoleCreateSchema(GitHubModel): - """OrganizationCustomRepositoryRoleCreateSchema""" - name: str = Field(description="The name of the custom role.") - description: Missing[Union[str, None]] = Field( +class Codespace(GitHubModel): + """Codespace + + A codespace. + """ + + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespacePropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( default=UNSET, - description="A short description about who this role is for or what permissions it grants.", + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", ) - base_role: Literal["read", "triage", "write", "maintain"] = Field( - description="The system role from which this role inherits permissions." + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) - permissions: list[str] = Field( - description="A list of additional permissions included in this role." + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) + last_known_stop_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", + ) + + +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus + + Details about the codespace's git repository. + """ + + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", ) -model_rebuild(OrganizationCustomRepositoryRoleCreateSchema) +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) -__all__ = ("OrganizationCustomRepositoryRoleCreateSchema",) +__all__ = ( + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0184.py b/githubkit/versions/ghec_v2022_11_28/models/group_0184.py index e195d09e0..1a40b558a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0184.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,20 @@ from githubkit.utils import UNSET -class OrganizationCustomRepositoryRoleUpdateSchema(GitHubModel): - """OrganizationCustomRepositoryRoleUpdateSchema""" +class CodespacesPublicKey(GitHubModel): + """CodespacesPublicKey + + The public key used for setting Codespaces secrets. + """ - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, - description="A short description about who this role is for or what permissions it grants.", - ) - base_role: Missing[Literal["read", "triage", "write", "maintain"]] = Field( - default=UNSET, - description="The system role from which this role inherits permissions.", - ) - permissions: Missing[list[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) -model_rebuild(OrganizationCustomRepositoryRoleUpdateSchema) +model_rebuild(CodespacesPublicKey) -__all__ = ("OrganizationCustomRepositoryRoleUpdateSchema",) +__all__ = ("CodespacesPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0185.py b/githubkit/versions/ghec_v2022_11_28/models/group_0185.py index a7dfe2e7d..5c75bf257 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0185.py @@ -9,21 +9,85 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Organization Details + + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. + """ + + seat_breakdown: CopilotOrganizationSeatBreakdown = Field( + title="Copilot Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", + ) + public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( + description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." + ) + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot Chat in the IDE.", + ) + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", + ) + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot in the CLI.", + ) + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] = Field(description="The mode of assigning new seats.") + plan_type: Missing[Literal["business", "enterprise"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + ) -class DependabotPublicKey(GitHubModel): - """DependabotPublicKey +class CopilotOrganizationSeatBreakdown(GitHubModel): + """Copilot Seat Breakdown - The public key used for setting Dependabot Secrets. + The breakdown of Copilot Business seats for the organization. """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + total: Missing[int] = Field( + default=UNSET, + description="The total number of seats being billed for the organization as of the current billing cycle.", + ) + added_this_cycle: Missing[int] = Field( + default=UNSET, description="Seats added during the current billing cycle." + ) + pending_cancellation: Missing[int] = Field( + default=UNSET, + description="The number of seats that are pending cancellation at the end of the current billing cycle.", + ) + pending_invitation: Missing[int] = Field( + default=UNSET, + description="The number of users who have been invited to receive a Copilot seat through this organization.", + ) + active_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have used Copilot during the current billing cycle.", + ) + inactive_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have not used Copilot during the current billing cycle.", + ) -model_rebuild(DependabotPublicKey) +model_rebuild(CopilotOrganizationDetails) +model_rebuild(CopilotOrganizationSeatBreakdown) -__all__ = ("DependabotPublicKey",) +__all__ = ( + "CopilotOrganizationDetails", + "CopilotOrganizationSeatBreakdown", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0186.py b/githubkit/versions/ghec_v2022_11_28/models/group_0186.py index 6ddb5c741..18c7fd8c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0186.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,146 +18,54 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0053 import BypassResponse +class CredentialAuthorization(GitHubModel): + """Credential Authorization -class SecretScanningDismissalRequest(GitHubModel): - """Secret scanning alert dismissal request - - A dismissal request made by a user asking to close a secret scanning alert in - this repository. + Credential Authorization """ - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the dismissal request." - ) - number: Missing[int] = Field( - default=UNSET, - description="The number uniquely identifying the dismissal request within its repository.", + login: str = Field(description="User login that owns the underlying credential.") + credential_id: int = Field( + description="Unique identifier for the authorization of the credential. Use this to revoke authorization of the underlying token or key." ) - repository: Missing[SecretScanningDismissalRequestPropRepository] = Field( - default=UNSET, description="The repository the dismissal request is for." + credential_type: str = Field( + description="Human-readable description of the credential type." ) - organization: Missing[SecretScanningDismissalRequestPropOrganization] = Field( + token_last_eight: Missing[str] = Field( default=UNSET, - description="The organization associated with the repository the dismissal request is for.", + description="Last eight characters of the credential. Only included in responses with credential_type of personal access token.", ) - requester: Missing[SecretScanningDismissalRequestPropRequester] = Field( - default=UNSET, description="The user who requested the dismissal." + credential_authorized_at: datetime = Field( + description="Date when the credential was authorized for use." ) - request_type: Missing[str] = Field( - default=UNSET, description="The type of request." + scopes: Missing[list[str]] = Field( + default=UNSET, description="List of oauth scopes the token has been granted." ) - data: Missing[Union[list[SecretScanningDismissalRequestPropDataItems], None]] = ( - Field( - default=UNSET, - description="Data describing the secret alert that is being requested to be dismissed.", - ) - ) - resource_identifier: Missing[str] = Field( + fingerprint: Missing[str] = Field( default=UNSET, - description="The number of the secret scanning alert that was detected.", + description="Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key.", ) - status: Missing[ - Literal["pending", "denied", "approved", "cancelled", "expired"] - ] = Field(default=UNSET, description="The status of the dismissal request.") - requester_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the requester provided when creating the dismissal request.", + credential_accessed_at: Union[datetime, None] = Field( + description="Date when the credential was last accessed. May be null if it was never accessed" ) - expires_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the dismissal request will expire.", + authorized_credential_id: Union[int, None] = Field( + description="The ID of the underlying token that was authorized by the user. This will remain unchanged across authorizations of the token." ) - created_at: Missing[datetime] = Field( + authorized_credential_title: Missing[Union[str, None]] = Field( default=UNSET, - description="The date and time the dismissal request was created.", - ) - responses: Missing[Union[list[BypassResponse], None]] = Field( - default=UNSET, description="The responses to the dismissal request." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field( - default=UNSET, description="The URL to view the dismissal request in a browser." + description="The title given to the ssh key. This will only be present when the credential is an ssh key.", ) - - -class SecretScanningDismissalRequestPropRepository(GitHubModel): - """SecretScanningDismissalRequestPropRepository - - The repository the dismissal request is for. - """ - - id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository the dismissal request is for.", - ) - name: Missing[str] = Field( + authorized_credential_note: Missing[Union[str, None]] = Field( default=UNSET, - description="The name of the repository the dismissal request is for.", + description="The note given to the token. This will only be present when the credential is a token.", ) - full_name: Missing[str] = Field( + authorized_credential_expires_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The full name of the repository the dismissal request is for.", - ) - - -class SecretScanningDismissalRequestPropOrganization(GitHubModel): - """SecretScanningDismissalRequestPropOrganization - - The organization associated with the repository the dismissal request is for. - """ - - id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") - name: Missing[str] = Field( - default=UNSET, description="The name of the organization." - ) - - -class SecretScanningDismissalRequestPropRequester(GitHubModel): - """SecretScanningDismissalRequestPropRequester - - The user who requested the dismissal. - """ - - actor_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub user who requested the dismissal.", - ) - actor_name: Missing[str] = Field( - default=UNSET, - description="The name of the GitHub user who requested the dismissal.", - ) - - -class SecretScanningDismissalRequestPropDataItems(GitHubModel): - """SecretScanningDismissalRequestPropDataItems""" - - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - alert_number: Missing[str] = Field( - default=UNSET, - description="The number of the secret scanning alert that was detected.", - ) - reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( - Field( - default=UNSET, - description="The reason the user provided for requesting the dismissal.", - ) + description="The expiry for the token. This will only be present when the credential is a token.", ) -model_rebuild(SecretScanningDismissalRequest) -model_rebuild(SecretScanningDismissalRequestPropRepository) -model_rebuild(SecretScanningDismissalRequestPropOrganization) -model_rebuild(SecretScanningDismissalRequestPropRequester) -model_rebuild(SecretScanningDismissalRequestPropDataItems) +model_rebuild(CredentialAuthorization) -__all__ = ( - "SecretScanningDismissalRequest", - "SecretScanningDismissalRequestPropDataItems", - "SecretScanningDismissalRequestPropOrganization", - "SecretScanningDismissalRequestPropRepository", - "SecretScanningDismissalRequestPropRequester", -) +__all__ = ("CredentialAuthorization",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0187.py b/githubkit/versions/ghec_v2022_11_28/models/group_0187.py index 12d38b931..239aec0c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0187.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,31 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0168 import MinimalRepository +class OrganizationCustomRepositoryRoleCreateSchema(GitHubModel): + """OrganizationCustomRepositoryRoleCreateSchema""" -class Package(GitHubModel): - """Package + name: str = Field(description="The name of the custom role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", + ) + base_role: Literal["read", "triage", "write", "maintain"] = Field( + description="The system role from which this role inherits permissions." + ) + permissions: list[str] = Field( + description="A list of additional permissions included in this role." + ) - A software package - """ - id: int = Field(description="Unique identifier of the package.") - name: str = Field(description="The name of the package.") - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - url: str = Field() - html_url: str = Field() - version_count: int = Field(description="The number of versions of the package.") - visibility: Literal["private", "public"] = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() +model_rebuild(OrganizationCustomRepositoryRoleCreateSchema) - -model_rebuild(Package) - -__all__ = ("Package",) +__all__ = ("OrganizationCustomRepositoryRoleCreateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0188.py b/githubkit/versions/ghec_v2022_11_28/models/group_0188.py index da221fb55..e195d09e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0188.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,47 +18,26 @@ from githubkit.utils import UNSET -class ExternalGroup(GitHubModel): - """ExternalGroup - - Information about an external group's usage and its members - """ +class OrganizationCustomRepositoryRoleUpdateSchema(GitHubModel): + """OrganizationCustomRepositoryRoleUpdateSchema""" - group_id: int = Field(description="The internal ID of the group") - group_name: str = Field(description="The display name for the group") - updated_at: Missing[str] = Field( - default=UNSET, description="The date when the group was last updated_at" + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." ) - teams: list[ExternalGroupPropTeamsItems] = Field( - description="An array of teams linked to this group" + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", ) - members: list[ExternalGroupPropMembersItems] = Field( - description="An array of external members linked to this group" + base_role: Missing[Literal["read", "triage", "write", "maintain"]] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", + ) + permissions: Missing[list[str]] = Field( + default=UNSET, + description="A list of additional permissions included in this role.", ) -class ExternalGroupPropTeamsItems(GitHubModel): - """ExternalGroupPropTeamsItems""" - - team_id: int = Field(description="The id for a team") - team_name: str = Field(description="The name of the team") - - -class ExternalGroupPropMembersItems(GitHubModel): - """ExternalGroupPropMembersItems""" - - member_id: int = Field(description="The internal user ID of the identity") - member_login: str = Field(description="The handle/login for the user") - member_name: str = Field(description="The user display name/profile name") - member_email: str = Field(description="An email attached to a user") - - -model_rebuild(ExternalGroup) -model_rebuild(ExternalGroupPropTeamsItems) -model_rebuild(ExternalGroupPropMembersItems) +model_rebuild(OrganizationCustomRepositoryRoleUpdateSchema) -__all__ = ( - "ExternalGroup", - "ExternalGroupPropMembersItems", - "ExternalGroupPropTeamsItems", -) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0189.py b/githubkit/versions/ghec_v2022_11_28/models/group_0189.py index 0ecffcf17..a7dfe2e7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0189.py @@ -12,34 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ExternalGroups(GitHubModel): - """ExternalGroups +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey - A list of external groups available to be connected to a team + The public key used for setting Dependabot Secrets. """ - groups: Missing[list[ExternalGroupsPropGroupsItems]] = Field( - default=UNSET, - description="An array of external groups available to be mapped to a team", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -class ExternalGroupsPropGroupsItems(GitHubModel): - """ExternalGroupsPropGroupsItems""" +model_rebuild(DependabotPublicKey) - group_id: int = Field(description="The internal ID of the group") - group_name: str = Field(description="The display name of the group") - updated_at: str = Field(description="The time of the last update for this group") - - -model_rebuild(ExternalGroups) -model_rebuild(ExternalGroupsPropGroupsItems) - -__all__ = ( - "ExternalGroups", - "ExternalGroupsPropGroupsItems", -) +__all__ = ("DependabotPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0190.py b/githubkit/versions/ghec_v2022_11_28/models/group_0190.py index a7a2456e5..6ddb5c741 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0190.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,29 +18,146 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0053 import BypassResponse -class OrganizationInvitation(GitHubModel): - """Organization Invitation +class SecretScanningDismissalRequest(GitHubModel): + """Secret scanning alert dismissal request - Organization Invitation + A dismissal request made by a user asking to close a secret scanning alert in + this repository. """ - id: int = Field() - login: Union[str, None] = Field() - email: Union[str, None] = Field() - role: str = Field() - created_at: str = Field() - failed_at: Missing[Union[str, None]] = Field(default=UNSET) - failed_reason: Missing[Union[str, None]] = Field(default=UNSET) - inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team_count: int = Field() - node_id: str = Field() - invitation_teams_url: str = Field() - invitation_source: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the dismissal request." + ) + number: Missing[int] = Field( + default=UNSET, + description="The number uniquely identifying the dismissal request within its repository.", + ) + repository: Missing[SecretScanningDismissalRequestPropRepository] = Field( + default=UNSET, description="The repository the dismissal request is for." + ) + organization: Missing[SecretScanningDismissalRequestPropOrganization] = Field( + default=UNSET, + description="The organization associated with the repository the dismissal request is for.", + ) + requester: Missing[SecretScanningDismissalRequestPropRequester] = Field( + default=UNSET, description="The user who requested the dismissal." + ) + request_type: Missing[str] = Field( + default=UNSET, description="The type of request." + ) + data: Missing[Union[list[SecretScanningDismissalRequestPropDataItems], None]] = ( + Field( + default=UNSET, + description="Data describing the secret alert that is being requested to be dismissed.", + ) + ) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The number of the secret scanning alert that was detected.", + ) + status: Missing[ + Literal["pending", "denied", "approved", "cancelled", "expired"] + ] = Field(default=UNSET, description="The status of the dismissal request.") + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the dismissal request.", + ) + expires_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the dismissal request will expire.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the dismissal request was created.", + ) + responses: Missing[Union[list[BypassResponse], None]] = Field( + default=UNSET, description="The responses to the dismissal request." + ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the dismissal request in a browser." + ) -model_rebuild(OrganizationInvitation) +class SecretScanningDismissalRequestPropRepository(GitHubModel): + """SecretScanningDismissalRequestPropRepository -__all__ = ("OrganizationInvitation",) + The repository the dismissal request is for. + """ + + id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository the dismissal request is for.", + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the repository the dismissal request is for.", + ) + full_name: Missing[str] = Field( + default=UNSET, + description="The full name of the repository the dismissal request is for.", + ) + + +class SecretScanningDismissalRequestPropOrganization(GitHubModel): + """SecretScanningDismissalRequestPropOrganization + + The organization associated with the repository the dismissal request is for. + """ + + id: Missing[int] = Field(default=UNSET, description="The ID of the organization.") + name: Missing[str] = Field( + default=UNSET, description="The name of the organization." + ) + + +class SecretScanningDismissalRequestPropRequester(GitHubModel): + """SecretScanningDismissalRequestPropRequester + + The user who requested the dismissal. + """ + + actor_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub user who requested the dismissal.", + ) + actor_name: Missing[str] = Field( + default=UNSET, + description="The name of the GitHub user who requested the dismissal.", + ) + + +class SecretScanningDismissalRequestPropDataItems(GitHubModel): + """SecretScanningDismissalRequestPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + alert_number: Missing[str] = Field( + default=UNSET, + description="The number of the secret scanning alert that was detected.", + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( + Field( + default=UNSET, + description="The reason the user provided for requesting the dismissal.", + ) + ) + + +model_rebuild(SecretScanningDismissalRequest) +model_rebuild(SecretScanningDismissalRequestPropRepository) +model_rebuild(SecretScanningDismissalRequestPropOrganization) +model_rebuild(SecretScanningDismissalRequestPropRequester) +model_rebuild(SecretScanningDismissalRequestPropDataItems) + +__all__ = ( + "SecretScanningDismissalRequest", + "SecretScanningDismissalRequestPropDataItems", + "SecretScanningDismissalRequestPropOrganization", + "SecretScanningDismissalRequestPropRepository", + "SecretScanningDismissalRequestPropRequester", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0191.py b/githubkit/versions/ghec_v2022_11_28/models/group_0191.py index 467053545..285ba762c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0191.py @@ -9,21 +9,40 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0171 import MinimalRepository -class RepositoryFineGrainedPermission(GitHubModel): - """Repository Fine-Grained Permission +class Package(GitHubModel): + """Package - A fine-grained permission that protects repository resources. + A software package """ - name: str = Field() - description: str = Field() + id: int = Field(description="Unique identifier of the package.") + name: str = Field(description="The name of the package.") + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + url: str = Field() + html_url: str = Field() + version_count: int = Field(description="The number of versions of the package.") + visibility: Literal["private", "public"] = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(RepositoryFineGrainedPermission) +model_rebuild(Package) -__all__ = ("RepositoryFineGrainedPermission",) +__all__ = ("Package",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0192.py b/githubkit/versions/ghec_v2022_11_28/models/group_0192.py index c07e88da1..da221fb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0192.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,38 +16,47 @@ from githubkit.utils import UNSET -class OrgHook(GitHubModel): - """Org Hook +class ExternalGroup(GitHubModel): + """ExternalGroup - Org Hook + Information about an external group's usage and its members """ - id: int = Field() - url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - name: str = Field() - events: list[str] = Field() - active: bool = Field() - config: OrgHookPropConfig = Field() - updated_at: datetime = Field() - created_at: datetime = Field() - type: str = Field() + group_id: int = Field(description="The internal ID of the group") + group_name: str = Field(description="The display name for the group") + updated_at: Missing[str] = Field( + default=UNSET, description="The date when the group was last updated_at" + ) + teams: list[ExternalGroupPropTeamsItems] = Field( + description="An array of teams linked to this group" + ) + members: list[ExternalGroupPropMembersItems] = Field( + description="An array of external members linked to this group" + ) + + +class ExternalGroupPropTeamsItems(GitHubModel): + """ExternalGroupPropTeamsItems""" + + team_id: int = Field(description="The id for a team") + team_name: str = Field(description="The name of the team") -class OrgHookPropConfig(GitHubModel): - """OrgHookPropConfig""" +class ExternalGroupPropMembersItems(GitHubModel): + """ExternalGroupPropMembersItems""" - url: Missing[str] = Field(default=UNSET) - insecure_ssl: Missing[str] = Field(default=UNSET) - content_type: Missing[str] = Field(default=UNSET) - secret: Missing[str] = Field(default=UNSET) + member_id: int = Field(description="The internal user ID of the identity") + member_login: str = Field(description="The handle/login for the user") + member_name: str = Field(description="The user display name/profile name") + member_email: str = Field(description="An email attached to a user") -model_rebuild(OrgHook) -model_rebuild(OrgHookPropConfig) +model_rebuild(ExternalGroup) +model_rebuild(ExternalGroupPropTeamsItems) +model_rebuild(ExternalGroupPropMembersItems) __all__ = ( - "OrgHook", - "OrgHookPropConfig", + "ExternalGroup", + "ExternalGroupPropMembersItems", + "ExternalGroupPropTeamsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0193.py b/githubkit/versions/ghec_v2022_11_28/models/group_0193.py index 0a96c6c73..0ecffcf17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0193.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0193.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,25 +16,30 @@ from githubkit.utils import UNSET -class ApiInsightsRouteStatsItems(GitHubModel): - """ApiInsightsRouteStatsItems""" +class ExternalGroups(GitHubModel): + """ExternalGroups - http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") - api_route: Missing[str] = Field( - default=UNSET, description="The API path's route template" - ) - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", - ) - rate_limited_request_count: Missing[int] = Field( + A list of external groups available to be connected to a team + """ + + groups: Missing[list[ExternalGroupsPropGroupsItems]] = Field( default=UNSET, - description="The total number of requests that were rate limited within the queried time period", + description="An array of external groups available to be mapped to a team", ) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsRouteStatsItems) +class ExternalGroupsPropGroupsItems(GitHubModel): + """ExternalGroupsPropGroupsItems""" + + group_id: int = Field(description="The internal ID of the group") + group_name: str = Field(description="The display name of the group") + updated_at: str = Field(description="The time of the last update for this group") + + +model_rebuild(ExternalGroups) +model_rebuild(ExternalGroupsPropGroupsItems) -__all__ = ("ApiInsightsRouteStatsItems",) +__all__ = ( + "ExternalGroups", + "ExternalGroupsPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0194.py b/githubkit/versions/ghec_v2022_11_28/models/group_0194.py index 4d268bc1d..a7a2456e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0194.py @@ -17,19 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ApiInsightsSubjectStatsItems(GitHubModel): - """ApiInsightsSubjectStatsItems""" - subject_type: Missing[str] = Field(default=UNSET) - subject_name: Missing[str] = Field(default=UNSET) - subject_id: Missing[int] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) +class OrganizationInvitation(GitHubModel): + """Organization Invitation + Organization Invitation + """ -model_rebuild(ApiInsightsSubjectStatsItems) + id: int = Field() + login: Union[str, None] = Field() + email: Union[str, None] = Field() + role: str = Field() + created_at: str = Field() + failed_at: Missing[Union[str, None]] = Field(default=UNSET) + failed_reason: Missing[Union[str, None]] = Field(default=UNSET) + inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team_count: int = Field() + node_id: str = Field() + invitation_teams_url: str = Field() + invitation_source: Missing[str] = Field(default=UNSET) -__all__ = ("ApiInsightsSubjectStatsItems",) + +model_rebuild(OrganizationInvitation) + +__all__ = ("OrganizationInvitation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0195.py b/githubkit/versions/ghec_v2022_11_28/models/group_0195.py index 43562dec3..467053545 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0195.py @@ -12,26 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ApiInsightsSummaryStats(GitHubModel): - """Summary Stats +class RepositoryFineGrainedPermission(GitHubModel): + """Repository Fine-Grained Permission - API Insights usage summary stats for an organization + A fine-grained permission that protects repository resources. """ - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", - ) - rate_limited_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests that were rate limited within the queried time period", - ) + name: str = Field() + description: str = Field() -model_rebuild(ApiInsightsSummaryStats) +model_rebuild(RepositoryFineGrainedPermission) -__all__ = ("ApiInsightsSummaryStats",) +__all__ = ("RepositoryFineGrainedPermission",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0196.py b/githubkit/versions/ghec_v2022_11_28/models/group_0196.py index 1e53263ef..c07e88da1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0196.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +18,38 @@ from githubkit.utils import UNSET -class ApiInsightsTimeStatsItems(GitHubModel): - """ApiInsightsTimeStatsItems""" +class OrgHook(GitHubModel): + """Org Hook + + Org Hook + """ + + id: int = Field() + url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + name: str = Field() + events: list[str] = Field() + active: bool = Field() + config: OrgHookPropConfig = Field() + updated_at: datetime = Field() + created_at: datetime = Field() + type: str = Field() + + +class OrgHookPropConfig(GitHubModel): + """OrgHookPropConfig""" - timestamp: Missing[str] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + insecure_ssl: Missing[str] = Field(default=UNSET) + content_type: Missing[str] = Field(default=UNSET) + secret: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsTimeStatsItems) +model_rebuild(OrgHook) +model_rebuild(OrgHookPropConfig) -__all__ = ("ApiInsightsTimeStatsItems",) +__all__ = ( + "OrgHook", + "OrgHookPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0197.py b/githubkit/versions/ghec_v2022_11_28/models/group_0197.py index 3b86770cc..0a96c6c73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0197.py @@ -18,20 +18,25 @@ from githubkit.utils import UNSET -class ApiInsightsUserStatsItems(GitHubModel): - """ApiInsightsUserStatsItems""" - - actor_type: Missing[str] = Field(default=UNSET) - actor_name: Missing[str] = Field(default=UNSET) - actor_id: Missing[int] = Field(default=UNSET) - integration_id: Missing[Union[int, None]] = Field(default=UNSET) - oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) +class ApiInsightsRouteStatsItems(GitHubModel): + """ApiInsightsRouteStatsItems""" + + http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") + api_route: Missing[str] = Field( + default=UNSET, description="The API path's route template" + ) + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", + ) + rate_limited_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests that were rate limited within the queried time period", + ) last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsUserStatsItems) +model_rebuild(ApiInsightsRouteStatsItems) -__all__ = ("ApiInsightsUserStatsItems",) +__all__ = ("ApiInsightsRouteStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0198.py b/githubkit/versions/ghec_v2022_11_28/models/group_0198.py index 1f7c3f84d..4d268bc1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0198.py @@ -9,27 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class InteractionLimitResponse(GitHubModel): - """Interaction Limits +class ApiInsightsSubjectStatsItems(GitHubModel): + """ApiInsightsSubjectStatsItems""" - Interaction limit settings. - """ + subject_type: Missing[str] = Field(default=UNSET) + subject_name: Missing[str] = Field(default=UNSET) + subject_id: Missing[int] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - origin: str = Field() - expires_at: datetime = Field() +model_rebuild(ApiInsightsSubjectStatsItems) -model_rebuild(InteractionLimitResponse) - -__all__ = ("InteractionLimitResponse",) +__all__ = ("ApiInsightsSubjectStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0199.py b/githubkit/versions/ghec_v2022_11_28/models/group_0199.py index 341c1cb09..43562dec3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0199.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,23 +16,22 @@ from githubkit.utils import UNSET -class InteractionLimit(GitHubModel): - """Interaction Restrictions +class ApiInsightsSummaryStats(GitHubModel): + """Summary Stats - Limit interactions to a specific type of user for a specified duration + API Insights usage summary stats for an organization """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", ) - expiry: Missing[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] = Field( + rate_limited_request_count: Missing[int] = Field( default=UNSET, - description="The duration of the interaction restriction. Default: `one_day`.", + description="The total number of requests that were rate limited within the queried time period", ) -model_rebuild(InteractionLimit) +model_rebuild(ApiInsightsSummaryStats) -__all__ = ("InteractionLimit",) +__all__ = ("ApiInsightsSummaryStats",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0200.py b/githubkit/versions/ghec_v2022_11_28/models/group_0200.py index 427838689..1e53263ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0200.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,14 @@ from githubkit.utils import UNSET -class OrganizationCreateIssueType(GitHubModel): - """OrganizationCreateIssueType""" +class ApiInsightsTimeStatsItems(GitHubModel): + """ApiInsightsTimeStatsItems""" - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") + timestamp: Missing[str] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) -model_rebuild(OrganizationCreateIssueType) +model_rebuild(ApiInsightsTimeStatsItems) -__all__ = ("OrganizationCreateIssueType",) +__all__ = ("ApiInsightsTimeStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0201.py b/githubkit/versions/ghec_v2022_11_28/models/group_0201.py index 35d9a70f4..3b86770cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0201.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,26 +18,20 @@ from githubkit.utils import UNSET -class OrganizationUpdateIssueType(GitHubModel): - """OrganizationUpdateIssueType""" +class ApiInsightsUserStatsItems(GitHubModel): + """ApiInsightsUserStatsItems""" - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") + actor_type: Missing[str] = Field(default=UNSET) + actor_name: Missing[str] = Field(default=UNSET) + actor_id: Missing[int] = Field(default=UNSET) + integration_id: Missing[Union[int, None]] = Field(default=UNSET) + oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(OrganizationUpdateIssueType) +model_rebuild(ApiInsightsUserStatsItems) -__all__ = ("OrganizationUpdateIssueType",) +__all__ = ("ApiInsightsUserStatsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0202.py b/githubkit/versions/ghec_v2022_11_28/models/group_0202.py index 930db64ef..1f7c3f84d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0202.py @@ -9,49 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0036 import OrganizationSimple +class InteractionLimitResponse(GitHubModel): + """Interaction Limits -class OrgMembership(GitHubModel): - """Org Membership - - Org Membership + Interaction limit settings. """ - url: str = Field() - state: Literal["active", "pending"] = Field( - description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." - ) - role: Literal["admin", "member", "billing_manager"] = Field( - description="The user's membership type in the organization." - ) - organization_url: str = Field() - organization: OrganizationSimple = Field( - title="Organization Simple", description="A GitHub organization." + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - user: Union[None, SimpleUser] = Field() - permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) - - -class OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" - - can_create_repository: bool = Field() + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(OrgMembership) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(InteractionLimitResponse) -__all__ = ( - "OrgMembership", - "OrgMembershipPropPermissions", -) +__all__ = ("InteractionLimitResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0203.py b/githubkit/versions/ghec_v2022_11_28/models/group_0203.py index 64aae139a..341c1cb09 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0203.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,41 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository +class InteractionLimit(GitHubModel): + """Interaction Restrictions -class Migration(GitHubModel): - """Migration - - A migration. + Limit interactions to a specific type of user for a specified duration """ - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: list[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - node_id: str = Field() - archive_url: Missing[str] = Field(default=UNSET) - exclude: Missing[list[str]] = Field( + expiry: Missing[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] = Field( default=UNSET, - description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', + description="The duration of the interaction restriction. Default: `one_day`.", ) -model_rebuild(Migration) +model_rebuild(InteractionLimit) -__all__ = ("Migration",) +__all__ = ("InteractionLimit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0204.py b/githubkit/versions/ghec_v2022_11_28/models/group_0204.py index d92a39bb6..427838689 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0204.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0204.py @@ -9,21 +9,35 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrganizationFineGrainedPermission(GitHubModel): - """Organization Fine-Grained Permission - - A fine-grained permission that protects organization resources. - """ +class OrganizationCreateIssueType(GitHubModel): + """OrganizationCreateIssueType""" - name: str = Field() - description: str = Field() + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." + ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(OrganizationFineGrainedPermission) +model_rebuild(OrganizationCreateIssueType) -__all__ = ("OrganizationFineGrainedPermission",) +__all__ = ("OrganizationCreateIssueType",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0205.py b/githubkit/versions/ghec_v2022_11_28/models/group_0205.py index c78f983ac..35d9a70f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0205.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,60 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class OrganizationUpdateIssueType(GitHubModel): + """OrganizationUpdateIssueType""" -class OrganizationRole(GitHubModel): - """Organization Role - - Organization roles - """ - - id: int = Field(description="The unique identifier of the role.") - name: str = Field(description="The name of the role.") - description: Missing[Union[str, None]] = Field( - default=UNSET, - description="A short description about who this role is for or what permissions it grants.", - ) - base_role: Missing[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] = Field( - default=UNSET, - description="The system role from which this role inherits permissions.", - ) - source: Missing[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] - ] = Field( - default=UNSET, - description='Source answers the question, "where did this role come from?"', - ) - permissions: list[str] = Field( - description="A list of permissions included in this role." + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." ) - organization: Union[None, SimpleUser] = Field() - created_at: datetime = Field(description="The date and time the role was created.") - updated_at: datetime = Field( - description="The date and time the role was last updated." - ) - - -class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of organization roles available to the organization.", - ) - roles: Missing[list[OrganizationRole]] = Field( - default=UNSET, - description="The list of organization roles available to the organization.", + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(OrganizationRole) -model_rebuild(OrgsOrgOrganizationRolesGetResponse200) +model_rebuild(OrganizationUpdateIssueType) -__all__ = ( - "OrganizationRole", - "OrgsOrgOrganizationRolesGetResponse200", -) +__all__ = ("OrganizationUpdateIssueType",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0206.py b/githubkit/versions/ghec_v2022_11_28/models/group_0206.py index 84e1c371f..930db64ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0206.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,24 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0036 import OrganizationSimple -class OrganizationCustomOrganizationRoleCreateSchema(GitHubModel): - """OrganizationCustomOrganizationRoleCreateSchema""" - name: str = Field(description="The name of the custom role.") - description: Missing[str] = Field( - default=UNSET, - description="A short description about the intended usage of this role or what permissions it grants.", +class OrgMembership(GitHubModel): + """Org Membership + + Org Membership + """ + + url: str = Field() + state: Literal["active", "pending"] = Field( + description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." ) - permissions: list[str] = Field( - description="A list of additional permissions included in this role." + role: Literal["admin", "member", "billing_manager"] = Field( + description="The user's membership type in the organization." ) - base_role: Missing[Literal["read", "triage", "write", "maintain", "admin"]] = Field( - default=UNSET, - description="The system role from which this role can inherit permissions.", + organization_url: str = Field() + organization: OrganizationSimple = Field( + title="Organization Simple", description="A GitHub organization." ) + user: Union[None, SimpleUser] = Field() + permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) + + +class OrgMembershipPropPermissions(GitHubModel): + """OrgMembershipPropPermissions""" + + can_create_repository: bool = Field() -model_rebuild(OrganizationCustomOrganizationRoleCreateSchema) +model_rebuild(OrgMembership) +model_rebuild(OrgMembershipPropPermissions) -__all__ = ("OrganizationCustomOrganizationRoleCreateSchema",) +__all__ = ( + "OrgMembership", + "OrgMembershipPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0207.py b/githubkit/versions/ghec_v2022_11_28/models/group_0207.py index c849e4005..64aae139a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0207.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,29 +18,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class OrganizationCustomOrganizationRoleUpdateSchema(GitHubModel): - """OrganizationCustomOrganizationRoleUpdateSchema""" - - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description about the intended use of this role or the permissions it grants.", - ) - permissions: Missing[list[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", +from .group_0003 import SimpleUser +from .group_0020 import Repository + + +class Migration(GitHubModel): + """Migration + + A migration. + """ + + id: int = Field() + owner: Union[None, SimpleUser] = Field() + guid: str = Field() + state: str = Field() + lock_repositories: bool = Field() + exclude_metadata: bool = Field() + exclude_git_data: bool = Field() + exclude_attachments: bool = Field() + exclude_releases: bool = Field() + exclude_owner_projects: bool = Field() + org_metadata_only: bool = Field() + repositories: list[Repository] = Field( + description="The repositories included in the migration. Only returned for export migrations." ) - base_role: Missing[ - Literal["none", "read", "triage", "write", "maintain", "admin"] - ] = Field( + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + node_id: str = Field() + archive_url: Missing[str] = Field(default=UNSET) + exclude: Missing[list[str]] = Field( default=UNSET, - description="The system role from which this role can inherit permissions.", + description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', ) -model_rebuild(OrganizationCustomOrganizationRoleUpdateSchema) +model_rebuild(Migration) -__all__ = ("OrganizationCustomOrganizationRoleUpdateSchema",) +__all__ = ("Migration",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0208.py b/githubkit/versions/ghec_v2022_11_28/models/group_0208.py index e4a21097f..d92a39bb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0208.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0208.py @@ -9,57 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0066 import TeamSimple -class TeamRoleAssignment(GitHubModel): - """A Role Assignment for a Team +class OrganizationFineGrainedPermission(GitHubModel): + """Organization Fine-Grained Permission - The Relationship a Team has with a role. + A fine-grained permission that protects organization resources. """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( - default=UNSET, - description="Determines if the team has a direct, indirect, or mixed relationship to a role", - ) - id: int = Field() - node_id: str = Field() name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() - - -class TeamRoleAssignmentPropPermissions(GitHubModel): - """TeamRoleAssignmentPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() + description: str = Field() -model_rebuild(TeamRoleAssignment) -model_rebuild(TeamRoleAssignmentPropPermissions) +model_rebuild(OrganizationFineGrainedPermission) -__all__ = ( - "TeamRoleAssignment", - "TeamRoleAssignmentPropPermissions", -) +__all__ = ("OrganizationFineGrainedPermission",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0209.py b/githubkit/versions/ghec_v2022_11_28/models/group_0209.py index 166b52c80..c78f983ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0209.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0209.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,46 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0066 import TeamSimple +from .group_0003 import SimpleUser -class UserRoleAssignment(GitHubModel): - """A Role Assignment for a User +class OrganizationRole(GitHubModel): + """Organization Role - The Relationship a User has with a role. + Organization roles """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + id: int = Field(description="The unique identifier of the role.") + name: str = Field(description="The name of the role.") + description: Missing[Union[str, None]] = Field( default=UNSET, - description="Determines if the user has a direct, indirect, or mixed relationship to a role", + description="A short description about who this role is for or what permissions it grants.", ) - inherited_from: Missing[list[TeamSimple]] = Field( - default=UNSET, description="Team the user has gotten the role through" + base_role: Missing[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", + ) + source: Missing[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] + ] = Field( + default=UNSET, + description='Source answers the question, "where did this role come from?"', + ) + permissions: list[str] = Field( + description="A list of permissions included in this role." ) - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(UserRoleAssignment) - -__all__ = ("UserRoleAssignment",) + organization: Union[None, SimpleUser] = Field() + created_at: datetime = Field(description="The date and time the role was created.") + updated_at: datetime = Field( + description="The date and time the role was last updated." + ) + + +class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): + """OrgsOrgOrganizationRolesGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization roles available to the organization.", + ) + roles: Missing[list[OrganizationRole]] = Field( + default=UNSET, + description="The list of organization roles available to the organization.", + ) + + +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) + +__all__ = ( + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0210.py b/githubkit/versions/ghec_v2022_11_28/models/group_0210.py index fe0d0f426..84e1c371f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0210.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,61 +18,23 @@ from githubkit.utils import UNSET -class PackageVersion(GitHubModel): - """Package Version +class OrganizationCustomOrganizationRoleCreateSchema(GitHubModel): + """OrganizationCustomOrganizationRoleCreateSchema""" - A version of a software package - """ - - id: int = Field(description="Unique identifier of the package version.") - name: str = Field(description="The name of the package version.") - url: str = Field() - package_html_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - description: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - metadata: Missing[PackageVersionPropMetadata] = Field( - default=UNSET, title="Package Version Metadata" + name: str = Field(description="The name of the custom role.") + description: Missing[str] = Field( + default=UNSET, + description="A short description about the intended usage of this role or what permissions it grants.", ) - - -class PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" - - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" + permissions: list[str] = Field( + description="A list of additional permissions included in this role." ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" + base_role: Missing[Literal["read", "triage", "write", "maintain", "admin"]] = Field( + default=UNSET, + description="The system role from which this role can inherit permissions.", ) -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: list[str] = Field() - - -class PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" - - tag: Missing[list[str]] = Field(default=UNSET) - - -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(OrganizationCustomOrganizationRoleCreateSchema) -__all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", -) +__all__ = ("OrganizationCustomOrganizationRoleCreateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0211.py b/githubkit/versions/ghec_v2022_11_28/models/group_0211.py index c7a2781c2..c849e4005 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0211.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0211.py @@ -9,103 +9,37 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class OrganizationCustomOrganizationRoleUpdateSchema(GitHubModel): + """OrganizationCustomOrganizationRoleUpdateSchema""" -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request - - Minimal representation of an organization programmatic access grant request for - enumerations - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." - ) - reason: Union[str, None] = Field(description="Reason for requesting access.") - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repositories_url: str = Field( - description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." - ) - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( - description="Permissions requested, categorized by type of permission." + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." ) - created_at: str = Field( - description="Date and time when the request for access was created." + description: Missing[str] = Field( + default=UNSET, + description="A short description about the intended use of this role or the permissions it grants.", ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + permissions: Missing[list[str]] = Field( + default=UNSET, + description="A list of additional permissions included in this role.", ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + base_role: Missing[ + Literal["none", "read", "triage", "write", "maintain", "admin"] + ] = Field( + default=UNSET, + description="The system role from which this role can inherit permissions.", ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther - ] = Field(default=UNSET) - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" -model_rebuild(OrganizationProgrammaticAccessGrantRequest) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) +model_rebuild(OrganizationCustomOrganizationRoleUpdateSchema) -__all__ = ( - "OrganizationProgrammaticAccessGrantRequest", - "OrganizationProgrammaticAccessGrantRequestPropPermissions", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", -) +__all__ = ("OrganizationCustomOrganizationRoleUpdateSchema",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0212.py b/githubkit/versions/ghec_v2022_11_28/models/group_0212.py index 9cc3f78de..e4a21097f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0212.py @@ -13,96 +13,53 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0066 import TeamSimple -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team - Minimal representation of an organization programmatic access grant for - enumerations + The Relationship a Team has with a role. """ - id: int = Field( - description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the team has a direct, indirect, or mixed relationship to a role", ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repositories_url: str = Field( - description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." - ) - permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( - description="Permissions requested, categorized by type of permission." - ) - access_granted_at: str = Field( - description="Date and time when the fine-grained personal access token was approved to access the organization." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( - default=UNSET - ) - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" - - -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) + id: int = Field() + node_id: str = Field() + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() + + +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" + + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() + + +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0213.py b/githubkit/versions/ghec_v2022_11_28/models/group_0213.py index e458bf37e..166b52c80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0213.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0213.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,30 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0066 import TeamSimple -class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): - """Organization private registry - Private registry configuration for an organization +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User + + The Relationship a User has with a role. """ - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[str] = Field( + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( default=UNSET, - description="The username to use when authenticating with the private registry.", - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + description="Determines if the user has a direct, indirect, or mixed relationship to a role", ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", + inherited_from: Missing[list[TeamSimple]] = Field( + default=UNSET, description="Team the user has gotten the role through" ) - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) - -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) + name: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + starred_at: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(UserRoleAssignment) + +__all__ = ("UserRoleAssignment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0214.py b/githubkit/versions/ghec_v2022_11_28/models/group_0214.py index a7a52f64e..fe0d0f426 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0214.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,38 +18,62 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class PackageVersion(GitHubModel): + """Package Version -class Project(GitHubModel): - """Project - - Projects are a way to organize columns and cards of work. + A version of a software package """ - owner_url: str = Field() + id: int = Field(description="Unique identifier of the package version.") + name: str = Field(description="The name of the package version.") url: str = Field() - html_url: str = Field() - columns_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="Name of the project") - body: Union[str, None] = Field(description="Body of the project") - number: int = Field() - state: str = Field(description="State of the project; either 'open' or 'closed'") - creator: Union[None, SimpleUser] = Field() + package_html_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + description: Missing[str] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + deleted_at: Missing[datetime] = Field(default=UNSET) + metadata: Missing[PackageVersionPropMetadata] = Field( + default=UNSET, title="Package Version Metadata" + ) + + +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" + + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + container: Missing[PackageVersionPropMetadataPropContainer] = Field( + default=UNSET, title="Container Metadata" ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + docker: Missing[PackageVersionPropMetadataPropDocker] = Field( + default=UNSET, title="Docker Metadata" ) -model_rebuild(Project) +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + + tags: list[str] = Field() + + +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" + + tag: Missing[list[str]] = Field(default=UNSET) + + +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) -__all__ = ("Project",) +__all__ = ( + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0215.py b/githubkit/versions/ghec_v2022_11_28/models/group_0215.py index 323c1ba32..c7a2781c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0215.py @@ -9,25 +9,103 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class CustomPropertyValue(GitHubModel): - """Custom Property Value - Custom property name and associated value +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations """ - property_name: str = Field(description="The name of the property") - value: Union[str, list[str], None] = Field( - description="The value assigned to the property" + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." + ) + reason: Union[str, None] = Field(description="Reason for requesting access.") + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repositories_url: str = Field( + description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther + ] = Field(default=UNSET) + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" -model_rebuild(CustomPropertyValue) +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) -__all__ = ("CustomPropertyValue",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0216.py b/githubkit/versions/ghec_v2022_11_28/models/group_0216.py index 28c5fb04f..9cc3f78de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0216.py @@ -9,27 +9,100 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser + + +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations + """ -from .group_0215 import CustomPropertyValue + id: int = Field( + description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repositories_url: str = Field( + description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + access_granted_at: str = Field( + description="Date and time when the fine-grained personal access token was approved to access the organization." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissions - List of custom property values for a repository + Permissions requested, categorized by type of permission. """ - repository_id: int = Field() - repository_name: str = Field() - repository_full_name: str = Field() - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values" + organization: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( + default=UNSET ) -model_rebuild(OrgRepoCustomPropertyValues) +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + + +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("OrgRepoCustomPropertyValues",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0217.py b/githubkit/versions/ghec_v2022_11_28/models/group_0217.py index 35b60a16d..a034d5582 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0217.py @@ -9,25 +9,41 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple +class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): + """Organization private registry - Code of Conduct Simple + Private registry configuration for an organization """ - url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() - - -model_rebuild(CodeOfConductSimple) - -__all__ = ("CodeOfConductSimple",) + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( + description="The registry type." + ) + username: Missing[str] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry.", + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) + +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0218.py b/githubkit/versions/ghec_v2022_11_28/models/group_0218.py index 4e183f8f5..a7a52f64e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0218.py @@ -14,191 +14,42 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0020 import Repository -from .group_0167 import SecurityAndAnalysis -from .group_0217 import CodeOfConductSimple -class FullRepository(GitHubModel): - """Full Repository +class Project(GitHubModel): + """Project - Full Repository + Projects are a way to organize columns and cards of work. """ + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() id: int = Field() node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: datetime = Field() + name: str = Field(description="Name of the project") + body: Union[str, None] = Field(description="Body of the project") + number: int = Field() + state: str = Field(description="State of the project; either 'open' or 'closed'") + creator: Union[None, SimpleUser] = Field() created_at: datetime = Field() updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." - ) - code_of_conduct: Missing[CodeOfConductSimple] = Field( + private: Missing[bool] = Field( default=UNSET, - title="Code Of Conduct Simple", - description="Code of Conduct Simple", - ) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", ) - custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class FullRepositoryPropPermissions(GitHubModel): - """FullRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -class FullRepositoryPropCustomProperties(ExtraGitHubModel): - """FullRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ -model_rebuild(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(Project) -__all__ = ( - "FullRepository", - "FullRepositoryPropCustomProperties", - "FullRepositoryPropPermissions", -) +__all__ = ("Project",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0219.py b/githubkit/versions/ghec_v2022_11_28/models/group_0219.py index a9156b530..323c1ba32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0219.py @@ -9,56 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" +class CustomPropertyValue(GitHubModel): + """Custom Property Value - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[int] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[str] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", + Custom property name and associated value + """ + + property_name: str = Field(description="The name of the property") + value: Union[str, list[str], None] = Field( + description="The value assigned to the property" ) -model_rebuild(RuleSuitesItems) +model_rebuild(CustomPropertyValue) -__all__ = ("RuleSuitesItems",) +__all__ = ("CustomPropertyValue",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0220.py b/githubkit/versions/ghec_v2022_11_28/models/group_0220.py index 41bb0279e..a77c84b65 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0220.py @@ -9,100 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class RuleSuite(GitHubModel): - """Rule Suite - - Response - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", - ) - rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( - default=UNSET, description="Details on the evaluated rules." - ) - -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" +from .group_0219 import CustomPropertyValue - rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( - default=UNSET - ) - enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( - default=UNSET, description="The enforcement level of this rule source." - ) - result: Missing[Literal["pass", "fail"]] = Field( - default=UNSET, - description="The result of the evaluation of the individual rule.", - ) - rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") - details: Missing[Union[str, None]] = Field( - default=UNSET, - description="The detailed failure message for the rule. Null if the rule passed.", - ) +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values -class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + List of custom property values for a repository + """ - type: Missing[str] = Field(default=UNSET, description="The type of rule source.") - id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of the rule source." - ) - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the rule source." + repository_id: int = Field() + repository_name: str = Field() + repository_full_name: str = Field() + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values" ) -model_rebuild(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", -) +__all__ = ("OrgRepoCustomPropertyValues",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0221.py b/githubkit/versions/ghec_v2022_11_28/models/group_0221.py index 6eb920317..35b60a16d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0221.py @@ -9,39 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit - - A credit given to a user for a repository security advisory. + Code of Conduct Simple """ - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - state: Literal["accepted", "declined", "pending"] = Field( - description="The state of the user's acceptance of the credit." - ) - - -model_rebuild(RepositoryAdvisoryCredit) - -__all__ = ("RepositoryAdvisoryCredit",) + url: str = Field() + key: str = Field() + name: str = Field() + html_url: Union[str, None] = Field() + + +model_rebuild(CodeOfConductSimple) + +__all__ = ("CodeOfConductSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0222.py b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py index 21c455e89..e9a20d023 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0222.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py @@ -10,199 +10,195 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities from .group_0003 import SimpleUser -from .group_0067 import Team -from .group_0221 import RepositoryAdvisoryCredit +from .group_0019 import LicenseSimple +from .group_0020 import Repository +from .group_0170 import SecurityAndAnalysis +from .group_0221 import CodeOfConductSimple -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory +class FullRepository(GitHubModel): + """Full Repository - A repository security advisory. + Full Repository """ - ghsa_id: str = Field(description="The GitHub Security Advisory ID.") - cve_id: Union[str, None] = Field( - description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - url: str = Field(description="The API URL for the advisory.") - html_url: str = Field(description="The URL for the advisory.") - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: Union[Annotated[str, Field(max_length=65535)], None] = Field( - description="A detailed description of what the advisory entails." - ) - severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( - description="The severity of the advisory." - ) - author: None = Field(description="The author of the advisory.") - publisher: None = Field(description="The publisher of the advisory.") - identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() - state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( - description="The state of the advisory." - ) - created_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was created, in ISO 8601 format." - ) - updated_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." - ) - published_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." - ) - closed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was closed, in ISO 8601 format." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." - ) - submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() - vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() - cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() - cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") - credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( - alias="credits" - ) - credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() - collaborating_users: Union[list[SimpleUser], None] = Field( - description="A list of users that collaborate on the advisory." - ) - collaborating_teams: Union[list[Team], None] = Field( - description="A list of teams that collaborate on the advisory." - ) - private_fork: None = Field( - description="A temporary private fork of the advisory's repository for collaborating on a fix." - ) - - -class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") - value: str = Field(description="The identifier value.") - - -class RepositoryAdvisoryPropSubmission(GitHubModel): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool = Field( - description="Whether a private vulnerability report was accepted by the repository's administrators." - ) - - -class RepositoryAdvisoryPropCvss(GitHubModel): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] = Field(description="The CVSS vector.") - score: Union[Annotated[float, Field(le=10.0)], None] = Field( - description="The CVSS score." - ) - - -class RepositoryAdvisoryPropCwesItems(GitHubModel): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") - name: str = Field(description="The name of the CWE.") - - -class RepositoryAdvisoryPropCreditsItems(GitHubModel): - """RepositoryAdvisoryPropCreditsItems""" - - login: Missing[str] = Field( - default=UNSET, description="The username of the user credited." - ) - type: Missing[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] = Field(default=UNSET, description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryVulnerability(GitHubModel): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field() + open_issues_count: int = Field() + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: bool = Field() + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: datetime = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + subscribers_count: int = Field() + network_count: int = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + parent: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + source: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + forks: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, description="Whether anonymous git access is allowed." + ) + code_of_conduct: Missing[CodeOfConductSimple] = Field( + default=UNSET, + title="Code Of Conduct Simple", + description="Code of Conduct Simple", + ) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class FullRepositoryPropPermissions(GitHubModel): + """FullRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class FullRepositoryPropCustomProperties(ExtraGitHubModel): + """FullRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ - package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Union[str, None] = Field( - description="The range of the package versions affected by the vulnerability." - ) - patched_versions: Union[str, None] = Field( - description="The package version(s) that resolve the vulnerability." - ) - vulnerable_functions: Union[list[str], None] = Field( - description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." - ) - -model_rebuild(RepositoryAdvisory) -model_rebuild(RepositoryAdvisoryPropIdentifiersItems) -model_rebuild(RepositoryAdvisoryPropSubmission) -model_rebuild(RepositoryAdvisoryPropCvss) -model_rebuild(RepositoryAdvisoryPropCwesItems) -model_rebuild(RepositoryAdvisoryPropCreditsItems) -model_rebuild(RepositoryAdvisoryVulnerability) -model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) __all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", + "FullRepository", + "FullRepositoryPropCustomProperties", + "FullRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0223.py b/githubkit/versions/ghec_v2022_11_28/models/group_0223.py index 0e812920b..a9156b530 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0223.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,35 +19,46 @@ from githubkit.utils import UNSET -class GroupMapping(GitHubModel): - """GroupMapping +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" - External Groups to be mapped to a team for membership - """ - - groups: Missing[list[GroupMappingPropGroupsItems]] = Field( - default=UNSET, description="Array of groups to be mapped to this team" + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." ) - - -class GroupMappingPropGroupsItems(GitHubModel): - """GroupMappingPropGroupsItems""" - - group_id: str = Field(description="The ID of the group") - group_name: str = Field(description="The name of the group") - group_description: str = Field(description="a description of the group") - status: Missing[str] = Field( - default=UNSET, description="synchronization status for this group mapping" + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", ) - synced_at: Missing[Union[str, None]] = Field( - default=UNSET, description="the time of the last sync for this group-mapping" + evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) -model_rebuild(GroupMapping) -model_rebuild(GroupMappingPropGroupsItems) +model_rebuild(RuleSuitesItems) -__all__ = ( - "GroupMapping", - "GroupMappingPropGroupsItems", -) +__all__ = ("RuleSuitesItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0224.py b/githubkit/versions/ghec_v2022_11_28/models/group_0224.py index fdebe94d9..41bb0279e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0224.py @@ -18,122 +18,91 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0066 import TeamSimple +class RuleSuite(GitHubModel): + """Rule Suite -class TeamFull(GitHubModel): - """Full Team - - Groups of organization members that gives permissions on specified repositories. + Response """ - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - html_url: str = Field() - name: str = Field(description="Name of the team") - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[Literal["closed", "secret"]] = Field( - default=UNSET, description="The level of privacy this team should have" - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET, description="The notification setting the team has set") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - members_url: str = Field() - repositories_url: str = Field() - parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) - members_count: int = Field() - repos_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization: TeamOrganization = Field( - title="Team Organization", description="Team Organization" - ) - ldap_dn: Missing[str] = Field( + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", + ) + rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( + default=UNSET, description="Details on the evaluated rules." ) -class TeamOrganization(GitHubModel): - """Team Organization - - Team Organization - """ +class RuleSuitePropRuleEvaluationsItems(GitHubModel): + """RuleSuitePropRuleEvaluationsItems""" - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - created_at: datetime = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field(default=UNSET) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( default=UNSET ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( + default=UNSET, description="The enforcement level of this rule source." + ) + result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the evaluation of the individual rule.", + ) + rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") + details: Missing[Union[str, None]] = Field( + default=UNSET, + description="The detailed failure message for the rule. Null if the rule passed.", + ) -class TeamOrganizationPropPlan(GitHubModel): - """TeamOrganizationPropPlan""" +class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET, description="The type of rule source.") + id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of the rule source." + ) + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the rule source." + ) -model_rebuild(TeamFull) -model_rebuild(TeamOrganization) -model_rebuild(TeamOrganizationPropPlan) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) __all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0225.py b/githubkit/versions/ghec_v2022_11_28/models/group_0225.py index 044939cd6..6eb920317 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0225.py @@ -9,52 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0151 import ReactionRollup -class TeamDiscussion(GitHubModel): - """Team Discussion +class RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit - A team discussion is a persistent record of a free-form conversation within a - team. + A credit given to a user for a repository security advisory. """ - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the discussion.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + state: Literal["accepted", "declined", "pending"] = Field( + description="The state of the user's acceptance of the credit." ) - comments_count: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field(description="The unique sequence number of a team discussion.") - pinned: bool = Field( - description="Whether or not this discussion should be pinned for easy retrieval." - ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." - ) - team_url: str = Field() - title: str = Field(description="The title of the discussion.") - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussion) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ("TeamDiscussion",) +__all__ = ("RepositoryAdvisoryCredit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py index 3b4ea132c..898cf90c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,35 +18,191 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0001 import CvssSeverities from .group_0003 import SimpleUser -from .group_0151 import ReactionRollup +from .group_0067 import Team +from .group_0225 import RepositoryAdvisoryCredit -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory - A reply to a discussion within a team. + A repository security advisory. """ - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the comment.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." ) - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field( - description="The unique sequence number of a team discussion comment." + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( + description="The severity of the advisory." + ) + author: None = Field(description="The author of the advisory.") + publisher: None = Field(description="The publisher of the advisory.") + identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() + state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( + description="The state of the advisory." + ) + created_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was created, in ISO 8601 format." + ) + updated_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + published_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + closed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was closed, in ISO 8601 format." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() + vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() + cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() + cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") + credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( + alias="credits" + ) + credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() + collaborating_users: Union[list[SimpleUser], None] = Field( + description="A list of users that collaborate on the advisory." + ) + collaborating_teams: Union[list[Team], None] = Field( + description="A list of teams that collaborate on the advisory." + ) + private_fork: None = Field( + description="A temporary private fork of the advisory's repository for collaborating on a fix." + ) + + +class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") + + +class RepositoryAdvisoryPropSubmission(GitHubModel): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool = Field( + description="Whether a private vulnerability report was accepted by the repository's administrators." + ) + + +class RepositoryAdvisoryPropCvss(GitHubModel): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class RepositoryAdvisoryPropCwesItems(GitHubModel): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class RepositoryAdvisoryPropCreditsItems(GitHubModel): + """RepositoryAdvisoryPropCreditsItems""" + + login: Missing[str] = Field( + default=UNSET, description="The username of the user credited." + ) + type: Missing[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] = Field(default=UNSET, description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryVulnerability(GitHubModel): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + patched_versions: Union[str, None] = Field( + description="The package version(s) that resolve the vulnerability." + ) + vulnerable_functions: Union[list[str], None] = Field( + description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." ) - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussionComment) +model_rebuild(RepositoryAdvisory) +model_rebuild(RepositoryAdvisoryPropIdentifiersItems) +model_rebuild(RepositoryAdvisoryPropSubmission) +model_rebuild(RepositoryAdvisoryPropCvss) +model_rebuild(RepositoryAdvisoryPropCwesItems) +model_rebuild(RepositoryAdvisoryPropCreditsItems) +model_rebuild(RepositoryAdvisoryVulnerability) +model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) -__all__ = ("TeamDiscussionComment",) +__all__ = ( + "RepositoryAdvisory", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py index b14e4e21d..0e812920b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py @@ -9,32 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class GroupMapping(GitHubModel): + """GroupMapping -class Reaction(GitHubModel): - """Reaction - - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + External Groups to be mapped to a team for membership """ - id: int = Field() - node_id: str = Field() - user: Union[None, SimpleUser] = Field() - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field(description="The reaction to use") - created_at: datetime = Field() + groups: Missing[list[GroupMappingPropGroupsItems]] = Field( + default=UNSET, description="Array of groups to be mapped to this team" + ) + + +class GroupMappingPropGroupsItems(GitHubModel): + """GroupMappingPropGroupsItems""" + + group_id: str = Field(description="The ID of the group") + group_name: str = Field(description="The name of the group") + group_description: str = Field(description="a description of the group") + status: Missing[str] = Field( + default=UNSET, description="synchronization status for this group mapping" + ) + synced_at: Missing[Union[str, None]] = Field( + default=UNSET, description="the time of the last sync for this group-mapping" + ) -model_rebuild(Reaction) +model_rebuild(GroupMapping) +model_rebuild(GroupMappingPropGroupsItems) -__all__ = ("Reaction",) +__all__ = ( + "GroupMapping", + "GroupMappingPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0228.py b/githubkit/versions/ghec_v2022_11_28/models/group_0228.py index bf5d392cb..fdebe94d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0228.py @@ -9,28 +9,131 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0066 import TeamSimple -class TeamMembership(GitHubModel): - """Team Membership - Team Membership +class TeamFull(GitHubModel): + """Full Team + + Groups of organization members that gives permissions on specified repositories. """ - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the team." + id: int = Field(description="Unique identifier of the team") + node_id: str = Field() + url: str = Field(description="URL for the team") + html_url: str = Field() + name: str = Field(description="Name of the team") + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[Literal["closed", "secret"]] = Field( + default=UNSET, description="The level of privacy this team should have" + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET, description="The notification setting the team has set") + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + members_url: str = Field() + repositories_url: str = Field() + parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) + members_count: int = Field() + repos_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization: TeamOrganization = Field( + title="Team Organization", description="Team Organization" ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + ldap_dn: Missing[str] = Field( + default=UNSET, + description="Distinguished Name (DN) that team maps to within LDAP environment", + ) + + +class TeamOrganization(GitHubModel): + """Team Organization + + Team Organization + """ + + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + created_at: datetime = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field(default=UNSET) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + + +class TeamOrganizationPropPlan(GitHubModel): + """TeamOrganizationPropPlan""" + + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(TeamMembership) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) -__all__ = ("TeamMembership",) +__all__ = ( + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0229.py b/githubkit/versions/ghec_v2022_11_28/models/group_0229.py index 0c9701f5f..1fd95cfea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0229.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -18,50 +19,42 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0154 import ReactionRollup -class TeamProject(GitHubModel): - """Team Project +class TeamDiscussion(GitHubModel): + """Team Discussion - A team's access to a project. + A team discussion is a persistent record of a free-form conversation within a + team. """ - owner_url: str = Field() - url: str = Field() + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the discussion.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) + comments_count: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() html_url: str = Field() - columns_url: str = Field() - id: int = Field() node_id: str = Field() - name: str = Field() - body: Union[str, None] = Field() - number: int = Field() - state: str = Field() - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: str = Field() - updated_at: str = Field() - organization_permission: Missing[str] = Field( - default=UNSET, - description="The organization permission for this project. Only present when owner is an organization.", + number: int = Field(description="The unique sequence number of a team discussion.") + pinned: bool = Field( + description="Whether or not this discussion should be pinned for easy retrieval." ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether the project is private or not. Only present when owner is an organization.", + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." ) - permissions: TeamProjectPropPermissions = Field() - - -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" - - read: bool = Field() - write: bool = Field() - admin: bool = Field() + team_url: str = Field() + title: str = Field(description="The title of the discussion.") + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamProject) -model_rebuild(TeamProjectPropPermissions) +model_rebuild(TeamDiscussion) -__all__ = ( - "TeamProject", - "TeamProjectPropPermissions", -) +__all__ = ("TeamDiscussion",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0230.py b/githubkit/versions/ghec_v2022_11_28/models/group_0230.py index 640d1e96a..72446aeca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0230.py @@ -19,153 +19,34 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple +from .group_0154 import ReactionRollup -class TeamRepository(GitHubModel): - """Team Repository +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment - A team's access to a repository. + A reply to a discussion within a team. """ - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - private: bool = Field( - default=False, description="Whether the repository is private or public." + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the comment.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." ) + created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() + discussion_url: str = Field() html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field() - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + node_id: str = Field() + number: int = Field( + description="The unique sequence number of a team discussion comment." ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - - -class TeamRepositoryPropPermissions(GitHubModel): - """TeamRepositoryPropPermissions""" - - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamRepository) -model_rebuild(TeamRepositoryPropPermissions) +model_rebuild(TeamDiscussionComment) -__all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", -) +__all__ = ("TeamDiscussionComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0231.py b/githubkit/versions/ghec_v2022_11_28/models/group_0231.py index 8cdb479b9..b14e4e21d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0231.py @@ -10,40 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -class ProjectCard(GitHubModel): - """Project Card +class Reaction(GitHubModel): + """Reaction - Project cards represent a scope of work. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - url: str = Field() - id: int = Field(description="The project card's ID") + id: int = Field() node_id: str = Field() - note: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() + user: Union[None, SimpleUser] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field(description="The reaction to use") created_at: datetime = Field() - updated_at: datetime = Field() - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" - ) - column_name: Missing[str] = Field(default=UNSET) - project_id: Missing[str] = Field(default=UNSET) - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - project_url: str = Field() -model_rebuild(ProjectCard) +model_rebuild(Reaction) -__all__ = ("ProjectCard",) +__all__ = ("Reaction",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0232.py b/githubkit/versions/ghec_v2022_11_28/models/group_0232.py index 08e6fd84f..bf5d392cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0232.py @@ -9,29 +9,28 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectColumn(GitHubModel): - """Project Column +class TeamMembership(GitHubModel): + """Team Membership - Project columns contain cards of work. + Team Membership """ url: str = Field() - project_url: str = Field() - cards_url: str = Field() - id: int = Field(description="The unique identifier of the project column") - node_id: str = Field() - name: str = Field(description="Name of the project column") - created_at: datetime = Field() - updated_at: datetime = Field() + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the team." + ) + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." + ) -model_rebuild(ProjectColumn) +model_rebuild(TeamMembership) -__all__ = ("ProjectColumn",) +__all__ = ("TeamMembership",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0233.py b/githubkit/versions/ghec_v2022_11_28/models/group_0233.py index 8665206a9..0c9701f5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0233.py @@ -14,20 +14,54 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -class ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission +class TeamProject(GitHubModel): + """Team Project - Project Collaborator Permission + A team's access to a project. """ - permission: str = Field() - user: Union[None, SimpleUser] = Field() + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + body: Union[str, None] = Field() + number: int = Field() + state: str = Field() + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: str = Field() + updated_at: str = Field() + organization_permission: Missing[str] = Field( + default=UNSET, + description="The organization permission for this project. Only present when owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether the project is private or not. Only present when owner is an organization.", + ) + permissions: TeamProjectPropPermissions = Field() -model_rebuild(ProjectCollaboratorPermission) +class TeamProjectPropPermissions(GitHubModel): + """TeamProjectPropPermissions""" -__all__ = ("ProjectCollaboratorPermission",) + read: bool = Field() + write: bool = Field() + admin: bool = Field() + + +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) + +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0234.py b/githubkit/versions/ghec_v2022_11_28/models/group_0234.py index 335b1a1b9..640d1e96a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0234.py @@ -9,20 +9,163 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple + + +class TeamRepository(GitHubModel): + """Team Repository + + A team's access to a repository. + """ + + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) -class RateLimit(GitHubModel): - """Rate Limit""" +class TeamRepositoryPropPermissions(GitHubModel): + """TeamRepositoryPropPermissions""" - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) -model_rebuild(RateLimit) +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) -__all__ = ("RateLimit",) +__all__ = ( + "TeamRepository", + "TeamRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0235.py b/githubkit/versions/ghec_v2022_11_28/models/group_0235.py index 91e8f739f..8cdb479b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0235.py @@ -9,24 +9,41 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0234 import RateLimit -from .group_0236 import RateLimitOverviewPropResources +from .group_0003 import SimpleUser -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class ProjectCard(GitHubModel): + """Project Card - Rate Limit Overview + Project cards represent a scope of work. """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") - - -model_rebuild(RateLimitOverview) - -__all__ = ("RateLimitOverview",) + url: str = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) + column_name: Missing[str] = Field(default=UNSET) + project_id: Missing[str] = Field(default=UNSET) + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + project_url: str = Field() + + +model_rebuild(ProjectCard) + +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0236.py b/githubkit/versions/ghec_v2022_11_28/models/group_0236.py index 8c3f26021..08e6fd84f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0236.py @@ -9,33 +9,29 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0234 import RateLimit +class ProjectColumn(GitHubModel): + """Project Column -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + Project columns contain cards of work. + """ - core: RateLimit = Field(title="Rate Limit") - graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - search: RateLimit = Field(title="Rate Limit") - code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - actions_runner_registration: Missing[RateLimit] = Field( - default=UNSET, title="Rate Limit" - ) - scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + url: str = Field() + project_url: str = Field() + cards_url: str = Field() + id: int = Field(description="The unique identifier of the project column") + node_id: str = Field() + name: str = Field(description="Name of the project column") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(RateLimitOverviewPropResources) +model_rebuild(ProjectColumn) -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ("ProjectColumn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0237.py b/githubkit/versions/ghec_v2022_11_28/models/group_0237.py index 5d2abd8b6..8665206a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0237.py @@ -9,53 +9,25 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class Artifact(GitHubModel): - """Artifact - An artifact +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission + + Project Collaborator Permission """ - id: int = Field() - node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") - url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") - created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - digest: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", - ) - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) - - -class ArtifactPropWorkflowRun(GitHubModel): - """ArtifactPropWorkflowRun""" - - id: Missing[int] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - head_repository_id: Missing[int] = Field(default=UNSET) - head_branch: Missing[str] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - - -model_rebuild(Artifact) -model_rebuild(ArtifactPropWorkflowRun) - -__all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", -) + permission: str = Field() + user: Union[None, SimpleUser] = Field() + + +model_rebuild(ProjectCollaboratorPermission) + +__all__ = ("ProjectCollaboratorPermission",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0238.py b/githubkit/versions/ghec_v2022_11_28/models/group_0238.py index e8023d141..335b1a1b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0238.py @@ -9,43 +9,20 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ActionsCacheList(GitHubModel): - """Repository actions caches - - Repository actions caches - """ - - total_count: int = Field(description="Total number of caches") - actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" - ) -class ActionsCacheListPropActionsCachesItems(GitHubModel): - """ActionsCacheListPropActionsCachesItems""" +class RateLimit(GitHubModel): + """Rate Limit""" - id: Missing[int] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET) - key: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - last_accessed_at: Missing[datetime] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - size_in_bytes: Missing[int] = Field(default=UNSET) + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = Field() -model_rebuild(ActionsCacheList) -model_rebuild(ActionsCacheListPropActionsCachesItems) +model_rebuild(RateLimit) -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("RateLimit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0239.py b/githubkit/versions/ghec_v2022_11_28/models/group_0239.py index 2a7eb2be6..4d8f9738d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0239.py @@ -9,102 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class Job(GitHubModel): - """Job +from .group_0238 import RateLimit +from .group_0240 import RateLimitOverviewPropResources - Information of a job execution in a workflow run - """ - id: int = Field(description="The id of the job.") - run_id: int = Field(description="The id of the associated workflow run.") - run_url: str = Field() - run_attempt: Missing[int] = Field( - default=UNSET, - description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", - ) - node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") - url: str = Field() - html_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field(description="The phase of the lifecycle that the job is currently in.") - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field(description="The outcome of the job.") - created_at: datetime = Field( - description="The time that the job created, in ISO 8601 format." - ) - started_at: datetime = Field( - description="The time that the job started, in ISO 8601 format." - ) - completed_at: Union[datetime, None] = Field( - description="The time that the job finished, in ISO 8601 format." - ) - name: str = Field(description="The name of the job.") - steps: Missing[list[JobPropStepsItems]] = Field( - default=UNSET, description="Steps in this job." - ) - check_run_url: str = Field() - labels: list[str] = Field( - description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_name: Union[str, None] = Field( - description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") +class RateLimitOverview(GitHubModel): + """Rate Limit Overview + Rate Limit Overview + """ -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] = Field( - description="The phase of the lifecycle that the job is currently in." - ) - conclusion: Union[str, None] = Field(description="The outcome of the job.") - name: str = Field(description="The name of the job.") - number: int = Field() - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the step started, in ISO 8601 format." - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the job finished, in ISO 8601 format." - ) + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") -model_rebuild(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(RateLimitOverview) -__all__ = ( - "Job", - "JobPropStepsItems", -) +__all__ = ("RateLimitOverview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0240.py b/githubkit/versions/ghec_v2022_11_28/models/group_0240.py index cceb6bb55..317860cfb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0240.py @@ -15,22 +15,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0238 import RateLimit -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[list[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + core: RateLimit = Field(title="Rate Limit") + graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + search: RateLimit = Field(title="Rate Limit") + code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + actions_runner_registration: Missing[RateLimit] = Field( + default=UNSET, title="Rate Limit" ) + scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") -model_rebuild(OidcCustomSubRepo) +model_rebuild(RateLimitOverviewPropResources) -__all__ = ("OidcCustomSubRepo",) +__all__ = ("RateLimitOverviewPropResources",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0241.py b/githubkit/versions/ghec_v2022_11_28/models/group_0241.py index 4e5c3a572..5d2abd8b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0241.py @@ -10,23 +10,52 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsSecret(GitHubModel): - """Actions Secret +class Artifact(GitHubModel): + """Artifact - Set secrets for GitHub Actions. + An artifact """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(ActionsSecret) - -__all__ = ("ActionsSecret",) + id: int = Field() + node_id: str = Field() + name: str = Field(description="The name of the artifact.") + size_in_bytes: int = Field(description="The size in bytes of the artifact.") + url: str = Field() + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + digest: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", + ) + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) + + +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" + + id: Missing[int] = Field(default=UNSET) + repository_id: Missing[int] = Field(default=UNSET) + head_repository_id: Missing[int] = Field(default=UNSET) + head_branch: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) + + +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) + +__all__ = ( + "Artifact", + "ArtifactPropWorkflowRun", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0242.py b/githubkit/versions/ghec_v2022_11_28/models/group_0242.py index cb0c0f09c..e8023d141 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0242.py @@ -14,21 +14,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsVariable(GitHubModel): - """Actions Variable""" +class ActionsCacheList(GitHubModel): + """Repository actions caches - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + Repository actions caches + """ + + total_count: int = Field(description="Total number of caches") + actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" ) -model_rebuild(ActionsVariable) +class ActionsCacheListPropActionsCachesItems(GitHubModel): + """ActionsCacheListPropActionsCachesItems""" + + id: Missing[int] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET) + key: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + last_accessed_at: Missing[datetime] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + size_in_bytes: Missing[int] = Field(default=UNSET) + + +model_rebuild(ActionsCacheList) +model_rebuild(ActionsCacheListPropActionsCachesItems) -__all__ = ("ActionsVariable",) +__all__ = ( + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0243.py b/githubkit/versions/ghec_v2022_11_28/models/group_0243.py index 5079bcff0..2a7eb2be6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0243.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,22 +19,92 @@ from githubkit.utils import UNSET -class ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" +class Job(GitHubModel): + """Job - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + Information of a job execution in a workflow run + """ + + id: int = Field(description="The id of the job.") + run_id: int = Field(description="The id of the associated workflow run.") + run_url: str = Field() + run_attempt: Missing[int] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + node_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being run.") + url: str = Field() + html_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field(description="The phase of the lifecycle that the job is currently in.") + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field(description="The outcome of the job.") + created_at: datetime = Field( + description="The time that the job created, in ISO 8601 format." + ) + started_at: datetime = Field( + description="The time that the job started, in ISO 8601 format." + ) + completed_at: Union[datetime, None] = Field( + description="The time that the job finished, in ISO 8601 format." + ) + name: str = Field(description="The name of the job.") + steps: Missing[list[JobPropStepsItems]] = Field( + default=UNSET, description="Steps in this job." + ) + check_run_url: str = Field() + labels: list[str] = Field( + description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_name: Union[str, None] = Field( + description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + head_branch: Union[str, None] = Field(description="The name of the current branch.") + + +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] = Field( + description="The phase of the lifecycle that the job is currently in." + ) + conclusion: Union[str, None] = Field(description="The outcome of the job.") + name: str = Field(description="The name of the job.") + number: int = Field() + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the step started, in ISO 8601 format." + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the job finished, in ISO 8601 format." ) -model_rebuild(ActionsRepositoryPermissions) +model_rebuild(Job) +model_rebuild(JobPropStepsItems) -__all__ = ("ActionsRepositoryPermissions",) +__all__ = ( + "Job", + "JobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py index dbc0521ec..cceb6bb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py @@ -9,21 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" + Actions OIDC subject customization for a repository + """ - access_level: Literal["none", "user", "organization", "enterprise"] = Field( - description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise." + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[list[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) -model_rebuild(ActionsWorkflowAccessToRepository) +model_rebuild(OidcCustomSubRepo) -__all__ = ("ActionsWorkflowAccessToRepository",) +__all__ = ("OidcCustomSubRepo",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0245.py b/githubkit/versions/ghec_v2022_11_28/models/group_0245.py index 7ce075884..4e5c3a572 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0245.py @@ -9,63 +9,24 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PullRequestMinimal(GitHubModel): - """Pull Request Minimal""" - - id: int = Field() - number: int = Field() - url: str = Field() - head: PullRequestMinimalPropHead = Field() - base: PullRequestMinimalPropBase = Field() - - -class PullRequestMinimalPropHead(GitHubModel): - """PullRequestMinimalPropHead""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropHeadPropRepo = Field() - - -class PullRequestMinimalPropHeadPropRepo(GitHubModel): - """PullRequestMinimalPropHeadPropRepo""" - - id: int = Field() - url: str = Field() - name: str = Field() - - -class PullRequestMinimalPropBase(GitHubModel): - """PullRequestMinimalPropBase""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropBasePropRepo = Field() - +class ActionsSecret(GitHubModel): + """Actions Secret -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" + Set secrets for GitHub Actions. + """ - id: int = Field() - url: str = Field() - name: str = Field() + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(ActionsSecret) -__all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", -) +__all__ = ("ActionsSecret",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0246.py b/githubkit/versions/ghec_v2022_11_28/models/group_0246.py index 29f15097a..cb0c0f09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0246.py @@ -10,57 +10,25 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class SimpleCommit(GitHubModel): - """Simple Commit +class ActionsVariable(GitHubModel): + """Actions Variable""" - A commit. - """ - - id: str = Field(description="SHA for the commit") - tree_id: str = Field(description="SHA for the commit's tree") - message: str = Field(description="Message describing the purpose of the commit") - timestamp: datetime = Field(description="Timestamp of the commit") - author: Union[SimpleCommitPropAuthor, None] = Field( - description="Information about the Git author" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - committer: Union[SimpleCommitPropCommitter, None] = Field( - description="Information about the Git committer" + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) -class SimpleCommitPropAuthor(GitHubModel): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str = Field(description="Name of the commit's author") - email: str = Field(description="Git email address of the commit's author") - - -class SimpleCommitPropCommitter(GitHubModel): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str = Field(description="Name of the commit's committer") - email: str = Field(description="Git email address of the commit's committer") - - -model_rebuild(SimpleCommit) -model_rebuild(SimpleCommitPropAuthor) -model_rebuild(SimpleCommitPropCommitter) +model_rebuild(ActionsVariable) -__all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", -) +__all__ = ("ActionsVariable",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0247.py b/githubkit/versions/ghec_v2022_11_28/models/group_0247.py index fab195827..5079bcff0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0247.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,107 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0168 import MinimalRepository -from .group_0245 import PullRequestMinimal -from .group_0246 import SimpleCommit +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" -class WorkflowRun(GitHubModel): - """Workflow Run - - An invocation of a workflow - """ - - id: int = Field(description="The ID of the workflow run.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow run." - ) - node_id: str = Field() - check_suite_id: Missing[int] = Field( - default=UNSET, description="The ID of the associated check suite." - ) - check_suite_node_id: Missing[str] = Field( - default=UNSET, description="The node ID of the associated check suite." - ) - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that points to the version of the workflow being run." + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." ) - path: str = Field(description="The full path of the workflow") - run_number: int = Field( - description="The auto incrementing run number for the workflow run." - ) - run_attempt: Missing[int] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", - ) - referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( - default=UNSET - ) - event: str = Field() - status: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - workflow_id: int = Field(description="The ID of the parent workflow.") - url: str = Field(description="The URL to the workflow run.") - html_url: str = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - triggering_actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - run_started_at: Missing[datetime] = Field( - default=UNSET, description="The start time of the latest run. Resets on re-run." - ) - jobs_url: str = Field(description="The URL to the jobs for the workflow run.") - logs_url: str = Field( - description="The URL to download the logs for the workflow run." - ) - check_suite_url: str = Field(description="The URL to the associated check suite.") - artifacts_url: str = Field( - description="The URL to the artifacts for the workflow run." - ) - cancel_url: str = Field(description="The URL to cancel the workflow run.") - rerun_url: str = Field(description="The URL to rerun the workflow run.") - previous_attempt_url: Missing[Union[str, None]] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The URL to the previous attempted run of this workflow, if one exists.", - ) - workflow_url: str = Field(description="The URL to the workflow.") - head_commit: Union[None, SimpleCommit] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) - head_repository_id: Missing[int] = Field(default=UNSET) - display_title: str = Field( - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." - ) - - -class ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() - sha: str = Field() - ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ( - "ReferencedWorkflow", - "WorkflowRun", -) +__all__ = ("ActionsRepositoryPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0248.py b/githubkit/versions/ghec_v2022_11_28/models/group_0248.py index f9c274d60..dbc0521ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0248.py @@ -9,58 +9,21 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" -class EnvironmentApprovals(GitHubModel): - """Environment Approval - - An entry in the reviews log for environment deployments - """ - - environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( - description="The list of environments that were approved or rejected" - ) - state: Literal["approved", "rejected", "pending"] = Field( - description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - comment: str = Field(description="The comment submitted with the deployment review") - - -class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was created, in ISO 8601 format.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was last updated, in ISO 8601 format.", + access_level: Literal["none", "user", "organization", "enterprise"] = Field( + description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise." ) -model_rebuild(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(ActionsWorkflowAccessToRepository) -__all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", -) +__all__ = ("ActionsWorkflowAccessToRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0249.py b/githubkit/versions/ghec_v2022_11_28/models/group_0249.py index 831ca354e..7ce075884 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0249.py @@ -14,17 +14,58 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" +class PullRequestMinimal(GitHubModel): + """Pull Request Minimal""" - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" - ) + id: int = Field() + number: int = Field() + url: str = Field() + head: PullRequestMinimalPropHead = Field() + base: PullRequestMinimalPropBase = Field() -model_rebuild(ReviewCustomGatesCommentRequired) +class PullRequestMinimalPropHead(GitHubModel): + """PullRequestMinimalPropHead""" -__all__ = ("ReviewCustomGatesCommentRequired",) + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropHeadPropRepo = Field() + + +class PullRequestMinimalPropHeadPropRepo(GitHubModel): + """PullRequestMinimalPropHeadPropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +class PullRequestMinimalPropBase(GitHubModel): + """PullRequestMinimalPropBase""" + + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropBasePropRepo = Field() + + +class PullRequestMinimalPropBasePropRepo(GitHubModel): + """PullRequestMinimalPropBasePropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) + +__all__ = ( + "PullRequestMinimal", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0250.py b/githubkit/versions/ghec_v2022_11_28/models/group_0250.py index 382e4485a..29f15097a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0250.py @@ -9,29 +9,58 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" +class SimpleCommit(GitHubModel): + """Simple Commit - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + A commit. + """ + + id: str = Field(description="SHA for the commit") + tree_id: str = Field(description="SHA for the commit's tree") + message: str = Field(description="Message describing the purpose of the commit") + timestamp: datetime = Field(description="Timestamp of the commit") + author: Union[SimpleCommitPropAuthor, None] = Field( + description="Information about the Git author" ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." + committer: Union[SimpleCommitPropCommitter, None] = Field( + description="Information about the Git committer" ) -model_rebuild(ReviewCustomGatesStateRequired) +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor + + Information about the Git author + """ + + name: str = Field(description="Name of the commit's author") + email: str = Field(description="Git email address of the commit's author") + + +class SimpleCommitPropCommitter(GitHubModel): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str = Field(description="Name of the commit's committer") + email: str = Field(description="Git email address of the commit's committer") + + +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ( + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0251.py b/githubkit/versions/ghec_v2022_11_28/models/group_0251.py index 792e9a92d..2e27fce90 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0251.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,55 +19,106 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0067 import Team +from .group_0171 import MinimalRepository +from .group_0249 import PullRequestMinimal +from .group_0250 import SimpleCommit -class PendingDeploymentPropReviewersItems(GitHubModel): - """PendingDeploymentPropReviewersItems""" +class WorkflowRun(GitHubModel): + """Workflow Run - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) - - -class PendingDeployment(GitHubModel): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass + An invocation of a workflow """ - environment: PendingDeploymentPropEnvironment = Field() - wait_timer: int = Field(description="The set duration of the wait timer") - wait_timer_started_at: Union[datetime, None] = Field( - description="The time that the wait timer began." + id: int = Field(description="The ID of the workflow run.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow run." + ) + node_id: str = Field() + check_suite_id: Missing[int] = Field( + default=UNSET, description="The ID of the associated check suite." + ) + check_suite_node_id: Missing[str] = Field( + default=UNSET, description="The node ID of the associated check suite." + ) + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that points to the version of the workflow being run." + ) + path: str = Field(description="The full path of the workflow") + run_number: int = Field( + description="The auto incrementing run number for the workflow run." + ) + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", + ) + referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( + default=UNSET + ) + event: str = Field() + status: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + workflow_id: int = Field(description="The ID of the parent workflow.") + url: str = Field(description="The URL to the workflow run.") + html_url: str = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." ) - current_user_can_approve: bool = Field( - description="Whether the currently authenticated user can approve the deployment" + created_at: datetime = Field() + updated_at: datetime = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - reviewers: list[PendingDeploymentPropReviewersItems] = Field( - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + triggering_actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + run_started_at: Missing[datetime] = Field( + default=UNSET, description="The start time of the latest run. Resets on re-run." + ) + jobs_url: str = Field(description="The URL to the jobs for the workflow run.") + logs_url: str = Field( + description="The URL to download the logs for the workflow run." + ) + check_suite_url: str = Field(description="The URL to the associated check suite.") + artifacts_url: str = Field( + description="The URL to the artifacts for the workflow run." + ) + cancel_url: str = Field(description="The URL to cancel the workflow run.") + rerun_url: str = Field(description="The URL to rerun the workflow run.") + previous_attempt_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The URL to the previous attempted run of this workflow, if one exists.", + ) + workflow_url: str = Field(description="The URL to the workflow.") + head_commit: Union[None, SimpleCommit] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository_id: Missing[int] = Field(default=UNSET) + display_title: str = Field( + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." ) -class PendingDeploymentPropEnvironment(GitHubModel): - """PendingDeploymentPropEnvironment""" +class ReferencedWorkflow(GitHubModel): + """Referenced workflow - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + A workflow referenced/reused by the initial caller workflow + """ + + path: str = Field() + sha: str = Field() + ref: Missing[str] = Field(default=UNSET) -model_rebuild(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) __all__ = ( - "PendingDeployment", - "PendingDeploymentPropEnvironment", - "PendingDeploymentPropReviewersItems", + "ReferencedWorkflow", + "WorkflowRun", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0252.py b/githubkit/versions/ghec_v2022_11_28/models/group_0252.py index 37c49059f..f9c274d60 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0252.py @@ -10,62 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -class Deployment(GitHubModel): - """Deployment +class EnvironmentApprovals(GitHubModel): + """Environment Approval - A request for a specific ref(branch,sha,tag) to be deployed + An entry in the reviews log for environment deployments """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - sha: str = Field() - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or sha." + environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( + description="The list of environments that were approved or rejected" ) - task: str = Field(description="Parameter to specify a task to execute") - payload: Union[DeploymentPropPayloadOneof0, str] = Field() - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + state: Literal["approved", "rejected", "pending"] = Field( + description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + comment: str = Field(description="The comment submitted with the deployment review") + + +class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) - production_environment: Missing[bool] = Field( + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field( default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + description="The time that the environment was created, in ISO 8601 format.", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" - - -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) __all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0253.py b/githubkit/versions/ghec_v2022_11_28/models/group_0253.py index c81b4fcb7..831ca354e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0253.py @@ -12,101 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowRunUsagePropBillable(GitHubModel): - """WorkflowRunUsagePropBillable""" - - ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" - ) - macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" - ) - windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" - ) - - -class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) - ) - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropMacos(GitHubModel): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( - Field(default=UNSET) + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropWindows(GitHubModel): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( - Field(default=UNSET) + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -model_rebuild(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", -) +__all__ = ("ReviewCustomGatesCommentRequired",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0254.py b/githubkit/versions/ghec_v2022_11_28/models/group_0254.py index f5831c47a..382e4485a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0254.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,57 +18,20 @@ from githubkit.utils import UNSET -class WorkflowUsage(GitHubModel): - """Workflow Usage - - Workflow Usage - """ - - billable: WorkflowUsagePropBillable = Field() - +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" - - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) -class WorkflowUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropMacos(GitHubModel): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropWindows(GitHubModel): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: Missing[int] = Field(default=UNSET) - - -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropWindows", -) +__all__ = ("ReviewCustomGatesStateRequired",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0255.py b/githubkit/versions/ghec_v2022_11_28/models/group_0255.py index 49966c29c..792e9a92d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0255.py @@ -15,35 +15,59 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0067 import Team -class Activity(GitHubModel): - """Activity +class PendingDeploymentPropReviewersItems(GitHubModel): + """PendingDeploymentPropReviewersItems""" - Activity + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) + + +class PendingDeployment(GitHubModel): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - id: int = Field() - node_id: str = Field() - before: str = Field(description="The SHA of the commit before the activity.") - after: str = Field(description="The SHA of the commit after the activity.") - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + environment: PendingDeploymentPropEnvironment = Field() + wait_timer: int = Field(description="The set duration of the wait timer") + wait_timer_started_at: Union[datetime, None] = Field( + description="The time that the wait timer began." + ) + current_user_can_approve: bool = Field( + description="Whether the currently authenticated user can approve the deployment" + ) + reviewers: list[PendingDeploymentPropReviewersItems] = Field( + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + ) + + +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) - timestamp: datetime = Field(description="The time when the activity occurred.") - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] = Field(description="The type of the activity that was performed.") - actor: Union[None, SimpleUser] = Field() + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -model_rebuild(Activity) +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) -__all__ = ("Activity",) +__all__ = ( + "PendingDeployment", + "PendingDeploymentPropEnvironment", + "PendingDeploymentPropReviewersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0256.py b/githubkit/versions/ghec_v2022_11_28/models/group_0256.py index 245d14611..37c49059f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0256.py @@ -9,27 +9,63 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0010 import Integration -class Autolink(GitHubModel): - """Autolink reference +class Deployment(GitHubModel): + """Deployment - An autolink reference. + A request for a specific ref(branch,sha,tag) to be deployed """ - id: int = Field() - key_prefix: str = Field(description="The prefix of a key that is linkified.") - url_template: str = Field( - description="A template for the target URL that is generated if a key was found." + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + sha: str = Field() + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or sha." + ) + task: str = Field(description="Parameter to specify a task to execute") + payload: Union[DeploymentPropPayloadOneof0, str] = Field() + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + + +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" -model_rebuild(Autolink) +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) -__all__ = ("Autolink",) +__all__ = ( + "Deployment", + "DeploymentPropPayloadOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0257.py b/githubkit/versions/ghec_v2022_11_28/models/group_0257.py index 481ac164d..c81b4fcb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0257.py @@ -12,22 +12,101 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Dependabot security updates +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage - Check Dependabot security updates + Workflow Run Usage """ - enabled: bool = Field( - description="Whether Dependabot security updates are enabled for the repository." + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" + + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - paused: bool = Field( - description="Whether Dependabot security updates are paused for the repository." + windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(CheckAutomatedSecurityFixes) +class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropMacos(GitHubModel): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropWindows(GitHubModel): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +model_rebuild(WorkflowRunUsage) +model_rebuild(WorkflowRunUsagePropBillable) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropMacos) +model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropWindows) +model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ( + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0258.py b/githubkit/versions/ghec_v2022_11_28/models/group_0258.py index c205920ad..f5831c47a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0258.py @@ -15,37 +15,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0259 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, - ProtectedBranchPullRequestReviewPropDismissalRestrictions, -) - -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review +class WorkflowUsage(GitHubModel): + """Workflow Usage - Protected Branch Pull Request Review + Workflow Usage """ - url: Missing[str] = Field(default=UNSET) - dismissal_restrictions: Missing[ - ProtectedBranchPullRequestReviewPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + billable: WorkflowUsagePropBillable = Field() + + +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" + + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - dismiss_stale_reviews: bool = Field() - require_code_owner_reviews: bool = Field() - required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(ProtectedBranchPullRequestReview) +class WorkflowUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: Missing[int] = Field(default=UNSET) + -__all__ = ("ProtectedBranchPullRequestReview",) +class WorkflowUsagePropBillablePropMacos(GitHubModel): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowUsagePropBillablePropWindows(GitHubModel): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: Missing[int] = Field(default=UNSET) + + +model_rebuild(WorkflowUsage) +model_rebuild(WorkflowUsagePropBillable) +model_rebuild(WorkflowUsagePropBillablePropUbuntu) +model_rebuild(WorkflowUsagePropBillablePropMacos) +model_rebuild(WorkflowUsagePropBillablePropWindows) + +__all__ = ( + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropWindows", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0259.py b/githubkit/versions/ghec_v2022_11_28/models/group_0259.py index 6d17a2624..49966c29c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0259.py @@ -9,60 +9,41 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0067 import Team -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class Activity(GitHubModel): + """Activity - users: Missing[list[SimpleUser]] = Field( - default=UNSET, description="The list of users with review dismissal access." - ) - teams: Missing[list[Team]] = Field( - default=UNSET, description="The list of teams with review dismissal access." - ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, description="The list of apps with review dismissal access." - ) - url: Missing[str] = Field(default=UNSET) - users_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + Activity """ - users: Missing[list[SimpleUser]] = Field( - default=UNSET, - description="The list of users allowed to bypass pull request requirements.", - ) - teams: Missing[list[Team]] = Field( - default=UNSET, - description="The list of teams allowed to bypass pull request requirements.", - ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", + id: int = Field() + node_id: str = Field() + before: str = Field(description="The SHA of the commit before the activity.") + after: str = Field(description="The SHA of the commit after the activity.") + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) + timestamp: datetime = Field(description="The time when the activity occurred.") + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] = Field(description="The type of the activity that was performed.") + actor: Union[None, SimpleUser] = Field() -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +model_rebuild(Activity) -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", -) +__all__ = ("Activity",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0260.py b/githubkit/versions/ghec_v2022_11_28/models/group_0260.py index b02082cc4..245d14611 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0260.py @@ -9,142 +9,27 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class BranchRestrictionPolicy(GitHubModel): - """Branch Restriction Policy +class Autolink(GitHubModel): + """Autolink reference - Branch Restriction Policy + An autolink reference. """ - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - apps_url: str = Field() - users: list[BranchRestrictionPolicyPropUsersItems] = Field() - teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() - apps: list[BranchRestrictionPolicyPropAppsItems] = Field() - - -class BranchRestrictionPolicyPropUsersItems(GitHubModel): - """BranchRestrictionPolicyPropUsersItems""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropTeamsItems(GitHubModel): - """BranchRestrictionPolicyPropTeamsItems""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - parent: Missing[Union[str, None]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItems(GitHubModel): - """BranchRestrictionPolicyPropAppsItems""" - - id: Missing[int] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - client_id: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - external_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( - default=UNSET + id: int = Field() + key_prefix: str = Field(description="The prefix of a key that is linkified.") + url_template: str = Field( + description="A template for the target URL that is generated if a key was found." + ) + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." ) - events: Missing[list[str]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - issues: Missing[str] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) -model_rebuild(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) +model_rebuild(Autolink) -__all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropUsersItems", -) +__all__ = ("Autolink",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0261.py b/githubkit/versions/ghec_v2022_11_28/models/group_0261.py index ba1b413c0..481ac164d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0261.py @@ -9,184 +9,25 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0258 import ProtectedBranchPullRequestReview -from .group_0260 import BranchRestrictionPolicy -class BranchProtection(GitHubModel): - """Branch Protection +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Dependabot security updates - Branch Protection + Check Dependabot security updates """ - url: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( - default=UNSET, - title="Protected Branch Required Status Check", - description="Protected Branch Required Status Check", - ) - enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( - default=UNSET, - title="Protected Branch Admin Enforced", - description="Protected Branch Admin Enforced", - ) - required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( - default=UNSET, - title="Protected Branch Pull Request Review", - description="Protected Branch Pull Request Review", - ) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( - default=UNSET + enabled: bool = Field( + description="Whether Dependabot security updates are enabled for the repository." ) - allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) - block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) - required_conversation_resolution: Missing[ - BranchProtectionPropRequiredConversationResolution - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - protection_url: Missing[str] = Field(default=UNSET) - required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( - default=UNSET + paused: bool = Field( + description="Whether Dependabot security updates are paused for the repository." ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: list[str] = Field() - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ( - "BranchProtection", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowForkSyncing", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropLockBranch", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropRequiredSignatures", - "ProtectedBranchAdminEnforced", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", -) +__all__ = ("CheckAutomatedSecurityFixes",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0262.py b/githubkit/versions/ghec_v2022_11_28/models/group_0262.py index bbbb9ef0a..e84825406 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0262.py @@ -15,35 +15,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0261 import BranchProtection +from .group_0263 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, + ProtectedBranchPullRequestReviewPropDismissalRestrictions, +) -class ShortBranch(GitHubModel): - """Short Branch +class ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review - Short Branch + Protected Branch Pull Request Review """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" + url: Missing[str] = Field(default=UNSET) + dismissal_restrictions: Missing[ + ProtectedBranchPullRequestReviewPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + dismiss_stale_reviews: bool = Field() + require_code_owner_reviews: bool = Field() + required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() - url: str = Field() -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) +model_rebuild(ProtectedBranchPullRequestReview) -__all__ = ( - "ShortBranch", - "ShortBranchPropCommit", -) +__all__ = ("ProtectedBranchPullRequestReview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0263.py b/githubkit/versions/ghec_v2022_11_28/models/group_0263.py index 1a688a15a..6d17a2624 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0263.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field @@ -17,18 +17,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0067 import Team -class GitUser(GitHubModel): - """Git User - Metaproperties for Git author/committer information. +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: Missing[list[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." + ) + teams: Missing[list[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." + ) + url: Missing[str] = Field(default=UNSET) + users_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - date: Missing[datetime] = Field(default=UNSET) + users: Missing[list[SimpleUser]] = Field( + default=UNSET, + description="The list of users allowed to bypass pull request requirements.", + ) + teams: Missing[list[Team]] = Field( + default=UNSET, + description="The list of teams allowed to bypass pull request requirements.", + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, + description="The list of apps allowed to bypass pull request requirements.", + ) -model_rebuild(GitUser) +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) -__all__ = ("GitUser",) +__all__ = ( + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0264.py b/githubkit/versions/ghec_v2022_11_28/models/group_0264.py index 1c8f9d7fa..b02082cc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0264.py @@ -14,18 +14,137 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Verification(GitHubModel): - """Verification""" +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy - verified: bool = Field() - reason: str = Field() - payload: Union[str, None] = Field() - signature: Union[str, None] = Field() - verified_at: Union[str, None] = Field() + Branch Restriction Policy + """ + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + apps_url: str = Field() + users: list[BranchRestrictionPolicyPropUsersItems] = Field() + teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() + apps: list[BranchRestrictionPolicyPropAppsItems] = Field() -model_rebuild(Verification) -__all__ = ("Verification",) +class BranchRestrictionPolicyPropUsersItems(GitHubModel): + """BranchRestrictionPolicyPropUsersItems""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropTeamsItems(GitHubModel): + """BranchRestrictionPolicyPropTeamsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + parent: Missing[Union[str, None]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItems(GitHubModel): + """BranchRestrictionPolicyPropAppsItems""" + + id: Missing[int] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + client_id: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + external_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( + default=UNSET + ) + events: Missing[list[str]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + issues: Missing[str] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) + + +model_rebuild(BranchRestrictionPolicy) +model_rebuild(BranchRestrictionPolicyPropUsersItems) +model_rebuild(BranchRestrictionPolicyPropTeamsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) + +__all__ = ( + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropUsersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0265.py b/githubkit/versions/ghec_v2022_11_28/models/group_0265.py index 3625474ad..9bd85cc62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0265.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,28 +17,176 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0262 import ProtectedBranchPullRequestReview +from .group_0264 import BranchRestrictionPolicy -class DiffEntry(GitHubModel): - """Diff Entry - Diff Entry +class BranchProtection(GitHubModel): + """Branch Protection + + Branch Protection + """ + + url: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( + default=UNSET, + title="Protected Branch Required Status Check", + description="Protected Branch Required Status Check", + ) + enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( + default=UNSET, + title="Protected Branch Admin Enforced", + description="Protected Branch Admin Enforced", + ) + required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( + default=UNSET, + title="Protected Branch Pull Request Review", + description="Protected Branch Pull Request Review", + ) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) + block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) + required_conversation_resolution: Missing[ + BranchProtectionPropRequiredConversationResolution + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + protection_url: Missing[str] = Field(default=UNSET) + required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( + default=UNSET + ) + lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchAdminEnforced(GitHubModel): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropRequiredLinearHistory(GitHubModel): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForcePushes(GitHubModel): + """BranchProtectionPropAllowForcePushes""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowDeletions(GitHubModel): + """BranchProtectionPropAllowDeletions""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropBlockCreations(GitHubModel): + """BranchProtectionPropBlockCreations""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredConversationResolution(GitHubModel): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredSignatures(GitHubModel): + """BranchProtectionPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropLockBranch(GitHubModel): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. """ - sha: Union[str, None] = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: Union[str, None] = Field() - raw_url: Union[str, None] = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForkSyncing(GitHubModel): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheck(GitHubModel): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: Missing[str] = Field(default=UNSET) + enforcement_level: Missing[str] = Field(default=UNSET) + contexts: list[str] = Field() + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() + contexts_url: Missing[str] = Field(default=UNSET) + strict: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(DiffEntry) +model_rebuild(BranchProtection) +model_rebuild(ProtectedBranchAdminEnforced) +model_rebuild(BranchProtectionPropRequiredLinearHistory) +model_rebuild(BranchProtectionPropAllowForcePushes) +model_rebuild(BranchProtectionPropAllowDeletions) +model_rebuild(BranchProtectionPropBlockCreations) +model_rebuild(BranchProtectionPropRequiredConversationResolution) +model_rebuild(BranchProtectionPropRequiredSignatures) +model_rebuild(BranchProtectionPropLockBranch) +model_rebuild(BranchProtectionPropAllowForkSyncing) +model_rebuild(ProtectedBranchRequiredStatusCheck) +model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) -__all__ = ("DiffEntry",) +__all__ = ( + "BranchProtection", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowForkSyncing", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropLockBranch", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropRequiredSignatures", + "ProtectedBranchAdminEnforced", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0266.py b/githubkit/versions/ghec_v2022_11_28/models/group_0266.py index ac7de7682..9148c430c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0266.py @@ -9,69 +9,41 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0265 import DiffEntry -from .group_0267 import CommitPropCommit +from .group_0265 import BranchProtection -class Commit(GitHubModel): - """Commit +class ShortBranch(GitHubModel): + """Short Branch - Commit + Short Branch """ - url: str = Field() - sha: str = Field() - node_id: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitPropCommit = Field() - author: Union[SimpleUser, EmptyObject, None] = Field() - committer: Union[SimpleUser, EmptyObject, None] = Field() - parents: list[CommitPropParentsItems] = Field() - stats: Missing[CommitPropStats] = Field(default=UNSET) - files: Missing[list[DiffEntry]] = Field(default=UNSET) - - -class EmptyObject(GitHubModel): - """Empty Object - - An object without any properties. - """ + name: str = Field() + commit: ShortBranchPropCommit = Field() + protected: bool = Field() + protection: Missing[BranchProtection] = Field( + default=UNSET, title="Branch Protection", description="Branch Protection" + ) + protection_url: Missing[str] = Field(default=UNSET) -class CommitPropParentsItems(GitHubModel): - """CommitPropParentsItems""" +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" sha: str = Field() url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - - -class CommitPropStats(GitHubModel): - """CommitPropStats""" - - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - total: Missing[int] = Field(default=UNSET) -model_rebuild(Commit) -model_rebuild(EmptyObject) -model_rebuild(CommitPropParentsItems) -model_rebuild(CommitPropStats) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) __all__ = ( - "Commit", - "CommitPropParentsItems", - "CommitPropStats", - "EmptyObject", + "ShortBranch", + "ShortBranchPropCommit", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0267.py b/githubkit/versions/ghec_v2022_11_28/models/group_0267.py index e88b7509d..1a688a15a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0267.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field @@ -17,33 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0263 import GitUser -from .group_0264 import Verification +class GitUser(GitHubModel): + """Git User -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" + Metaproperties for Git author/committer information. + """ - url: str = Field() - author: Union[None, GitUser] = Field() - committer: Union[None, GitUser] = Field() - message: str = Field() - comment_count: int = Field() - tree: CommitPropCommitPropTree = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) -class CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" +model_rebuild(GitUser) - sha: str = Field() - url: str = Field() - - -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) - -__all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", -) +__all__ = ("GitUser",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0268.py b/githubkit/versions/ghec_v2022_11_28/models/group_0268.py index 5e1a20f12..1c8f9d7fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0268.py @@ -9,45 +9,23 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0261 import BranchProtection -from .group_0266 import Commit - - -class BranchWithProtection(GitHubModel): - """Branch With Protection - - Branch With Protection - """ - - name: str = Field() - commit: Commit = Field(title="Commit", description="Commit") - links: BranchWithProtectionPropLinks = Field(alias="_links") - protected: bool = Field() - protection: BranchProtection = Field( - title="Branch Protection", description="Branch Protection" - ) - protection_url: str = Field() - pattern: Missing[str] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" +class Verification(GitHubModel): + """Verification""" - html: str = Field() - self_: str = Field(alias="self") + verified: bool = Field() + reason: str = Field() + payload: Union[str, None] = Field() + signature: Union[str, None] = Field() + verified_at: Union[str, None] = Field() -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(Verification) -__all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", -) +__all__ = ("Verification",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0269.py b/githubkit/versions/ghec_v2022_11_28/models/group_0269.py index fdfa03fd0..3625474ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0269.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,161 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0260 import BranchRestrictionPolicy -from .group_0270 import ProtectedBranchPropRequiredPullRequestReviews +class DiffEntry(GitHubModel): + """Diff Entry -class ProtectedBranch(GitHubModel): - """Protected Branch - - Branch protections protect branches - """ - - url: str = Field() - required_status_checks: Missing[StatusCheckPolicy] = Field( - default=UNSET, title="Status Check Policy", description="Status Check Policy" - ) - required_pull_request_reviews: Missing[ - ProtectedBranchPropRequiredPullRequestReviews - ] = Field(default=UNSET) - required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( - default=UNSET - ) - enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) - required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_conversation_resolution: Missing[ - ProtectedBranchPropRequiredConversationResolution - ] = Field(default=UNSET) - block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) - lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropEnforceAdmins(GitHubModel): - """ProtectedBranchPropEnforceAdmins""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropRequiredLinearHistory(GitHubModel): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowForcePushes(GitHubModel): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowDeletions(GitHubModel): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool = Field() - - -class ProtectedBranchPropRequiredConversationResolution(GitHubModel): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropBlockCreations(GitHubModel): - """ProtectedBranchPropBlockCreations""" - - enabled: bool = Field() - - -class ProtectedBranchPropLockBranch(GitHubModel): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropAllowForkSyncing(GitHubModel): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class StatusCheckPolicy(GitHubModel): - """Status Check Policy - - Status Check Policy + Diff Entry """ - url: str = Field() - strict: bool = Field() - contexts: list[str] = Field() - checks: list[StatusCheckPolicyPropChecksItems] = Field() - contexts_url: str = Field() - - -class StatusCheckPolicyPropChecksItems(GitHubModel): - """StatusCheckPolicyPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() + sha: Union[str, None] = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: Union[str, None] = Field() + raw_url: Union[str, None] = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) -model_rebuild(ProtectedBranch) -model_rebuild(ProtectedBranchPropRequiredSignatures) -model_rebuild(ProtectedBranchPropEnforceAdmins) -model_rebuild(ProtectedBranchPropRequiredLinearHistory) -model_rebuild(ProtectedBranchPropAllowForcePushes) -model_rebuild(ProtectedBranchPropAllowDeletions) -model_rebuild(ProtectedBranchPropRequiredConversationResolution) -model_rebuild(ProtectedBranchPropBlockCreations) -model_rebuild(ProtectedBranchPropLockBranch) -model_rebuild(ProtectedBranchPropAllowForkSyncing) -model_rebuild(StatusCheckPolicy) -model_rebuild(StatusCheckPolicyPropChecksItems) +model_rebuild(DiffEntry) -__all__ = ( - "ProtectedBranch", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowForkSyncing", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropRequiredSignatures", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", -) +__all__ = ("DiffEntry",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0270.py b/githubkit/versions/ghec_v2022_11_28/models/group_0270.py index 97ff543f9..70a55b176 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0270.py @@ -9,37 +9,69 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0271 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, -) +from .group_0003 import SimpleUser +from .group_0269 import DiffEntry +from .group_0271 import CommitPropCommit + +class Commit(GitHubModel): + """Commit -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" + Commit + """ url: str = Field() - dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) - require_code_owner_reviews: Missing[bool] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", - ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) - - -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) + sha: str = Field() + node_id: str = Field() + html_url: str = Field() + comments_url: str = Field() + commit: CommitPropCommit = Field() + author: Union[SimpleUser, EmptyObject, None] = Field() + committer: Union[SimpleUser, EmptyObject, None] = Field() + parents: list[CommitPropParentsItems] = Field() + stats: Missing[CommitPropStats] = Field(default=UNSET) + files: Missing[list[DiffEntry]] = Field(default=UNSET) + + +class EmptyObject(GitHubModel): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItems(GitHubModel): + """CommitPropParentsItems""" + + sha: str = Field() + url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + + +class CommitPropStats(GitHubModel): + """CommitPropStats""" + + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) + + +model_rebuild(Commit) +model_rebuild(EmptyObject) +model_rebuild(CommitPropParentsItems) +model_rebuild(CommitPropStats) + +__all__ = ( + "Commit", + "CommitPropParentsItems", + "CommitPropStats", + "EmptyObject", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0271.py b/githubkit/versions/ghec_v2022_11_28/models/group_0271.py index 7a8d3e269..d02e29c3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0271.py @@ -17,40 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0067 import Team +from .group_0267 import GitUser +from .group_0268 import Verification -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" url: str = Field() - users_url: str = Field() - teams_url: str = Field() - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + author: Union[None, GitUser] = Field() + committer: Union[None, GitUser] = Field() + message: str = Field() + comment_count: int = Field() + tree: CommitPropCommitPropTree = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + sha: str = Field() + url: str = Field() -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) +model_rebuild(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", + "CommitPropCommit", + "CommitPropCommitPropTree", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0272.py b/githubkit/versions/ghec_v2022_11_28/models/group_0272.py index 7a0f9e876..8a0807440 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0272.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0272.py @@ -9,49 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration +from .group_0265 import BranchProtection +from .group_0270 import Commit -class DeploymentSimple(GitHubModel): - """Deployment +class BranchWithProtection(GitHubModel): + """Branch With Protection - A deployment created as the result of an Actions check run from a workflow that - references an environment + Branch With Protection """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - task: str = Field(description="Parameter to specify a task to execute") - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + name: str = Field() + commit: Commit = Field(title="Commit", description="Commit") + links: BranchWithProtectionPropLinks = Field(alias="_links") + protected: bool = Field() + protection: BranchProtection = Field( + title="Branch Protection", description="Branch Protection" ) + protection_url: str = Field() + pattern: Missing[str] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + + +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" + + html: str = Field() + self_: str = Field(alias="self") -model_rebuild(DeploymentSimple) +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) -__all__ = ("DeploymentSimple",) +__all__ = ( + "BranchWithProtection", + "BranchWithProtectionPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0273.py b/githubkit/versions/ghec_v2022_11_28/models/group_0273.py index 6143546d9..7c4621b1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0273.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,79 +17,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0245 import PullRequestMinimal -from .group_0272 import DeploymentSimple +from .group_0264 import BranchRestrictionPolicy +from .group_0274 import ProtectedBranchPropRequiredPullRequestReviews -class CheckRun(GitHubModel): - """CheckRun +class ProtectedBranch(GitHubModel): + """Protected Branch - A check performed on the code of a given code change + Branch protections protect branches """ - id: int = Field(description="The id of the check.") - head_sha: str = Field(description="The SHA of the commit that is being checked.") - node_id: str = Field() - external_id: Union[str, None] = Field() url: str = Field() - html_url: Union[str, None] = Field() - details_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field( - description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." + required_status_checks: Missing[StatusCheckPolicy] = Field( + default=UNSET, title="Status Check Policy", description="Status Check Policy" ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - started_at: Union[datetime, None] = Field() - completed_at: Union[datetime, None] = Field() - output: CheckRunPropOutput = Field() - name: str = Field(description="The name of the check.") - check_suite: Union[CheckRunPropCheckSuite, None] = Field() - app: Union[None, Integration, None] = Field() - pull_requests: list[PullRequestMinimal] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." + required_pull_request_reviews: Missing[ + ProtectedBranchPropRequiredPullRequestReviews + ] = Field(default=UNSET) + required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( + default=UNSET ) - deployment: Missing[DeploymentSimple] = Field( + enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) + required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_conversation_resolution: Missing[ + ProtectedBranchPropRequiredConversationResolution + ] = Field(default=UNSET) + block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) + lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", ) -class CheckRunPropOutput(GitHubModel): - """CheckRunPropOutput""" +class ProtectedBranchPropRequiredSignatures(GitHubModel): + """ProtectedBranchPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropRequiredLinearHistory(GitHubModel): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowForcePushes(GitHubModel): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowDeletions(GitHubModel): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool = Field() - title: Union[str, None] = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - annotations_count: int = Field() - annotations_url: str = Field() + +class ProtectedBranchPropRequiredConversationResolution(GitHubModel): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropBlockCreations(GitHubModel): + """ProtectedBranchPropBlockCreations""" + + enabled: bool = Field() + + +class ProtectedBranchPropLockBranch(GitHubModel): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropAllowForkSyncing(GitHubModel): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class StatusCheckPolicy(GitHubModel): + """Status Check Policy + + Status Check Policy + """ + + url: str = Field() + strict: bool = Field() + contexts: list[str] = Field() + checks: list[StatusCheckPolicyPropChecksItems] = Field() + contexts_url: str = Field() -class CheckRunPropCheckSuite(GitHubModel): - """CheckRunPropCheckSuite""" +class StatusCheckPolicyPropChecksItems(GitHubModel): + """StatusCheckPolicyPropChecksItems""" - id: int = Field() + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(CheckRun) -model_rebuild(CheckRunPropOutput) -model_rebuild(CheckRunPropCheckSuite) +model_rebuild(ProtectedBranch) +model_rebuild(ProtectedBranchPropRequiredSignatures) +model_rebuild(ProtectedBranchPropEnforceAdmins) +model_rebuild(ProtectedBranchPropRequiredLinearHistory) +model_rebuild(ProtectedBranchPropAllowForcePushes) +model_rebuild(ProtectedBranchPropAllowDeletions) +model_rebuild(ProtectedBranchPropRequiredConversationResolution) +model_rebuild(ProtectedBranchPropBlockCreations) +model_rebuild(ProtectedBranchPropLockBranch) +model_rebuild(ProtectedBranchPropAllowForkSyncing) +model_rebuild(StatusCheckPolicy) +model_rebuild(StatusCheckPolicyPropChecksItems) __all__ = ( - "CheckRun", - "CheckRunPropCheckSuite", - "CheckRunPropOutput", + "ProtectedBranch", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowForkSyncing", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropRequiredSignatures", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0274.py b/githubkit/versions/ghec_v2022_11_28/models/group_0274.py index 2dfb0cd0e..47a21c51f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0274.py @@ -9,31 +9,37 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0275 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, +) -class CheckAnnotation(GitHubModel): - """Check Annotation - Check Annotation - """ +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() + url: str = Field() + dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) + require_code_owner_reviews: Missing[bool] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", + ) + dismissal_restrictions: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field(default=UNSET) -model_rebuild(CheckAnnotation) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) -__all__ = ("CheckAnnotation",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0275.py b/githubkit/versions/ghec_v2022_11_28/models/group_0275.py index 856cdc569..7a8d3e269 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0275.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,74 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0168 import MinimalRepository -from .group_0245 import PullRequestMinimal -from .group_0246 import SimpleCommit - - -class CheckSuite(GitHubModel): - """CheckSuite - - A suite of checks performed on the code of a given code change - """ - - id: int = Field() - node_id: str = Field() - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] = Field( - description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." - ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] = Field() - url: Union[str, None] = Field() - before: Union[str, None] = Field() - after: Union[str, None] = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field() - app: Union[None, Integration, None] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") - latest_check_runs_count: int = Field() - check_runs_url: str = Field() - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - - -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - - total_count: int = Field() - check_suites: list[CheckSuite] = Field() - - -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) +from .group_0067 import Team + + +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" + + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) +model_rebuild( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) __all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0276.py b/githubkit/versions/ghec_v2022_11_28/models/group_0276.py index fb7182c4a..7a0f9e876 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0276.py @@ -9,48 +9,49 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0168 import MinimalRepository +from .group_0010 import Integration -class CheckSuitePreference(GitHubModel): - """Check Suite Preference +class DeploymentSimple(GitHubModel): + """Deployment - Check suite configuration preferences for a repository. + A deployment created as the result of an Actions check run from a workflow that + references an environment """ - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + task: str = Field(description="Parameter to specify a task to execute") + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + ) + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: Missing[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] - ] = Field(default=UNSET) - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int = Field() - setting: bool = Field() - - -model_rebuild(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(DeploymentSimple) -__all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", -) +__all__ = ("DeploymentSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0277.py b/githubkit/versions/ghec_v2022_11_28/models/group_0277.py index b8ff52a04..d14496c09 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0277.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0277.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,56 +18,79 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0055 import CodeScanningAlertRuleSummary -from .group_0056 import CodeScanningAnalysisTool -from .group_0057 import CodeScanningAlertInstance +from .group_0010 import Integration +from .group_0249 import PullRequestMinimal +from .group_0276 import DeploymentSimple -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" +class CheckRun(GitHubModel): + """CheckRun - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." + A check performed on the code of a given code change + """ + + id: int = Field(description="The id of the check.") + head_sha: str = Field(description="The SHA of the commit that is being checked.") + node_id: str = Field() + external_id: Union[str, None] = Field() + url: str = Field() + html_url: Union[str, None] = Field() + details_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field( + description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + started_at: Union[datetime, None] = Field() + completed_at: Union[datetime, None] = Field() + output: CheckRunPropOutput = Field() + name: str = Field(description="The name of the check.") + check_suite: Union[CheckRunPropCheckSuite, None] = Field() + app: Union[None, Integration, None] = Field() + pull_requests: list[PullRequestMinimal] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." ) - fixed_at: Missing[Union[datetime, None]] = Field( + deployment: Missing[DeploymentSimple] = Field( default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CodeScanningAlertItems) +class CheckRunPropOutput(GitHubModel): + """CheckRunPropOutput""" + + title: Union[str, None] = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + annotations_count: int = Field() + annotations_url: str = Field() + + +class CheckRunPropCheckSuite(GitHubModel): + """CheckRunPropCheckSuite""" + + id: int = Field() + + +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) -__all__ = ("CodeScanningAlertItems",) +__all__ = ( + "CheckRun", + "CheckRunPropCheckSuite", + "CheckRunPropOutput", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0278.py b/githubkit/versions/ghec_v2022_11_28/models/group_0278.py index b43f7a91a..2dfb0cd0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0278.py @@ -9,105 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0056 import CodeScanningAnalysisTool -from .group_0057 import CodeScanningAlertInstance +class CheckAnnotation(GitHubModel): + """Check Annotation -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" + Check Annotation + """ - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + path: str = Field() + start_line: int = Field() + end_line: int = Field() + start_column: Union[int, None] = Field() + end_column: Union[int, None] = Field() + annotation_level: Union[str, None] = Field() + title: Union[str, None] = Field() + message: Union[str, None] = Field() + raw_details: Union[str, None] = Field() + blob_href: str = Field() -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" +model_rebuild(CheckAnnotation) - id: Missing[Union[str, None]] = Field( - default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." - ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( - default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="A description of the rule used to detect the alert." - ) - tags: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", - ) - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - - -model_rebuild(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) - -__all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", -) +__all__ = ("CheckAnnotation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0279.py b/githubkit/versions/ghec_v2022_11_28/models/group_0279.py index 9ae48ea96..b01b3b0d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0279.py @@ -15,20 +15,77 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0171 import MinimalRepository +from .group_0249 import PullRequestMinimal +from .group_0250 import SimpleCommit -class CodeScanningAutofix(GitHubModel): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] = Field( - description="The status of an autofix." +class CheckSuite(GitHubModel): + """CheckSuite + + A suite of checks performed on the code of a given code change + """ + + id: int = Field() + node_id: str = Field() + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] = Field( + description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." ) - description: Union[str, None] = Field(description="The description of an autofix.") - started_at: datetime = Field( - description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] = Field() + url: Union[str, None] = Field() + before: Union[str, None] = Field() + after: Union[str, None] = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field() + app: Union[None, Integration, None] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + latest_check_runs_count: int = Field() + check_runs_url: str = Field() + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: list[CheckSuite] = Field() -model_rebuild(CodeScanningAutofix) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAutofix",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0280.py b/githubkit/versions/ghec_v2022_11_28/models/group_0280.py index c0777bd5b..80bceda2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0280.py @@ -15,22 +15,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0171 import MinimalRepository -class CodeScanningAutofixCommits(GitHubModel): - """CodeScanningAutofixCommits - Commit an autofix for a code scanning alert +class CheckSuitePreference(GitHubModel): + """Check Suite Preference + + Check suite configuration preferences for a repository. """ - target_ref: Missing[str] = Field( - default=UNSET, - description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', - ) - message: Missing[str] = Field( - default=UNSET, description="Commit message to be used." + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) -model_rebuild(CodeScanningAutofixCommits) +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: Missing[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() + + +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) -__all__ = ("CodeScanningAutofixCommits",) +__all__ = ( + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0281.py b/githubkit/versions/ghec_v2022_11_28/models/group_0281.py index 02e796aba..b8ff52a04 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0281.py @@ -9,23 +9,65 @@ from __future__ import annotations +from datetime import datetime +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0055 import CodeScanningAlertRuleSummary +from .group_0056 import CodeScanningAnalysisTool +from .group_0057 import CodeScanningAlertInstance + -class CodeScanningAutofixCommitsResponse(GitHubModel): - """CodeScanningAutofixCommitsResponse""" +class CodeScanningAlertItems(GitHubModel): + """CodeScanningAlertItems""" - target_ref: Missing[str] = Field( + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) - sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CodeScanningAutofixCommitsResponse) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningAutofixCommitsResponse",) +__all__ = ("CodeScanningAlertItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0282.py b/githubkit/versions/ghec_v2022_11_28/models/group_0282.py index 7613c8622..b43f7a91a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0282.py @@ -10,6 +10,7 @@ from __future__ import annotations from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,49 +18,96 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser from .group_0056 import CodeScanningAnalysisTool +from .group_0057 import CodeScanningAlertInstance -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - ref: str = Field( - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." ) - environment: str = Field( - description="Identifies the variable values associated with the environment in which this analysis was performed." + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." ) - category: Missing[str] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - error: str = Field() - created_at: datetime = Field( - description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - results_count: int = Field( - description="The total number of results in the analysis." + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." ) - rules_count: int = Field( - description="The total number of rules used in the analysis." + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) - id: int = Field(description="Unique identifier for this analysis.") - url: str = Field(description="The REST API URL of the analysis resource.") - sarif_id: str = Field(description="An identifier for the upload.") + rule: CodeScanningAlertRule = Field() tool: CodeScanningAnalysisTool = Field() - deletable: bool = Field() - warning: str = Field(description="Warning generated when processing the analysis") + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + + +class CodeScanningAlertRule(GitHubModel): + """CodeScanningAlertRule""" + + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", + ) + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." + ) + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." + ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( + default=UNSET, + description="A short description of the rule used to detect the alert.", + ) + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the alert." + ) + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." + ) + help_: Missing[Union[str, None]] = Field( + default=UNSET, + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", + ) + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) -model_rebuild(CodeScanningAnalysis) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningAnalysis",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0283.py b/githubkit/versions/ghec_v2022_11_28/models/group_0283.py index d589823d8..9ae48ea96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0283.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0283.py @@ -9,27 +9,26 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion +class CodeScanningAutofix(GitHubModel): + """CodeScanningAutofix""" - Successful deletion of a code scanning analysis - """ - - next_analysis_url: Union[str, None] = Field( - description="Next deletable analysis in chain, without last analysis deletion confirmation" + status: Literal["pending", "error", "success", "outdated"] = Field( + description="The status of an autofix." ) - confirm_delete_url: Union[str, None] = Field( - description="Next deletable analysis in chain, with last analysis deletion confirmation" + description: Union[str, None] = Field(description="The description of an autofix.") + started_at: datetime = Field( + description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) -model_rebuild(CodeScanningAnalysisDeletion) +model_rebuild(CodeScanningAutofix) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ("CodeScanningAutofix",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0284.py b/githubkit/versions/ghec_v2022_11_28/models/group_0284.py index 03bb03a35..c0777bd5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0284.py @@ -9,45 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CodeScanningAutofixCommits(GitHubModel): + """CodeScanningAutofixCommits - A CodeQL database. + Commit an autofix for a code scanning alert """ - id: int = Field(description="The ID of the CodeQL database.") - name: str = Field(description="The name of the CodeQL database.") - language: str = Field(description="The language of the CodeQL database.") - uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") - content_type: str = Field(description="The MIME type of the CodeQL database file.") - size: int = Field(description="The size of the CodeQL database file in bytes.") - created_at: datetime = Field( - description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - url: str = Field( - description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." - ) - commit_oid: Missing[Union[str, None]] = Field( + target_ref: Missing[str] = Field( default=UNSET, - description="The commit SHA of the repository at the time the CodeQL database was created.", + description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', + ) + message: Missing[str] = Field( + default=UNSET, description="Commit message to be used." ) -model_rebuild(CodeScanningCodeqlDatabase) +model_rebuild(CodeScanningAutofixCommits) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ("CodeScanningAutofixCommits",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0285.py b/githubkit/versions/ghec_v2022_11_28/models/group_0285.py index 4561ffbb1..02e796aba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0285.py @@ -9,30 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier - - Repository Identifier - """ +class CodeScanningAutofixCommitsResponse(GitHubModel): + """CodeScanningAutofixCommitsResponse""" - id: int = Field(description="A unique identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." + target_ref: Missing[str] = Field( + default=UNSET, + description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() + sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAutofixCommitsResponse) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ("CodeScanningAutofixCommitsResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0286.py b/githubkit/versions/ghec_v2022_11_28/models/group_0286.py index 5388eafc0..7613c8622 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0286.py @@ -9,24 +9,57 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0285 import CodeScanningVariantAnalysisRepository +from .group_0056 import CodeScanningAnalysisTool -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." + ) + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + environment: str = Field( + description="Identifies the variable values associated with the environment in which this analysis was performed." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + ) + error: str = Field() + created_at: datetime = Field( + description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + results_count: int = Field( + description="The total number of results in the analysis." ) - repositories: list[CodeScanningVariantAnalysisRepository] = Field( - description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." + rules_count: int = Field( + description="The total number of rules used in the analysis." ) + id: int = Field(description="Unique identifier for this analysis.") + url: str = Field(description="The REST API URL of the analysis resource.") + sarif_id: str = Field(description="An identifier for the upload.") + tool: CodeScanningAnalysisTool = Field() + deletable: bool = Field() + warning: str = Field(description="Warning generated when processing the analysis") -model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningAnalysis) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ("CodeScanningAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0287.py b/githubkit/versions/ghec_v2022_11_28/models/group_0287.py index b49384b9a..d589823d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0287.py @@ -9,70 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0058 import SimpleRepository -from .group_0288 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -from .group_0289 import CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Successful deletion of a code scanning analysis """ - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", - ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( - default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", - ) - failure_reason: Missing[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] = Field( - default=UNSET, - description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", + next_analysis_url: Union[str, None] = Field( + description="Next deletable analysis in chain, without last analysis deletion confirmation" ) - scanned_repositories: Missing[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] - ] = Field(default=UNSET) - skipped_repositories: Missing[ - CodeScanningVariantAnalysisPropSkippedRepositories - ] = Field( - default=UNSET, - description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", + confirm_delete_url: Union[str, None] = Field( + description="Next deletable analysis in chain, with last analysis deletion confirmation" ) -model_rebuild(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningAnalysisDeletion",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0288.py b/githubkit/versions/ghec_v2022_11_28/models/group_0288.py index cbef8f151..03bb03a35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0288.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,34 +18,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0285 import CodeScanningVariantAnalysisRepository +from .group_0003 import SimpleUser -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database - repository: CodeScanningVariantAnalysisRepository = Field( - title="Repository Identifier", description="Repository Identifier" - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." + A CodeQL database. + """ + + id: int = Field(description="The ID of the CodeQL database.") + name: str = Field(description="The name of the CodeQL database.") + language: str = Field(description="The language of the CodeQL database.") + uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") + content_type: str = Field(description="The MIME type of the CodeQL database file.") + size: int = Field(description="The size of the CodeQL database file in bytes.") + created_at: datetime = Field( + description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + updated_at: datetime = Field( + description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", + url: str = Field( + description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." ) - failure_message: Missing[str] = Field( + commit_oid: Missing[Union[str, None]] = Field( default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + description="The commit SHA of the repository at the time the CodeQL database was created.", ) -model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningCodeqlDatabase",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0289.py b/githubkit/versions/ghec_v2022_11_28/models/group_0289.py index 4b3899d16..4561ffbb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0289.py @@ -9,41 +9,30 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0286 import CodeScanningVariantAnalysisSkippedRepoGroup - -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Repository Identifier """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." - ) - repository_full_names: list[str] = Field( - description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." + id: int = Field(description="A unique identifier of the repository.") + name: str = Field(description="The name of the repository.") + full_name: str = Field( + description="The full, globally unique, name of the repository." ) + private: bool = Field(description="Whether the repository is private.") + stargazers_count: int = Field() + updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningVariantAnalysisRepository) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningVariantAnalysisRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0290.py b/githubkit/versions/ghec_v2022_11_28/models/group_0290.py index 5bdfd3a6d..c150e716a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0290.py @@ -9,54 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0058 import SimpleRepository +from .group_0289 import CodeScanningVariantAnalysisRepository -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", - ) - failure_message: Missing[str] = Field( - default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", - ) - database_commit_sha: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", - ) - source_location_prefix: Missing[str] = Field( - default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + repositories: list[CodeScanningVariantAnalysisRepository] = Field( + description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." ) -model_rebuild(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0291.py b/githubkit/versions/ghec_v2022_11_28/models/group_0291.py index db0cf7ba2..3afc02cea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0291.py @@ -18,52 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0058 import SimpleRepository +from .group_0292 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +from .group_0293 import CodeScanningVariantAnalysisPropSkippedRepositories -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: Missing[Literal["configured", "not-configured"]] = Field( + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( default=UNSET, - description="Code scanning default setup has been configured or not.", + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] = Field(default=UNSET, description="Languages to be analyzed.") - runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( - default=UNSET, description="Runner type to be used." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - runner_label: Missing[Union[str, None]] = Field( + completed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Runner label to be used if the runner type is labeled.", + description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() + actions_workflow_run_id: Missing[int] = Field( + default=UNSET, + description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." + failure_reason: Missing[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] = Field( + default=UNSET, + description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic analysis." + scanned_repositories: Missing[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] + ] = Field(default=UNSET) + skipped_repositories: Missing[ + CodeScanningVariantAnalysisPropSkippedRepositories + ] = Field( + default=UNSET, + description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", ) -model_rebuild(CodeScanningDefaultSetup) +model_rebuild(CodeScanningVariantAnalysis) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ("CodeScanningVariantAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0292.py b/githubkit/versions/ghec_v2022_11_28/models/group_0292.py index 089b0befc..b94446c0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0292.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,43 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0289 import CodeScanningVariantAnalysisRepository -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. - """ +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." + repository: CodeScanningVariantAnalysisRepository = Field( + title="Repository Identifier", description="Repository Identifier" ) - runner_type: Missing[Literal["standard", "labeled"]] = Field( - default=UNSET, description="Runner type to be used." + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." ) - runner_label: Missing[Union[str, None]] = Field( + result_count: Missing[int] = Field( default=UNSET, - description="Runner label to be used if the runner type is labeled.", + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") - - -model_rebuild(CodeScanningDefaultSetupUpdate) - -__all__ = ("CodeScanningDefaultSetupUpdate",) + + +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) + +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0293.py b/githubkit/versions/ghec_v2022_11_28/models/group_0293.py index 4bb252bf7..1ff2862cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0293.py @@ -12,26 +12,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0290 import CodeScanningVariantAnalysisSkippedRepoGroup -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories + + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + repository_full_names: list[str] = Field( + description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0294.py b/githubkit/versions/ghec_v2022_11_28/models/group_0294.py index a7508c529..5bdfd3a6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0294.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0058 import SimpleRepository + -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." + ) + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + result_count: Missing[int] = Field( + default=UNSET, + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + ) + database_commit_sha: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", + ) + source_location_prefix: Missing[str] = Field( + default=UNSET, + description="The source location prefix to use. This is only available for successful analyses.", + ) + artifact_url: Missing[str] = Field( default=UNSET, - description="The REST API URL for checking the status of the upload.", + description="The URL of the artifact. This is only available for successful analyses.", ) -model_rebuild(CodeScanningSarifsReceipt) +model_rebuild(CodeScanningVariantAnalysisRepoTask) -__all__ = ("CodeScanningSarifsReceipt",) +__all__ = ("CodeScanningVariantAnalysisRepoTask",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0295.py b/githubkit/versions/ghec_v2022_11_28/models/group_0295.py index 525bd5e50..3bf43d51a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0295.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,23 +19,55 @@ from githubkit.utils import UNSET -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + Configuration for code scanning default setup. + """ + + state: Missing[Literal["configured", "not-configured"]] = Field( default=UNSET, - description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + description="Code scanning default setup has been configured or not.", + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] = Field(default=UNSET, description="Languages to be analyzed.") + runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( + default=UNSET, description="Runner type to be used." ) - analyses_url: Missing[Union[str, None]] = Field( + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="The REST API URL for getting the analyses associated with the upload.", + description="Runner label to be used if the runner type is labeled.", + ) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." ) - errors: Missing[Union[list[str], None]] = Field( + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." + ) + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ("CodeScanningDefaultSetup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0296.py b/githubkit/versions/ghec_v2022_11_28/models/group_0296.py index c9397d1d8..05b0b46a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0296.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,35 +17,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0060 import CodeSecurityConfiguration +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate -class CodeSecurityConfigurationForRepository(GitHubModel): - """CodeSecurityConfigurationForRepository - - Code security configuration associated with a repository and attachment status + Configuration for code scanning default setup. """ - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] = Field( + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." + ) + runner_type: Missing[Literal["standard", "labeled"]] = Field( + default=UNSET, description="Runner type to be used." + ) + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="The attachment status of the code security configuration on the repository.", + description="Runner label to be used if the runner type is labeled.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." ) + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + default=UNSET, + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") -model_rebuild(CodeSecurityConfigurationForRepository) +model_rebuild(CodeScanningDefaultSetupUpdate) -__all__ = ("CodeSecurityConfigurationForRepository",) +__all__ = ("CodeScanningDefaultSetupUpdate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0297.py b/githubkit/versions/ghec_v2022_11_28/models/group_0297.py index b356aafc8..4bb252bf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0297.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,38 +16,22 @@ from githubkit.utils import UNSET -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - A list of errors found in a repo's CODEOWNERS file + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - errors: list[CodeownersErrorsPropErrorsItems] = Field() - - -class CodeownersErrorsPropErrorsItems(GitHubModel): - """CodeownersErrorsPropErrorsItems""" - - line: int = Field(description="The line number where this errors occurs.") - column: int = Field(description="The column number where this errors occurs.") - source: Missing[str] = Field( - default=UNSET, description="The contents of the line where the error occurs." - ) - kind: str = Field(description="The type of error.") - suggestion: Missing[Union[str, None]] = Field( - default=UNSET, - description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + run_id: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." ) - message: str = Field( - description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." ) - path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0298.py b/githubkit/versions/ghec_v2022_11_28/models/group_0298.py index de6f0cf08..a7508c529 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0298.py @@ -12,19 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - Permission check result for a given devcontainer config. - """ - - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = Field( + default=UNSET, + description="The REST API URL for checking the status of the upload.", ) -model_rebuild(CodespacesPermissionsCheckForDevcontainer) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) +__all__ = ("CodeScanningSarifsReceipt",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0299.py b/githubkit/versions/ghec_v2022_11_28/models/group_0299.py index 999dcd55e..525bd5e50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0299.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,34 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0168 import MinimalRepository +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" -class RepositoryInvitation(GitHubModel): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. - """ - - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + default=UNSET, + description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", ) - invitee: Union[None, SimpleUser] = Field() - inviter: Union[None, SimpleUser] = Field() - permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( - description="The permission associated with the invitation." + analyses_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The REST API URL for getting the analyses associated with the upload.", ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + errors: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() -model_rebuild(RepositoryInvitation) +model_rebuild(CodeScanningSarifsStatus) -__all__ = ("RepositoryInvitation",) +__all__ = ("CodeScanningSarifsStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0300.py b/githubkit/versions/ghec_v2022_11_28/models/group_0300.py index ba71473fc..c9397d1d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0300.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,65 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0060 import CodeSecurityConfiguration -class RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission - - Repository Collaborator Permission - """ - - permission: str = Field() - role_name: str = Field() - user: Union[None, Collaborator] = Field() +class CodeSecurityConfigurationForRepository(GitHubModel): + """CodeSecurityConfigurationForRepository -class Collaborator(GitHubModel): - """Collaborator - - Collaborator + Code security configuration associated with a repository and attachment status """ - login: str = Field() - id: int = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) - role_name: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class CollaboratorPropPermissions(GitHubModel): - """CollaboratorPropPermissions""" - - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - admin: bool = Field() - - -model_rebuild(RepositoryCollaboratorPermission) -model_rebuild(Collaborator) -model_rebuild(CollaboratorPropPermissions) - -__all__ = ( - "Collaborator", - "CollaboratorPropPermissions", - "RepositoryCollaboratorPermission", -) + status: Missing[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] = Field( + default=UNSET, + description="The attachment status of the code security configuration on the repository.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) + + +model_rebuild(CodeSecurityConfigurationForRepository) + +__all__ = ("CodeSecurityConfigurationForRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0301.py b/githubkit/versions/ghec_v2022_11_28/models/group_0301.py index 6c366aaac..b356aafc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0301.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,60 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0151 import ReactionRollup +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors -class CommitComment(GitHubModel): - """Commit Comment - - Commit Comment + A list of errors found in a repo's CODEOWNERS file """ - html_url: str = Field() - url: str = Field() - id: int = Field() - node_id: str = Field() - body: str = Field() - path: Union[str, None] = Field() - position: Union[int, None] = Field() - line: Union[int, None] = Field() - commit_id: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - + errors: list[CodeownersErrorsPropErrorsItems] = Field() -class TimelineCommitCommentedEvent(GitHubModel): - """Timeline Commit Commented Event - Timeline Commit Commented Event - """ +class CodeownersErrorsPropErrorsItems(GitHubModel): + """CodeownersErrorsPropErrorsItems""" - event: Missing[Literal["commit_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - commit_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[CommitComment]] = Field(default=UNSET) + line: int = Field(description="The line number where this errors occurs.") + column: int = Field(description="The column number where this errors occurs.") + source: Missing[str] = Field( + default=UNSET, description="The contents of the line where the error occurs." + ) + kind: str = Field(description="The type of error.") + suggestion: Missing[Union[str, None]] = Field( + default=UNSET, + description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + ) + message: str = Field( + description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + ) + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) __all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0302.py b/githubkit/versions/ghec_v2022_11_28/models/group_0302.py index 1899117e7..de6f0cf08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0302.py @@ -14,28 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class BranchShort(GitHubModel): - """Branch Short +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - Branch Short + Permission check result for a given devcontainer config. """ - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" + ) -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" +model_rebuild(CodespacesPermissionsCheckForDevcontainer) - sha: str = Field() - url: str = Field() - - -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) - -__all__ = ( - "BranchShort", - "BranchShortPropCommit", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0303.py b/githubkit/versions/ghec_v2022_11_28/models/group_0303.py index b537858f8..17835b05b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0303.py @@ -9,20 +9,43 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0171 import MinimalRepository -class Link(GitHubModel): - """Link - - Hypermedia Link - """ - href: str = Field() +class RepositoryInvitation(GitHubModel): + """Repository Invitation + Repository invitations let you manage who you collaborate with. + """ -model_rebuild(Link) - -__all__ = ("Link",) + id: int = Field(description="Unique identifier of the repository invitation.") + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + invitee: Union[None, SimpleUser] = Field() + inviter: Union[None, SimpleUser] = Field() + permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( + description="The permission associated with the invitation." + ) + created_at: datetime = Field() + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" + ) + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() + node_id: str = Field() + + +model_rebuild(RepositoryInvitation) + +__all__ = ("RepositoryInvitation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0304.py b/githubkit/versions/ghec_v2022_11_28/models/group_0304.py index 48491e4bb..ba71473fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0304.py @@ -9,33 +9,73 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission -class AutoMerge(GitHubModel): - """Auto merge + Repository Collaborator Permission + """ + + permission: str = Field() + role_name: str = Field() + user: Union[None, Collaborator] = Field() + + +class Collaborator(GitHubModel): + """Collaborator - The status of auto merging a pull request. + Collaborator """ - enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) + login: str = Field() + id: int = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) + role_name: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class CollaboratorPropPermissions(GitHubModel): + """CollaboratorPropPermissions""" + + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + admin: bool = Field() -model_rebuild(AutoMerge) +model_rebuild(RepositoryCollaboratorPermission) +model_rebuild(Collaborator) +model_rebuild(CollaboratorPropPermissions) -__all__ = ("AutoMerge",) +__all__ = ( + "Collaborator", + "CollaboratorPropPermissions", + "RepositoryCollaboratorPermission", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0305.py b/githubkit/versions/ghec_v2022_11_28/models/group_0305.py index 2323fb582..b013fea3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0305.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0305.py @@ -19,52 +19,27 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0067 import Team -from .group_0149 import Milestone -from .group_0304 import AutoMerge -from .group_0306 import PullRequestSimplePropBase, PullRequestSimplePropHead -from .group_0307 import PullRequestSimplePropLinks +from .group_0154 import ReactionRollup -class PullRequestSimple(GitHubModel): - """Pull Request Simple +class CommitComment(GitHubModel): + """Commit Comment - Pull Request Simple + Commit Comment """ + html_url: str = Field() url: str = Field() id: int = Field() node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field() - state: str = Field() - locked: bool = Field() - title: str = Field() + body: str = Field() + path: Union[str, None] = Field() + position: Union[int, None] = Field() + line: Union[int, None] = Field() + commit_id: str = Field() user: Union[None, SimpleUser] = Field() - body: Union[str, None] = Field() - labels: list[PullRequestSimplePropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) - head: PullRequestSimplePropHead = Field() - base: PullRequestSimplePropBase = Field() - links: PullRequestSimplePropLinks = Field(alias="_links") author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -78,31 +53,25 @@ class PullRequestSimple(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class PullRequestSimplePropLabelsItems(GitHubModel): - """PullRequestSimplePropLabelsItems""" +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + Timeline Commit Commented Event + """ + + event: Missing[Literal["commit_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + commit_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[CommitComment]] = Field(default=UNSET) -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) __all__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", + "CommitComment", + "TimelineCommitCommentedEvent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0306.py b/githubkit/versions/ghec_v2022_11_28/models/group_0306.py index f7a7c23e6..1899117e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0306.py @@ -9,40 +9,33 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0020 import Repository +class BranchShort(GitHubModel): + """Branch Short -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" + Branch Short + """ - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() -class PullRequestSimplePropBase(GitHubModel): - """PullRequestSimplePropBase""" +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") sha: str = Field() - user: Union[None, SimpleUser] = Field() + url: str = Field() -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) __all__ = ( - "PullRequestSimplePropBase", - "PullRequestSimplePropHead", + "BranchShort", + "BranchShortPropCommit", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0307.py b/githubkit/versions/ghec_v2022_11_28/models/group_0307.py index 28679eddf..b537858f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0307.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0307.py @@ -13,22 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0303 import Link +class Link(GitHubModel): + """Link -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" + Hypermedia Link + """ - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + href: str = Field() -model_rebuild(PullRequestSimplePropLinks) +model_rebuild(Link) -__all__ = ("PullRequestSimplePropLinks",) +__all__ = ("Link",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0308.py b/githubkit/versions/ghec_v2022_11_28/models/group_0308.py index a66cd459a..48491e4bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0308.py @@ -9,55 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0168 import MinimalRepository +from .group_0003 import SimpleUser -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class AutoMerge(GitHubModel): + """Auto merge - Combined Commit Status + The status of auto merging a pull request. """ - state: str = Field() - statuses: list[SimpleCommitStatus] = Field() - sha: str = Field() - total_count: int = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." ) - commit_url: str = Field() - url: str = Field() - - -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" - - description: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - state: str = Field() - context: str = Field() - target_url: Union[str, None] = Field() - required: Missing[Union[bool, None]] = Field(default=UNSET) - avatar_url: Union[str, None] = Field() - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) +model_rebuild(AutoMerge) -__all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", -) +__all__ = ("AutoMerge",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0309.py b/githubkit/versions/ghec_v2022_11_28/models/group_0309.py index d233ecff0..432c02227 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0309.py @@ -9,34 +9,100 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0067 import Team +from .group_0152 import Milestone +from .group_0308 import AutoMerge +from .group_0310 import PullRequestSimplePropBase, PullRequestSimplePropHead +from .group_0311 import PullRequestSimplePropLinks -class Status(GitHubModel): - """Status +class PullRequestSimple(GitHubModel): + """Pull Request Simple - The status of a commit. + Pull Request Simple """ url: str = Field() - avatar_url: Union[str, None] = Field() id: int = Field() node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field() state: str = Field() + locked: bool = Field() + title: str = Field() + user: Union[None, SimpleUser] = Field() + body: Union[str, None] = Field() + labels: list[PullRequestSimplePropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) + head: PullRequestSimplePropHead = Field() + base: PullRequestSimplePropBase = Field() + links: PullRequestSimplePropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + + +class PullRequestSimplePropLabelsItems(GitHubModel): + """PullRequestSimplePropLabelsItems""" + + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() description: Union[str, None] = Field() - target_url: Union[str, None] = Field() - context: str = Field() - created_at: str = Field() - updated_at: str = Field() - creator: Union[None, SimpleUser] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(Status) +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) -__all__ = ("Status",) +__all__ = ( + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0310.py b/githubkit/versions/ghec_v2022_11_28/models/group_0310.py index 1be78de27..f7a7c23e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0310.py @@ -9,58 +9,40 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0019 import LicenseSimple -from .group_0217 import CodeOfConductSimple +from .group_0003 import SimpleUser +from .group_0020 import Repository -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" - code_of_conduct: Union[None, CodeOfConductSimple] = Field() - code_of_conduct_file: Union[None, CommunityHealthFile] = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - contributing: Union[None, CommunityHealthFile] = Field() - readme: Union[None, CommunityHealthFile] = Field() - issue_template: Union[None, CommunityHealthFile] = Field() - pull_request_template: Union[None, CommunityHealthFile] = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class CommunityHealthFile(GitHubModel): - """Community Health File""" +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" - url: str = Field() - html_url: str = Field() + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class CommunityProfile(GitHubModel): - """Community Profile - - Community Profile - """ - - health_percentage: int = Field() - description: Union[str, None] = Field() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) - - -model_rebuild(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) __all__ = ( - "CommunityHealthFile", - "CommunityProfile", - "CommunityProfilePropFiles", + "PullRequestSimplePropBase", + "PullRequestSimplePropHead", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0311.py b/githubkit/versions/ghec_v2022_11_28/models/group_0311.py index 80c93b9a8..1bb7454d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0311.py @@ -9,39 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0265 import DiffEntry -from .group_0266 import Commit +from .group_0307 import Link -class CommitComparison(GitHubModel): - """Commit Comparison - Commit Comparison - """ +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - url: str = Field() - html_url: str = Field() - permalink_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - base_commit: Commit = Field(title="Commit", description="Commit") - merge_base_commit: Commit = Field(title="Commit", description="Commit") - status: Literal["diverged", "ahead", "behind", "identical"] = Field() - ahead_by: int = Field() - behind_by: int = Field() - total_commits: int = Field() - commits: list[Commit] = Field() - files: Missing[list[DiffEntry]] = Field(default=UNSET) + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(CommitComparison) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ("CommitComparison",) +__all__ = ("PullRequestSimplePropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0312.py b/githubkit/versions/ghec_v2022_11_28/models/group_0312.py index 95b9b271c..64f59324a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0312.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,67 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0171 import MinimalRepository -class ContentTree(GitHubModel): - """Content Tree - Content Tree +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status + + Combined Commit Status """ - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() + state: str = Field() + statuses: list[SimpleCommitStatus] = Field() sha: str = Field() - content: Missing[str] = Field(default=UNSET) + total_count: int = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + commit_url: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) - encoding: Missing[str] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") - - -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") -class ContentTreePropEntriesItems(GitHubModel): - """ContentTreePropEntriesItems""" +class SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() + description: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + context: str = Field() + target_url: Union[str, None] = Field() + required: Missing[Union[bool, None]] = Field(default=UNSET) + avatar_url: Union[str, None] = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") - - -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "ContentTree", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", - "ContentTreePropLinks", + "CombinedCommitStatus", + "SimpleCommitStatus", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0313.py b/githubkit/versions/ghec_v2022_11_28/models/group_0313.py index b3b3e9366..d233ecff0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0313.py @@ -9,43 +9,34 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ContentDirectoryItems(GitHubModel): - """ContentDirectoryItems""" - - type: Literal["dir", "file", "submodule", "symlink"] = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: Missing[str] = Field(default=UNSET) - sha: str = Field() - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentDirectoryItemsPropLinks = Field(alias="_links") +class Status(GitHubModel): + """Status -class ContentDirectoryItemsPropLinks(GitHubModel): - """ContentDirectoryItemsPropLinks""" + The status of a commit. + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + url: str = Field() + avatar_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + description: Union[str, None] = Field() + target_url: Union[str, None] = Field() + context: str = Field() + created_at: str = Field() + updated_at: str = Field() + creator: Union[None, SimpleUser] = Field() -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) +model_rebuild(Status) -__all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", -) +__all__ = ("Status",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0314.py b/githubkit/versions/ghec_v2022_11_28/models/group_0314.py index 15cd134fc..ba1226229 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0314.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,41 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0019 import LicenseSimple +from .group_0221 import CodeOfConductSimple -class ContentFile(GitHubModel): - """Content File - Content File - """ +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimple] = Field() + code_of_conduct_file: Union[None, CommunityHealthFile] = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + contributing: Union[None, CommunityHealthFile] = Field() + readme: Union[None, CommunityHealthFile] = Field() + issue_template: Union[None, CommunityHealthFile] = Field() + pull_request_template: Union[None, CommunityHealthFile] = Field() + + +class CommunityHealthFile(GitHubModel): + """Community Health File""" - type: Literal["file"] = Field() - encoding: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() + +class CommunityProfile(GitHubModel): + """Community Profile -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" + Community Profile + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + health_percentage: int = Field() + description: Union[str, None] = Field() + documentation: Union[str, None] = Field() + files: CommunityProfilePropFiles = Field() + updated_at: Union[datetime, None] = Field() + content_reports_enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(ContentFile) -model_rebuild(ContentFilePropLinks) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "ContentFile", - "ContentFilePropLinks", + "CommunityHealthFile", + "CommunityProfile", + "CommunityProfilePropFiles", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0315.py b/githubkit/versions/ghec_v2022_11_28/models/group_0315.py index bc90348f6..7411defce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0315.py @@ -9,44 +9,39 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0269 import DiffEntry +from .group_0270 import Commit -class ContentSymlink(GitHubModel): - """Symlink Content - An object describing a symlink +class CommitComparison(GitHubModel): + """Commit Comparison + + Commit Comparison """ - type: Literal["symlink"] = Field() - target: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSymlinkPropLinks = Field(alias="_links") - - -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) - -__all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", -) + html_url: str = Field() + permalink_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + base_commit: Commit = Field(title="Commit", description="Commit") + merge_base_commit: Commit = Field(title="Commit", description="Commit") + status: Literal["diverged", "ahead", "behind", "identical"] = Field() + ahead_by: int = Field() + behind_by: int = Field() + total_commits: int = Field() + commits: list[Commit] = Field() + files: Missing[list[DiffEntry]] = Field(default=UNSET) + + +model_rebuild(CommitComparison) + +__all__ = ("CommitComparison",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0316.py b/githubkit/versions/ghec_v2022_11_28/models/group_0316.py index 99580ae80..95b9b271c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0316.py @@ -9,44 +9,75 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ContentSubmodule(GitHubModel): - """Submodule Content +class ContentTree(GitHubModel): + """Content Tree - An object describing a submodule + Content Tree """ - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() + type: str = Field() size: int = Field() name: str = Field() path: str = Field() sha: str = Field() + content: Missing[str] = Field(default=UNSET) url: str = Field() git_url: Union[str, None] = Field() html_url: Union[str, None] = Field() download_url: Union[str, None] = Field() - links: ContentSubmodulePropLinks = Field(alias="_links") + entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) + encoding: Missing[str] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) +class ContentTreePropEntriesItems(GitHubModel): + """ContentTreePropEntriesItems""" + + type: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") + + +class ContentTreePropEntriesItemsPropLinks(GitHubModel): + """ContentTreePropEntriesItemsPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentTree) +model_rebuild(ContentTreePropLinks) +model_rebuild(ContentTreePropEntriesItems) +model_rebuild(ContentTreePropEntriesItemsPropLinks) __all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", + "ContentTree", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", + "ContentTreePropLinks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0317.py b/githubkit/versions/ghec_v2022_11_28/models/group_0317.py index 446b6612c..b3b3e9366 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0317.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,115 +18,34 @@ from githubkit.utils import UNSET -class FileCommit(GitHubModel): - """File Commit +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" - File Commit - """ + type: Literal["dir", "file", "submodule", "symlink"] = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: Missing[str] = Field(default=UNSET) + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentDirectoryItemsPropLinks = Field(alias="_links") - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" -class FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") - name: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - links: Missing[FileCommitPropContentPropLinks] = Field( - default=UNSET, alias="_links" - ) - -class FileCommitPropContentPropLinks(GitHubModel): - """FileCommitPropContentPropLinks""" - - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" - - sha: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) - committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) - parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) - verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) - - -class FileCommitPropCommitPropAuthor(GitHubModel): - """FileCommitPropCommitPropAuthor""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropCommitter(GitHubModel): - """FileCommitPropCommitPropCommitter""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropTree(GitHubModel): - """FileCommitPropCommitPropTree""" - - url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropParentsItems(GitHubModel): - """FileCommitPropCommitPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropVerification(GitHubModel): - """FileCommitPropCommitPropVerification""" - - verified: Missing[bool] = Field(default=UNSET) - reason: Missing[str] = Field(default=UNSET) - signature: Missing[Union[str, None]] = Field(default=UNSET) - payload: Missing[Union[str, None]] = Field(default=UNSET) - verified_at: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(FileCommit) -model_rebuild(FileCommitPropContent) -model_rebuild(FileCommitPropContentPropLinks) -model_rebuild(FileCommitPropCommit) -model_rebuild(FileCommitPropCommitPropAuthor) -model_rebuild(FileCommitPropCommitPropCommitter) -model_rebuild(FileCommitPropCommitPropTree) -model_rebuild(FileCommitPropCommitPropParentsItems) -model_rebuild(FileCommitPropCommitPropVerification) +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) __all__ = ( - "FileCommit", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropVerification", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0318.py b/githubkit/versions/ghec_v2022_11_28/models/group_0318.py index 97c97b542..15cd134fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0318.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,60 +18,40 @@ from githubkit.utils import UNSET -class RepositoryRuleViolationError(GitHubModel): - """RepositoryRuleViolationError +class ContentFile(GitHubModel): + """Content File - Repository rule violation was detected + Content File """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) - - -class RepositoryRuleViolationErrorPropMetadata(GitHubModel): - """RepositoryRuleViolationErrorPropMetadata""" + type: Literal["file"] = Field() + encoding: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) - secret_scanning: Missing[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanning - ] = Field(default=UNSET) +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" -class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") - bypass_placeholders: Missing[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems - ] - ] = Field(default=UNSET) - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( - GitHubModel -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: Missing[str] = Field( - default=UNSET, - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", - ) - token_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(RepositoryRuleViolationError) -model_rebuild(RepositoryRuleViolationErrorPropMetadata) -model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) -model_rebuild( - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems -) +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) __all__ = ( - "RepositoryRuleViolationError", - "RepositoryRuleViolationErrorPropMetadata", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", + "ContentFile", + "ContentFilePropLinks", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0319.py b/githubkit/versions/ghec_v2022_11_28/models/group_0319.py index fcc5e341f..bc90348f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0319.py @@ -9,45 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Contributor(GitHubModel): - """Contributor +class ContentSymlink(GitHubModel): + """Symlink Content - Contributor + An object describing a symlink """ - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: str = Field() - site_admin: Missing[bool] = Field(default=UNSET) - contributions: int = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(Contributor) - -__all__ = ("Contributor",) + type: Literal["symlink"] = Field() + target: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSymlinkPropLinks = Field(alias="_links") + + +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) + +__all__ = ( + "ContentSymlink", + "ContentSymlinkPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0320.py b/githubkit/versions/ghec_v2022_11_28/models/group_0320.py index 87db1b869..99580ae80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0320.py @@ -9,70 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0071 import DependabotAlertSecurityVulnerability -from .group_0072 import DependabotAlertSecurityAdvisory -from .group_0321 import DependabotAlertPropDependency +class ContentSubmodule(GitHubModel): + """Submodule Content -class DependabotAlert(GitHubModel): - """DependabotAlert - - A Dependabot alert. + An object describing a submodule """ - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." - ) - dependency: DependabotAlertPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(DependabotAlert) - -__all__ = ("DependabotAlert",) + type: Literal["submodule"] = Field() + submodule_git_url: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSubmodulePropLinks = Field(alias="_links") + + +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) + +__all__ = ( + "ContentSubmodule", + "ContentSubmodulePropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0321.py b/githubkit/versions/ghec_v2022_11_28/models/group_0321.py index 49065a169..446b6612c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0321.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,33 +17,116 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0070 import DependabotAlertPackage +class FileCommit(GitHubModel): + """File Commit -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + File Commit """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) - relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( - Field( - default=UNSET, - description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', - ) + content: Union[FileCommitPropContent, None] = Field() + commit: FileCommitPropCommit = Field() + + +class FileCommitPropContent(GitHubModel): + """FileCommitPropContent""" + + name: Missing[str] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + links: Missing[FileCommitPropContentPropLinks] = Field( + default=UNSET, alias="_links" ) -model_rebuild(DependabotAlertPropDependency) +class FileCommitPropContentPropLinks(GitHubModel): + """FileCommitPropContentPropLinks""" + + self_: Missing[str] = Field(default=UNSET, alias="self") + git: Missing[str] = Field(default=UNSET) + html: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommit(GitHubModel): + """FileCommitPropCommit""" + + sha: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) + committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) + parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) + verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) + + +class FileCommitPropCommitPropAuthor(GitHubModel): + """FileCommitPropCommitPropAuthor""" + + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropCommitter(GitHubModel): + """FileCommitPropCommitPropCommitter""" + + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropTree(GitHubModel): + """FileCommitPropCommitPropTree""" + + url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropParentsItems(GitHubModel): + """FileCommitPropCommitPropParentsItems""" + + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropVerification(GitHubModel): + """FileCommitPropCommitPropVerification""" + + verified: Missing[bool] = Field(default=UNSET) + reason: Missing[str] = Field(default=UNSET) + signature: Missing[Union[str, None]] = Field(default=UNSET) + payload: Missing[Union[str, None]] = Field(default=UNSET) + verified_at: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(FileCommit) +model_rebuild(FileCommitPropContent) +model_rebuild(FileCommitPropContentPropLinks) +model_rebuild(FileCommitPropCommit) +model_rebuild(FileCommitPropCommitPropAuthor) +model_rebuild(FileCommitPropCommitPropCommitter) +model_rebuild(FileCommitPropCommitPropTree) +model_rebuild(FileCommitPropCommitPropParentsItems) +model_rebuild(FileCommitPropCommitPropVerification) -__all__ = ("DependabotAlertPropDependency",) +__all__ = ( + "FileCommit", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropVerification", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0322.py b/githubkit/versions/ghec_v2022_11_28/models/group_0322.py index 9f05df69c..97c97b542 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0322.py @@ -9,43 +9,67 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class DependencyGraphDiffItems(GitHubModel): - """DependencyGraphDiffItems""" - - change_type: Literal["added", "removed"] = Field() - manifest: str = Field() - ecosystem: str = Field() - name: str = Field() - version: str = Field() - package_url: Union[str, None] = Field() - license_: Union[str, None] = Field(alias="license") - source_repository_url: Union[str, None] = Field() - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() - scope: Literal["unknown", "runtime", "development"] = Field( - description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." - ) +class RepositoryRuleViolationError(GitHubModel): + """RepositoryRuleViolationError + + Repository rule violation was detected + """ + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadata(GitHubModel): + """RepositoryRuleViolationErrorPropMetadata""" + secret_scanning: Missing[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanning + ] = Field(default=UNSET) -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = Field() +class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + bypass_placeholders: Missing[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems + ] + ] = Field(default=UNSET) -model_rebuild(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( + GitHubModel +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: Missing[str] = Field( + default=UNSET, + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", + ) + token_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(RepositoryRuleViolationError) +model_rebuild(RepositoryRuleViolationErrorPropMetadata) +model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) +model_rebuild( + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems +) __all__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", + "RepositoryRuleViolationError", + "RepositoryRuleViolationErrorPropMetadata", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0323.py b/githubkit/versions/ghec_v2022_11_28/models/group_0323.py index b7506354d..fcc5e341f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0323.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,153 +18,36 @@ from githubkit.utils import UNSET -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM +class Contributor(GitHubModel): + """Contributor - A schema for the SPDX JSON format returned by the Dependency Graph. + Contributor """ - sbom: DependencyGraphSpdxSbomPropSbom = Field() - - -class DependencyGraphSpdxSbomPropSbom(GitHubModel): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str = Field( - alias="SPDXID", description="The SPDX identifier for the SPDX document." - ) - spdx_version: str = Field( - alias="spdxVersion", - description="The version of the SPDX specification that this document conforms to.", - ) - comment: Missing[str] = Field( - default=UNSET, description="An optional comment about the SPDX document." - ) - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( - alias="creationInfo" - ) - name: str = Field(description="The name of the SPDX document.") - data_license: str = Field( - alias="dataLicense", - description="The license under which the SPDX document is licensed.", - ) - document_namespace: str = Field( - alias="documentNamespace", description="The namespace for the SPDX document." - ) - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() - relationships: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] - ] = Field(default=UNSET) - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str = Field(description="The date and time the SPDX document was created.") - creators: list[str] = Field( - description="The tools that were used to generate the SPDX document." - ) - - -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - - relationship_type: Missing[str] = Field( - default=UNSET, - alias="relationshipType", - description="The type of relationship between the two SPDX elements.", - ) - spdx_element_id: Missing[str] = Field( - default=UNSET, - alias="spdxElementId", - description="The SPDX identifier of the package that is the source of the relationship.", - ) - related_spdx_element: Missing[str] = Field( - default=UNSET, - alias="relatedSpdxElement", - description="The SPDX identifier of the package that is the target of the relationship.", - ) - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: Missing[str] = Field( - default=UNSET, - alias="SPDXID", - description="A unique SPDX identifier for the package.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the package.") - version_info: Missing[str] = Field( - default=UNSET, - alias="versionInfo", - description="The version of the package. If the package does not have an exact version specified,\na version range is given.", - ) - download_location: Missing[str] = Field( - default=UNSET, - alias="downloadLocation", - description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", - ) - files_analyzed: Missing[bool] = Field( - default=UNSET, - alias="filesAnalyzed", - description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", - ) - license_concluded: Missing[str] = Field( - default=UNSET, - alias="licenseConcluded", - description="The license of the package as determined while creating the SPDX document.", - ) - license_declared: Missing[str] = Field( - default=UNSET, - alias="licenseDeclared", - description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", - ) - supplier: Missing[str] = Field( - default=UNSET, - description="The distribution source of this package, or NOASSERTION if this was not determined.", - ) - copyright_text: Missing[str] = Field( - default=UNSET, - alias="copyrightText", - description="The copyright holders of the package, and any dates present with those notices, if available.", - ) - external_refs: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] - ] = Field(default=UNSET, alias="externalRefs") - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( - GitHubModel -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - - reference_category: str = Field( - alias="referenceCategory", - description="The category of reference to an external resource this reference refers to.", - ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", - ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", - ) - - -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) - -__all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", -) + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: str = Field() + site_admin: Missing[bool] = Field(default=UNSET) + contributions: int = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(Contributor) + +__all__ = ("Contributor",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0324.py b/githubkit/versions/ghec_v2022_11_28/models/group_0324.py index ffac1fb50..ce529b840 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0324.py @@ -9,17 +9,70 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from datetime import datetime +from typing import Annotated, Literal, Union +from pydantic import Field -class Metadata(ExtraGitHubModel): - """metadata +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +from .group_0003 import SimpleUser +from .group_0071 import DependabotAlertSecurityVulnerability +from .group_0072 import DependabotAlertSecurityAdvisory +from .group_0325 import DependabotAlertPropDependency + + +class DependabotAlert(GitHubModel): + """DependabotAlert + + A Dependabot alert. """ + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." + ) + dependency: DependabotAlertPropDependency = Field( + description="Details for the vulnerable dependency." + ) + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." + ) + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + -model_rebuild(Metadata) +model_rebuild(DependabotAlert) -__all__ = ("Metadata",) +__all__ = ("DependabotAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0325.py b/githubkit/versions/ghec_v2022_11_28/models/group_0325.py index 734b8a49d..49065a169 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0325.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,36 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0324 import Metadata +from .group_0070 import DependabotAlertPackage -class Dependency(GitHubModel): - """Dependency""" +class DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency - package_url: Missing[str] = Field( - pattern="^pkg", - default=UNSET, - description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", - ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + Details for the vulnerable dependency. + """ + + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - relationship: Missing[Literal["direct", "indirect"]] = Field( + manifest_path: Missing[str] = Field( default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - scope: Missing[Literal["runtime", "development"]] = Field( - default=UNSET, - description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) - dependencies: Missing[list[str]] = Field( - default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", + relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( + Field( + default=UNSET, + description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', + ) ) -model_rebuild(Dependency) +model_rebuild(DependabotAlertPropDependency) -__all__ = ("Dependency",) +__all__ = ("DependabotAlertPropDependency",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0326.py b/githubkit/versions/ghec_v2022_11_28/models/group_0326.py index 85f472832..9f05df69c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0326.py @@ -9,52 +9,43 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0324 import Metadata - +from typing import Literal, Union -class Manifest(GitHubModel): - """Manifest""" +from pydantic import Field - name: str = Field(description="The name of the manifest.") - file: Missing[ManifestPropFile] = Field(default=UNSET) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - resolved: Missing[ManifestPropResolved] = Field( - default=UNSET, description="A collection of resolved package dependencies." - ) +from githubkit.compat import GitHubModel, model_rebuild -class ManifestPropFile(GitHubModel): - """ManifestPropFile""" +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" - source_location: Missing[str] = Field( - default=UNSET, - description="The path of the manifest file relative to the root of the Git repository.", + change_type: Literal["added", "removed"] = Field() + manifest: str = Field() + ecosystem: str = Field() + name: str = Field() + version: str = Field() + package_url: Union[str, None] = Field() + license_: Union[str, None] = Field(alias="license") + source_repository_url: Union[str, None] = Field() + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() + scope: Literal["unknown", "runtime", "development"] = Field( + description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." ) -class ManifestPropResolved(ExtraGitHubModel): - """ManifestPropResolved +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - A collection of resolved package dependencies. - """ + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) __all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0327.py b/githubkit/versions/ghec_v2022_11_28/models/group_0327.py index e2d22ae3f..b7506354d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0327.py @@ -9,88 +9,160 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0324 import Metadata - -class Snapshot(GitHubModel): - """snapshot +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM - Create a new snapshot of a repository's dependencies. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - version: int = Field( - description="The version of the repository snapshot submission." + sbom: DependencyGraphSpdxSbomPropSbom = Field() + + +class DependencyGraphSpdxSbomPropSbom(GitHubModel): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str = Field( + alias="SPDXID", description="The SPDX identifier for the SPDX document." ) - job: SnapshotPropJob = Field() - sha: str = Field( - min_length=40, - max_length=40, - description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + spdx_version: str = Field( + alias="spdxVersion", + description="The version of the SPDX specification that this document conforms to.", ) - ref: str = Field( - pattern="^refs/", - description="The repository branch that triggered this snapshot.", + comment: Missing[str] = Field( + default=UNSET, description="An optional comment about the SPDX document." ) - detector: SnapshotPropDetector = Field( - description="A description of the detector used." + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( + alias="creationInfo" ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + name: str = Field(description="The name of the SPDX document.") + data_license: str = Field( + alias="dataLicense", + description="The license under which the SPDX document is licensed.", ) - manifests: Missing[SnapshotPropManifests] = Field( - default=UNSET, - description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + document_namespace: str = Field( + alias="documentNamespace", description="The namespace for the SPDX document." ) - scanned: datetime = Field(description="The time at which the snapshot was scanned.") + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() + relationships: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] + ] = Field(default=UNSET) -class SnapshotPropJob(GitHubModel): - """SnapshotPropJob""" +class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - id: str = Field(description="The external ID of the job.") - correlator: str = Field( - description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + created: str = Field(description="The date and time the SPDX document was created.") + creators: list[str] = Field( + description="The tools that were used to generate the SPDX document." ) - html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") -class SnapshotPropDetector(GitHubModel): - """SnapshotPropDetector +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - A description of the detector used. - """ + relationship_type: Missing[str] = Field( + default=UNSET, + alias="relationshipType", + description="The type of relationship between the two SPDX elements.", + ) + spdx_element_id: Missing[str] = Field( + default=UNSET, + alias="spdxElementId", + description="The SPDX identifier of the package that is the source of the relationship.", + ) + related_spdx_element: Missing[str] = Field( + default=UNSET, + alias="relatedSpdxElement", + description="The SPDX identifier of the package that is the target of the relationship.", + ) - name: str = Field(description="The name of the detector used.") - version: str = Field(description="The version of the detector used.") - url: str = Field(description="The url of the detector used.") + +class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: Missing[str] = Field( + default=UNSET, + alias="SPDXID", + description="A unique SPDX identifier for the package.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( + default=UNSET, + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", + ) + download_location: Missing[str] = Field( + default=UNSET, + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", + ) + files_analyzed: Missing[bool] = Field( + default=UNSET, + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", + ) + license_concluded: Missing[str] = Field( + default=UNSET, + alias="licenseConcluded", + description="The license of the package as determined while creating the SPDX document.", + ) + license_declared: Missing[str] = Field( + default=UNSET, + alias="licenseDeclared", + description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", + ) + supplier: Missing[str] = Field( + default=UNSET, + description="The distribution source of this package, or NOASSERTION if this was not determined.", + ) + copyright_text: Missing[str] = Field( + default=UNSET, + alias="copyrightText", + description="The copyright holders of the package, and any dates present with those notices, if available.", + ) + external_refs: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] + ] = Field(default=UNSET, alias="externalRefs") -class SnapshotPropManifests(ExtraGitHubModel): - """SnapshotPropManifests +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( + GitHubModel +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ + reference_category: str = Field( + alias="referenceCategory", + description="The category of reference to an external resource this reference refers to.", + ) + reference_locator: str = Field( + alias="referenceLocator", + description="A locator for the particular external resource this reference refers to.", + ) + reference_type: str = Field( + alias="referenceType", + description="The category of reference to an external resource this reference refers to.", + ) -model_rebuild(Snapshot) -model_rebuild(SnapshotPropJob) -model_rebuild(SnapshotPropDetector) -model_rebuild(SnapshotPropManifests) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) __all__ = ( - "Snapshot", - "SnapshotPropDetector", - "SnapshotPropJob", - "SnapshotPropManifests", + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0328.py b/githubkit/versions/ghec_v2022_11_28/models/group_0328.py index 38a74a74a..ffac1fb50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0328.py @@ -9,58 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class Metadata(ExtraGitHubModel): + """metadata -from .group_0003 import SimpleUser -from .group_0010 import Integration - - -class DeploymentStatus(GitHubModel): - """Deployment Status - - The status of a deployment. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ - url: str = Field() - id: int = Field() - node_id: str = Field() - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] = Field(description="The state of the status.") - creator: Union[None, SimpleUser] = Field() - description: str = Field( - max_length=140, default="", description="A short description of the status." - ) - environment: Missing[str] = Field( - default=UNSET, - description="The environment of the deployment that the status is for.", - ) - target_url: str = Field( - default="", - description="Closing down notice: the URL to associate with this status.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - deployment_url: str = Field() - repository_url: str = Field() - environment_url: Missing[str] = Field( - default=UNSET, description="The URL for accessing your environment." - ) - log_url: Missing[str] = Field( - default=UNSET, description="The URL to associate with this status." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - -model_rebuild(DeploymentStatus) +model_rebuild(Metadata) -__all__ = ("DeploymentStatus",) +__all__ = ("Metadata",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0329.py b/githubkit/versions/ghec_v2022_11_28/models/group_0329.py index 2969bea8b..fdd6eacc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0329.py @@ -9,26 +9,44 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0328 import Metadata -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ +class Dependency(GitHubModel): + """Dependency""" - protected_branches: bool = Field( - description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." + package_url: Missing[str] = Field( + pattern="^pkg", + default=UNSET, + description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", + ) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + relationship: Missing[Literal["direct", "indirect"]] = Field( + default=UNSET, + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + ) + scope: Missing[Literal["runtime", "development"]] = Field( + default=UNSET, + description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", ) - custom_branch_policies: bool = Field( - description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." + dependencies: Missing[list[str]] = Field( + default=UNSET, + description="Array of package-url (PURLs) of direct child dependencies.", ) -model_rebuild(DeploymentBranchPolicySettings) +model_rebuild(Dependency) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ("Dependency",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0330.py b/githubkit/versions/ghec_v2022_11_28/models/group_0330.py index 3d233d4c2..5b27e02df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0330.py @@ -9,93 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0329 import DeploymentBranchPolicySettings -from .group_0331 import EnvironmentPropProtectionRulesItemsAnyof1 - +from .group_0328 import Metadata -class Environment(GitHubModel): - """Environment - Details of a deployment environment - """ +class Manifest(GitHubModel): + """Manifest""" - id: int = Field(description="The id of the environment.") - node_id: str = Field() - name: str = Field(description="The name of the environment.") - url: str = Field() - html_url: str = Field() - created_at: datetime = Field( - description="The time that the environment was created, in ISO 8601 format." - ) - updated_at: datetime = Field( - description="The time that the environment was last updated, in ISO 8601 format." - ) - protection_rules: Missing[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( default=UNSET, - description="Built-in deployment protection rules for the environment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) -class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof0""" +class ManifestPropFile(GitHubModel): + """ManifestPropFile""" - id: int = Field() - node_id: str = Field() - type: str = Field() - wait_timer: Missing[int] = Field( + source_location: Missing[str] = Field( default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + description="The path of the manifest file relative to the root of the Git repository.", ) -class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof2""" +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved - id: int = Field() - node_id: str = Field() - type: str = Field() - - -class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of environments in this repository" - ) - environments: Missing[list[Environment]] = Field(default=UNSET) + A collection of resolved package dependencies. + """ -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) __all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0331.py b/githubkit/versions/ghec_v2022_11_28/models/group_0331.py index 93c7c14a4..4b269a933 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0331.py @@ -9,33 +9,88 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0332 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +from .group_0328 import Metadata + +class Snapshot(GitHubModel): + """snapshot -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" + Create a new snapshot of a repository's dependencies. + """ - id: int = Field() - node_id: str = Field() - prevent_self_review: Missing[bool] = Field( + version: int = Field( + description="The version of the repository snapshot submission." + ) + job: SnapshotPropJob = Field() + sha: str = Field( + min_length=40, + max_length=40, + description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + ) + ref: str = Field( + pattern="^refs/", + description="The repository branch that triggered this snapshot.", + ) + detector: SnapshotPropDetector = Field( + description="A description of the detector used." + ) + metadata: Missing[Metadata] = Field( default=UNSET, - description="Whether deployments to this environment can be approved by the user who created the deployment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - type: str = Field() - reviewers: Missing[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] - ] = Field( + manifests: Missing[SnapshotPropManifests] = Field( default=UNSET, - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", ) + scanned: datetime = Field(description="The time at which the snapshot was scanned.") + + +class SnapshotPropJob(GitHubModel): + """SnapshotPropJob""" + + id: str = Field(description="The external ID of the job.") + correlator: str = Field( + description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + ) + html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") + + +class SnapshotPropDetector(GitHubModel): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str = Field(description="The name of the detector used.") + version: str = Field(description="The version of the detector used.") + url: str = Field(description="The url of the detector used.") + + +class SnapshotPropManifests(ExtraGitHubModel): + """SnapshotPropManifests + + A collection of package manifests, which are a collection of related + dependencies declared in a file or representing a logical group of dependencies. + """ -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ( + "Snapshot", + "SnapshotPropDetector", + "SnapshotPropJob", + "SnapshotPropManifests", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0332.py b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py index 697f64183..38a74a74a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,18 +19,48 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0067 import Team +from .group_0010 import Integration -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class DeploymentStatus(GitHubModel): + """Deployment Status - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + The status of a deployment. + """ + + url: str = Field() + id: int = Field() + node_id: str = Field() + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] = Field(description="The state of the status.") + creator: Union[None, SimpleUser] = Field() + description: str = Field( + max_length=140, default="", description="A short description of the status." + ) + environment: Missing[str] = Field( + default=UNSET, + description="The environment of the deployment that the status is for.", + ) + target_url: str = Field( + default="", + description="Closing down notice: the URL to associate with this status.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() + deployment_url: str = Field() + repository_url: str = Field() + environment_url: Missing[str] = Field( + default=UNSET, description="The URL for accessing your environment." + ) + log_url: Missing[str] = Field( + default=UNSET, description="The URL to associate with this status." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +model_rebuild(DeploymentStatus) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ("DeploymentStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0333.py b/githubkit/versions/ghec_v2022_11_28/models/group_0333.py index 2e5fcc0db..2969bea8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0333.py @@ -9,26 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings + + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ - name: str = Field( - description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + custom_branch_policies: bool = Field( + description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." ) -model_rebuild(DeploymentBranchPolicyNamePatternWithType) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ("DeploymentBranchPolicySettings",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0334.py b/githubkit/versions/ghec_v2022_11_28/models/group_0334.py index 11e46307f..28167033d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0334.py @@ -9,19 +9,93 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0333 import DeploymentBranchPolicySettings +from .group_0335 import EnvironmentPropProtectionRulesItemsAnyof1 + + +class Environment(GitHubModel): + """Environment + + Details of a deployment environment + """ + + id: int = Field(description="The id of the environment.") + node_id: str = Field() + name: str = Field(description="The name of the environment.") + url: str = Field() + html_url: str = Field() + created_at: datetime = Field( + description="The time that the environment was created, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The time that the environment was last updated, in ISO 8601 format." + ) + protection_rules: Missing[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0, + EnvironmentPropProtectionRulesItemsAnyof1, + EnvironmentPropProtectionRulesItemsAnyof2, + ] + ] + ] = Field( + default=UNSET, + description="Built-in deployment protection rules for the environment.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" - name: str = Field( - description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" ) + environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ( + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0335.py b/githubkit/versions/ghec_v2022_11_28/models/group_0335.py index ec57f6950..6de16f87a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0335.py @@ -12,28 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0336 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems -class CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. - """ +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - id: int = Field( - description="The unique identifier of the deployment protection rule integration." + id: int = Field() + node_id: str = Field() + prevent_self_review: Missing[bool] = Field( + default=UNSET, + description="Whether deployments to this environment can be approved by the user who created the deployment.", ) - slug: str = Field( - description="The slugified name of the deployment protection rule integration." - ) - integration_url: str = Field( - description="The URL for the endpoint to get details about the app." - ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + type: str = Field() + reviewers: Missing[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] + ] = Field( + default=UNSET, + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", ) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0336.py b/githubkit/versions/ghec_v2022_11_28/models/group_0336.py index c1c3cb11c..697f64183 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0336.py @@ -9,58 +9,27 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0335 import CustomDeploymentRuleApp - - -class DeploymentProtectionRule(GitHubModel): - """Deployment protection rule - - Deployment protection rule - """ - - id: int = Field( - description="The unique identifier for the deployment protection rule." - ) - node_id: str = Field(description="The node ID for the deployment protection rule.") - enabled: bool = Field( - description="Whether the deployment protection rule is enabled for the environment." - ) - app: CustomDeploymentRuleApp = Field( - title="Custom deployment protection rule app", - description="A GitHub App that is providing a custom deployment protection rule.", - ) +from .group_0003 import SimpleUser +from .group_0067 import Team -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: Missing[int] = Field( - default=UNSET, - description="The number of enabled custom deployment protection rules for this environment", - ) - custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( - default=UNSET + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0337.py b/githubkit/versions/ghec_v2022_11_28/models/group_0337.py index 23227f8fe..2e5fcc0db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0337.py @@ -9,21 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ShortBlob(GitHubModel): - """Short Blob - - Short Blob - """ +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - url: str = Field() - sha: str = Field() + name: str = Field( + description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" + ) -model_rebuild(ShortBlob) +model_rebuild(DeploymentBranchPolicyNamePatternWithType) -__all__ = ("ShortBlob",) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0338.py b/githubkit/versions/ghec_v2022_11_28/models/group_0338.py index 048d8d3ff..11e46307f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0338.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class Blob(GitHubModel): - """Blob - Blob - """ +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" - content: str = Field() - encoding: str = Field() - url: str = Field() - sha: str = Field() - size: Union[int, None] = Field() - node_id: str = Field() - highlighted_content: Missing[str] = Field(default=UNSET) + name: str = Field( + description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) -model_rebuild(Blob) +model_rebuild(DeploymentBranchPolicyNamePattern) -__all__ = ("Blob",) +__all__ = ("DeploymentBranchPolicyNamePattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0339.py b/githubkit/versions/ghec_v2022_11_28/models/group_0339.py index 36b9120b4..ec57f6950 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0339.py @@ -9,95 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class GitCommit(GitHubModel): - """Git Commit +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app - Low-level Git commit operations within a repository + A GitHub App that is providing a custom deployment protection rule. """ - sha: str = Field(description="SHA for the commit") - node_id: str = Field() - url: str = Field() - author: GitCommitPropAuthor = Field( - description="Identifying information for the git-user" + id: int = Field( + description="The unique identifier of the deployment protection rule integration." ) - committer: GitCommitPropCommitter = Field( - description="Identifying information for the git-user" + slug: str = Field( + description="The slugified name of the deployment protection rule integration." + ) + integration_url: str = Field( + description="The URL for the endpoint to get details about the app." + ) + node_id: str = Field( + description="The node ID for the deployment protection rule integration." ) - message: str = Field(description="Message describing the purpose of the commit") - tree: GitCommitPropTree = Field() - parents: list[GitCommitPropParentsItems] = Field() - verification: GitCommitPropVerification = Field() - html_url: str = Field() - - -class GitCommitPropAuthor(GitHubModel): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropTree(GitHubModel): - """GitCommitPropTree""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - - -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Union[str, None] = Field() -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(CustomDeploymentRuleApp) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropParentsItems", - "GitCommitPropTree", - "GitCommitPropVerification", -) +__all__ = ("CustomDeploymentRuleApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0340.py b/githubkit/versions/ghec_v2022_11_28/models/group_0340.py index ee31507d1..674aadeb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0340.py @@ -12,32 +12,55 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0339 import CustomDeploymentRuleApp -class GitRef(GitHubModel): - """Git Reference - Git references within a repository - """ - - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") +class DeploymentProtectionRule(GitHubModel): + """Deployment protection rule + Deployment protection rule + """ -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" + id: int = Field( + description="The unique identifier for the deployment protection rule." + ) + node_id: str = Field(description="The node ID for the deployment protection rule.") + enabled: bool = Field( + description="Whether the deployment protection rule is enabled for the environment." + ) + app: CustomDeploymentRuleApp = Field( + title="Custom deployment protection rule app", + description="A GitHub App that is providing a custom deployment protection rule.", + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 + + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") - url: str = Field() + total_count: Missing[int] = Field( + default=UNSET, + description="The number of enabled custom deployment protection rules for this environment", + ) + custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( + default=UNSET + ) -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) __all__ = ( - "GitRef", - "GitRefPropObject", + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0341.py b/githubkit/versions/ghec_v2022_11_28/models/group_0341.py index fead6d75e..23227f8fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0341.py @@ -12,50 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0264 import Verification +class ShortBlob(GitHubModel): + """Short Blob -class GitTag(GitHubModel): - """Git Tag - - Metadata for a Git tag + Short Blob """ - node_id: str = Field() - tag: str = Field(description="Name of the tag") - sha: str = Field() - url: str = Field(description="URL for the tag") - message: str = Field(description="Message describing the purpose of the tag") - tagger: GitTagPropTagger = Field() - object_: GitTagPropObject = Field(alias="object") - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - - date: str = Field() - email: str = Field() - name: str = Field() - - -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" - - sha: str = Field() - type: str = Field() url: str = Field() + sha: str = Field() -model_rebuild(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) +model_rebuild(ShortBlob) -__all__ = ( - "GitTag", - "GitTagPropObject", - "GitTagPropTagger", -) +__all__ = ("ShortBlob",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0342.py b/githubkit/versions/ghec_v2022_11_28/models/group_0342.py index a5ca2832d..048d8d3ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0342.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0342.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,35 +18,21 @@ from githubkit.utils import UNSET -class GitTree(GitHubModel): - """Git Tree +class Blob(GitHubModel): + """Blob - The hierarchy between files in a Git repository. + Blob """ + content: str = Field() + encoding: str = Field() + url: str = Field() sha: str = Field() - url: Missing[str] = Field(default=UNSET) - truncated: bool = Field() - tree: list[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" - ) - - -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" - - path: str = Field() - mode: str = Field() - type: str = Field() - sha: str = Field() - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + size: Union[int, None] = Field() + node_id: str = Field() + highlighted_content: Missing[str] = Field(default=UNSET) -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(Blob) -__all__ = ( - "GitTree", - "GitTreePropTreeItems", -) +__all__ = ("Blob",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0343.py b/githubkit/versions/ghec_v2022_11_28/models/group_0343.py index 544751a06..36b9120b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0343.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -16,14 +17,87 @@ from githubkit.compat import GitHubModel, model_rebuild -class HookResponse(GitHubModel): - """Hook Response""" +class GitCommit(GitHubModel): + """Git Commit - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + Low-level Git commit operations within a repository + """ + sha: str = Field(description="SHA for the commit") + node_id: str = Field() + url: str = Field() + author: GitCommitPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: GitCommitPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: GitCommitPropTree = Field() + parents: list[GitCommitPropParentsItems] = Field() + verification: GitCommitPropVerification = Field() + html_url: str = Field() -model_rebuild(HookResponse) -__all__ = ("HookResponse",) +class GitCommitPropAuthor(GitHubModel): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropCommitter(GitHubModel): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class GitCommitPropVerification(GitHubModel): + """GitCommitPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() + + +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) + +__all__ = ( + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropParentsItems", + "GitCommitPropTree", + "GitCommitPropVerification", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0344.py b/githubkit/versions/ghec_v2022_11_28/models/group_0344.py index 297c271b2..ee31507d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0344.py @@ -9,47 +9,35 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0011 import WebhookConfig -from .group_0343 import HookResponse -class Hook(GitHubModel): - """Webhook +class GitRef(GitHubModel): + """Git Reference - Webhooks for repositories. + Git references within a repository """ + ref: str = Field() + node_id: str = Field() + url: str = Field() + object_: GitRefPropObject = Field(alias="object") + + +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" + type: str = Field() - id: int = Field(description="Unique identifier of the webhook.") - name: str = Field( - description="The name of a valid service, use 'web' for a webhook." - ) - active: bool = Field( - description="Determines whether the hook is actually triggered on pushes." - ) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - config: WebhookConfig = Field( - title="Webhook Configuration", description="Configuration object of the webhook" - ) - updated_at: datetime = Field() - created_at: datetime = Field() + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") url: str = Field() - test_url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - last_response: HookResponse = Field(title="Hook Response") -model_rebuild(Hook) +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) -__all__ = ("Hook",) +__all__ = ( + "GitRef", + "GitRefPropObject", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0345.py b/githubkit/versions/ghec_v2022_11_28/models/group_0345.py index dc0d94e75..e43c1b700 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0345.py @@ -9,75 +9,53 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0268 import Verification + -class Import(GitHubModel): - """Import +class GitTag(GitHubModel): + """Git Tag - A repository import from an external source. + Metadata for a Git tag """ - vcs: Union[str, None] = Field() - use_lfs: Missing[bool] = Field(default=UNSET) - vcs_url: str = Field(description="The URL of the originating repository.") - svc_root: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] = Field() - status_text: Missing[Union[str, None]] = Field(default=UNSET) - failed_step: Missing[Union[str, None]] = Field(default=UNSET) - error_message: Missing[Union[str, None]] = Field(default=UNSET) - import_percent: Missing[Union[int, None]] = Field(default=UNSET) - commit_count: Missing[Union[int, None]] = Field(default=UNSET) - push_percent: Missing[Union[int, None]] = Field(default=UNSET) - has_large_files: Missing[bool] = Field(default=UNSET) - large_files_size: Missing[int] = Field(default=UNSET) - large_files_count: Missing[int] = Field(default=UNSET) - project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - authors_count: Missing[Union[int, None]] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) + node_id: str = Field() + tag: str = Field(description="Name of the tag") + sha: str = Field() + url: str = Field(description="URL for the tag") + message: str = Field(description="Message describing the purpose of the tag") + tagger: GitTagPropTagger = Field() + object_: GitTagPropObject = Field(alias="object") + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" -class ImportPropProjectChoicesItems(GitHubModel): - """ImportPropProjectChoicesItems""" + date: str = Field() + email: str = Field() + name: str = Field() - vcs: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - human_name: Missing[str] = Field(default=UNSET) + +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" + + sha: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(Import) -model_rebuild(ImportPropProjectChoicesItems) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) __all__ = ( - "Import", - "ImportPropProjectChoicesItems", + "GitTag", + "GitTagPropObject", + "GitTagPropTagger", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0346.py b/githubkit/versions/ghec_v2022_11_28/models/group_0346.py index 7ed1d272d..a5ca2832d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0346.py @@ -12,23 +12,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PorterAuthor(GitHubModel): - """Porter Author +class GitTree(GitHubModel): + """Git Tree - Porter Author + The hierarchy between files in a Git repository. """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() - email: str = Field() - name: str = Field() - url: str = Field() - import_url: str = Field() + sha: str = Field() + url: Missing[str] = Field(default=UNSET) + truncated: bool = Field() + tree: list[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" + ) -model_rebuild(PorterAuthor) +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" -__all__ = ("PorterAuthor",) + path: str = Field() + mode: str = Field() + type: str = Field() + sha: str = Field() + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) + +__all__ = ( + "GitTree", + "GitTreePropTreeItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0347.py b/githubkit/versions/ghec_v2022_11_28/models/group_0347.py index c54f24120..544751a06 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0347.py @@ -9,23 +9,21 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PorterLargeFile(GitHubModel): - """Porter Large File - - Porter Large File - """ +class HookResponse(GitHubModel): + """Hook Response""" - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = Field() + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = Field() -model_rebuild(PorterLargeFile) +model_rebuild(HookResponse) -__all__ = ("PorterLargeFile",) +__all__ = ("HookResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0348.py b/githubkit/versions/ghec_v2022_11_28/models/group_0348.py index bcc61ef8d..017a3755e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0348.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from pydantic import Field @@ -18,141 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0067 import Team -from .group_0152 import Issue +from .group_0011 import WebhookConfig +from .group_0347 import HookResponse -class IssueEvent(GitHubModel): - """Issue Event +class Hook(GitHubModel): + """Webhook - Issue Event + Webhooks for repositories. """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: Union[None, SimpleUser] = Field() - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: datetime = Field() - issue: Missing[Union[None, Issue]] = Field(default=UNSET) - label: Missing[IssueEventLabel] = Field( - default=UNSET, title="Issue Event Label", description="Issue Event Label" - ) - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - dismissed_review: Missing[IssueEventDismissedReview] = Field( - default=UNSET, title="Issue Event Dismissed Review" + type: str = Field() + id: int = Field(description="Unique identifier of the webhook.") + name: str = Field( + description="The name of a valid service, use 'web' for a webhook." ) - milestone: Missing[IssueEventMilestone] = Field( - default=UNSET, - title="Issue Event Milestone", - description="Issue Event Milestone", + active: bool = Field( + description="Determines whether the hook is actually triggered on pushes." ) - project_card: Missing[IssueEventProjectCard] = Field( - default=UNSET, - title="Issue Event Project Card", - description="Issue Event Project Card", + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - rename: Missing[IssueEventRename] = Field( - default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + config: WebhookConfig = Field( + title="Webhook Configuration", description="Configuration object of the webhook" ) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] = Field( - default=UNSET, - title="author_association", - description="How the author is associated with the repository.", - ) - lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -class IssueEventLabel(GitHubModel): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] = Field() - color: Union[str, None] = Field() - - -class IssueEventDismissedReview(GitHubModel): - """Issue Event Dismissed Review""" - - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) - - -class IssueEventMilestone(GitHubModel): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str = Field() - - -class IssueEventProjectCard(GitHubModel): - """Issue Event Project Card - - Issue Event Project Card - """ - + updated_at: datetime = Field() + created_at: datetime = Field() url: str = Field() - id: int = Field() - project_url: str = Field() - project_id: int = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -class IssueEventRename(GitHubModel): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str = Field(alias="from") - to: str = Field() + test_url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + last_response: HookResponse = Field(title="Hook Response") -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) +model_rebuild(Hook) -__all__ = ( - "IssueEvent", - "IssueEventDismissedReview", - "IssueEventLabel", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", -) +__all__ = ("Hook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0349.py b/githubkit/versions/ghec_v2022_11_28/models/group_0349.py index 3ec22fb63..dc0d94e75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0349.py @@ -14,40 +14,70 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration +class Import(GitHubModel): + """Import -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event - - Labeled Issue Event + A repository import from an external source. """ - id: int = Field() - node_id: str = Field() + vcs: Union[str, None] = Field() + use_lfs: Missing[bool] = Field(default=UNSET) + vcs_url: str = Field(description="The URL of the originating repository.") + svc_root: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] = Field() + status_text: Missing[Union[str, None]] = Field(default=UNSET) + failed_step: Missing[Union[str, None]] = Field(default=UNSET) + error_message: Missing[Union[str, None]] = Field(default=UNSET) + import_percent: Missing[Union[int, None]] = Field(default=UNSET) + commit_count: Missing[Union[int, None]] = Field(default=UNSET) + push_percent: Missing[Union[int, None]] = Field(default=UNSET) + has_large_files: Missing[bool] = Field(default=UNSET) + large_files_size: Missing[int] = Field(default=UNSET) + large_files_count: Missing[int] = Field(default=UNSET) + project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + authors_count: Missing[Union[int, None]] = Field(default=UNSET) url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["labeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: LabeledIssueEventPropLabel = Field() + html_url: str = Field() + authors_url: str = Field() + repository_url: str = Field() + svn_root: Missing[str] = Field(default=UNSET) -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItems(GitHubModel): + """ImportPropProjectChoicesItems""" - name: str = Field() - color: str = Field() + vcs: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + human_name: Missing[str] = Field(default=UNSET) -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) __all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", + "Import", + "ImportPropProjectChoicesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0350.py b/githubkit/versions/ghec_v2022_11_28/models/group_0350.py index 695ea4a4e..7ed1d272d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0350.py @@ -9,45 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0010 import Integration - -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - Unlabeled Issue Event + Porter Author """ id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unlabeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: UnlabeledIssueEventPropLabel = Field() - - -class UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" - + remote_id: str = Field() + remote_name: str = Field() + email: str = Field() name: str = Field() - color: str = Field() + url: str = Field() + import_url: str = Field() -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) +model_rebuild(PorterAuthor) -__all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", -) +__all__ = ("PorterAuthor",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0351.py b/githubkit/versions/ghec_v2022_11_28/models/group_0351.py index 34f35669c..c54f24120 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0351.py @@ -9,38 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0010 import Integration - -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Assigned Issue Event + Porter Large File """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(AssignedIssueEvent) - -__all__ = ("AssignedIssueEvent",) + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() + + +model_rebuild(PorterLargeFile) + +__all__ = ("PorterLargeFile",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0352.py b/githubkit/versions/ghec_v2022_11_28/models/group_0352.py index d36e83286..703894662 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0352.py @@ -9,35 +9,150 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0067 import Team +from .group_0155 import Issue -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Unassigned Issue Event + Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + actor: Union[None, SimpleUser] = Field() event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + issue: Missing[Union[None, Issue]] = Field(default=UNSET) + label: Missing[IssueEventLabel] = Field( + default=UNSET, title="Issue Event Label", description="Issue Event Label" + ) + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + dismissed_review: Missing[IssueEventDismissedReview] = Field( + default=UNSET, title="Issue Event Dismissed Review" + ) + milestone: Missing[IssueEventMilestone] = Field( + default=UNSET, + title="Issue Event Milestone", + description="Issue Event Milestone", + ) + project_card: Missing[IssueEventProjectCard] = Field( + default=UNSET, + title="Issue Event Project Card", + description="Issue Event Project Card", + ) + rename: Missing[IssueEventRename] = Field( + default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + ) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] = Field( + default=UNSET, + title="author_association", + description="How the author is associated with the repository.", + ) + lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) -model_rebuild(UnassignedIssueEvent) +class IssueEventLabel(GitHubModel): + """Issue Event Label -__all__ = ("UnassignedIssueEvent",) + Issue Event Label + """ + + name: Union[str, None] = Field() + color: Union[str, None] = Field() + + +class IssueEventDismissedReview(GitHubModel): + """Issue Event Dismissed Review""" + + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueEventMilestone(GitHubModel): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str = Field() + + +class IssueEventProjectCard(GitHubModel): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str = Field() + id: int = Field() + project_url: str = Field() + project_id: int = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +class IssueEventRename(GitHubModel): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) + +__all__ = ( + "IssueEvent", + "IssueEventDismissedReview", + "IssueEventLabel", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0353.py b/githubkit/versions/ghec_v2022_11_28/models/group_0353.py index 734796d8a..3ec22fb63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0353.py @@ -19,34 +19,35 @@ from .group_0010 import Integration -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Milestoned Issue Event + Labeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["milestoned"] = Field() + event: Literal["labeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - milestone: MilestonedIssueEventPropMilestone = Field() + label: LabeledIssueEventPropLabel = Field() -class MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" - title: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) +model_rebuild(LabeledIssueEvent) +model_rebuild(LabeledIssueEventPropLabel) __all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", + "LabeledIssueEvent", + "LabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0354.py b/githubkit/versions/ghec_v2022_11_28/models/group_0354.py index 1b03cd99a..695ea4a4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0354.py @@ -19,34 +19,35 @@ from .group_0010 import Integration -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Demilestoned Issue Event + Unlabeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["demilestoned"] = Field() + event: Literal["unlabeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - milestone: DemilestonedIssueEventPropMilestone = Field() + label: UnlabeledIssueEventPropLabel = Field() -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" - title: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) +model_rebuild(UnlabeledIssueEvent) +model_rebuild(UnlabeledIssueEventPropLabel) __all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", + "UnlabeledIssueEvent", + "UnlabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0355.py b/githubkit/versions/ghec_v2022_11_28/models/group_0355.py index 234895caf..34f35669c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0355.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,35 +19,28 @@ from .group_0010 import Integration -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Renamed Issue Event + Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["renamed"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - rename: RenamedIssueEventPropRename = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +model_rebuild(AssignedIssueEvent) - from_: str = Field(alias="from") - to: str = Field() - - -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) - -__all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", -) +__all__ = ("AssignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0356.py b/githubkit/versions/ghec_v2022_11_28/models/group_0356.py index 4d65964d0..d36e83286 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0356.py @@ -9,47 +9,35 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0067 import Team -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Review Requested Issue Event + Unassigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestedIssueEvent) - -__all__ = ("ReviewRequestedIssueEvent",) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(UnassignedIssueEvent) + +__all__ = ("UnassignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0357.py b/githubkit/versions/ghec_v2022_11_28/models/group_0357.py index 6e882d31c..734796d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0357.py @@ -14,42 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0067 import Team -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Review Request Removed Issue Event + Milestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_request_removed"] = Field() + event: Literal["milestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestRemovedIssueEvent) - -__all__ = ("ReviewRequestRemovedIssueEvent",) + milestone: MilestonedIssueEventPropMilestone = Field() + + +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" + + title: str = Field() + + +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) + +__all__ = ( + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0358.py b/githubkit/versions/ghec_v2022_11_28/models/group_0358.py index bc686e09d..1b03cd99a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0358.py @@ -14,44 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Review Dismissed Issue Event + Demilestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_dismissed"] = Field() + event: Literal["demilestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() + milestone: DemilestonedIssueEventPropMilestone = Field() -class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): - """ReviewDismissedIssueEventPropDismissedReview""" +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[str] = Field(default=UNSET) + title: str = Field() -model_rebuild(ReviewDismissedIssueEvent) -model_rebuild(ReviewDismissedIssueEventPropDismissedReview) +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) __all__ = ( - "ReviewDismissedIssueEvent", - "ReviewDismissedIssueEventPropDismissedReview", + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0359.py b/githubkit/versions/ghec_v2022_11_28/models/group_0359.py index e0130f152..234895caf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0359.py @@ -19,24 +19,35 @@ from .group_0010 import Integration -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Locked Issue Event + Renamed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["locked"] = Field() + event: Literal["renamed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - lock_reason: Union[str, None] = Field() + rename: RenamedIssueEventPropRename = Field() -model_rebuild(LockedIssueEvent) +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" -__all__ = ("LockedIssueEvent",) + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) + +__all__ = ( + "RenamedIssueEvent", + "RenamedIssueEventPropRename", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0360.py b/githubkit/versions/ghec_v2022_11_28/models/group_0360.py index cf2b6b5f8..4d65964d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0360.py @@ -19,43 +19,37 @@ from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0067 import Team -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Added to Project Issue Event + Review Requested Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["review_requested"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestedIssueEvent) -__all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0361.py b/githubkit/versions/ghec_v2022_11_28/models/group_0361.py index 5d2b15f17..6e882d31c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0361.py @@ -19,43 +19,37 @@ from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0067 import Team -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Moved Column in Project Issue Event + Review Request Removed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["review_request_removed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestRemovedIssueEvent) -__all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestRemovedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0362.py b/githubkit/versions/ghec_v2022_11_28/models/group_0362.py index 3bd6fbf40..bc686e09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0362.py @@ -21,41 +21,37 @@ from .group_0010 import Integration -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Removed from Project Issue Event + Review Dismissed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["removed_from_project"] = Field() + event: Literal["review_dismissed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[str] = Field(default=UNSET) -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) __all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0363.py b/githubkit/versions/ghec_v2022_11_28/models/group_0363.py index d4894ad61..e0130f152 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0363.py @@ -14,51 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class LockedIssueEvent(GitHubModel): + """Locked Issue Event - Converted Note to Issue Issue Event + Locked Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["converted_note_to_issue"] = Field() + event: Literal["locked"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( - default=UNSET - ) + performed_via_github_app: Union[None, Integration, None] = Field() + lock_reason: Union[str, None] = Field() -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +model_rebuild(LockedIssueEvent) - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) - -__all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", -) +__all__ = ("LockedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0364.py b/githubkit/versions/ghec_v2022_11_28/models/group_0364.py index 796d6e6ed..cf2b6b5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0364.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -20,49 +19,43 @@ from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0151 import ReactionRollup -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event - Timeline Comment Event + Added to Project Issue Event """ - event: Literal["commented"] = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["added_to_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( default=UNSET ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineCommentEvent) +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) -__all__ = ("TimelineCommentEvent",) +__all__ = ( + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0365.py b/githubkit/versions/ghec_v2022_11_28/models/group_0365.py index 789c52e14..5d2b15f17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0365.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,24 +18,44 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0366 import TimelineCrossReferencedEventPropSource +from .group_0010 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event - Timeline Cross Referenced Event + Moved Column in Project Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["moved_columns_in_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( + default=UNSET ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(TimelineCrossReferencedEvent) +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" -__all__ = ("TimelineCrossReferencedEvent",) + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) + +__all__ = ( + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0366.py b/githubkit/versions/ghec_v2022_11_28/models/group_0366.py index add4214ca..3bd6fbf40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0366.py @@ -9,26 +9,53 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0152 import Issue +from .group_0003 import SimpleUser +from .group_0010 import Integration + +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Removed from Project Issue Event + """ - type: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["removed_from_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( + default=UNSET ) -model_rebuild(TimelineCrossReferencedEventPropSource) +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ( + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0367.py b/githubkit/versions/ghec_v2022_11_28/models/group_0367.py index 3333d74a0..d4894ad61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0367.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,89 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineCommittedEvent(GitHubModel): - """Timeline Committed Event - Timeline Committed Event +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event + + Converted Note to Issue Issue Event """ - event: Missing[Literal["committed"]] = Field(default=UNSET) - sha: str = Field(description="SHA for the commit") + id: int = Field() node_id: str = Field() url: str = Field() - author: TimelineCommittedEventPropAuthor = Field( - description="Identifying information for the git-user" + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["converted_note_to_issue"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - committer: TimelineCommittedEventPropCommitter = Field( - description="Identifying information for the git-user" + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET ) - message: str = Field(description="Message describing the purpose of the commit") - tree: TimelineCommittedEventPropTree = Field() - parents: list[TimelineCommittedEventPropParentsItems] = Field() - verification: TimelineCommittedEventPropVerification = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropAuthor(GitHubModel): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class TimelineCommittedEventPropCommitter(GitHubModel): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") -class TimelineCommittedEventPropTree(GitHubModel): - """TimelineCommittedEventPropTree""" +class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - sha: str = Field(description="SHA for the commit") + id: int = Field() url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -class TimelineCommittedEventPropParentsItems(GitHubModel): - """TimelineCommittedEventPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropVerification(GitHubModel): - """TimelineCommittedEventPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Union[str, None] = Field() - - -model_rebuild(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) __all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropVerification", + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0368.py b/githubkit/versions/ghec_v2022_11_28/models/group_0368.py index a6060bb80..7a595057e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0368.py @@ -19,27 +19,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0154 import ReactionRollup -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event - Timeline Reviewed Event + Timeline Comment Event """ - event: Literal["reviewed"] = Field() - id: int = Field(description="Unique identifier of the review") + event: Literal["commented"] = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + id: int = Field(description="Unique identifier of the issue comment") node_id: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field(description="The text of the review.") - state: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) html_url: str = Field() - pull_request_url: str = Field() - links: TimelineReviewedEventPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: str = Field(description="A commit SHA for the review.") - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + updated_at: datetime = Field() + issue_url: str = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -53,35 +57,12 @@ class TimelineReviewedEvent(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class TimelineReviewedEventPropLinks(GitHubModel): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtml = Field() - pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() - - -class TimelineReviewedEventPropLinksPropHtml(GitHubModel): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str = Field() - - -class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(TimelineReviewedEvent) -model_rebuild(TimelineReviewedEventPropLinks) -model_rebuild(TimelineReviewedEventPropLinksPropHtml) -model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) +model_rebuild(TimelineCommentEvent) -__all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", -) +__all__ = ("TimelineCommentEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0369.py b/githubkit/versions/ghec_v2022_11_28/models/group_0369.py index 7449ada22..b5d31005d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0369.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0369.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,149 +19,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0151 import ReactionRollup +from .group_0370 import TimelineCrossReferencedEventPropSource -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Cross Referenced Event """ - url: str = Field(description="URL for the pull request review comment") - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." + event: Literal["cross-referenced"] = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - id: int = Field(description="The ID of the pull request review comment.") - node_id: str = Field(description="The node ID of the pull request review comment.") - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Missing[int] = Field( - default=UNSET, - description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", - ) - original_position: Missing[int] = Field( - default=UNSET, - description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", - ) - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: str = Field(description="The text of the comment.") created_at: datetime = Field() updated_at: datetime = Field() - html_url: str = Field(description="HTML URL for the pull request review comment.") - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: PullRequestReviewCommentPropLinks = Field(alias="_links") - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - - -class PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() - - -class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str = Field() - - -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ - - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) + source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "PullRequestReviewCommentPropLinksPropSelf", - "TimelineLineCommentedEvent", -) +__all__ = ("TimelineCrossReferencedEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0370.py b/githubkit/versions/ghec_v2022_11_28/models/group_0370.py index c45a39f8c..351837e81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0370.py @@ -9,34 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration - +from .group_0155 import Issue -class TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event - Timeline Assigned Issue Event - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["assigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) -model_rebuild(TimelineAssignedIssueEvent) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ("TimelineAssignedIssueEvent",) +__all__ = ("TimelineCrossReferencedEventPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0371.py b/githubkit/versions/ghec_v2022_11_28/models/group_0371.py index 420f91c26..3333d74a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0371.py @@ -9,34 +9,98 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event - - Timeline Unassigned Issue Event + Timeline Committed Event """ - id: int = Field() + event: Missing[Literal["committed"]] = Field(default=UNSET) + sha: str = Field(description="SHA for the commit") node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unassigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + author: TimelineCommittedEventPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: TimelineCommittedEventPropTree = Field() + parents: list[TimelineCommittedEventPropParentsItems] = Field() + verification: TimelineCommittedEventPropVerification = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropVerification(GitHubModel): + """TimelineCommittedEventPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() -model_rebuild(TimelineUnassignedIssueEvent) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) -__all__ = ("TimelineUnassignedIssueEvent",) +__all__ = ( + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropVerification", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0372.py b/githubkit/versions/ghec_v2022_11_28/models/group_0372.py index 799278e56..a6060bb80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0372.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,27 +19,69 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event - State Change Issue Event + Timeline Reviewed Event """ - id: int = Field() + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) -model_rebuild(StateChangeIssueEvent) +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" -__all__ = ("StateChangeIssueEvent",) + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + + +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) + +__all__ = ( + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0373.py b/githubkit/versions/ghec_v2022_11_28/models/group_0373.py index 25f7eb3a3..79d99396e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0373.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,25 +18,150 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0154 import ReactionRollup -class DeployKey(GitHubModel): - """Deploy Key - An SSH key granting access to a single repository. +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. + """ + + url: str = Field(description="URL for the pull request review comment") + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + id: int = Field(description="The ID of the pull request review comment.") + node_id: str = Field(description="The node ID of the pull request review comment.") + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Missing[int] = Field( + default=UNSET, + description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", + ) + original_position: Missing[int] = Field( + default=UNSET, + description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", + ) + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: str = Field(description="The text of the comment.") + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field(description="HTML URL for the pull request review comment.") + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: PullRequestReviewCommentPropLinks = Field(alias="_links") + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + + +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event """ - id: int = Field() - key: str = Field() - url: str = Field() - title: str = Field() - verified: bool = Field() - created_at: str = Field() - read_only: bool = Field() - added_by: Missing[Union[str, None]] = Field(default=UNSET) - last_used: Missing[Union[str, None]] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) -model_rebuild(DeployKey) +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) -__all__ = ("DeployKey",) +__all__ = ( + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "PullRequestReviewCommentPropLinksPropSelf", + "TimelineLineCommentedEvent", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0374.py b/githubkit/versions/ghec_v2022_11_28/models/group_0374.py index 58247c327..c45a39f8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0374.py @@ -9,16 +9,34 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Literal, Union +from pydantic import Field -class Language(ExtraGitHubModel): - """Language +from githubkit.compat import GitHubModel, model_rebuild - Language +from .group_0003 import SimpleUser +from .group_0010 import Integration + + +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event """ + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["assigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + -model_rebuild(Language) +model_rebuild(TimelineAssignedIssueEvent) -__all__ = ("Language",) +__all__ = ("TimelineAssignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0375.py b/githubkit/versions/ghec_v2022_11_28/models/group_0375.py index 5f83fdf69..420f91c26 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0375.py @@ -9,48 +9,34 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0019 import LicenseSimple +from .group_0003 import SimpleUser +from .group_0010 import Integration -class LicenseContent(GitHubModel): - """License Content +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event - License Content + Timeline Unassigned Issue Event """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() + id: int = Field() + node_id: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["unassigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" +model_rebuild(TimelineUnassignedIssueEvent) - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) - -__all__ = ( - "LicenseContent", - "LicenseContentPropLinks", -) +__all__ = ("TimelineUnassignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0376.py b/githubkit/versions/ghec_v2022_11_28/models/group_0376.py index 21374a5f3..799278e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0376.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,18 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class MergedUpstream(GitHubModel): - """Merged upstream - Results of a successful merge upstream request +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event + + State Change Issue Event """ - message: Missing[str] = Field(default=UNSET) - merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) - base_branch: Missing[str] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: str = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(MergedUpstream) +model_rebuild(StateChangeIssueEvent) -__all__ = ("MergedUpstream",) +__all__ = ("StateChangeIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0377.py b/githubkit/versions/ghec_v2022_11_28/models/group_0377.py index 771963487..25f7eb3a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0377.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,82 +18,24 @@ from githubkit.utils import UNSET -class Page(GitHubModel): - """GitHub Pages +class DeployKey(GitHubModel): + """Deploy Key - The configuration for GitHub Pages for a repository. + An SSH key granting access to a single repository. """ - url: str = Field(description="The API address for accessing this Page resource.") - status: Union[None, Literal["built", "building", "errored"]] = Field( - description="The status of the most recent build of the Page." - ) - cname: Union[str, None] = Field(description="The Pages site's custom domain") - protected_domain_state: Missing[ - Union[None, Literal["pending", "verified", "unverified"]] - ] = Field(default=UNSET, description="The state if the domain is verified") - pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The timestamp when a pending domain becomes unverified.", - ) - custom_404: bool = Field( - default=False, description="Whether the Page has a custom 404 page." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The web address the Page can be accessed from." - ) - build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( - default=UNSET, description="The process in which the Page will be built." - ) - source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") - public: bool = Field( - description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." - ) - https_certificate: Missing[PagesHttpsCertificate] = Field( - default=UNSET, title="Pages Https Certificate" - ) - https_enforced: Missing[bool] = Field( - default=UNSET, description="Whether https is enabled on the domain" - ) + id: int = Field() + key: str = Field() + url: str = Field() + title: str = Field() + verified: bool = Field() + created_at: str = Field() + read_only: bool = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) + last_used: Missing[Union[str, None]] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) -class PagesSourceHash(GitHubModel): - """Pages Source Hash""" +model_rebuild(DeployKey) - branch: str = Field() - path: str = Field() - - -class PagesHttpsCertificate(GitHubModel): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] = Field() - description: str = Field() - domains: list[str] = Field( - description="Array of the domain set and its alternate name (if it is configured)" - ) - expires_at: Missing[date] = Field(default=UNSET) - - -model_rebuild(Page) -model_rebuild(PagesSourceHash) -model_rebuild(PagesHttpsCertificate) - -__all__ = ( - "Page", - "PagesHttpsCertificate", - "PagesSourceHash", -) +__all__ = ("DeployKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0378.py b/githubkit/versions/ghec_v2022_11_28/models/group_0378.py index c05e5b837..58247c327 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0378.py @@ -9,42 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +class Language(ExtraGitHubModel): + """Language -from .group_0003 import SimpleUser - - -class PageBuild(GitHubModel): - """Page Build - - Page Build + Language """ - url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" - - message: Union[str, None] = Field() - -model_rebuild(PageBuild) -model_rebuild(PageBuildPropError) +model_rebuild(Language) -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("Language",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0379.py b/githubkit/versions/ghec_v2022_11_28/models/group_0379.py index 4b54230bc..5f83fdf69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0379.py @@ -9,21 +9,48 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0019 import LicenseSimple + -class PageBuildStatus(GitHubModel): - """Page Build Status +class LicenseContent(GitHubModel): + """License Content - Page Build Status + License Content """ + name: str = Field() + path: str = Field() + sha: str = Field() + size: int = Field() url: str = Field() - status: str = Field() + html_url: Union[str, None] = Field() + git_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + type: str = Field() + content: str = Field() + encoding: str = Field() + links: LicenseContentPropLinks = Field(alias="_links") + license_: Union[None, LicenseSimple] = Field(alias="license") + + +class LicenseContentPropLinks(GitHubModel): + """LicenseContentPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(PageBuildStatus) +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) -__all__ = ("PageBuildStatus",) +__all__ = ( + "LicenseContent", + "LicenseContentPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0380.py b/githubkit/versions/ghec_v2022_11_28/models/group_0380.py index c3d88e76b..21374a5f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0380.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,24 +18,17 @@ from githubkit.utils import UNSET -class PageDeployment(GitHubModel): - """GitHub Pages +class MergedUpstream(GitHubModel): + """Merged upstream - The GitHub Pages deployment status. + Results of a successful merge upstream request """ - id: Union[int, str] = Field( - description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." - ) - status_url: str = Field( - description="The URI to monitor GitHub Pages deployment status." - ) - page_url: str = Field(description="The URI to the deployed GitHub Pages.") - preview_url: Missing[str] = Field( - default=UNSET, description="The URI to the deployed GitHub Pages preview." - ) + message: Missing[str] = Field(default=UNSET) + merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) + base_branch: Missing[str] = Field(default=UNSET) -model_rebuild(PageDeployment) +model_rebuild(MergedUpstream) -__all__ = ("PageDeployment",) +__all__ = ("MergedUpstream",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0381.py b/githubkit/versions/ghec_v2022_11_28/models/group_0381.py index f79d28414..771963487 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0381.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import Literal, Union from pydantic import Field @@ -18,26 +19,82 @@ from githubkit.utils import UNSET -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" +class Page(GitHubModel): + """GitHub Pages - status: Missing[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] = Field(default=UNSET, description="The current status of the deployment.") + The configuration for GitHub Pages for a repository. + """ + url: str = Field(description="The API address for accessing this Page resource.") + status: Union[None, Literal["built", "building", "errored"]] = Field( + description="The status of the most recent build of the Page." + ) + cname: Union[str, None] = Field(description="The Pages site's custom domain") + protected_domain_state: Missing[ + Union[None, Literal["pending", "verified", "unverified"]] + ] = Field(default=UNSET, description="The state if the domain is verified") + pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The timestamp when a pending domain becomes unverified.", + ) + custom_404: bool = Field( + default=False, description="Whether the Page has a custom 404 page." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The web address the Page can be accessed from." + ) + build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( + default=UNSET, description="The process in which the Page will be built." + ) + source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") + public: bool = Field( + description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." + ) + https_certificate: Missing[PagesHttpsCertificate] = Field( + default=UNSET, title="Pages Https Certificate" + ) + https_enforced: Missing[bool] = Field( + default=UNSET, description="Whether https is enabled on the domain" + ) -model_rebuild(PagesDeploymentStatus) -__all__ = ("PagesDeploymentStatus",) +class PagesSourceHash(GitHubModel): + """Pages Source Hash""" + + branch: str = Field() + path: str = Field() + + +class PagesHttpsCertificate(GitHubModel): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] = Field() + description: str = Field() + domains: list[str] = Field( + description="Array of the domain set and its alternate name (if it is configured)" + ) + expires_at: Missing[date] = Field(default=UNSET) + + +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) + +__all__ = ( + "Page", + "PagesHttpsCertificate", + "PagesSourceHash", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0382.py b/githubkit/versions/ghec_v2022_11_28/models/group_0382.py index b7d3c727b..c05e5b837 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0382.py @@ -9,103 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status - Pages Health Check Status +class PageBuild(GitHubModel): + """Page Build + + Page Build """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET - ) - - -class PagesHealthCheckPropDomain(GitHubModel): - """PagesHealthCheckPropDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -class PagesHealthCheckPropAltDomain(GitHubModel): - """PagesHealthCheckPropAltDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(PagesHealthCheck) -model_rebuild(PagesHealthCheckPropDomain) -model_rebuild(PagesHealthCheckPropAltDomain) + url: str = Field() + status: str = Field() + error: PageBuildPropError = Field() + pusher: Union[None, SimpleUser] = Field() + commit: str = Field() + duration: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + + message: Union[str, None] = Field() + + +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) __all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropAltDomain", - "PagesHealthCheckPropDomain", + "PageBuild", + "PageBuildPropError", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0383.py b/githubkit/versions/ghec_v2022_11_28/models/group_0383.py index 5835ab8c8..4b54230bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0383.py @@ -9,106 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0066 import TeamSimple -from .group_0149 import Milestone -from .group_0304 import AutoMerge -from .group_0384 import PullRequestPropLabelsItems -from .group_0385 import PullRequestPropBase, PullRequestPropHead -from .group_0386 import PullRequestPropLinks -class PullRequest(GitHubModel): - """Pull Request +class PageBuildStatus(GitHubModel): + """Page Build Status - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build Status """ url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() + status: str = Field() -model_rebuild(PullRequest) +model_rebuild(PageBuildStatus) -__all__ = ("PullRequest",) +__all__ = ("PageBuildStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0384.py b/githubkit/versions/ghec_v2022_11_28/models/group_0384.py index cf1d160e5..c3d88e76b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0384.py @@ -14,20 +14,28 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestPropLabelsItems(GitHubModel): - """PullRequestPropLabelsItems""" +class PageDeployment(GitHubModel): + """GitHub Pages - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + The GitHub Pages deployment status. + """ + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." + ) + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." + ) + page_url: str = Field(description="The URI to the deployed GitHub Pages.") + preview_url: Missing[str] = Field( + default=UNSET, description="The URI to the deployed GitHub Pages preview." + ) -model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestPropLabelsItems",) +model_rebuild(PageDeployment) + +__all__ = ("PageDeployment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0385.py b/githubkit/versions/ghec_v2022_11_28/models/group_0385.py index 825d35e04..f79d28414 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0385.py @@ -9,40 +9,35 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" + status: Missing[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] = Field(default=UNSET, description="The current status of the deployment.") - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() +model_rebuild(PagesDeploymentStatus) -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropBase) - -__all__ = ( - "PullRequestPropBase", - "PullRequestPropHead", -) +__all__ = ("PagesDeploymentStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0386.py b/githubkit/versions/ghec_v2022_11_28/models/group_0386.py index d8b9a49bf..b7d3c727b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0386.py @@ -9,26 +9,103 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class PagesHealthCheck(GitHubModel): + """Pages Health Check Status + + Pages Health Check Status + """ + + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET + ) + + +class PagesHealthCheckPropDomain(GitHubModel): + """PagesHealthCheckPropDomain""" -from .group_0303 import Link + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" +class PagesHealthCheckPropAltDomain(GitHubModel): + """PagesHealthCheckPropAltDomain""" - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(PullRequestPropLinks) +model_rebuild(PagesHealthCheck) +model_rebuild(PagesHealthCheckPropDomain) +model_rebuild(PagesHealthCheckPropAltDomain) -__all__ = ("PullRequestPropLinks",) +__all__ = ( + "PagesHealthCheck", + "PagesHealthCheckPropAltDomain", + "PagesHealthCheckPropDomain", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0387.py b/githubkit/versions/ghec_v2022_11_28/models/group_0387.py index da433b3b8..18631a919 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0387.py @@ -9,22 +9,106 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0066 import TeamSimple +from .group_0152 import Milestone +from .group_0308 import AutoMerge +from .group_0388 import PullRequestPropLabelsItems +from .group_0389 import PullRequestPropBase, PullRequestPropHead +from .group_0390 import PullRequestPropLinks -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result +class PullRequest(GitHubModel): + """Pull Request - Pull Request Merge Result + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ - sha: str = Field() + url: str = Field() + id: int = Field() + node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) merged: bool = Field() - message: str = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() -model_rebuild(PullRequestMergeResult) +model_rebuild(PullRequest) -__all__ = ("PullRequestMergeResult",) +__all__ = ("PullRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0388.py b/githubkit/versions/ghec_v2022_11_28/models/group_0388.py index 39bd4230e..cf1d160e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0388.py @@ -9,24 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0067 import Team - - -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request - Pull Request Review Request - """ +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" - users: list[SimpleUser] = Field() - teams: list[Team] = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(PullRequestReviewRequest) +model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestReviewRequest",) +__all__ = ("PullRequestPropLabelsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0389.py b/githubkit/versions/ghec_v2022_11_28/models/group_0389.py index d7938b075..825d35e04 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0389.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0389.py @@ -9,80 +9,40 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0020 import Repository -class PullRequestReview(GitHubModel): - """Pull Request Review +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" - Pull Request Reviews are reviews on pull requests. - """ - - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() user: Union[None, SimpleUser] = Field() - body: str = Field(description="The text of the review.") - state: str = Field() - html_url: str = Field() - pull_request_url: str = Field() - links: PullRequestReviewPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: Union[str, None] = Field( - description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - - -class PullRequestReviewPropLinks(GitHubModel): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtml = Field() - pull_request: PullRequestReviewPropLinksPropPullRequest = Field() - - -class PullRequestReviewPropLinksPropHtml(GitHubModel): - """PullRequestReviewPropLinksPropHtml""" - - href: str = Field() -class PullRequestReviewPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewPropLinksPropPullRequest""" +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" - href: str = Field() + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropBase) __all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", + "PullRequestPropBase", + "PullRequestPropHead", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0390.py b/githubkit/versions/ghec_v2022_11_28/models/group_0390.py index 86544055e..1b61ff60e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0390.py @@ -9,86 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0151 import ReactionRollup -from .group_0391 import ReviewCommentPropLinks +from .group_0307 import Link -class ReviewComment(GitHubModel): - """Legacy Review Comment - Legacy Review Comment - """ +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - url: str = Field() - pull_request_review_id: Union[int, None] = Field() - id: int = Field() - node_id: str = Field() - diff_hunk: str = Field() - path: str = Field() - position: Union[int, None] = Field() - original_position: int = Field() - commit_id: str = Field() - original_commit_id: str = Field() - in_reply_to_id: Missing[int] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - body: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - html_url: str = Field() - pull_request_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: ReviewCommentPropLinks = Field(alias="_links") - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The original first line of the range for a multi-line comment.", - ) + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(ReviewComment) +model_rebuild(PullRequestPropLinks) -__all__ = ("ReviewComment",) +__all__ = ("PullRequestPropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0391.py b/githubkit/versions/ghec_v2022_11_28/models/group_0391.py index 686d6f3ff..da433b3b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0391.py @@ -13,17 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0303 import Link +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" + Pull Request Merge Result + """ - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - pull_request: Link = Field(title="Link", description="Hypermedia Link") + sha: str = Field() + merged: bool = Field() + message: str = Field() -model_rebuild(ReviewCommentPropLinks) +model_rebuild(PullRequestMergeResult) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ("PullRequestMergeResult",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0392.py b/githubkit/versions/ghec_v2022_11_28/models/group_0392.py index 276401f0d..39bd4230e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0392.py @@ -9,39 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from .group_0003 import SimpleUser +from .group_0067 import Team -class ReleaseAsset(GitHubModel): - """Release Asset +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request - Data related to a release. + Pull Request Review Request """ - url: str = Field() - browser_download_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="The file name of the asset.") - label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - download_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - uploader: Union[None, SimpleUser] = Field() - - -model_rebuild(ReleaseAsset) - -__all__ = ("ReleaseAsset",) + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + + +model_rebuild(PullRequestReviewRequest) + +__all__ = ("PullRequestReviewRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0393.py b/githubkit/versions/ghec_v2022_11_28/models/group_0393.py index db5fbde6a..d7938b075 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0393.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,49 +19,70 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0151 import ReactionRollup -from .group_0392 import ReleaseAsset -class Release(GitHubModel): - """Release +class PullRequestReview(GitHubModel): + """Pull Request Review - A release. + Pull Request Reviews are reviews on pull requests. """ - url: str = Field() - html_url: str = Field() - assets_url: str = Field() - upload_url: str = Field() - tarball_url: Union[str, None] = Field() - zipball_url: Union[str, None] = Field() - id: int = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - tag_name: str = Field(description="The name of the tag.") - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - name: Union[str, None] = Field() - body: Missing[Union[str, None]] = Field(default=UNSET) - draft: bool = Field( - description="true to create a draft (unpublished) release, false to create a published one." - ) - prerelease: bool = Field( - description="Whether to identify the release as a prerelease or a full release." + user: Union[None, SimpleUser] = Field() + body: str = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: PullRequestReviewPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: Union[str, None] = Field( + description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." ) - created_at: datetime = Field() - published_at: Union[datetime, None] = Field() - author: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assets: list[ReleaseAsset] = Field() - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - mentions_count: Missing[int] = Field(default=UNSET) - discussion_url: Missing[str] = Field( - default=UNSET, description="The URL of the release discussion." + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(Release) +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("Release",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0394.py b/githubkit/versions/ghec_v2022_11_28/models/group_0394.py index e30bd3be3..c7276ecac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0394.py @@ -9,23 +9,86 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0154 import ReactionRollup +from .group_0395 import ReviewCommentPropLinks -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content +class ReviewComment(GitHubModel): + """Legacy Review Comment - Generated name and body describing a release + Legacy Review Comment """ - name: str = Field(description="The generated name of the release") - body: str = Field( - description="The generated body describing the contents of the release supporting markdown formatting" + url: str = Field() + pull_request_review_id: Union[int, None] = Field() + id: int = Field() + node_id: str = Field() + diff_hunk: str = Field() + path: str = Field() + position: Union[int, None] = Field() + original_position: int = Field() + commit_id: str = Field() + original_commit_id: str = Field() + in_reply_to_id: Missing[int] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + body: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field() + pull_request_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: ReviewCommentPropLinks = Field(alias="_links") + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The original first line of the range for a multi-line comment.", ) -model_rebuild(ReleaseNotesContent) +model_rebuild(ReviewComment) -__all__ = ("ReleaseNotesContent",) +__all__ = ("ReviewComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py index 0e31221c5..f2270e4b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py @@ -9,35 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0307 import Link -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." - ) + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + pull_request: Link = Field(title="Link", description="Hypermedia Link") -model_rebuild(RepositoryRuleRulesetInfo) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ("ReviewCommentPropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py index 7929bea32..1f2efa2a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py @@ -9,32 +9,40 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." +class ReleaseAsset(GitHubModel): + """Release Asset + + Data related to a release. + """ + + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(RepositoryRuleDetailedOneof0) +model_rebuild(ReleaseAsset) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ("ReleaseAsset",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py index 09036ee3d..5cd369aa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,27 +18,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0097 import RepositoryRuleUpdatePropParameters +from .group_0003 import SimpleUser +from .group_0154 import ReactionRollup +from .group_0396 import ReleaseAsset -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" +class Release(GitHubModel): + """Release - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", + A release. + """ + + url: str = Field() + html_url: str = Field() + assets_url: str = Field() + upload_url: str = Field() + tarball_url: Union[str, None] = Field() + zipball_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + tag_name: str = Field(description="The name of the tag.") + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + name: Union[str, None] = Field() + body: Missing[Union[str, None]] = Field(default=UNSET) + draft: bool = Field( + description="true to create a draft (unpublished) release, false to create a published one." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + prerelease: bool = Field( + description="Whether to identify the release as a prerelease or a full release." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + created_at: datetime = Field() + published_at: Union[datetime, None] = Field() + author: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assets: list[ReleaseAsset] = Field() + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + mentions_count: Missing[int] = Field(default=UNSET) + discussion_url: Missing[str] = Field( + default=UNSET, description="The URL of the release discussion." ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(Release) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("Release",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py index ff93ecfb1..e30bd3be3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py @@ -9,32 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content - type: Literal["deletion"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + Generated name and body describing a release + """ + + name: str = Field(description="The generated name of the release") + body: str = Field( + description="The generated body describing the contents of the release supporting markdown formatting" ) -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("ReleaseNotesContent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py index 7db86577f..0e31221c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py @@ -18,10 +18,13 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof3(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof3) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("RepositoryRuleRulesetInfo",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py index e1fcd6cbd..7929bea32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0100 import RepositoryRuleMergeQueuePropParameters +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) + type: Literal["creation"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof4(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("RepositoryRuleDetailedOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py index a06b194c0..09036ee3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0102 import RepositoryRuleRequiredDeploymentsPropParameters +from .group_0097 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" +class RepositoryRuleDetailedOneof1(GitHubModel): + """RepositoryRuleDetailedOneof1""" - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof5(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("RepositoryRuleDetailedOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py index e9b15495d..ff93ecfb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py @@ -18,10 +18,10 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" - type: Literal["required_signatures"] = Field() + type: Literal["deletion"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +35,6 @@ class RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleDetailedOneof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py index bedc88249..7db86577f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0105 import RepositoryRulePullRequestPropParameters +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" - - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py index 423990b61..e1fcd6cbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0107 import RepositoryRuleRequiredStatusChecksPropParameters +from .group_0100 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET - ) + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof4",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py index 3f83e7bc3..a06b194c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py @@ -17,11 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0102 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] = Field() +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" + + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +40,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof5",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py index 629bb00ed..e9b15495d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0109 import RepositoryRuleCommitMessagePatternPropParameters +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["required_signatures"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof6",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py index b91f4a4f1..bedc88249 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0111 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0105 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof7",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py index 27e6512fc..423990b61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0113 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0107 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof8",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py index 6d4a612b4..3f83e7bc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0115 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" - - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof9",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py index 49d69ea1b..629bb00ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0117 import RepositoryRuleTagNamePatternPropParameters +from .group_0109 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof10",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py index 185561651..b91f4a4f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0119 import RepositoryRuleFilePathRestrictionPropParameters +from .group_0111 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof11",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py index 5efce4567..27e6512fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0121 import RepositoryRuleMaxFilePathLengthPropParameters +from .group_0113 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleDetailedOneof16(GitHubModel): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof16(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof16) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ("RepositoryRuleDetailedOneof16",) +__all__ = ("RepositoryRuleDetailedOneof12",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py index 7c1da8731..6d4a612b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0123 import RepositoryRuleFileExtensionRestrictionPropParameters +from .group_0115 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleDetailedOneof17(GitHubModel): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof17(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof17) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ("RepositoryRuleDetailedOneof17",) +__all__ = ("RepositoryRuleDetailedOneof13",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py index 6a766a2e8..49d69ea1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0125 import RepositoryRuleMaxFileSizePropParameters +from .group_0117 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleDetailedOneof18(GitHubModel): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof18(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof18) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ("RepositoryRuleDetailedOneof18",) +__all__ = ("RepositoryRuleDetailedOneof14",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py index b5e5cb225..185561651 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0128 import RepositoryRuleWorkflowsPropParameters +from .group_0119 import RepositoryRuleFilePathRestrictionPropParameters -class RepositoryRuleDetailedOneof19(GitHubModel): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof19(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof19) +model_rebuild(RepositoryRuleDetailedOneof15) -__all__ = ("RepositoryRuleDetailedOneof19",) +__all__ = ("RepositoryRuleDetailedOneof15",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py index f4cec24f2..5efce4567 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0130 import RepositoryRuleCodeScanningPropParameters +from .group_0121 import RepositoryRuleMaxFilePathLengthPropParameters -class RepositoryRuleDetailedOneof20(GitHubModel): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof16(GitHubModel): + """RepositoryRuleDetailedOneof16""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof20(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof20) +model_rebuild(RepositoryRuleDetailedOneof16) -__all__ = ("RepositoryRuleDetailedOneof20",) +__all__ = ("RepositoryRuleDetailedOneof16",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0417.py b/githubkit/versions/ghec_v2022_11_28/models/group_0417.py index 6a74f13a6..7c1da8731 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0417.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,97 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0123 import RepositoryRuleFileExtensionRestrictionPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof17(GitHubModel): + """RepositoryRuleDetailedOneof17""" - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( default=UNSET ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + description="The type of source for the ruleset that includes this rule.", ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." + description="The name of the source of the ruleset that includes this rule.", ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", - ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof17) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof17",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py index fa37297f6..6a766a2e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,22 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0125 import RepositoryRuleMaxFileSizePropParameters -class SecretScanningPushProtectionBypass(GitHubModel): - """SecretScanningPushProtectionBypass""" - reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( - Field(default=UNSET, description="The reason for bypassing push protection.") +class RepositoryRuleDetailedOneof18(GitHubModel): + """RepositoryRuleDetailedOneof18""" + + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, + description="The type of source for the ruleset that includes this rule.", ) - expire_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The name of the source of the ruleset that includes this rule.", ) - token_type: Missing[str] = Field( - default=UNSET, description="The token type this bypass is for." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningPushProtectionBypass) +model_rebuild(RepositoryRuleDetailedOneof18) -__all__ = ("SecretScanningPushProtectionBypass",) +__all__ = ("RepositoryRuleDetailedOneof18",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py index 11ebab9e4..b5e5cb225 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,70 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0128 import RepositoryRuleWorkflowsPropParameters -class SecretScanningScanHistory(GitHubModel): - """SecretScanningScanHistory""" - incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - custom_pattern_backfill_scans: Missing[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] - ] = Field(default=UNSET) +class RepositoryRuleDetailedOneof19(GitHubModel): + """RepositoryRuleDetailedOneof19""" - -class SecretScanningScan(GitHubModel): - """SecretScanningScan - - Information on a single scan performed by secret scanning on the repository - """ - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", - ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', + description="The type of source for the ruleset that includes this rule.", ) - completed_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", + description="The name of the source of the ruleset that includes this rule.", ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" - ) - pattern_scope: Missing[str] = Field( - default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistory) -model_rebuild(SecretScanningScan) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) +model_rebuild(RepositoryRuleDetailedOneof19) -__all__ = ( - "SecretScanningScan", - "SecretScanningScanHistory", - "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", -) +__all__ = ("RepositoryRuleDetailedOneof19",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py index 947f5d932..f4cec24f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py @@ -9,25 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0130 import RepositoryRuleCodeScanningPropParameters + -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class RepositoryRuleDetailedOneof20(GitHubModel): + """RepositoryRuleDetailedOneof20""" - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, + description="The type of source for the ruleset that includes this rule.", ) - pattern_scope: Missing[str] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + description="The name of the source of the ruleset that includes this rule.", + ) + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) +model_rebuild(RepositoryRuleDetailedOneof20) -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) +__all__ = ("RepositoryRuleDetailedOneof20",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py index b09ea6fff..abfc339d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,120 +18,138 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0142 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0143 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0144 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." +class SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" + + number: Missing[int] = Field( + default=UNSET, description="The security alert number." ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." ) - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( - description="A product affected by the vulnerability detailed in a repository security advisory." + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", ) - credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - cvss_vector_string: Missing[Union[str, None]] = Field( + resolved_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." ) - start_private_fork: Missing[bool] = Field( + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', ) - - -class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryCreatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + push_protection_bypassed: Missing[Union[bool, None]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="Whether push protection was bypassed for the detected secret.", ) - patched_versions: Missing[Union[str, None]] = Field( + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET ) - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", + ) + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningAlert) -__all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("SecretScanningAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py index db0858ff6..1fb469514 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py @@ -17,93 +17,69 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0142 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0143 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0144 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -class PrivateVulnerabilityReportCreate(GitHubModel): - """PrivateVulnerabilityReportCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - vulnerabilities: Missing[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] ] = Field( default=UNSET, - description="An array of products affected by the vulnerability detailed in a repository security advisory.", - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", ) - vulnerable_version_range: Missing[Union[str, None]] = Field( - default=UNSET, - description="The range of the package versions affected by the vulnerability.", - ) - patched_versions: Missing[Union[str, None]] = Field( - default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." - ) - - -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) - -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +model_rebuild(SecretScanningLocation) + +__all__ = ("SecretScanningLocation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py index b379d895d..fa37297f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,130 +19,21 @@ from githubkit.utils import UNSET -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" +class SecretScanningPushProtectionBypass(GitHubModel): + """SecretScanningPushProtectionBypass""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." + reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( + Field(default=UNSET, description="The reason for bypassing push protection.") ) - description: Missing[str] = Field( - max_length=65535, + expire_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="A detailed description of what the advisory impacts.", + description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( - Field( - default=UNSET, - description="A product affected by the vulnerability detailed in a repository security advisory.", - ) - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - state: Missing[Literal["published", "closed", "draft"]] = Field( - default=UNSET, description="The state of the advisory." - ) - collaborating_users: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="A list of usernames who have been granted write access to the advisory.", - ) - collaborating_teams: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", - ) - - -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( - default=UNSET, - description="The range of the package versions affected by the vulnerability.", - ) - patched_versions: Missing[Union[str, None]] = Field( - default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + token_type: Missing[str] = Field( + default=UNSET, description="The token type this bypass is for." ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningPushProtectionBypass) -__all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("SecretScanningPushProtectionBypass",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py index e8f958a86..11ebab9e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py @@ -15,20 +15,73 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class SecretScanningScanHistory(GitHubModel): + """SecretScanningScanHistory""" -class Stargazer(GitHubModel): - """Stargazer + incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + custom_pattern_backfill_scans: Missing[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] + ] = Field(default=UNSET) - Stargazer + +class SecretScanningScan(GitHubModel): + """SecretScanningScan + + Information on a single scan performed by secret scanning on the repository """ - starred_at: datetime = Field() - user: Union[None, SimpleUser] = Field() + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + + +class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" + + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) -model_rebuild(Stargazer) +model_rebuild(SecretScanningScanHistory) +model_rebuild(SecretScanningScan) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) -__all__ = ("Stargazer",) +__all__ = ( + "SecretScanningScan", + "SecretScanningScanHistory", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py index 9fc28af36..947f5d932 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py @@ -12,19 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CommitActivity(GitHubModel): - """Commit Activity +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - Commit Activity - """ + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) - days: list[int] = Field() - total: int = Field() - week: int = Field() +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) -model_rebuild(CommitActivity) - -__all__ = ("CommitActivity",) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py index 60311444a..b09ea6fff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,33 +17,120 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - -class ContributorActivity(GitHubModel): - """Contributor Activity - - Contributor Activity +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( + description="A product affected by the vulnerability detailed in a repository security advisory." + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: list[ContributorActivityPropWeeksItems] = Field() - - -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" - - w: Missing[int] = Field(default=UNSET) - a: Missing[int] = Field(default=UNSET) - d: Missing[int] = Field(default=UNSET) - c: Missing[int] = Field(default=UNSET) - - -model_rebuild(ContributorActivity) -model_rebuild(ContributorActivityPropWeeksItems) + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "ContributorActivity", - "ContributorActivityPropWeeksItems", + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py b/githubkit/versions/ghec_v2022_11_28/models/group_0427.py index 43efe1baa..db0858ff6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0427.py @@ -9,18 +9,101 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + vulnerabilities: Missing[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] + ] = Field( + default=UNSET, + description="An array of products affected by the vulnerability detailed in a repository security advisory.", + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( + Field(description="The name of the package affected by the vulnerability.") + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage -class ParticipationStats(GitHubModel): - """Participation Stats""" + The name of the package affected by the vulnerability. + """ - all_: list[int] = Field(alias="all") - owner: list[int] = Field() + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) -model_rebuild(ParticipationStats) +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("ParticipationStats",) +__all__ = ( + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py index 146a849ce..b379d895d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py @@ -9,32 +9,139 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositorySubscription(GitHubModel): - """Repository Invitation +class RepositoryAdvisoryUpdate(GitHubModel): + """RepositoryAdvisoryUpdate""" + + summary: Missing[str] = Field( + max_length=1024, default=UNSET, description="A short summary of the advisory." + ) + description: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( + Field( + default=UNSET, + description="A product affected by the vulnerability detailed in a repository security advisory.", + ) + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + state: Missing[Literal["published", "closed", "draft"]] = Field( + default=UNSET, description="The state of the advisory." + ) + collaborating_users: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of usernames who have been granted write access to the advisory.", + ) + collaborating_teams: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of team slugs which have been granted write access to the advisory.", + ) - Repository invitations let you manage who you collaborate with. - """ - subscribed: bool = Field( - description="Determines if notifications should be received from this repository." +class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", ) - ignored: bool = Field( - description="Determines if all notifications should be blocked from this repository." + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." ) - reason: Union[str, None] = Field() - created_at: datetime = Field() - url: str = Field() - repository_url: str = Field() -model_rebuild(RepositorySubscription) +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) -__all__ = ("RepositorySubscription",) +__all__ = ( + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py index c5f394186..e8f958a86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py @@ -9,35 +9,26 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class Tag(GitHubModel): - """Tag - - Tag - """ - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() +class Stargazer(GitHubModel): + """Stargazer + Stargazer + """ -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(Tag) -model_rebuild(TagPropCommit) +model_rebuild(Stargazer) -__all__ = ( - "Tag", - "TagPropCommit", -) +__all__ = ("Stargazer",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py b/githubkit/versions/ghec_v2022_11_28/models/group_0430.py index 527c8ec3d..9fc28af36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0430.py @@ -12,23 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class TagProtection(GitHubModel): - """Tag protection +class CommitActivity(GitHubModel): + """Commit Activity - Tag protection + Commit Activity """ - id: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - pattern: str = Field() + days: list[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(TagProtection) +model_rebuild(CommitActivity) -__all__ = ("TagProtection",) +__all__ = ("CommitActivity",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py b/githubkit/versions/ghec_v2022_11_28/models/group_0431.py index 72e23363a..60311444a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0431.py @@ -9,20 +9,41 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser -class Topic(GitHubModel): - """Topic +class ContributorActivity(GitHubModel): + """Contributor Activity - A topic aggregates entities that are related to a subject. + Contributor Activity """ - names: list[str] = Field() + author: Union[None, SimpleUser] = Field() + total: int = Field() + weeks: list[ContributorActivityPropWeeksItems] = Field() + + +class ContributorActivityPropWeeksItems(GitHubModel): + """ContributorActivityPropWeeksItems""" + + w: Missing[int] = Field(default=UNSET) + a: Missing[int] = Field(default=UNSET) + d: Missing[int] = Field(default=UNSET) + c: Missing[int] = Field(default=UNSET) -model_rebuild(Topic) +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) -__all__ = ("Topic",) +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py b/githubkit/versions/ghec_v2022_11_28/models/group_0432.py index 8f9d3f9f8..43efe1baa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0432.py @@ -9,21 +9,18 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Traffic(GitHubModel): - """Traffic""" +class ParticipationStats(GitHubModel): + """Participation Stats""" - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() + all_: list[int] = Field(alias="all") + owner: list[int] = Field() -model_rebuild(Traffic) +model_rebuild(ParticipationStats) -__all__ = ("Traffic",) +__all__ = ("ParticipationStats",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py b/githubkit/versions/ghec_v2022_11_28/models/group_0433.py index ff3728609..146a849ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0433.py @@ -9,24 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0432 import Traffic - -class CloneTraffic(GitHubModel): - """Clone Traffic +class RepositorySubscription(GitHubModel): + """Repository Invitation - Clone Traffic + Repository invitations let you manage who you collaborate with. """ - count: int = Field() - uniques: int = Field() - clones: list[Traffic] = Field() + subscribed: bool = Field( + description="Determines if notifications should be received from this repository." + ) + ignored: bool = Field( + description="Determines if all notifications should be blocked from this repository." + ) + reason: Union[str, None] = Field() + created_at: datetime = Field() + url: str = Field() + repository_url: str = Field() -model_rebuild(CloneTraffic) +model_rebuild(RepositorySubscription) -__all__ = ("CloneTraffic",) +__all__ = ("RepositorySubscription",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py index 97ab65074..c5f394186 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py @@ -14,18 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic +class Tag(GitHubModel): + """Tag - Content Traffic + Tag """ - path: str = Field() - title: str = Field() - count: int = Field() - uniques: int = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() -model_rebuild(ContentTraffic) +class TagPropCommit(GitHubModel): + """TagPropCommit""" -__all__ = ("ContentTraffic",) + sha: str = Field() + url: str = Field() + + +model_rebuild(Tag) +model_rebuild(TagPropCommit) + +__all__ = ( + "Tag", + "TagPropCommit", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py index 7ced93dd8..527c8ec3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py @@ -12,19 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReferrerTraffic(GitHubModel): - """Referrer Traffic +class TagProtection(GitHubModel): + """Tag protection - Referrer Traffic + Tag protection """ - referrer: str = Field() - count: int = Field() - uniques: int = Field() + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() -model_rebuild(ReferrerTraffic) +model_rebuild(TagProtection) -__all__ = ("ReferrerTraffic",) +__all__ = ("TagProtection",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py index 7157ab2f9..72e23363a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0432 import Traffic +class Topic(GitHubModel): + """Topic -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic + A topic aggregates entities that are related to a subject. """ - count: int = Field() - uniques: int = Field() - views: list[Traffic] = Field() + names: list[str] = Field() -model_rebuild(ViewTraffic) +model_rebuild(Topic) -__all__ = ("ViewTraffic",) +__all__ = ("Topic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py index 69adf9345..8f9d3f9f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py @@ -9,55 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class GroupResponse(GitHubModel): - """GroupResponse""" - - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for a security group.", - ) - members: Missing[list[GroupResponsePropMembersItems]] = Field( - default=UNSET, description="The group members." - ) - - -class GroupResponsePropMembersItems(GitHubModel): - """GroupResponsePropMembersItems""" - - value: str = Field(description="The local unique identifier for the member") - ref: str = Field(alias="$ref") - display: Missing[str] = Field( - default=UNSET, description="The display name associated with the member" - ) - - -model_rebuild(GroupResponse) -model_rebuild(GroupResponsePropMembersItems) - -__all__ = ( - "GroupResponse", - "GroupResponsePropMembersItems", -) + + +class Traffic(GitHubModel): + """Traffic""" + + timestamp: datetime = Field() + uniques: int = Field() + count: int = Field() + + +model_rebuild(Traffic) + +__all__ = ("Traffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py index 2d5800d81..dd85bb143 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py @@ -9,37 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0437 import Traffic -class Meta(GitHubModel): - """Meta +class CloneTraffic(GitHubModel): + """Clone Traffic - The metadata associated with the creation/updates to the user. + Clone Traffic """ - resource_type: Literal["User", "Group"] = Field( - alias="resourceType", description="A type of a resource" - ) - created: Missing[str] = Field( - default=UNSET, description="A date and time when the user was created." - ) - last_modified: Missing[str] = Field( - default=UNSET, - alias="lastModified", - description="A data and time when the user was last modified.", - ) - location: Missing[str] = Field( - default=UNSET, description="A URL location of an object" - ) - - -model_rebuild(Meta) - -__all__ = ("Meta",) + count: int = Field() + uniques: int = Field() + clones: list[Traffic] = Field() + + +model_rebuild(CloneTraffic) + +__all__ = ("CloneTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py index 5cefc2034..97ab65074 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py @@ -9,88 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0438 import Meta - - -class ScimEnterpriseGroupResponse(GitHubModel): - """ScimEnterpriseGroupResponse""" - - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for a security group.", - ) - members: Missing[list[ScimEnterpriseGroupResponseMergedMembers]] = Field( - default=UNSET, description="The group members." - ) - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." - ) - meta: Missing[Meta] = Field( - default=UNSET, - description="The metadata associated with the creation/updates to the user.", - ) - - -class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): - """ScimEnterpriseGroupResponseMergedMembers""" - value: str = Field(description="The local unique identifier for the member") - ref: str = Field(alias="$ref") - display: Missing[str] = Field( - default=UNSET, description="The display name associated with the member" - ) +class ContentTraffic(GitHubModel): + """Content Traffic -class ScimEnterpriseGroupList(GitHubModel): - """ScimEnterpriseGroupList""" + Content Traffic + """ - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( - Field( - description="The URIs that are used to indicate the namespaces of the list SCIM schemas." - ) - ) - total_results: int = Field( - alias="totalResults", description="Number of results found" - ) - resources: list[ScimEnterpriseGroupResponse] = Field( - alias="Resources", description="Information about each provisioned group." - ) - start_index: int = Field( - alias="startIndex", description="A starting index for the returned page" - ) - items_per_page: int = Field( - alias="itemsPerPage", description="Number of objects per page" - ) + path: str = Field() + title: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(ScimEnterpriseGroupResponse) -model_rebuild(ScimEnterpriseGroupResponseMergedMembers) -model_rebuild(ScimEnterpriseGroupList) +model_rebuild(ContentTraffic) -__all__ = ( - "ScimEnterpriseGroupList", - "ScimEnterpriseGroupResponse", - "ScimEnterpriseGroupResponseMergedMembers", -) +__all__ = ("ContentTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py index 79a62840b..7ced93dd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py @@ -12,39 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0438 import Meta +class ReferrerTraffic(GitHubModel): + """Referrer Traffic -class ScimEnterpriseGroupResponseAllof1(GitHubModel): - """ScimEnterpriseGroupResponseAllof1""" + Referrer Traffic + """ - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." - ) - members: Missing[list[ScimEnterpriseGroupResponseAllof1PropMembersItems]] = Field( - default=UNSET, description="The security group members." - ) - meta: Missing[Meta] = Field( - default=UNSET, - description="The metadata associated with the creation/updates to the user.", - ) + referrer: str = Field() + count: int = Field() + uniques: int = Field() -class ScimEnterpriseGroupResponseAllof1PropMembersItems(GitHubModel): - """ScimEnterpriseGroupResponseAllof1PropMembersItems""" +model_rebuild(ReferrerTraffic) - value: Missing[str] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET, alias="$ref") - display: Missing[str] = Field(default=UNSET) - - -model_rebuild(ScimEnterpriseGroupResponseAllof1) -model_rebuild(ScimEnterpriseGroupResponseAllof1PropMembersItems) - -__all__ = ( - "ScimEnterpriseGroupResponseAllof1", - "ScimEnterpriseGroupResponseAllof1PropMembersItems", -) +__all__ = ("ReferrerTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py index a07936c10..77dfb0c4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py @@ -9,42 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0437 import Traffic -class Group(GitHubModel): - """Group""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: str = Field( - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - display_name: str = Field( - alias="displayName", description="A human-readable name for a security group." - ) - members: list[GroupPropMembersItems] = Field(description="The group members.") +class ViewTraffic(GitHubModel): + """View Traffic -class GroupPropMembersItems(GitHubModel): - """GroupPropMembersItems""" + View Traffic + """ - value: str = Field(description="The local unique identifier for the member") - display_name: str = Field( - alias="displayName", description="The display name associated with the member" - ) + count: int = Field() + uniques: int = Field() + views: list[Traffic] = Field() -model_rebuild(Group) -model_rebuild(GroupPropMembersItems) +model_rebuild(ViewTraffic) -__all__ = ( - "Group", - "GroupPropMembersItems", -) +__all__ = ("ViewTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py index b355bee00..69adf9345 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,30 +18,46 @@ from githubkit.utils import UNSET -class PatchSchema(GitHubModel): - """PatchSchema""" +class GroupResponse(GitHubModel): + """GroupResponse""" - operations: list[PatchSchemaPropOperationsItems] = Field( - alias="Operations", description="patch operations list" + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: Missing[Union[str, None]] = Field( + default=UNSET, + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for a security group.", + ) + members: Missing[list[GroupResponsePropMembersItems]] = Field( + default=UNSET, description="The group members." ) - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] = Field() -class PatchSchemaPropOperationsItems(GitHubModel): - """PatchSchemaPropOperationsItems""" +class GroupResponsePropMembersItems(GitHubModel): + """GroupResponsePropMembersItems""" - op: Literal["add", "replace", "remove"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[str] = Field( - default=UNSET, - description="Corresponding 'value' of that field specified by 'path'", + value: str = Field(description="The local unique identifier for the member") + ref: str = Field(alias="$ref") + display: Missing[str] = Field( + default=UNSET, description="The display name associated with the member" ) -model_rebuild(PatchSchema) -model_rebuild(PatchSchemaPropOperationsItems) +model_rebuild(GroupResponse) +model_rebuild(GroupResponsePropMembersItems) __all__ = ( - "PatchSchema", - "PatchSchemaPropOperationsItems", + "GroupResponse", + "GroupResponsePropMembersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py index 97cce8b53..2d5800d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,38 +18,28 @@ from githubkit.utils import UNSET -class UserNameResponse(GitHubModel): - """UserNameResponse""" +class Meta(GitHubModel): + """Meta - formatted: Missing[str] = Field( - default=UNSET, - description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", - ) - family_name: Missing[str] = Field( - default=UNSET, alias="familyName", description="The family name of the user." + The metadata associated with the creation/updates to the user. + """ + + resource_type: Literal["User", "Group"] = Field( + alias="resourceType", description="A type of a resource" ) - given_name: Missing[str] = Field( - default=UNSET, alias="givenName", description="The given name of the user." + created: Missing[str] = Field( + default=UNSET, description="A date and time when the user was created." ) - middle_name: Missing[str] = Field( - default=UNSET, alias="middleName", description="The middle name(s) of the user." + last_modified: Missing[str] = Field( + default=UNSET, + alias="lastModified", + description="A data and time when the user was last modified.", ) - - -class UserEmailsResponseItems(GitHubModel): - """UserEmailsResponseItems""" - - value: str = Field(description="The email address.") - type: Missing[str] = Field(default=UNSET, description="The type of email address.") - primary: Missing[bool] = Field( - default=UNSET, description="Whether this email address is the primary address." + location: Missing[str] = Field( + default=UNSET, description="A URL location of an object" ) -model_rebuild(UserNameResponse) -model_rebuild(UserEmailsResponseItems) +model_rebuild(Meta) -__all__ = ( - "UserEmailsResponseItems", - "UserNameResponse", -) +__all__ = ("Meta",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py index f1b1e3988..07650ce54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,29 +17,80 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0443 import Meta -class UserRoleItems(GitHubModel): - """UserRoleItems""" - display: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - value: Literal[ - "user", - "27d9891d-2c17-4f45-a262-781a0e55c80a", - "guest_collaborator", - "1ebc4a02-e56c-43a6-92a5-02ee09b90824", - "enterprise_owner", - "981df190-8801-4618-a08a-d91f6206c954", - "ba4987ab-a1c3-412a-b58c-360fc407cb10", - "billing_manager", - "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", - "e6be2762-e4ad-4108-b72d-1bbe884a0f91", - ] = Field(description="The role value representing a user role in GitHub.") - primary: Missing[bool] = Field( - default=UNSET, description="Is the role a primary role for the user." +class ScimEnterpriseGroupResponse(GitHubModel): + """ScimEnterpriseGroupResponse""" + + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: Missing[Union[str, None]] = Field( + default=UNSET, + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for a security group.", + ) + members: Missing[list[ScimEnterpriseGroupResponseMergedMembers]] = Field( + default=UNSET, description="The group members." + ) + id: Missing[str] = Field( + default=UNSET, description="The internally generated id for the group object." + ) + meta: Missing[Meta] = Field( + default=UNSET, + description="The metadata associated with the creation/updates to the user.", + ) + + +class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): + """ScimEnterpriseGroupResponseMergedMembers""" + + value: str = Field(description="The local unique identifier for the member") + ref: str = Field(alias="$ref") + display: Missing[str] = Field( + default=UNSET, description="The display name associated with the member" + ) + + +class ScimEnterpriseGroupList(GitHubModel): + """ScimEnterpriseGroupList""" + + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( + Field( + description="The URIs that are used to indicate the namespaces of the list SCIM schemas." + ) + ) + total_results: int = Field( + alias="totalResults", description="Number of results found" + ) + resources: list[ScimEnterpriseGroupResponse] = Field( + alias="Resources", description="Information about each provisioned group." + ) + start_index: int = Field( + alias="startIndex", description="A starting index for the returned page" + ) + items_per_page: int = Field( + alias="itemsPerPage", description="Number of objects per page" ) -model_rebuild(UserRoleItems) +model_rebuild(ScimEnterpriseGroupResponse) +model_rebuild(ScimEnterpriseGroupResponseMergedMembers) +model_rebuild(ScimEnterpriseGroupList) -__all__ = ("UserRoleItems",) +__all__ = ( + "ScimEnterpriseGroupList", + "ScimEnterpriseGroupResponse", + "ScimEnterpriseGroupResponseMergedMembers", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py index bdf9d8f08..26120f639 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py @@ -9,47 +9,42 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0443 import UserEmailsResponseItems, UserNameResponse -from .group_0444 import UserRoleItems +from .group_0443 import Meta -class UserResponse(GitHubModel): - """UserResponse""" +class ScimEnterpriseGroupResponseAllof1(GitHubModel): + """ScimEnterpriseGroupResponseAllof1""" - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", + id: Missing[str] = Field( + default=UNSET, description="The internally generated id for the group object." ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: Missing[str] = Field( - default=UNSET, alias="userName", description="The username for the user." + members: Missing[list[ScimEnterpriseGroupResponseAllof1PropMembersItems]] = Field( + default=UNSET, description="The security group members." ) - name: Missing[UserNameResponse] = Field(default=UNSET) - display_name: Missing[Union[str, None]] = Field( + meta: Missing[Meta] = Field( default=UNSET, - alias="displayName", - description="A human-readable name for the user.", - ) - emails: list[UserEmailsResponseItems] = Field( - description="The emails for the user." - ) - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." + description="The metadata associated with the creation/updates to the user.", ) -model_rebuild(UserResponse) +class ScimEnterpriseGroupResponseAllof1PropMembersItems(GitHubModel): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" + + value: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") + display: Missing[str] = Field(default=UNSET) + + +model_rebuild(ScimEnterpriseGroupResponseAllof1) +model_rebuild(ScimEnterpriseGroupResponseAllof1PropMembersItems) -__all__ = ("UserResponse",) +__all__ = ( + "ScimEnterpriseGroupResponseAllof1", + "ScimEnterpriseGroupResponseAllof1PropMembersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py index 758044aac..a07936c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py @@ -9,83 +9,42 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0438 import Meta -from .group_0443 import UserEmailsResponseItems, UserNameResponse -from .group_0444 import UserRoleItems -from .group_0448 import ScimEnterpriseUserResponseAllof1PropGroupsItems +class Group(GitHubModel): + """Group""" -class ScimEnterpriseUserResponse(GitHubModel): - """ScimEnterpriseUserResponse""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] = Field( description="The URIs that are used to indicate the namespaces of the SCIM schemas." ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, + external_id: str = Field( alias="externalId", description="A unique identifier for the resource as defined by the provisioning client.", ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: Missing[str] = Field( - default=UNSET, alias="userName", description="The username for the user." - ) - name: Missing[UserNameResponse] = Field(default=UNSET) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for the user.", - ) - emails: list[UserEmailsResponseItems] = Field( - description="The emails for the user." - ) - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." - ) - id: str = Field(description="The internally generated id for the user object.") - groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( - default=UNSET, - description="Provisioned SCIM groups that the user is a member of.", - ) - meta: Meta = Field( - description="The metadata associated with the creation/updates to the user." + display_name: str = Field( + alias="displayName", description="A human-readable name for a security group." ) + members: list[GroupPropMembersItems] = Field(description="The group members.") -class ScimEnterpriseUserList(GitHubModel): - """ScimEnterpriseUserList""" +class GroupPropMembersItems(GitHubModel): + """GroupPropMembersItems""" - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( - Field( - description="The URIs that are used to indicate the namespaces of the list SCIM schemas." - ) - ) - total_results: int = Field( - alias="totalResults", description="Number of results found" - ) - resources: list[ScimEnterpriseUserResponse] = Field( - alias="Resources", description="Information about each provisioned account." - ) - start_index: int = Field( - alias="startIndex", description="A starting index for the returned page" - ) - items_per_page: int = Field( - alias="itemsPerPage", description="Number of objects per page" + value: str = Field(description="The local unique identifier for the member") + display_name: str = Field( + alias="displayName", description="The display name associated with the member" ) -model_rebuild(ScimEnterpriseUserResponse) -model_rebuild(ScimEnterpriseUserList) +model_rebuild(Group) +model_rebuild(GroupPropMembersItems) __all__ = ( - "ScimEnterpriseUserList", - "ScimEnterpriseUserResponse", + "Group", + "GroupPropMembersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py index 6cd30122f..b355bee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py @@ -9,29 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0438 import Meta -from .group_0448 import ScimEnterpriseUserResponseAllof1PropGroupsItems +class PatchSchema(GitHubModel): + """PatchSchema""" + + operations: list[PatchSchemaPropOperationsItems] = Field( + alias="Operations", description="patch operations list" + ) + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] = Field() -class ScimEnterpriseUserResponseAllof1(GitHubModel): - """ScimEnterpriseUserResponseAllof1""" - id: str = Field(description="The internally generated id for the user object.") - groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( +class PatchSchemaPropOperationsItems(GitHubModel): + """PatchSchemaPropOperationsItems""" + + op: Literal["add", "replace", "remove"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[str] = Field( default=UNSET, - description="Provisioned SCIM groups that the user is a member of.", - ) - meta: Meta = Field( - description="The metadata associated with the creation/updates to the user." + description="Corresponding 'value' of that field specified by 'path'", ) -model_rebuild(ScimEnterpriseUserResponseAllof1) +model_rebuild(PatchSchema) +model_rebuild(PatchSchemaPropOperationsItems) -__all__ = ("ScimEnterpriseUserResponseAllof1",) +__all__ = ( + "PatchSchema", + "PatchSchemaPropOperationsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py index 2e84d7213..97cce8b53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py @@ -16,14 +16,38 @@ from githubkit.utils import UNSET -class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" - - value: Missing[str] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET, alias="$ref") - display: Missing[str] = Field(default=UNSET) - - -model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) - -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) +class UserNameResponse(GitHubModel): + """UserNameResponse""" + + formatted: Missing[str] = Field( + default=UNSET, + description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", + ) + family_name: Missing[str] = Field( + default=UNSET, alias="familyName", description="The family name of the user." + ) + given_name: Missing[str] = Field( + default=UNSET, alias="givenName", description="The given name of the user." + ) + middle_name: Missing[str] = Field( + default=UNSET, alias="middleName", description="The middle name(s) of the user." + ) + + +class UserEmailsResponseItems(GitHubModel): + """UserEmailsResponseItems""" + + value: str = Field(description="The email address.") + type: Missing[str] = Field(default=UNSET, description="The type of email address.") + primary: Missing[bool] = Field( + default=UNSET, description="Whether this email address is the primary address." + ) + + +model_rebuild(UserNameResponse) +model_rebuild(UserEmailsResponseItems) + +__all__ = ( + "UserEmailsResponseItems", + "UserNameResponse", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py index 8728aa26e..f1b1e3988 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py @@ -17,65 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0444 import UserRoleItems +class UserRoleItems(GitHubModel): + """UserRoleItems""" -class User(GitHubModel): - """User""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: str = Field( - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: str = Field(alias="userName", description="The username for the user.") - name: Missing[UserName] = Field(default=UNSET) - display_name: str = Field( - alias="displayName", description="A human-readable name for the user." - ) - emails: list[UserEmailsItems] = Field(description="The emails for the user.") - roles: Missing[list[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." - ) - - -class UserName(GitHubModel): - """UserName""" - - formatted: Missing[str] = Field( - default=UNSET, - description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", - ) - family_name: str = Field( - alias="familyName", description="The family name of the user." - ) - given_name: str = Field( - alias="givenName", description="The given name of the user." - ) - middle_name: Missing[str] = Field( - default=UNSET, alias="middleName", description="The middle name(s) of the user." - ) - - -class UserEmailsItems(GitHubModel): - """UserEmailsItems""" - - value: str = Field(description="The email address.") - type: str = Field(description="The type of email address.") - primary: bool = Field( - description="Whether this email address is the primary address." + display: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + value: Literal[ + "user", + "27d9891d-2c17-4f45-a262-781a0e55c80a", + "guest_collaborator", + "1ebc4a02-e56c-43a6-92a5-02ee09b90824", + "enterprise_owner", + "981df190-8801-4618-a08a-d91f6206c954", + "ba4987ab-a1c3-412a-b58c-360fc407cb10", + "billing_manager", + "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", + "e6be2762-e4ad-4108-b72d-1bbe884a0f91", + ] = Field(description="The role value representing a user role in GitHub.") + primary: Missing[bool] = Field( + default=UNSET, description="Is the role a primary role for the user." ) -model_rebuild(User) -model_rebuild(UserName) -model_rebuild(UserEmailsItems) +model_rebuild(UserRoleItems) -__all__ = ( - "User", - "UserEmailsItems", - "UserName", -) +__all__ = ("UserRoleItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py index 17bf8b83c..da1768fd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py @@ -9,149 +9,47 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0448 import UserEmailsResponseItems, UserNameResponse +from .group_0449 import UserRoleItems -class ScimUserList(GitHubModel): - """SCIM User List - SCIM User List - """ +class UserResponse(GitHubModel): + """UserResponse""" - schemas: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." ) - total_results: int = Field(alias="totalResults") - items_per_page: int = Field(alias="itemsPerPage") - start_index: int = Field(alias="startIndex") - resources: list[ScimUser] = Field(alias="Resources") - - -class ScimUser(GitHubModel): - """SCIM /Users - - SCIM /Users provisioning endpoints - """ - - schemas: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." - ) - id: str = Field(description="Unique identifier of an external identity") external_id: Missing[Union[str, None]] = Field( - default=UNSET, alias="externalId", description="The ID of the User." - ) - user_name: Missing[Union[str, None]] = Field( default=UNSET, - alias="userName", - description="Configured by the admin. Could be an email, login, or username", + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: Missing[str] = Field( + default=UNSET, alias="userName", description="The username for the user." + ) + name: Missing[UserNameResponse] = Field(default=UNSET) display_name: Missing[Union[str, None]] = Field( default=UNSET, alias="displayName", - description="The name of the user, suitable for display to end-users", + description="A human-readable name for the user.", ) - name: Missing[ScimUserPropName] = Field(default=UNSET) - emails: list[ScimUserPropEmailsItems] = Field(description="user emails") - active: bool = Field(description="The active status of the User.") - meta: ScimUserPropMeta = Field() - organization_id: Missing[int] = Field( - default=UNSET, description="The ID of the organization." + emails: list[UserEmailsResponseItems] = Field( + description="The emails for the user." ) - operations: Missing[list[ScimUserPropOperationsItems]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="Set of operations to be performed", + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." ) - groups: Missing[list[ScimUserPropGroupsItems]] = Field( - default=UNSET, description="associated groups" - ) - roles: Missing[list[ScimUserPropRolesItems]] = Field(default=UNSET) - - -class ScimUserPropName(GitHubModel): - """ScimUserPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") - family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") - formatted: Missing[Union[str, None]] = Field(default=UNSET) - - -class ScimUserPropEmailsItems(GitHubModel): - """ScimUserPropEmailsItems""" - - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class ScimUserPropMeta(GitHubModel): - """ScimUserPropMeta""" - - resource_type: Missing[str] = Field(default=UNSET, alias="resourceType") - created: Missing[datetime] = Field(default=UNSET) - last_modified: Missing[datetime] = Field(default=UNSET, alias="lastModified") - location: Missing[str] = Field(default=UNSET) - - -class ScimUserPropGroupsItems(GitHubModel): - """ScimUserPropGroupsItems""" - - value: Missing[str] = Field(default=UNSET) - display: Missing[str] = Field(default=UNSET) - - -class ScimUserPropRolesItems(GitHubModel): - """ScimUserPropRolesItems""" - - value: Missing[str] = Field(default=UNSET) - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - display: Missing[str] = Field(default=UNSET) - - -class ScimUserPropOperationsItems(GitHubModel): - """ScimUserPropOperationsItems""" - - op: Literal["add", "remove", "replace"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[str, ScimUserPropOperationsItemsPropValueOneof1, list[Any]] - ] = Field(default=UNSET) - - -class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): - """ScimUserPropOperationsItemsPropValueOneof1""" -model_rebuild(ScimUserList) -model_rebuild(ScimUser) -model_rebuild(ScimUserPropName) -model_rebuild(ScimUserPropEmailsItems) -model_rebuild(ScimUserPropMeta) -model_rebuild(ScimUserPropGroupsItems) -model_rebuild(ScimUserPropRolesItems) -model_rebuild(ScimUserPropOperationsItems) -model_rebuild(ScimUserPropOperationsItemsPropValueOneof1) +model_rebuild(UserResponse) -__all__ = ( - "ScimUser", - "ScimUserList", - "ScimUserPropEmailsItems", - "ScimUserPropGroupsItems", - "ScimUserPropMeta", - "ScimUserPropName", - "ScimUserPropOperationsItems", - "ScimUserPropOperationsItemsPropValueOneof1", - "ScimUserPropRolesItems", -) +__all__ = ("UserResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py index 46d30061f..c11308fee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,30 +17,75 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0443 import Meta +from .group_0448 import UserEmailsResponseItems, UserNameResponse +from .group_0449 import UserRoleItems +from .group_0453 import ScimEnterpriseUserResponseAllof1PropGroupsItems -class SearchResultTextMatchesItems(GitHubModel): - """SearchResultTextMatchesItems""" - object_url: Missing[str] = Field(default=UNSET) - object_type: Missing[Union[str, None]] = Field(default=UNSET) - property_: Missing[str] = Field(default=UNSET, alias="property") - fragment: Missing[str] = Field(default=UNSET) - matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( - default=UNSET +class ScimEnterpriseUserResponse(GitHubModel): + """ScimEnterpriseUserResponse""" + + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: Missing[Union[str, None]] = Field( + default=UNSET, + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: Missing[str] = Field( + default=UNSET, alias="userName", description="The username for the user." + ) + name: Missing[UserNameResponse] = Field(default=UNSET) + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for the user.", + ) + emails: list[UserEmailsResponseItems] = Field( + description="The emails for the user." + ) + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." + ) + id: str = Field(description="The internally generated id for the user object.") + groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + default=UNSET, + description="Provisioned SCIM groups that the user is a member of.", + ) + meta: Meta = Field( + description="The metadata associated with the creation/updates to the user." ) -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" +class ScimEnterpriseUserList(GitHubModel): + """ScimEnterpriseUserList""" - text: Missing[str] = Field(default=UNSET) - indices: Missing[list[int]] = Field(default=UNSET) + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( + Field( + description="The URIs that are used to indicate the namespaces of the list SCIM schemas." + ) + ) + total_results: int = Field( + alias="totalResults", description="Number of results found" + ) + resources: list[ScimEnterpriseUserResponse] = Field( + alias="Resources", description="Information about each provisioned account." + ) + start_index: int = Field( + alias="startIndex", description="A starting index for the returned page" + ) + items_per_page: int = Field( + alias="itemsPerPage", description="Number of objects per page" + ) -model_rebuild(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) +model_rebuild(ScimEnterpriseUserResponse) +model_rebuild(ScimEnterpriseUserList) __all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", + "ScimEnterpriseUserList", + "ScimEnterpriseUserResponse", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py index bf38c4760..779d5f435 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py @@ -9,56 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0168 import MinimalRepository -from .group_0451 import SearchResultTextMatchesItems - +from .group_0443 import Meta +from .group_0453 import ScimEnterpriseUserResponseAllof1PropGroupsItems -class CodeSearchResultItem(GitHubModel): - """Code Search Result Item - Code Search Result Item - """ +class ScimEnterpriseUserResponseAllof1(GitHubModel): + """ScimEnterpriseUserResponseAllof1""" - name: str = Field() - path: str = Field() - sha: str = Field() - url: str = Field() - git_url: str = Field() - html_url: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + id: str = Field(description="The internally generated id for the user object.") + groups: Missing[list[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + default=UNSET, + description="Provisioned SCIM groups that the user is a member of.", ) - score: float = Field() - file_size: Missing[int] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - last_modified_at: Missing[datetime] = Field(default=UNSET) - line_numbers: Missing[list[str]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + meta: Meta = Field( + description="The metadata associated with the creation/updates to the user." ) -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CodeSearchResultItem] = Field() - - -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) +model_rebuild(ScimEnterpriseUserResponseAllof1) -__all__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", -) +__all__ = ("ScimEnterpriseUserResponseAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py index 719021db2..2e84d7213 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py @@ -9,67 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0168 import MinimalRepository -from .group_0263 import GitUser -from .group_0451 import SearchResultTextMatchesItems -from .group_0454 import CommitSearchResultItemPropCommit - - -class CommitSearchResultItem(GitHubModel): - """Commit Search Result Item - - Commit Search Result Item - """ - - url: str = Field() - sha: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitSearchResultItemPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, GitUser] = Field() - parents: list[CommitSearchResultItemPropParentsItems] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - - -class CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - -class SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" +class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CommitSearchResultItem] = Field() + value: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") + display: Missing[str] = Field(default=UNSET) -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) -__all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py index e8bf3d70d..7c0c656e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,43 +17,65 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0263 import GitUser -from .group_0264 import Verification - - -class CommitSearchResultItemPropCommit(GitHubModel): - """CommitSearchResultItemPropCommit""" - - author: CommitSearchResultItemPropCommitPropAuthor = Field() - committer: Union[None, GitUser] = Field() - comment_count: int = Field() - message: str = Field() - tree: CommitSearchResultItemPropCommitPropTree = Field() - url: str = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" - - name: str = Field() - email: str = Field() - date: datetime = Field() - - -class CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" - - sha: str = Field() - url: str = Field() - - -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) +from .group_0449 import UserRoleItems + + +class User(GitHubModel): + """User""" + + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: str = Field( + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", + ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: str = Field(alias="userName", description="The username for the user.") + name: Missing[UserName] = Field(default=UNSET) + display_name: str = Field( + alias="displayName", description="A human-readable name for the user." + ) + emails: list[UserEmailsItems] = Field(description="The emails for the user.") + roles: Missing[list[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." + ) + + +class UserName(GitHubModel): + """UserName""" + + formatted: Missing[str] = Field( + default=UNSET, + description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", + ) + family_name: str = Field( + alias="familyName", description="The family name of the user." + ) + given_name: str = Field( + alias="givenName", description="The given name of the user." + ) + middle_name: Missing[str] = Field( + default=UNSET, alias="middleName", description="The middle name(s) of the user." + ) + + +class UserEmailsItems(GitHubModel): + """UserEmailsItems""" + + value: str = Field(description="The email address.") + type: str = Field(description="The type of email address.") + primary: bool = Field( + description="Whether this email address is the primary address." + ) + + +model_rebuild(User) +model_rebuild(UserName) +model_rebuild(UserEmailsItems) __all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", + "User", + "UserEmailsItems", + "UserName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py index e6cec6dbc..17bf8b83c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py @@ -10,138 +10,148 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Any, Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0149 import Milestone -from .group_0150 import IssueType -from .group_0151 import ReactionRollup -from .group_0451 import SearchResultTextMatchesItems +class ScimUserList(GitHubModel): + """SCIM User List + + SCIM User List + """ + + schemas: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." + ) + total_results: int = Field(alias="totalResults") + items_per_page: int = Field(alias="itemsPerPage") + start_index: int = Field(alias="startIndex") + resources: list[ScimUser] = Field(alias="Resources") -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item - Issue Search Result Item +class ScimUser(GitHubModel): + """SCIM /Users + + SCIM /Users provisioning endpoints """ - url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - title: str = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - labels: list[IssueSearchResultItemPropLabelsItems] = Field() - sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" + schemas: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, description="SCIM schema used." + ) + id: str = Field(description="Unique identifier of an external identity") + external_id: Missing[Union[str, None]] = Field( + default=UNSET, alias="externalId", description="The ID of the User." ) - state: str = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[None, SimpleUser] = Field() - milestone: Union[None, Milestone] = Field() - comments: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + user_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="userName", + description="Configured by the admin. Could be an email, login, or username", ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="The name of the user, suitable for display to end-users", ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." + name: Missing[ScimUserPropName] = Field(default=UNSET) + emails: list[ScimUserPropEmailsItems] = Field(description="user emails") + active: bool = Field(description="The active status of the User.") + meta: ScimUserPropMeta = Field() + organization_id: Missing[int] = Field( + default=UNSET, description="The ID of the organization." ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + operations: Missing[list[ScimUserPropOperationsItems]] = Field( + min_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="Set of operations to be performed", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + groups: Missing[list[ScimUserPropGroupsItems]] = Field( + default=UNSET, description="associated groups" ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + roles: Missing[list[ScimUserPropRolesItems]] = Field(default=UNSET) + + +class ScimUserPropName(GitHubModel): + """ScimUserPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") + family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") + formatted: Missing[Union[str, None]] = Field(default=UNSET) + + +class ScimUserPropEmailsItems(GitHubModel): + """ScimUserPropEmailsItems""" + + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class ScimUserPropMeta(GitHubModel): + """ScimUserPropMeta""" + resource_type: Missing[str] = Field(default=UNSET, alias="resourceType") + created: Missing[datetime] = Field(default=UNSET) + last_modified: Missing[datetime] = Field(default=UNSET, alias="lastModified") + location: Missing[str] = Field(default=UNSET) -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - color: Missing[str] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) +class ScimUserPropGroupsItems(GitHubModel): + """ScimUserPropGroupsItems""" + value: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) -class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() +class ScimUserPropRolesItems(GitHubModel): + """ScimUserPropRolesItems""" + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) -class IssueSearchResultItemPropPullRequest(GitHubModel): - """IssueSearchResultItemPropPullRequest""" - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() +class ScimUserPropOperationsItems(GitHubModel): + """ScimUserPropOperationsItems""" + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[str, ScimUserPropOperationsItemsPropValueOneof1, list[Any]] + ] = Field(default=UNSET) -class SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[IssueSearchResultItem] = Field() +class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): + """ScimUserPropOperationsItemsPropValueOneof1""" -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropSubIssuesSummary) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) +model_rebuild(ScimUserList) +model_rebuild(ScimUser) +model_rebuild(ScimUserPropName) +model_rebuild(ScimUserPropEmailsItems) +model_rebuild(ScimUserPropMeta) +model_rebuild(ScimUserPropGroupsItems) +model_rebuild(ScimUserPropRolesItems) +model_rebuild(ScimUserPropOperationsItems) +model_rebuild(ScimUserPropOperationsItemsPropValueOneof1) __all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "IssueSearchResultItemPropSubIssuesSummary", - "SearchIssuesGetResponse200", + "ScimUser", + "ScimUserList", + "ScimUserPropEmailsItems", + "ScimUserPropGroupsItems", + "ScimUserPropMeta", + "ScimUserPropName", + "ScimUserPropOperationsItems", + "ScimUserPropOperationsItemsPropValueOneof1", + "ScimUserPropRolesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py index 38892b1f1..46d30061f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py @@ -17,40 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0451 import SearchResultTextMatchesItems +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item - - Label Search Result Item - """ - - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - color: str = Field() - default: bool = Field() - description: Union[str, None] = Field() - score: float = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + object_url: Missing[str] = Field(default=UNSET) + object_type: Missing[Union[str, None]] = Field(default=UNSET) + property_: Missing[str] = Field(default=UNSET, alias="property") + fragment: Missing[str] = Field(default=UNSET) + matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( + default=UNSET ) -class SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[LabelSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[list[int]] = Field(default=UNSET) -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py index a9023ef7b..441a2b71e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py @@ -18,139 +18,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0451 import SearchResultTextMatchesItems +from .group_0171 import MinimalRepository +from .group_0456 import SearchResultTextMatchesItems -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item +class CodeSearchResultItem(GitHubModel): + """Code Search Result Item - Repo Search Result Item + Code Search Result Item """ - id: int = Field() - node_id: str = Field() name: str = Field() - full_name: str = Field() - owner: Union[None, SimpleUser] = Field() - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() + path: str = Field() + sha: str = Field() url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - pushed_at: datetime = Field() - homepage: Union[str, None] = Field() - size: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - open_issues_count: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - default_branch: str = Field() - score: float = Field() - forks_url: str = Field() - keys_url: str = Field() - collaborators_url: str = Field() - teams_url: str = Field() - hooks_url: str = Field() - issue_events_url: str = Field() - events_url: str = Field() - assignees_url: str = Field() - branches_url: str = Field() - tags_url: str = Field() - blobs_url: str = Field() - git_tags_url: str = Field() - git_refs_url: str = Field() - trees_url: str = Field() - statuses_url: str = Field() - languages_url: str = Field() - stargazers_url: str = Field() - contributors_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - commits_url: str = Field() - git_commits_url: str = Field() - comments_url: str = Field() - issue_comment_url: str = Field() - contents_url: str = Field() - compare_url: str = Field() - merges_url: str = Field() - archive_url: str = Field() - downloads_url: str = Field() - issues_url: str = Field() - pulls_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - labels_url: str = Field() - releases_url: str = Field() - deployments_url: str = Field() git_url: str = Field() - ssh_url: str = Field() - clone_url: str = Field() - svn_url: str = Field() - forks: int = Field() - open_issues: int = Field() - watchers: int = Field() - topics: Missing[list[str]] = Field(default=UNSET) - mirror_url: Union[str, None] = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_pages: bool = Field() - has_wiki: bool = Field() - has_downloads: bool = Field() - has_discussions: Missing[bool] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + html_url: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - license_: Union[None, LicenseSimple] = Field(alias="license") - permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + score: float = Field() + file_size: Missing[int] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + last_modified_at: Missing[datetime] = Field(default=UNSET) + line_numbers: Missing[list[str]] = Field(default=UNSET) text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - - -class RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[RepoSearchResultItem] = Field() + items: list[CodeSearchResultItem] = Field() -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py index 8a5e70654..0d887bd77 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,93 +17,59 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0451 import SearchResultTextMatchesItems +from .group_0003 import SimpleUser +from .group_0171 import MinimalRepository +from .group_0267 import GitUser +from .group_0456 import SearchResultTextMatchesItems +from .group_0459 import CommitSearchResultItemPropCommit -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item - Topic Search Result Item + Commit Search Result Item """ - name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() - description: Union[str, None] = Field() - created_by: Union[str, None] = Field() - released: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - featured: bool = Field() - curated: bool = Field() + url: str = Field() + sha: str = Field() + html_url: str = Field() + comments_url: str = Field() + commit: CommitSearchResultItemPropCommit = Field() + author: Union[None, SimpleUser] = Field() + committer: Union[None, GitUser] = Field() + parents: list[CommitSearchResultItemPropParentsItems] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) score: float = Field() - repository_count: Missing[Union[int, None]] = Field(default=UNSET) - logo_url: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( - default=UNSET - ) - aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( - default=UNSET - ) - - -class TopicSearchResultItemPropRelatedItems(GitHubModel): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( - Field(default=UNSET) - ) - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) - - -class TopicSearchResultItemPropAliasesItems(GitHubModel): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( - Field(default=UNSET) - ) -class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) -class SearchTopicsGetResponse200(GitHubModel): - """SearchTopicsGetResponse200""" +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[TopicSearchResultItem] = Field() + items: list[CommitSearchResultItem] = Field() -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "SearchTopicsGetResponse200", - "TopicSearchResultItem", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py index 41058a036..d8ee28ba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py @@ -18,66 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0451 import SearchResultTextMatchesItems +from .group_0267 import GitUser +from .group_0268 import Verification -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" - User Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthor = Field() + committer: Union[None, GitUser] = Field() + comment_count: int = Field() + message: str = Field() + tree: CommitSearchResultItemPropCommitPropTree = Field() + url: str = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): + """CommitSearchResultItemPropCommitPropAuthor""" + + name: str = Field() + email: str = Field() + date: datetime = Field() - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() + +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" + + sha: str = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - received_events_url: str = Field() - type: str = Field() - score: float = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - events_url: str = Field() - public_repos: Missing[int] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - bio: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - site_admin: bool = Field() - hireable: Missing[Union[bool, None]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - blog: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[UserSearchResultItem] = Field() - - -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) + + +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) __all__ = ( - "SearchUsersGetResponse200", - "UserSearchResultItem", + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py index c4b785265..776ce53a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,71 +18,130 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0152 import Milestone +from .group_0153 import IssueType +from .group_0154 import ReactionRollup +from .group_0456 import SearchResultTextMatchesItems -class PrivateUser(GitHubModel): - """Private User - Private User +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item + + Issue Search Result Item """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + title: str = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + labels: list[IssueSearchResultItemPropLabelsItems] = Field() + sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: str = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[None, SimpleUser] = Field() + milestone: Union[None, Milestone] = Field() + comments: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - private_gists: int = Field() - total_private_repos: int = Field() - owned_private_repos: int = Field() - disk_usage: int = Field() - collaborators: int = Field() - two_factor_authentication: bool = Field() - plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) - business_plus: Missing[bool] = Field(default=UNSET) - ldap_dn: Missing[str] = Field(default=UNSET) - - -class PrivateUserPropPlan(GitHubModel): - """PrivateUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() - - -model_rebuild(PrivateUser) -model_rebuild(PrivateUserPropPlan) + closed_at: Union[datetime, None] = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) + body: Missing[str] = Field(default=UNSET) + score: float = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class IssueSearchResultItemPropLabelsItems(GitHubModel): + """IssueSearchResultItemPropLabelsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + color: Missing[str] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[IssueSearchResultItem] = Field() + + +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropSubIssuesSummary) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "IssueSearchResultItemPropSubIssuesSummary", + "SearchIssuesGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py index f6bee6e63..045e9fc2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py @@ -9,21 +9,48 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0456 import SearchResultTextMatchesItems -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item - The public key used for setting user Codespaces' Secrets. + Label Search Result Item """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + color: str = Field() + default: bool = Field() + description: Union[str, None] = Field() + score: float = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + + +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[LabelSearchResultItem] = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "LabelSearchResultItem", + "SearchLabelsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py index 48a2ada39..39d5e7c00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py @@ -18,35 +18,139 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0456 import SearchResultTextMatchesItems -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item + + Repo Search Result Item """ - state: Missing[Union[str, None]] = Field( - default=UNSET, description="State of the latest export" - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Completion time of the last export operation" - ) - branch: Missing[Union[str, None]] = Field( - default=UNSET, description="Name of the exported branch" + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + pushed_at: datetime = Field() + homepage: Union[str, None] = Field() + size: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + open_issues_count: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + default_branch: str = Field() + score: float = Field() + forks_url: str = Field() + keys_url: str = Field() + collaborators_url: str = Field() + teams_url: str = Field() + hooks_url: str = Field() + issue_events_url: str = Field() + events_url: str = Field() + assignees_url: str = Field() + branches_url: str = Field() + tags_url: str = Field() + blobs_url: str = Field() + git_tags_url: str = Field() + git_refs_url: str = Field() + trees_url: str = Field() + statuses_url: str = Field() + languages_url: str = Field() + stargazers_url: str = Field() + contributors_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + commits_url: str = Field() + git_commits_url: str = Field() + comments_url: str = Field() + issue_comment_url: str = Field() + contents_url: str = Field() + compare_url: str = Field() + merges_url: str = Field() + archive_url: str = Field() + downloads_url: str = Field() + issues_url: str = Field() + pulls_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + labels_url: str = Field() + releases_url: str = Field() + deployments_url: str = Field() + git_url: str = Field() + ssh_url: str = Field() + clone_url: str = Field() + svn_url: str = Field() + forks: int = Field() + open_issues: int = Field() + watchers: int = Field() + topics: Missing[list[str]] = Field(default=UNSET) + mirror_url: Union[str, None] = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_pages: bool = Field() + has_wiki: bool = Field() + has_downloads: bool = Field() + has_discussions: Missing[bool] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, description="Git commit SHA of the exported branch" + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", ) - id: Missing[str] = Field(default=UNSET, description="Id for the export details") - export_url: Missing[str] = Field( - default=UNSET, description="Url for fetching export details" - ) - html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="Web url for the exported branch" + license_: Union[None, LicenseSimple] = Field(alias="license") + permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class RepoSearchResultItemPropPermissions(GitHubModel): + """RepoSearchResultItemPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[RepoSearchResultItem] = Field() -model_rebuild(CodespaceExportDetails) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) -__all__ = ("CodespaceExportDetails",) +__all__ = ( + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py index 147d602b8..e274313f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,155 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0178 import CodespaceMachine -from .group_0218 import FullRepository +from .group_0456 import SearchResultTextMatchesItems -class CodespaceWithFullRepository(GitHubModel): - """Codespace +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item - A codespace. + Topic Search Result Item """ - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) + name: str = Field() + display_name: Union[str, None] = Field() + short_description: Union[str, None] = Field() + description: Union[str, None] = Field() + created_by: Union[str, None] = Field() + released: Union[str, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." + featured: bool = Field() + curated: bool = Field() + score: float = Field() + repository_count: Missing[Union[int, None]] = Field(default=UNSET) + logo_url: Missing[Union[str, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." + related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( + default=UNSET ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." + aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( + default=UNSET ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + + +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( Field(default=UNSET) ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus +class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - Details about the codespace's git repository. - """ + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", + +class TopicSearchResultItemPropAliasesItems(GitHubModel): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( + Field(default=UNSET) ) -class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) + + +class SearchTopicsGetResponse200(GitHubModel): + """SearchTopicsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[TopicSearchResultItem] = Field() -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) +model_rebuild(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) __all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", + "SearchTopicsGetResponse200", + "TopicSearchResultItem", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py index 1fb1f3941..03de7be83 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py @@ -9,25 +9,75 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0456 import SearchResultTextMatchesItems -class Email(GitHubModel): - """Email - Email +class UserSearchResultItem(GitHubModel): + """User Search Result Item + + User Search Result Item """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + received_events_url: str = Field() + type: str = Field() + score: float = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + events_url: str = Field() + public_repos: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + bio: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + site_admin: bool = Field() + hireable: Missing[Union[bool, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + blog: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[UserSearchResultItem] = Field() -model_rebuild(Email) +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) -__all__ = ("Email",) +__all__ = ( + "SearchUsersGetResponse200", + "UserSearchResultItem", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py index f58661fe1..c4b785265 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field @@ -19,70 +19,70 @@ from githubkit.utils import UNSET -class GpgKey(GitHubModel): - """GPG Key +class PrivateUser(GitHubModel): + """Private User - A unique encryption key + Private User """ + login: str = Field() id: int = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - primary_key_id: Union[int, None] = Field() - key_id: str = Field() - public_key: str = Field() - emails: list[GpgKeyPropEmailsItems] = Field() - subkeys: list[GpgKeyPropSubkeysItems] = Field() - can_sign: bool = Field() - can_encrypt_comms: bool = Field() - can_encrypt_storage: bool = Field() - can_certify: bool = Field() + user_view_type: Missing[str] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() created_at: datetime = Field() - expires_at: Union[datetime, None] = Field() - revoked: bool = Field() - raw_key: Union[str, None] = Field() + updated_at: datetime = Field() + private_gists: int = Field() + total_private_repos: int = Field() + owned_private_repos: int = Field() + disk_usage: int = Field() + collaborators: int = Field() + two_factor_authentication: bool = Field() + plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) + business_plus: Missing[bool] = Field(default=UNSET) + ldap_dn: Missing[str] = Field(default=UNSET) -class GpgKeyPropEmailsItems(GitHubModel): - """GpgKeyPropEmailsItems""" +class PrivateUserPropPlan(GitHubModel): + """PrivateUserPropPlan""" - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) + collaborators: int = Field() + name: str = Field() + space: int = Field() + private_repos: int = Field() -class GpgKeyPropSubkeysItems(GitHubModel): - """GpgKeyPropSubkeysItems""" - - id: Missing[int] = Field(default=UNSET) - primary_key_id: Missing[int] = Field(default=UNSET) - key_id: Missing[str] = Field(default=UNSET) - public_key: Missing[str] = Field(default=UNSET) - emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) - subkeys: Missing[list[Any]] = Field(default=UNSET) - can_sign: Missing[bool] = Field(default=UNSET) - can_encrypt_comms: Missing[bool] = Field(default=UNSET) - can_encrypt_storage: Missing[bool] = Field(default=UNSET) - can_certify: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - expires_at: Missing[Union[str, None]] = Field(default=UNSET) - raw_key: Missing[Union[str, None]] = Field(default=UNSET) - revoked: Missing[bool] = Field(default=UNSET) - - -class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) - - -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) +model_rebuild(PrivateUser) +model_rebuild(PrivateUserPropPlan) __all__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", + "PrivateUser", + "PrivateUserPropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py b/githubkit/versions/ghec_v2022_11_28/models/group_0466.py index f75f4e54d..f6bee6e63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0466.py @@ -9,28 +9,21 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Key(GitHubModel): - """Key +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - Key + The public key used for setting user Codespaces' Secrets. """ - key: str = Field() - id: int = Field() - url: str = Field() - title: str = Field() - created_at: datetime = Field() - verified: bool = Field() - read_only: bool = Field() + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(Key) +model_rebuild(CodespacesUserPublicKey) -__all__ = ("Key",) +__all__ = ("CodespacesUserPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py index 5aae42784..48a2ada39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py @@ -18,43 +18,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0163 import MarketplaceListingPlan +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase - - User Marketplace Purchase + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - billing_cycle: str = Field() - next_billing_date: Union[datetime, None] = Field() - unit_count: Union[int, None] = Field() - on_free_trial: bool = Field() - free_trial_ends_on: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - account: MarketplaceAccount = Field(title="Marketplace Account") - plan: MarketplaceListingPlan = Field( - title="Marketplace Listing Plan", description="Marketplace Listing Plan" + state: Missing[Union[str, None]] = Field( + default=UNSET, description="State of the latest export" + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Completion time of the last export operation" + ) + branch: Missing[Union[str, None]] = Field( + default=UNSET, description="Name of the exported branch" + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, description="Git commit SHA of the exported branch" + ) + id: Missing[str] = Field(default=UNSET, description="Id for the export details") + export_url: Missing[str] = Field( + default=UNSET, description="Url for fetching export details" + ) + html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="Web url for the exported branch" ) -class MarketplaceAccount(GitHubModel): - """Marketplace Account""" - - url: str = Field() - id: int = Field() - type: str = Field() - node_id: Missing[str] = Field(default=UNSET) - login: str = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(UserMarketplacePurchase) -model_rebuild(MarketplaceAccount) +model_rebuild(CodespaceExportDetails) -__all__ = ( - "MarketplaceAccount", - "UserMarketplacePurchase", -) +__all__ = ("CodespaceExportDetails",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py b/githubkit/versions/ghec_v2022_11_28/models/group_0468.py index cae25bb86..6db454485 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0468.py @@ -9,21 +9,164 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0182 import CodespaceMachine +from .group_0222 import FullRepository + + +class CodespaceWithFullRepository(GitHubModel): + """Codespace + + A codespace. + """ + + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespaceWithFullRepositoryPropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + Field(default=UNSET) + ) + pending_operation: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + ) + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) -class SocialAccount(GitHubModel): - """Social account +class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): + """CodespaceWithFullRepositoryPropGitStatus - Social media account + Details about the codespace's git repository. """ - provider: str = Field() - url: str = Field() + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) -model_rebuild(SocialAccount) +model_rebuild(CodespaceWithFullRepository) +model_rebuild(CodespaceWithFullRepositoryPropGitStatus) +model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) -__all__ = ("SocialAccount",) +__all__ = ( + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py index e6313b836..1fb1f3941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py @@ -9,25 +9,25 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class SshSigningKey(GitHubModel): - """SSH Signing Key +class Email(GitHubModel): + """Email - A public SSH key used to sign Git commits + Email """ - key: str = Field() - id: int = Field() - title: str = Field() - created_at: datetime = Field() + email: str = Field() + primary: bool = Field() + verified: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(SshSigningKey) +model_rebuild(Email) -__all__ = ("SshSigningKey",) +__all__ = ("Email",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py index 3c3baecb3..f58661fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py @@ -10,24 +10,79 @@ from __future__ import annotations from datetime import datetime +from typing import Any, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0020 import Repository +class GpgKey(GitHubModel): + """GPG Key -class StarredRepository(GitHubModel): - """Starred Repository - - Starred Repository + A unique encryption key """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + id: int = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + primary_key_id: Union[int, None] = Field() + key_id: str = Field() + public_key: str = Field() + emails: list[GpgKeyPropEmailsItems] = Field() + subkeys: list[GpgKeyPropSubkeysItems] = Field() + can_sign: bool = Field() + can_encrypt_comms: bool = Field() + can_encrypt_storage: bool = Field() + can_certify: bool = Field() + created_at: datetime = Field() + expires_at: Union[datetime, None] = Field() + revoked: bool = Field() + raw_key: Union[str, None] = Field() + + +class GpgKeyPropEmailsItems(GitHubModel): + """GpgKeyPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItems(GitHubModel): + """GpgKeyPropSubkeysItems""" + + id: Missing[int] = Field(default=UNSET) + primary_key_id: Missing[int] = Field(default=UNSET) + key_id: Missing[str] = Field(default=UNSET) + public_key: Missing[str] = Field(default=UNSET) + emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) + subkeys: Missing[list[Any]] = Field(default=UNSET) + can_sign: Missing[bool] = Field(default=UNSET) + can_encrypt_comms: Missing[bool] = Field(default=UNSET) + can_encrypt_storage: Missing[bool] = Field(default=UNSET) + can_certify: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + expires_at: Missing[Union[str, None]] = Field(default=UNSET) + raw_key: Missing[Union[str, None]] = Field(default=UNSET) + revoked: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) -model_rebuild(StarredRepository) +model_rebuild(GpgKey) +model_rebuild(GpgKeyPropEmailsItems) +model_rebuild(GpgKeyPropSubkeysItems) +model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) -__all__ = ("StarredRepository",) +__all__ = ( + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py index 2258e2d95..f75f4e54d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py @@ -9,31 +9,28 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Hovercard(GitHubModel): - """Hovercard +class Key(GitHubModel): + """Key - Hovercard + Key """ - contexts: list[HovercardPropContextsItems] = Field() - - -class HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" - - message: str = Field() - octicon: str = Field() + key: str = Field() + id: int = Field() + url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() -model_rebuild(Hovercard) -model_rebuild(HovercardPropContextsItems) +model_rebuild(Key) -__all__ = ( - "Hovercard", - "HovercardPropContextsItems", -) +__all__ = ("Key",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py index fd0411072..76b218a12 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py @@ -9,21 +9,52 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0166 import MarketplaceListingPlan -class KeySimple(GitHubModel): - """Key Simple +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase - Key Simple + User Marketplace Purchase """ + billing_cycle: str = Field() + next_billing_date: Union[datetime, None] = Field() + unit_count: Union[int, None] = Field() + on_free_trial: bool = Field() + free_trial_ends_on: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + account: MarketplaceAccount = Field(title="Marketplace Account") + plan: MarketplaceListingPlan = Field( + title="Marketplace Listing Plan", description="Marketplace Listing Plan" + ) + + +class MarketplaceAccount(GitHubModel): + """Marketplace Account""" + + url: str = Field() id: int = Field() - key: str = Field() + type: str = Field() + node_id: Missing[str] = Field(default=UNSET) + login: str = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(KeySimple) +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) -__all__ = ("KeySimple",) +__all__ = ( + "MarketplaceAccount", + "UserMarketplacePurchase", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py index 563a88dd0..cae25bb86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py @@ -12,49 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class BillingUsageReportUser(GitHubModel): - """BillingUsageReportUser""" - - usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" - ) - - -class BillingUsageReportUserPropUsageItemsItems(GitHubModel): - """BillingUsageReportUserPropUsageItemsItems""" - - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) - - -model_rebuild(BillingUsageReportUser) -model_rebuild(BillingUsageReportUserPropUsageItemsItems) - -__all__ = ( - "BillingUsageReportUser", - "BillingUsageReportUserPropUsageItemsItems", -) + + +class SocialAccount(GitHubModel): + """Social account + + Social media account + """ + + provider: str = Field() + url: str = Field() + + +model_rebuild(SocialAccount) + +__all__ = ("SocialAccount",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py index 83a049f94..e6313b836 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py @@ -10,42 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class EnterpriseWebhooks(GitHubModel): - """Enterprise +class SshSigningKey(GitHubModel): + """SSH Signing Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." + A public SSH key used to sign Git commits """ - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the enterprise." - ) - html_url: str = Field() - website_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The enterprise's website URL." - ) - id: int = Field(description="Unique identifier of the enterprise") - node_id: str = Field() - name: str = Field(description="The name of the enterprise.") - slug: str = Field(description="The slug url identifier for the enterprise.") - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - avatar_url: str = Field() - - -model_rebuild(EnterpriseWebhooks) - -__all__ = ("EnterpriseWebhooks",) + key: str = Field() + id: int = Field() + title: str = Field() + created_at: datetime = Field() + + +model_rebuild(SshSigningKey) + +__all__ = ("SshSigningKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py index b18d5d9e7..3c3baecb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py @@ -9,26 +9,25 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0020 import Repository + -class SimpleInstallation(GitHubModel): - """Simple Installation +class StarredRepository(GitHubModel): + """Starred Repository - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- - cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- - with-github-apps)." + Starred Repository """ - id: int = Field(description="The ID of the installation.") - node_id: str = Field(description="The global node ID of the installation.") + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -model_rebuild(SimpleInstallation) +model_rebuild(StarredRepository) -__all__ = ("SimpleInstallation",) +__all__ = ("StarredRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py index 29be5dd8a..2258e2d95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py @@ -9,36 +9,31 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple +class Hovercard(GitHubModel): + """Hovercard - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Hovercard """ - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() + contexts: list[HovercardPropContextsItems] = Field() + + +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" + + message: str = Field() + octicon: str = Field() -model_rebuild(OrganizationSimpleWebhooks) +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) -__all__ = ("OrganizationSimpleWebhooks",) +__all__ = ( + "Hovercard", + "HovercardPropContextsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py index e9224aa34..fd0411072 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py @@ -9,372 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple - - -class RepositoryWebhooks(GitHubModel): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. - """ - - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - forks: int = Field() - permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - template_repository: Missing[ - Union[RepositoryWebhooksPropTemplateRepository, None] - ] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryWebhooksPropPermissions(GitHubModel): - """RepositoryWebhooksPropPermissions""" +from githubkit.compat import GitHubModel, model_rebuild - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) +class KeySimple(GitHubModel): + """Key Simple -class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): - """RepositoryWebhooksPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + Key Simple """ - -class RepositoryWebhooksPropTemplateRepository(GitHubModel): - """RepositoryWebhooksPropTemplateRepository""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( - default=UNSET - ) - private: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - language: Missing[str] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + id: int = Field() + key: str = Field() -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) +model_rebuild(KeySimple) -__all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", -) +__all__ = ("KeySimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py b/githubkit/versions/ghec_v2022_11_28/models/group_0478.py index 2d428cd2e..563a88dd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0478.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,71 +16,45 @@ from githubkit.utils import UNSET -class WebhooksRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ +class BillingUsageReportUser(GitHubModel): + """BillingUsageReportUser""" - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" ) - authorized_actor_names: list[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( - description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." + + +class BillingUsageReportUserPropUsageItemsItems(GitHubModel): + """BillingUsageReportUserPropUsageItemsItems""" + + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." ) - lock_allows_fork_sync: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." ) - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." ) - required_status_checks: list[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() -model_rebuild(WebhooksRule) +model_rebuild(BillingUsageReportUser) +model_rebuild(BillingUsageReportUserPropUsageItemsItems) -__all__ = ("WebhooksRule",) +__all__ = ( + "BillingUsageReportUser", + "BillingUsageReportUserPropUsageItemsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py index ed0d2ff55..83a049f94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,36 +19,33 @@ from githubkit.utils import UNSET -class ExemptionResponse(GitHubModel): - """Exemption response +class EnterpriseWebhooks(GitHubModel): + """Enterprise - A response to an exemption request by a delegated bypasser. + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/enterprise- + cloud@latest//admin/overview/about-enterprise-accounts)." """ - id: Missing[int] = Field( - default=UNSET, description="The ID of the exemption response." + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the enterprise." ) - reviewer_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user who reviewed the exemption request.", - ) - reviewer_login: Missing[str] = Field( - default=UNSET, - description="The login of the user who reviewed the exemption request.", - ) - status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( - default=UNSET, description="The status of the exemption response." - ) - reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the reviewer provided when responding to the exemption request.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request was created.", + html_url: str = Field() + website_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The enterprise's website URL." ) + id: int = Field(description="Unique identifier of the enterprise") + node_id: str = Field() + name: str = Field(description="The name of the enterprise.") + slug: str = Field(description="The slug url identifier for the enterprise.") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + avatar_url: str = Field() -model_rebuild(ExemptionResponse) +model_rebuild(EnterpriseWebhooks) -__all__ = ("ExemptionResponse",) +__all__ = ("EnterpriseWebhooks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py index 889cb18bc..b18d5d9e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py @@ -9,288 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0479 import ExemptionResponse - - -class ExemptionRequest(GitHubModel): - """Exemption Request - - A request from a user to be exempted from a set of rules. - """ - - id: Missing[int] = Field( - default=UNSET, description="The ID of the exemption request." - ) - number: Missing[Union[int, None]] = Field( - default=UNSET, - description="The number uniquely identifying the exemption request within it's repository.", - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository the exemption request is for.", - ) - requester_id: Missing[int] = Field( - default=UNSET, description="The ID of the user who requested the exemption." - ) - requester_login: Missing[str] = Field( - default=UNSET, description="The login of the user who requested the exemption." - ) - request_type: Missing[ - Literal[ - "push_ruleset_bypass", - "secret_scanning", - "secret_scanning_closure", - "code_scanning_alert_dismissal", - ] - ] = Field(default=UNSET, description="The type of request.") - exemption_request_data: Missing[ - Union[ - ExemptionRequestPushRulesetBypass, - ExemptionRequestSecretScanning, - DismissalRequestSecretScanning, - DismissalRequestCodeScanning, - ] - ] = Field(default=UNSET) - resource_identifier: Missing[str] = Field( - default=UNSET, - description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", - ) - status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( - default=UNSET, description="The status of the exemption request." - ) - requester_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment the requester provided when creating the exemption request.", - ) - metadata: Missing[ - Union[ - ExemptionRequestSecretScanningMetadata, - DismissalRequestSecretScanningMetadata, - DismissalRequestCodeScanningMetadata, - None, - ] - ] = Field(default=UNSET, description="Metadata about the exemption request.") - expires_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request will expire.", - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request was created.", - ) - responses: Missing[Union[list[ExemptionResponse], None]] = Field( - default=UNSET, description="The responses to the exemption request." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The URL to view the exemption request in a browser." - ) - - -class ExemptionRequestSecretScanningMetadata(GitHubModel): - """Secret Scanning Push Protection Exemption Request Metadata - - Metadata for a secret scanning push protection exemption request. - """ - - label: Missing[str] = Field( - default=UNSET, description="The label for the secret type" - ) - reason: Missing[Literal["fixed_later", "false_positive", "tests"]] = Field( - default=UNSET, description="The reason for the exemption request" - ) - - -class DismissalRequestSecretScanningMetadata(GitHubModel): - """Secret scanning alert dismissal request metadata - - Metadata for a secret scanning alert dismissal request. - """ - - alert_title: Missing[str] = Field( - default=UNSET, description="The title of the secret alert" - ) - reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( - Field(default=UNSET, description="The reason for the dismissal request") - ) - - -class DismissalRequestCodeScanningMetadata(GitHubModel): - """Code scanning alert dismissal request metadata - - Metadata for a code scanning alert dismissal request. - """ - - alert_title: Missing[str] = Field( - default=UNSET, description="The title of the code scanning alert" - ) - reason: Missing[Literal["false positive", "won't fix", "used in tests"]] = Field( - default=UNSET, description="The reason for the dismissal request" - ) - - -class ExemptionRequestPushRulesetBypass(GitHubModel): - """Push ruleset bypass exemption request data - - Push rules that are being requested to be bypassed. - """ - type: Missing[Literal["push_ruleset_bypass"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( - default=UNSET, - description="The data pertaining to the push rules that are being requested to be bypassed.", - ) +class SimpleInstallation(GitHubModel): + """Simple Installation -class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): - """ExemptionRequestPushRulesetBypassPropDataItems""" - - ruleset_id: Missing[int] = Field( - default=UNSET, - description="The ID of the ruleset for the rules that were violated", - ) - ruleset_name: Missing[str] = Field( - default=UNSET, - description="The name of the ruleset for the rules that were violated", - ) - total_violations: Missing[int] = Field( - default=UNSET, description="The number of violations" - ) - rule_type: Missing[str] = Field( - default=UNSET, description="The type of rule that was violated" - ) - - -class DismissalRequestSecretScanning(GitHubModel): - """Secret scanning alert dismissal request data - - Secret scanning alerts that have dismissal requests. - """ - - type: Missing[Literal["secret_scanning_closure"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[DismissalRequestSecretScanningPropDataItems]] = Field( - default=UNSET, - description="The data related to the secret scanning alerts that have dismissal requests.", - ) - - -class DismissalRequestSecretScanningPropDataItems(GitHubModel): - """DismissalRequestSecretScanningPropDataItems""" - - reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( - Field(default=UNSET, description="The reason for the dismissal request") - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that was detected" - ) - alert_number: Missing[str] = Field( - default=UNSET, description="The number of the alert that was detected" - ) - - -class DismissalRequestCodeScanning(GitHubModel): - """Code scanning alert dismissal request data - - Code scanning alerts that have dismissal requests. - """ - - type: Missing[Literal["code_scanning_alert_dismissal"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[DismissalRequestCodeScanningPropDataItems]] = Field( - default=UNSET, - description="The data related to the code scanning alerts that have dismissal requests.", - ) - - -class DismissalRequestCodeScanningPropDataItems(GitHubModel): - """DismissalRequestCodeScanningPropDataItems""" - - alert_number: Missing[str] = Field( - default=UNSET, description="The number of the alert to be dismissed" - ) - - -class ExemptionRequestSecretScanning(GitHubModel): - """Secret scanning push protection exemption request data - - Secret scanning push protections that are being requested to be bypassed. + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- + cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- + with-github-apps)." """ - type: Missing[Literal["secret_scanning"]] = Field( - default=UNSET, description="The type of request" - ) - data: Missing[list[ExemptionRequestSecretScanningPropDataItems]] = Field( - default=UNSET, - description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", - ) - - -class ExemptionRequestSecretScanningPropDataItems(GitHubModel): - """ExemptionRequestSecretScanningPropDataItems""" - - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that was detected" - ) - locations: Missing[ - list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItems] - ] = Field( - default=UNSET, description="The location data of the secret that was detected" - ) - - -class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel): - """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" - - commit: Missing[str] = Field( - default=UNSET, description="The commit SHA where the secret was detected" - ) - branch: Missing[str] = Field( - default=UNSET, description="The branch where the secret was detected" - ) - path: Missing[str] = Field( - default=UNSET, description="The path of the file where the secret was detected" - ) + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(ExemptionRequest) -model_rebuild(ExemptionRequestSecretScanningMetadata) -model_rebuild(DismissalRequestSecretScanningMetadata) -model_rebuild(DismissalRequestCodeScanningMetadata) -model_rebuild(ExemptionRequestPushRulesetBypass) -model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) -model_rebuild(DismissalRequestSecretScanning) -model_rebuild(DismissalRequestSecretScanningPropDataItems) -model_rebuild(DismissalRequestCodeScanning) -model_rebuild(DismissalRequestCodeScanningPropDataItems) -model_rebuild(ExemptionRequestSecretScanning) -model_rebuild(ExemptionRequestSecretScanningPropDataItems) -model_rebuild(ExemptionRequestSecretScanningPropDataItemsPropLocationsItems) +model_rebuild(SimpleInstallation) -__all__ = ( - "DismissalRequestCodeScanning", - "DismissalRequestCodeScanningMetadata", - "DismissalRequestCodeScanningPropDataItems", - "DismissalRequestSecretScanning", - "DismissalRequestSecretScanningMetadata", - "DismissalRequestSecretScanningPropDataItems", - "ExemptionRequest", - "ExemptionRequestPushRulesetBypass", - "ExemptionRequestPushRulesetBypassPropDataItems", - "ExemptionRequestSecretScanning", - "ExemptionRequestSecretScanningMetadata", - "ExemptionRequestSecretScanningPropDataItems", - "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", -) +__all__ = ("SimpleInstallation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py index 553f8811a..29be5dd8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py @@ -9,67 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0168 import MinimalRepository -from .group_0245 import PullRequestMinimal +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Union[Integration, None]] = Field( - default=UNSET, - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_sha: Missing[str] = Field( - default=UNSET, description="The SHA of the head commit that is being checked." - ) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" - ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() -model_rebuild(SimpleCheckSuite) +model_rebuild(OrganizationSimpleWebhooks) -__all__ = ("SimpleCheckSuite",) +__all__ = ("OrganizationSimpleWebhooks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py index 9e862a084..e9224aa34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py @@ -14,78 +14,367 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0245 import PullRequestMinimal -from .group_0272 import DeploymentSimple -from .group_0481 import SimpleCheckSuite +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun +class RepositoryWebhooks(GitHubModel): + """Repository - A check performed on the code of a given code change + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. """ - app: Union[None, Integration, None] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" - ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( - default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check.") + id: int = Field(description="Unique identifier of the repository") node_id: str = Field() - output: CheckRunWithSimpleCheckSuitePropOutput = Field() - pull_requests: list[PullRequestMinimal] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "pending"] = Field( - description="The phase of the lifecycle that the check is currently in." + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + forks: int = Field() + permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field( + default=False, description="Whether the repository is private or public." ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + template_repository: Missing[ + Union[RepositoryWebhooksPropTemplateRepository, None] + ] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + starred_at: Missing[str] = Field(default=UNSET) + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether anonymous git access is enabled for this repository", + ) + + +class RepositoryWebhooksPropPermissions(GitHubModel): + """RepositoryWebhooksPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): + """RepositoryWebhooksPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class RepositoryWebhooksPropTemplateRepository(GitHubModel): + """RepositoryWebhooksPropTemplateRepository""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( + default=UNSET + ) + private: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + language: Missing[str] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) -class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): - """CheckRunWithSimpleCheckSuitePropOutput""" +class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - annotations_count: int = Field() - annotations_url: str = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - title: Union[str, None] = Field() + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) -model_rebuild(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) __all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", + "RepositoryWebhooks", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py index 6b4e7d161..2d428cd2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,25 +19,71 @@ from githubkit.utils import UNSET -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey +class WebhooksRule(GitHubModel): + """branch protection rule - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/enterprise-cloud@latest//github/administering- + a-repository/defining-the-mergeability-of-pull-requests/about-protected- + branches#about-branch-protection-settings) applied to branches that match the + name. Binary settings are boolean. Multi-level configurations are one of `off`, + `non_admins`, or `everyone`. Actor and build lists are arrays of strings. """ - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + authorized_actor_names: list[str] = Field() + authorized_actors_only: bool = Field() + authorized_dismissal_actors_only: bool = Field() + create_protected: Missing[bool] = Field(default=UNSET) + created_at: datetime = Field() + dismiss_stale_reviews_on_push: bool = Field() id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() - url: str = Field() - verified: bool = Field() - enabled: Missing[bool] = Field(default=UNSET) + ignore_approvals_from_contributors: bool = Field() + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( + description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." + ) + lock_allows_fork_sync: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", + ) + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it", + ) + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_status_checks: list[str] = Field() + required_status_checks_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + signature_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + strict_required_status_checks_policy: bool = Field() + updated_at: datetime = Field() -model_rebuild(WebhooksDeployKey) +model_rebuild(WebhooksRule) -__all__ = ("WebhooksDeployKey",) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py index 8e1eed602..ed0d2ff55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py @@ -10,27 +10,45 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhooksWorkflow(GitHubModel): - """Workflow""" - - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhooksWorkflow) - -__all__ = ("WebhooksWorkflow",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ExemptionResponse(GitHubModel): + """Exemption response + + A response to an exemption request by a delegated bypasser. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the exemption response." + ) + reviewer_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user who reviewed the exemption request.", + ) + reviewer_login: Missing[str] = Field( + default=UNSET, + description="The login of the user who reviewed the exemption request.", + ) + status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( + default=UNSET, description="The status of the exemption response." + ) + reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the reviewer provided when responding to the exemption request.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request was created.", + ) + + +model_rebuild(ExemptionResponse) + +__all__ = ("ExemptionResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py index a9b088555..6025423a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,72 +18,279 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0484 import ExemptionResponse -class WebhooksApprover(GitHubModel): - """WebhooksApprover""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" - - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" - ) - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) + +class ExemptionRequest(GitHubModel): + """Exemption Request + + A request from a user to be exempted from a set of rules. + """ + + id: Missing[int] = Field( + default=UNSET, description="The ID of the exemption request." + ) + number: Missing[Union[int, None]] = Field( + default=UNSET, + description="The number uniquely identifying the exemption request within it's repository.", + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository the exemption request is for.", + ) + requester_id: Missing[int] = Field( + default=UNSET, description="The ID of the user who requested the exemption." + ) + requester_login: Missing[str] = Field( + default=UNSET, description="The login of the user who requested the exemption." + ) + request_type: Missing[ + Literal[ + "push_ruleset_bypass", + "secret_scanning", + "secret_scanning_closure", + "code_scanning_alert_dismissal", + ] + ] = Field(default=UNSET, description="The type of request.") + exemption_request_data: Missing[ + Union[ + ExemptionRequestPushRulesetBypass, + ExemptionRequestSecretScanning, + DismissalRequestSecretScanning, + DismissalRequestCodeScanning, + ] + ] = Field(default=UNSET) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", + ) + status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( + default=UNSET, description="The status of the exemption request." + ) + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the exemption request.", + ) + metadata: Missing[ + Union[ + ExemptionRequestSecretScanningMetadata, + DismissalRequestSecretScanningMetadata, + DismissalRequestCodeScanningMetadata, + None, + ] + ] = Field(default=UNSET, description="Metadata about the exemption request.") + expires_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request will expire.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request was created.", + ) + responses: Missing[Union[list[ExemptionResponse], None]] = Field( + default=UNSET, description="The responses to the exemption request." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the exemption request in a browser." + ) + + +class ExemptionRequestSecretScanningMetadata(GitHubModel): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: Missing[str] = Field( + default=UNSET, description="The label for the secret type" + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests"]] = Field( + default=UNSET, description="The reason for the exemption request" + ) + + +class DismissalRequestSecretScanningMetadata(GitHubModel): + """Secret scanning alert dismissal request metadata + + Metadata for a secret scanning alert dismissal request. + """ + + alert_title: Missing[str] = Field( + default=UNSET, description="The title of the secret alert" + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( + Field(default=UNSET, description="The reason for the dismissal request") + ) + + +class DismissalRequestCodeScanningMetadata(GitHubModel): + """Code scanning alert dismissal request metadata + + Metadata for a code scanning alert dismissal request. + """ + + alert_title: Missing[str] = Field( + default=UNSET, description="The title of the code scanning alert" + ) + reason: Missing[Literal["false positive", "won't fix", "used in tests"]] = Field( + default=UNSET, description="The reason for the dismissal request" + ) + + +class ExemptionRequestPushRulesetBypass(GitHubModel): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: Missing[Literal["push_ruleset_bypass"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the push rules that are being requested to be bypassed.", + ) + + +class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: Missing[int] = Field( + default=UNSET, + description="The ID of the ruleset for the rules that were violated", + ) + ruleset_name: Missing[str] = Field( + default=UNSET, + description="The name of the ruleset for the rules that were violated", + ) + total_violations: Missing[int] = Field( + default=UNSET, description="The number of violations" + ) + rule_type: Missing[str] = Field( + default=UNSET, description="The type of rule that was violated" + ) + + +class DismissalRequestSecretScanning(GitHubModel): + """Secret scanning alert dismissal request data + + Secret scanning alerts that have dismissal requests. + """ + + type: Missing[Literal["secret_scanning_closure"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[DismissalRequestSecretScanningPropDataItems]] = Field( + default=UNSET, + description="The data related to the secret scanning alerts that have dismissal requests.", + ) + + +class DismissalRequestSecretScanningPropDataItems(GitHubModel): + """DismissalRequestSecretScanningPropDataItems""" + + reason: Missing[Literal["fixed_later", "false_positive", "tests", "revoked"]] = ( + Field(default=UNSET, description="The reason for the dismissal request") + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that was detected" + ) + alert_number: Missing[str] = Field( + default=UNSET, description="The number of the alert that was detected" + ) + + +class DismissalRequestCodeScanning(GitHubModel): + """Code scanning alert dismissal request data + + Code scanning alerts that have dismissal requests. + """ + + type: Missing[Literal["code_scanning_alert_dismissal"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[DismissalRequestCodeScanningPropDataItems]] = Field( + default=UNSET, + description="The data related to the code scanning alerts that have dismissal requests.", + ) + + +class DismissalRequestCodeScanningPropDataItems(GitHubModel): + """DismissalRequestCodeScanningPropDataItems""" + + alert_number: Missing[str] = Field( + default=UNSET, description="The number of the alert to be dismissed" + ) + + +class ExemptionRequestSecretScanning(GitHubModel): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: Missing[Literal["secret_scanning"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[list[ExemptionRequestSecretScanningPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", + ) + + +class ExemptionRequestSecretScanningPropDataItems(GitHubModel): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that was detected" + ) + locations: Missing[ + list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItems] + ] = Field( + default=UNSET, description="The location data of the secret that was detected" + ) + + +class ExemptionRequestSecretScanningPropDataItemsPropLocationsItems(GitHubModel): + """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" + + commit: Missing[str] = Field( + default=UNSET, description="The commit SHA where the secret was detected" + ) + branch: Missing[str] = Field( + default=UNSET, description="The branch where the secret was detected" + ) + path: Missing[str] = Field( + default=UNSET, description="The path of the file where the secret was detected" + ) + + +model_rebuild(ExemptionRequest) +model_rebuild(ExemptionRequestSecretScanningMetadata) +model_rebuild(DismissalRequestSecretScanningMetadata) +model_rebuild(DismissalRequestCodeScanningMetadata) +model_rebuild(ExemptionRequestPushRulesetBypass) +model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) +model_rebuild(DismissalRequestSecretScanning) +model_rebuild(DismissalRequestSecretScanningPropDataItems) +model_rebuild(DismissalRequestCodeScanning) +model_rebuild(DismissalRequestCodeScanningPropDataItems) +model_rebuild(ExemptionRequestSecretScanning) +model_rebuild(ExemptionRequestSecretScanningPropDataItems) +model_rebuild(ExemptionRequestSecretScanningPropDataItemsPropLocationsItems) __all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", + "DismissalRequestCodeScanning", + "DismissalRequestCodeScanningMetadata", + "DismissalRequestCodeScanningPropDataItems", + "DismissalRequestSecretScanning", + "DismissalRequestSecretScanningMetadata", + "DismissalRequestSecretScanningPropDataItems", + "ExemptionRequest", + "ExemptionRequestPushRulesetBypass", + "ExemptionRequestPushRulesetBypassPropDataItems", + "ExemptionRequestSecretScanning", + "ExemptionRequestSecretScanningMetadata", + "ExemptionRequestSecretScanningPropDataItems", + "ExemptionRequestSecretScanningPropDataItemsPropLocationsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py index 291bcddcd..96d6a18c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py @@ -9,24 +9,67 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0010 import Integration +from .group_0171 import MinimalRepository +from .group_0249 import PullRequestMinimal + +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" + A suite of checks performed on the code of a given code change + """ - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Union[Integration, None]] = Field( + default=UNSET, + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksWorkflowJobRun) +model_rebuild(SimpleCheckSuite) -__all__ = ("WebhooksWorkflowJobRun",) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py index 13da347fc..fa003e9b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,34 +18,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0249 import PullRequestMinimal +from .group_0276 import DeploymentSimple +from .group_0486 import SimpleCheckSuite -class WebhooksUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksUser) - -__all__ = ("WebhooksUser",) + +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, Integration, None] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") + node_id: str = Field() + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: list[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." + ) + url: str = Field() + + +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() + + +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) + +__all__ = ( + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py index ff2aa46c5..6b4e7d161 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,86 +18,25 @@ from githubkit.utils import UNSET -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: datetime = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhooksAnswerPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - updated_at: datetime = Field() - user: Union[WebhooksAnswerPropUser, None] = Field(title="User") - - -class WebhooksAnswerPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ -class WebhooksAnswerPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() + url: str = Field() + verified: bool = Field() + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +model_rebuild(WebhooksDeployKey) -__all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", -) +__all__ = ("WebhooksDeployKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py index 3c0d2a361..8e1eed602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py @@ -10,182 +10,27 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Discussion(GitHubModel): - """Discussion +class WebhooksWorkflow(GitHubModel): + """Workflow""" - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() + badge_url: str = Field() created_at: datetime = Field() html_url: str = Field() id: int = Field() - locked: bool = Field() + name: str = Field() node_id: str = Field() - number: int = Field() - reactions: Missing[DiscussionPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( - description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." - ) - state_reason: Union[ - None, Literal["resolved", "outdated", "duplicate", "reopened"] - ] = Field(description="The reason for the current state") - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() + path: str = Field() + state: str = Field() updated_at: datetime = Field() - user: Union[DiscussionPropUser, None] = Field(title="User") - labels: Missing[list[Label]] = Field(default=UNSET) - - -class Label(GitHubModel): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int = Field(description="Unique identifier for the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - name: str = Field(description="The name of the label.") - description: Union[str, None] = Field( - description="Optional description of the label, such as its purpose." - ) - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field( - description="Whether this label comes by default in a new repository." - ) - - -class DiscussionPropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class DiscussionPropCategory(GitHubModel): - """DiscussionPropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class DiscussionPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class DiscussionPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(Discussion) -model_rebuild(Label) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +model_rebuild(WebhooksWorkflow) -__all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", - "Label", -) +__all__ = ("WebhooksWorkflow",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py index 2e01fc5dd..a9b088555 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py @@ -18,52 +18,40 @@ from githubkit.utils import UNSET -class WebhooksComment(GitHubModel): - """WebhooksComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" + + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhooksCommentPropReactions = Field(title="Reactions") - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhooksCommentPropUser, None] = Field(title="User") - - -class WebhooksCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksCommentPropUser(GitHubModel): + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhooksReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -87,15 +75,14 @@ class WebhooksCommentPropUser(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) __all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py index 6e6effd19..291bcddcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksLabel(GitHubModel): - """Label""" +class WebhooksWorkflowJobRun(GitHubModel): + """WebhooksWorkflowJobRun""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + name: None = Field() + status: str = Field() + updated_at: str = Field() -model_rebuild(WebhooksLabel) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ("WebhooksLabel",) +__all__ = ("WebhooksWorkflowJobRun",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py index ba770b6b0..13da347fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py @@ -9,21 +9,42 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -model_rebuild(WebhooksRepositoriesItems) - -__all__ = ("WebhooksRepositoriesItems",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhooksUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksUser) + +__all__ = ("WebhooksUser",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py index f17279ee4..ff2aa46c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py @@ -9,21 +9,96 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: datetime = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + updated_at: datetime = Field() + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") + + +class WebhooksAnswerPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksAnswerPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRepositoriesAddedItems) +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) -__all__ = ("WebhooksRepositoriesAddedItems",) +__all__ = ( + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py b/githubkit/versions/ghec_v2022_11_28/models/group_0494.py index cd727b745..3c0d2a361 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0494.py @@ -18,16 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration +class Discussion(GitHubModel): + """Discussion -class WebhooksIssueComment(GitHubModel): - """issue comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. + A Discussion in a repository. """ + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -41,23 +42,97 @@ class WebhooksIssueComment(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: str = Field(description="Contents of the issue comment") + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() created_at: datetime = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() + id: int = Field() + locked: bool = Field() node_id: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + number: int = Field() + reactions: Missing[DiscussionPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( + description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." ) - reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + state_reason: Union[ + None, Literal["resolved", "outdated", "duplicate", "reopened"] + ] = Field(description="The reason for the current state") + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field() updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + user: Union[DiscussionPropUser, None] = Field(title="User") + labels: Missing[list[Label]] = Field(default=UNSET) + + +class Label(GitHubModel): + """Label + + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). + """ + + id: int = Field(description="Unique identifier for the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + name: str = Field(description="The name of the label.") + description: Union[str, None] = Field( + description="Optional description of the label, such as its purpose." + ) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field( + description="Whether this label comes by default in a new repository." + ) + + +class DiscussionPropAnswerChosenBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class DiscussionPropCategory(GitHubModel): + """DiscussionPropCategory""" -class WebhooksIssueCommentPropReactions(GitHubModel): + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +class DiscussionPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -72,7 +147,7 @@ class WebhooksIssueCommentPropReactions(GitHubModel): url: str = Field() -class WebhooksIssueCommentPropUser(GitHubModel): +class DiscussionPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,19 +169,23 @@ class WebhooksIssueCommentPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(Discussion) +model_rebuild(Label) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) __all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", + "Label", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py index 9e7b45276..2e01fc5dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,25 +18,84 @@ from githubkit.utils import UNSET -class WebhooksChanges(GitHubModel): - """WebhooksChanges - - The changes to the comment. - """ - - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) - - -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) +class WebhooksComment(GitHubModel): + """WebhooksComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + parent_id: Union[int, None] = Field() + reactions: WebhooksCommentPropReactions = Field(title="Reactions") + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhooksCommentPropUser, None] = Field(title="User") + + +class WebhooksCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) __all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py index d02471303..6e6effd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py @@ -9,149 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0150 import IssueType - -class WebhooksIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropLabelsItems(GitHubModel): +class WebhooksLabel(GitHubModel): """Label""" color: str = Field( @@ -165,254 +30,6 @@ class WebhooksIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( - default=UNSET, description="The set of permissions for the GitHub app" - ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssuePropPullRequest(GitHubModel): - """WebhooksIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksIssue) -model_rebuild(WebhooksIssuePropAssignee) -model_rebuild(WebhooksIssuePropAssigneesItems) -model_rebuild(WebhooksIssuePropLabelsItems) -model_rebuild(WebhooksIssuePropMilestone) -model_rebuild(WebhooksIssuePropMilestonePropCreator) -model_rebuild(WebhooksIssuePropPerformedViaGithubApp) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssuePropPullRequest) -model_rebuild(WebhooksIssuePropReactions) -model_rebuild(WebhooksIssuePropSubIssuesSummary) -model_rebuild(WebhooksIssuePropUser) +model_rebuild(WebhooksLabel) -__all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", - "WebhooksIssuePropUser", -) +__all__ = ("WebhooksLabel",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py index c66b591f6..ba770b6b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py @@ -9,73 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhooksMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) +model_rebuild(WebhooksRepositoriesItems) -__all__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", -) +__all__ = ("WebhooksRepositoriesItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py index 922b7b202..f17279ee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py @@ -9,400 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0150 import IssueType - -class WebhooksIssue2(GitHubModel): - """Issue - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssue2PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssue2PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") - - -class WebhooksIssue2PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssue2PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( - Field(default=UNSET, description="The set of permissions for the GitHub app") - ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssue2PropPullRequest(GitHubModel): - """WebhooksIssue2PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssue2PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssue2PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksIssue2) -model_rebuild(WebhooksIssue2PropAssignee) -model_rebuild(WebhooksIssue2PropAssigneesItems) -model_rebuild(WebhooksIssue2PropLabelsItems) -model_rebuild(WebhooksIssue2PropMilestone) -model_rebuild(WebhooksIssue2PropMilestonePropCreator) -model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssue2PropPullRequest) -model_rebuild(WebhooksIssue2PropReactions) -model_rebuild(WebhooksIssue2PropSubIssuesSummary) -model_rebuild(WebhooksIssue2PropUser) +model_rebuild(WebhooksRepositoriesAddedItems) -__all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", - "WebhooksIssue2PropUser", -) +__all__ = ("WebhooksRepositoriesAddedItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py index 6db58fe17..cd727b745 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,8 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration -class WebhooksUserMannequin(GitHubModel): + +class WebhooksIssueComment(GitHubModel): + """issue comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() + node_id: str = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + + +class WebhooksIssueCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssueCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +101,12 @@ class WebhooksUserMannequin(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUserMannequin) +model_rebuild(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) -__all__ = ("WebhooksUserMannequin",) +__all__ = ( + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0500.py b/githubkit/versions/ghec_v2022_11_28/models/group_0500.py index f78d27107..9e7b45276 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0500.py @@ -9,55 +9,32 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhooksMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhooksMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhooksMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - +class WebhooksChanges(GitHubModel): + """WebhooksChanges -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" + The changes to the comment. + """ - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" +class WebhooksChangesPropBody(GitHubModel): + """WebhooksChangesPropBody""" - bullets: list[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + from_: str = Field(alias="from", description="The previous version of the body.") -model_rebuild(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) +model_rebuild(WebhooksChanges) +model_rebuild(WebhooksChangesPropBody) __all__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", + "WebhooksChanges", + "WebhooksChangesPropBody", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py index 94a837d69..ba1ac2e10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,49 +18,401 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0153 import IssueType -class WebhooksPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - account: WebhooksPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() +class WebhooksIssue(GitHubModel): + """Issue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") + + +class WebhooksIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropAccount""" +class WebhooksIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( + default=UNSET, description="The set of permissions for the GitHub app" + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + The set of permissions for the GitHub app + """ -class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropPlan""" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksPreviousMarketplacePurchase) -model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) -model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhooksIssue) +model_rebuild(WebhooksIssuePropAssignee) +model_rebuild(WebhooksIssuePropAssigneesItems) +model_rebuild(WebhooksIssuePropLabelsItems) +model_rebuild(WebhooksIssuePropMilestone) +model_rebuild(WebhooksIssuePropMilestonePropCreator) +model_rebuild(WebhooksIssuePropPerformedViaGithubApp) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssuePropPullRequest) +model_rebuild(WebhooksIssuePropReactions) +model_rebuild(WebhooksIssuePropSubIssuesSummary) +model_rebuild(WebhooksIssuePropUser) __all__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropSubIssuesSummary", + "WebhooksIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py index 7c9805f89..c66b591f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,62 +19,63 @@ from githubkit.utils import UNSET -class WebhooksTeam(GitHubModel): - """Team +class WebhooksMilestone(GitHubModel): + """Milestone - Groups of organization members that gives permissions on specified repositories. + A collection of related issues and pull requests. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhooksTeamPropParent(GitHubModel): - """WebhooksTeamPropParent""" +class WebhooksMilestonePropCreator(GitHubModel): + """User""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksTeam) -model_rebuild(WebhooksTeamPropParent) +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) __all__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksMilestone", + "WebhooksMilestonePropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py index 2b124e853..cb4723f89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py @@ -9,28 +9,400 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0153 import IssueType + + +class WebhooksIssue2(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssue2PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssue2PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssue2PropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssue2PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ -from .group_0246 import SimpleCommit + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class MergeGroup(GitHubModel): - """Merge Group +class WebhooksIssue2PropMilestonePropCreator(GitHubModel): + """User""" - A group of pull requests that the merge queue has grouped together to be merged. + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( + Field(default=UNSET, description="The set of permissions for the GitHub app") + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - head_sha: str = Field(description="The SHA of the merge group.") - head_ref: str = Field(description="The full ref of the merge group.") - base_sha: str = Field(description="The SHA of the merge group's parent commit.") - base_ref: str = Field( - description="The full ref of the branch the merge group will be merged into." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssue2PropPullRequest(GitHubModel): + """WebhooksIssue2PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssue2PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssue2PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(MergeGroup) +model_rebuild(WebhooksIssue2) +model_rebuild(WebhooksIssue2PropAssignee) +model_rebuild(WebhooksIssue2PropAssigneesItems) +model_rebuild(WebhooksIssue2PropLabelsItems) +model_rebuild(WebhooksIssue2PropMilestone) +model_rebuild(WebhooksIssue2PropMilestonePropCreator) +model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssue2PropPullRequest) +model_rebuild(WebhooksIssue2PropReactions) +model_rebuild(WebhooksIssue2PropSubIssuesSummary) +model_rebuild(WebhooksIssue2PropUser) -__all__ = ("MergeGroup",) +__all__ = ( + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropSubIssuesSummary", + "WebhooksIssue2PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py index 39a630595..6db58fe17 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,31 +18,7 @@ from githubkit.utils import UNSET -class WebhooksMilestone3(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestone3PropCreator(GitHubModel): +class WebhooksUserMannequin(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -65,15 +40,13 @@ class WebhooksMilestone3PropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) +model_rebuild(WebhooksUserMannequin) -__all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", -) +__all__ = ("WebhooksUserMannequin",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py index 7099fbbc2..f78d27107 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py @@ -14,55 +14,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksMembership(GitHubModel): - """Membership +class WebhooksMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + account: WebhooksMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhooksMarketplacePurchasePropPlan = Field() + unit_count: int = Field() - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhooksMembershipPropUser, None] = Field(title="User") +class WebhooksMarketplacePurchasePropAccount(GitHubModel): + """WebhooksMarketplacePurchasePropAccount""" -class WebhooksMembershipPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhooksMarketplacePurchasePropPlan(GitHubModel): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: list[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhooksMarketplacePurchase) +model_rebuild(WebhooksMarketplacePurchasePropAccount) +model_rebuild(WebhooksMarketplacePurchasePropPlan) __all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py index 37f106c1b..94a837d69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py @@ -13,192 +13,53 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - - -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( - description="New requested permissions, categorized by type of permission." - ) - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( - description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." - ) - permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( - description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." - ) - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repository_count: Union[int, None] = Field( - description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( - Field( - description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - -class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgraded +class WebhooksPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ + account: WebhooksPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( - default=UNSET - ) +class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( - ExtraGitHubModel -): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" +class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropPlan""" -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) __all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropRepositoriesItems", + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py index 39eabd49e..7c9805f89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,55 +18,62 @@ from githubkit.utils import UNSET -class WebhooksProjectCard(GitHubModel): - """Project Card""" +class WebhooksTeam(GitHubModel): + """Team - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksProjectCardPropCreator(GitHubModel): - """User""" + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) + parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) __all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", + "WebhooksTeam", + "WebhooksTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py b/githubkit/versions/ghec_v2022_11_28/models/group_0508.py index d39e38c67..16937c80f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0508.py @@ -9,67 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhooksProject(GitHubModel): - """Project""" +from .group_0250 import SimpleCommit - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") - html_url: str = Field() - id: int = Field() - name: str = Field(description="Name of the project") - node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() - url: str = Field() +class MergeGroup(GitHubModel): + """Merge Group -class WebhooksProjectPropCreator(GitHubModel): - """User""" + A group of pull requests that the merge queue has grouped together to be merged. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + head_sha: str = Field(description="The SHA of the merge group.") + head_ref: str = Field(description="The full ref of the merge group.") + base_sha: str = Field(description="The SHA of the merge group's parent commit.") + base_ref: str = Field( + description="The full ref of the branch the merge group will be merged into." + ) + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") -model_rebuild(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) +model_rebuild(MergeGroup) -__all__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", -) +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py index be718a05d..39a630595 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,20 +19,61 @@ from githubkit.utils import UNSET -class WebhooksProjectColumn(GitHubModel): - """Project Column""" +class WebhooksMilestone3(GitHubModel): + """Milestone - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") + creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - project_url: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() -model_rebuild(WebhooksProjectColumn) +class WebhooksMilestone3PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMilestone3) +model_rebuild(WebhooksMilestone3PropCreator) -__all__ = ("WebhooksProjectColumn",) +__all__ = ( + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py index 46e0ef291..7099fbbc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py @@ -9,38 +9,60 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksMembership(GitHubModel): + """Membership -class ProjectsV2(GitHubModel): - """Projects v2 Project - - A projects v2 project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float = Field() - node_id: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectsV2) - -__all__ = ("ProjectsV2",) + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") + + +class WebhooksMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) + +__all__ = ( + "WebhooksMembership", + "WebhooksMembershipPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py index 7daaba6aa..37f106c1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py @@ -9,33 +9,196 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser + + +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request + + Details of a Personal Access Token Request. + """ + + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( + description="New requested permissions, categorized by type of permission." + ) + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( + description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." + ) + permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( + description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." + ) + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repository_count: Union[int, None] = Field( + description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( + Field( + description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( + ExtraGitHubModel +): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + +class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsResult -model_rebuild(WebhooksProjectChanges) -model_rebuild(WebhooksProjectChangesPropArchivedAt) + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +model_rebuild(PersonalAccessTokenRequest) +model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) __all__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropRepositoriesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py index 02415cbc5..39eabd49e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py @@ -18,31 +18,56 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class ProjectsV2Item(GitHubModel): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" - id: float = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2Item) +model_rebuild(WebhooksProjectCard) +model_rebuild(WebhooksProjectCardPropCreator) -__all__ = ("ProjectsV2Item",) +__all__ = ( + "WebhooksProjectCard", + "WebhooksProjectCardPropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py index da927dd7b..d39e38c67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,33 +18,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProject(GitHubModel): + """Project""" -class ProjectsV2StatusUpdate(GitHubModel): - """Projects v2 Status Update - - An status update belonging to a project - """ - - id: float = Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") + html_url: str = Field() + id: int = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - project_node_id: Missing[str] = Field(default=UNSET) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" ) - created_at: datetime = Field() updated_at: datetime = Field() - status: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - start_date: Missing[date] = Field(default=UNSET) - target_date: Missing[date] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the status update" - ) + url: str = Field() + + +class WebhooksProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2StatusUpdate) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("ProjectsV2StatusUpdate",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py index aa2aa25aa..be718a05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,126 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0066 import TeamSimple -from .group_0149 import Milestone -from .group_0304 import AutoMerge -from .group_0384 import PullRequestPropLabelsItems -from .group_0385 import PullRequestPropBase, PullRequestPropHead -from .group_0386 import PullRequestPropLinks +class WebhooksProjectColumn(GitHubModel): + """Project Column""" -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" - - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", - ) + url: str = Field() -model_rebuild(PullRequestWebhook) +model_rebuild(WebhooksProjectColumn) -__all__ = ("PullRequestWebhook",) +__all__ = ("WebhooksProjectColumn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py index 9e409ec85..46e0ef291 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py @@ -9,55 +9,38 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class PullRequestWebhookAllof1(GitHubModel): - """PullRequestWebhookAllof1""" - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", - ) - - -model_rebuild(PullRequestWebhookAllof1) - -__all__ = ("PullRequestWebhookAllof1",) + +from .group_0003 import SimpleUser + + +class ProjectsV2(GitHubModel): + """Projects v2 Project + + A projects v2 project + """ + + id: float = Field() + node_id: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() + + +model_rebuild(ProjectsV2) + +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py index 3c34b7ef5..7daaba6aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,1062 +19,23 @@ from githubkit.utils import UNSET -class WebhooksPullRequest5(GitHubModel): - """Pull Request""" +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" - links: WebhooksPullRequest5PropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") - assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhooksPullRequest5PropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhooksPullRequest5PropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhooksPullRequest5PropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( - default=UNSET, title="User" - ) - milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( - title="User" - ) - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksPullRequest5PropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLinks(GitHubModel): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") - commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") - html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") - issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") - review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") - review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") - statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") - - -class WebhooksPullRequest5PropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropBase(GitHubModel): - """WebhooksPullRequest5PropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHead(GitHubModel): - """WebhooksPullRequest5PropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) __all__ = ( - "WebhooksPullRequest5", - "WebhooksPullRequest5PropAssignee", - "WebhooksPullRequest5PropAssigneesItems", - "WebhooksPullRequest5PropAutoMerge", - "WebhooksPullRequest5PropAutoMergePropEnabledBy", - "WebhooksPullRequest5PropBase", - "WebhooksPullRequest5PropBasePropRepo", - "WebhooksPullRequest5PropBasePropRepoPropLicense", - "WebhooksPullRequest5PropBasePropRepoPropOwner", - "WebhooksPullRequest5PropBasePropRepoPropPermissions", - "WebhooksPullRequest5PropBasePropUser", - "WebhooksPullRequest5PropHead", - "WebhooksPullRequest5PropHeadPropRepo", - "WebhooksPullRequest5PropHeadPropRepoPropLicense", - "WebhooksPullRequest5PropHeadPropRepoPropOwner", - "WebhooksPullRequest5PropHeadPropRepoPropPermissions", - "WebhooksPullRequest5PropHeadPropUser", - "WebhooksPullRequest5PropLabelsItems", - "WebhooksPullRequest5PropLinks", - "WebhooksPullRequest5PropLinksPropComments", - "WebhooksPullRequest5PropLinksPropCommits", - "WebhooksPullRequest5PropLinksPropHtml", - "WebhooksPullRequest5PropLinksPropIssue", - "WebhooksPullRequest5PropLinksPropReviewComment", - "WebhooksPullRequest5PropLinksPropReviewComments", - "WebhooksPullRequest5PropLinksPropSelf", - "WebhooksPullRequest5PropLinksPropStatuses", - "WebhooksPullRequest5PropMergedBy", - "WebhooksPullRequest5PropMilestone", - "WebhooksPullRequest5PropMilestonePropCreator", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", - "WebhooksPullRequest5PropRequestedTeamsItems", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", - "WebhooksPullRequest5PropUser", + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py index ebbb97f9e..02415cbc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py @@ -18,172 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. +class ProjectsV2Item(GitHubModel): + """Projects v2 Item + + An item belonging to a project """ - links: WebhooksReviewCommentPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + id: float = Field() + node_id: Missing[str] = Field(default=UNSET) + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") - - -class WebhooksReviewCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReviewCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewCommentPropLinks(GitHubModel): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") - self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") - - -class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() + archived_at: Union[datetime, None] = Field() -model_rebuild(WebhooksReviewComment) -model_rebuild(WebhooksReviewCommentPropReactions) -model_rebuild(WebhooksReviewCommentPropUser) -model_rebuild(WebhooksReviewCommentPropLinks) -model_rebuild(WebhooksReviewCommentPropLinksPropHtml) -model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) -model_rebuild(WebhooksReviewCommentPropLinksPropSelf) +model_rebuild(ProjectsV2Item) -__all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", -) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py index 1c451c68e..da927dd7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from pydantic import Field @@ -18,94 +18,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksReview(GitHubModel): - """WebhooksReview - The review that was affected. +class ProjectsV2StatusUpdate(GitHubModel): + """Projects v2 Status Update + + An status update belonging to a project """ - links: WebhooksReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") + id: float = Field() node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") - - -class WebhooksReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") - - -class WebhooksReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() + project_node_id: Missing[str] = Field(default=UNSET) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" + ) -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ( - "WebhooksReview", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", - "WebhooksReviewPropUser", -) +__all__ = ("ProjectsV2StatusUpdate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py index 1f0d1f221..6b629b47d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py @@ -18,143 +18,126 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0066 import TeamSimple +from .group_0152 import Milestone +from .group_0308 import AutoMerge +from .group_0388 import PullRequestPropLabelsItems +from .group_0389 import PullRequestPropBase, PullRequestPropHead +from .group_0390 import PullRequestPropLinks -class WebhooksRelease(GitHubModel): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - assets: list[WebhooksReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() + url: str = Field() id: int = Field() - name: Union[str, None] = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(PullRequestWebhook) -__all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", -) +__all__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py index 90f8d031d..9e409ec85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,142 +18,46 @@ from githubkit.utils import UNSET -class WebhooksRelease1(GitHubModel): - """Release +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksRelease1PropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", -) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py index 25a628f6d..3c34b7ef5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py @@ -19,34 +19,862 @@ from githubkit.utils import UNSET -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" - The security alert of the vulnerable dependency. + links: WebhooksPullRequest5PropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") + assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhooksPullRequest5PropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhooksPullRequest5PropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhooksPullRequest5PropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( + default=UNSET, title="User" + ) + milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( - default=UNSET, title="User" + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( + title="User" + ) + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksPullRequest5PropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropLinks(GitHubModel): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") + commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") + html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") + issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") + review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") + review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") + statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") + + +class WebhooksPullRequest5PropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropBase(GitHubModel): + """WebhooksPullRequest5PropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHead(GitHubModel): + """WebhooksPullRequest5PropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhooksAlertPropDismisser(GitHubModel): +class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -70,12 +898,183 @@ class WebhooksAlertPropDismisser(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +model_rebuild(WebhooksPullRequest5) +model_rebuild(WebhooksPullRequest5PropAssignee) +model_rebuild(WebhooksPullRequest5PropAssigneesItems) +model_rebuild(WebhooksPullRequest5PropAutoMerge) +model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) +model_rebuild(WebhooksPullRequest5PropLabelsItems) +model_rebuild(WebhooksPullRequest5PropMergedBy) +model_rebuild(WebhooksPullRequest5PropMilestone) +model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) +model_rebuild(WebhooksPullRequest5PropUser) +model_rebuild(WebhooksPullRequest5PropLinks) +model_rebuild(WebhooksPullRequest5PropLinksPropComments) +model_rebuild(WebhooksPullRequest5PropLinksPropCommits) +model_rebuild(WebhooksPullRequest5PropLinksPropHtml) +model_rebuild(WebhooksPullRequest5PropLinksPropIssue) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) +model_rebuild(WebhooksPullRequest5PropLinksPropSelf) +model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) +model_rebuild(WebhooksPullRequest5PropBase) +model_rebuild(WebhooksPullRequest5PropBasePropUser) +model_rebuild(WebhooksPullRequest5PropBasePropRepo) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropHead) +model_rebuild(WebhooksPullRequest5PropHeadPropUser) +model_rebuild(WebhooksPullRequest5PropHeadPropRepo) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) __all__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", + "WebhooksPullRequest5", + "WebhooksPullRequest5PropAssignee", + "WebhooksPullRequest5PropAssigneesItems", + "WebhooksPullRequest5PropAutoMerge", + "WebhooksPullRequest5PropAutoMergePropEnabledBy", + "WebhooksPullRequest5PropBase", + "WebhooksPullRequest5PropBasePropRepo", + "WebhooksPullRequest5PropBasePropRepoPropLicense", + "WebhooksPullRequest5PropBasePropRepoPropOwner", + "WebhooksPullRequest5PropBasePropRepoPropPermissions", + "WebhooksPullRequest5PropBasePropUser", + "WebhooksPullRequest5PropHead", + "WebhooksPullRequest5PropHeadPropRepo", + "WebhooksPullRequest5PropHeadPropRepoPropLicense", + "WebhooksPullRequest5PropHeadPropRepoPropOwner", + "WebhooksPullRequest5PropHeadPropRepoPropPermissions", + "WebhooksPullRequest5PropHeadPropUser", + "WebhooksPullRequest5PropLabelsItems", + "WebhooksPullRequest5PropLinks", + "WebhooksPullRequest5PropLinksPropComments", + "WebhooksPullRequest5PropLinksPropCommits", + "WebhooksPullRequest5PropLinksPropHtml", + "WebhooksPullRequest5PropLinksPropIssue", + "WebhooksPullRequest5PropLinksPropReviewComment", + "WebhooksPullRequest5PropLinksPropReviewComments", + "WebhooksPullRequest5PropLinksPropSelf", + "WebhooksPullRequest5PropLinksPropStatuses", + "WebhooksPullRequest5PropMergedBy", + "WebhooksPullRequest5PropMilestone", + "WebhooksPullRequest5PropMilestonePropCreator", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", + "WebhooksPullRequest5PropRequestedTeamsItems", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", + "WebhooksPullRequest5PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py index aeab68287..ebbb97f9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py @@ -18,93 +18,172 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ - number: Missing[int] = Field( - default=UNSET, description="The security alert number." + links: WebhooksReviewCommentPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - resolution: Missing[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + path: str = Field( + description="The relative path of the file to which the comment applies." ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", + reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", ) - multi_repo: Missing[Union[bool, None]] = Field( + subject_type: Missing[Literal["line", "file"]] = Field( default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or business.", + description="The level at which the comment is targeted, can be a diff line or a file.", ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") + + +class WebhooksReviewCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReviewCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewCommentPropLinks(GitHubModel): + """WebhooksReviewCommentPropLinks""" + + html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") + self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") + + +class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ( + "WebhooksReviewComment", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py index 70a0fad38..1c451c68e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,100 +18,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +class WebhooksReview(GitHubModel): + """WebhooksReview -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The review that was affected. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() - ghsa_id: str = Field() - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCvss(GitHubModel): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None - ] = Field() - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" - - identifier: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" - - ecosystem: str = Field() - name: str = Field() - - -model_rebuild(WebhooksSecurityAdvisory) -model_rebuild(WebhooksSecurityAdvisoryPropCvss) -model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) -model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + links: WebhooksReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") + + +class WebhooksReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewPropLinks(GitHubModel): + """WebhooksReviewPropLinks""" + + html: WebhooksReviewPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") + + +class WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksReview", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", + "WebhooksReviewPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0524.py b/githubkit/versions/ghec_v2022_11_28/models/group_0524.py index 86866d0b1..3dd04ee3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0524.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,46 +19,42 @@ from githubkit.utils import UNSET -class WebhooksSponsorship(GitHubModel): - """WebhooksSponsorship""" +class WebhooksRelease(GitHubModel): + """Release - created_at: str = Field() - maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: list[WebhooksReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") - sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") - tier: WebhooksSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksSponsorshipPropMaintainer(GitHubModel): - """WebhooksSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksSponsorshipPropSponsor(GitHubModel): +class WebhooksReleasePropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -84,7 +81,46 @@ class WebhooksSponsorshipPropSponsor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSponsorshipPropSponsorable(GitHubModel): +class WebhooksReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -108,38 +144,18 @@ class WebhooksSponsorshipPropSponsorable(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", + "WebhooksRelease", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py index d4236992a..fe65d306e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,47 +19,143 @@ from githubkit.utils import UNSET -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" - - tier: WebhooksChanges8PropTier = Field() - +class WebhooksRelease1(GitHubModel): + """Release -class WebhooksChanges8PropTier(GitHubModel): - """WebhooksChanges8PropTier""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - from_: WebhooksChanges8PropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() + assets_url: str = Field() + author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksChanges8PropTierPropFrom(GitHubModel): - """Sponsorship Tier +class WebhooksRelease1PropAssetsItems(GitHubModel): + """Release Asset - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + Data related to a release. """ - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - - -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) __all__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py index b1c86817a..25a628f6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,65 +19,63 @@ from githubkit.utils import UNSET -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert - Groups of organization members that gives permissions on specified repositories. + The security alert of the vulnerable dependency. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( + default=UNSET, title="User" ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +class WebhooksAlertPropDismisser(GitHubModel): + """User""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) +model_rebuild(WebhooksAlert) +model_rebuild(WebhooksAlertPropDismisser) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksAlert", + "WebhooksAlertPropDismisser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py index ad586818e..aeab68287 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,38 +19,92 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="An optional comment when reviewing a push protection bypass.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or business.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py index 0b8f291da..70a0fad38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,39 +17,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" - - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookBranchProtectionConfigurationEnabled) - -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +from .group_0001 import CvssSeverities + + +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhooksSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() + published_at: str = Field() + references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None + ] = Field() + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhooksSecurityAdvisory) +model_rebuild(WebhooksSecurityAdvisoryPropCvss) +model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) +model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py index f06d59662..86866d0b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,44 +17,129 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0478 import WebhooksRule +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + created_at: str = Field() + maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) + node_id: str = Field() + privacy_level: str = Field() + sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") + sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") + tier: WebhooksSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleCreated) +class WebhooksSponsorshipPropMaintainer(GitHubModel): + """WebhooksSponsorshipPropMaintainer""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsorable(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropTier(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) -__all__ = ("WebhookBranchProtectionRuleCreated",) +__all__ = ( + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py index 65f201704..d4236992a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py @@ -9,52 +9,54 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0478 import WebhooksRule +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" + tier: WebhooksChanges8PropTier = Field() - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + +class WebhooksChanges8PropTier(GitHubModel): + """WebhooksChanges8PropTier""" + + from_: WebhooksChanges8PropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleDeleted) +class WebhooksChanges8PropTierPropFrom(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksChanges8) +model_rebuild(WebhooksChanges8PropTier) +model_rebuild(WebhooksChanges8PropTierPropFrom) -__all__ = ("WebhookBranchProtectionRuleDeleted",) +__all__ = ( + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py index 30ee0067c..b1c86817a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py @@ -17,209 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0478 import WebhooksRule +class WebhooksTeam1(GitHubModel): + """Team -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" + Groups of organization members that gives permissions on specified repositories. + """ - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - enterprise: Missing[EnterpriseWebhooks] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="Permission that the team will have for its repositories", ) - installation: Missing[SimpleInstallation] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether team members will receive notifications when their team is @mentioned", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeam1PropParent(GitHubModel): + """WebhooksTeam1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced - ] = Field(default=UNSET) - authorized_actor_names: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames - ] = Field(default=UNSET) - authorized_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly - ] = Field(default=UNSET) - authorized_dismissal_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly - ] = Field(default=UNSET) - linear_history_requirement_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel - ] = Field(default=UNSET) - lock_branch_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel - ] = Field(default=UNSET) - lock_allows_fork_sync: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync - ] = Field(default=UNSET) - pull_request_reviews_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel - ] = Field(default=UNSET) - require_last_push_approval: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval - ] = Field(default=UNSET) - required_status_checks: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks - ] = Field(default=UNSET) - required_status_checks_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel - ] = Field(default=UNSET) - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: list[str] = Field(alias="from") + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -model_rebuild(WebhookBranchProtectionRuleEdited) -model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) __all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", + "WebhooksTeam1", + "WebhooksTeam1PropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py index 83a3841eb..4cedafbd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0480 import ExemptionRequest +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookExemptionRequestCancelled(GitHubModel): - """Exemption request cancellation event""" +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - action: Literal["cancelled"] = Field() + action: Literal["disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +43,13 @@ class WebhookExemptionRequestCancelled(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestCancelled) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookExemptionRequestCancelled",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py index 05c2f6fe5..2a62eabe2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0480 import ExemptionRequest +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookExemptionRequestCompleted(GitHubModel): - """Exemption request completed event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["completed"] = Field() + action: Literal["enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +43,13 @@ class WebhookExemptionRequestCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestCompleted) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookExemptionRequestCompleted",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py b/githubkit/versions/ghec_v2022_11_28/models/group_0534.py index 8486b1953..98332b593 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0534.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0480 import ExemptionRequest +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0483 import WebhooksRule -class WebhookExemptionRequestCreated(GitHubModel): - """Exemption request created event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -44,18 +44,17 @@ class WebhookExemptionRequestCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestCreated) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookExemptionRequestCreated",) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py index fbf3e634a..bddf05038 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0479 import ExemptionResponse -from .group_0480 import ExemptionRequest +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0483 import WebhooksRule -class WebhookExemptionRequestResponseDismissed(GitHubModel): - """Exemption response dismissed event""" +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - action: Literal["response_dismissed"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,22 +44,17 @@ class WebhookExemptionRequestResponseDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) - exemption_response: ExemptionResponse = Field( - title="Exemption response", - description="A response to an exemption request by a delegated bypasser.", + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestResponseDismissed) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ("WebhookExemptionRequestResponseDismissed",) +__all__ = ("WebhookBranchProtectionRuleDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py index 1691b3eef..d6c7aa420 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0479 import ExemptionResponse -from .group_0480 import ExemptionRequest +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0483 import WebhooksRule -class WebhookExemptionRequestResponseSubmitted(GitHubModel): - """Exemption response submitted event""" +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - action: Literal["response_submitted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,22 +48,178 @@ class WebhookExemptionRequestResponseSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) - exemption_response: ExemptionResponse = Field( - title="Exemption response", - description="A response to an exemption request by a delegated bypasser.", + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookExemptionRequestResponseSubmitted) +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + lock_branch_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel + ] = Field(default=UNSET) + lock_allows_fork_sync: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync + ] = Field(default=UNSET) + pull_request_reviews_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel + ] = Field(default=UNSET) + require_last_push_approval: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookExemptionRequestResponseSubmitted",) +__all__ = ( + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py index 0a7c5e7e0..1eb287a40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py @@ -18,19 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0482 import CheckRunWithSimpleCheckSuite +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0485 import ExemptionRequest -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" +class WebhookExemptionRequestCancelled(GitHubModel): + """Exemption request cancellation event""" - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["cancelled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,13 +44,18 @@ class WebhookCheckRunCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCompleted) +model_rebuild(WebhookExemptionRequestCancelled) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ("WebhookExemptionRequestCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py index 15f0118a0..76a39dc97 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py @@ -9,22 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0485 import ExemptionRequest -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookExemptionRequestCompleted(GitHubModel): + """Exemption request completed event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookExemptionRequestCompleted) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookExemptionRequestCompleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py index d1351fc11..a971970af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py @@ -18,19 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0482 import CheckRunWithSimpleCheckSuite +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0485 import ExemptionRequest -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookExemptionRequestCreated(GitHubModel): + """Exemption request created event""" action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,13 +44,18 @@ class WebhookCheckRunCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookExemptionRequestCreated) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookExemptionRequestCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py index 2a3f094c3..9a06b691f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py @@ -9,22 +9,58 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0484 import ExemptionResponse +from .group_0485 import ExemptionRequest -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseDismissed(GitHubModel): + """Exemption response dismissed event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["response_dismissed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) + exemption_response: ExemptionResponse = Field( + title="Exemption response", + description="A response to an exemption request by a delegated bypasser.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookExemptionRequestResponseDismissed) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookExemptionRequestResponseDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py index a50e1ae9d..92dd1212a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py @@ -18,19 +18,22 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0482 import CheckRunWithSimpleCheckSuite +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0484 import ExemptionResponse +from .group_0485 import ExemptionRequest -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookExemptionRequestResponseSubmitted(GitHubModel): + """Exemption response submitted event""" - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["response_submitted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,32 +45,22 @@ class WebhookCheckRunRequestedAction(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( - Field(default=UNSET, description="The action requested by the user.") + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: Missing[str] = Field( - default=UNSET, - description="The integrator reference of the action requested by the user.", + exemption_response: ExemptionResponse = Field( + title="Exemption response", + description="A response to an exemption request by a delegated bypasser.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRequestedAction) -model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) +model_rebuild(WebhookExemptionRequestResponseSubmitted) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookExemptionRequestResponseSubmitted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py index ccf1a4c5f..70de4e580 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py @@ -9,22 +9,46 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0487 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py index 3e33c9d99..15f0118a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py @@ -9,46 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0482 import CheckRunWithSimpleCheckSuite +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" + The check_run.completed webhook encoded with URL encoding + """ - action: Literal["rerequested"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + payload: str = Field( + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py index a44f5cc13..8e02e79b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py @@ -9,22 +9,46 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0487 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunCreated) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py index b85e34330..2a3f094c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py @@ -9,353 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" - - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] = Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.created webhook encoded with URL encoding """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py index 25c7245ba..6478f70c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,23 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0487 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRequested(GitHubModel): - """check_suite requested event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["requested"] = Field() - check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -51,310 +46,28 @@ class WebhookCheckSuiteRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="Client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - Metaproperties for Git author/committer information. + The action requested by the user. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + identifier: Missing[str] = Field( + default=UNSET, + description="The integrator reference of the action requested by the user.", ) - sha: str = Field() - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) __all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py index cc632881e..ccf1a4c5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py @@ -9,353 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" - - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Client ID for the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.requested_action webhook encoded with URL encoding """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py index 11523f069..61d13c71f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field @@ -19,26 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0487 import CheckRunWithSimpleCheckSuite -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -50,9 +42,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,177 +49,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, - None, - ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) - - -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py b/githubkit/versions/ghec_v2022_11_28/models/group_0549.py index 567408714..a44f5cc13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0549.py @@ -9,262 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - dismissal_approved_by: Missing[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None - ] - ] = Field(default=UNSET, title="User") - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) +model_rebuild(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py index a4391f472..f25e323fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,147 +54,308 @@ class WebhookCodeScanningAlertCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() - dismissal_approved_by: Missing[None] = Field(default=UNSET) + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] = Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The client ID of the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + permissions: Missing[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py index c1101860c..da27f465e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,49 +54,99 @@ class WebhookCodeScanningAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( - Field(title="User") + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Union[None, Literal["fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") + + +class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="Client ID of the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -129,105 +173,188 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild( + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py index b14ed191d..b310f3654 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: Union[str, None] = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,154 +54,308 @@ class WebhookCodeScanningAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_at: Union[str, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[str, None] = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Client ID for the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Committer + + Metaproperties for Git author/committer information. + """ - text: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py index 1b39085e4..c2e9e1df8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,8 +60,8 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ @@ -69,19 +69,21 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: None = Field( + dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: None = Field() + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( Field( default=UNSET, description="The dismissal comment associated with the dismissal of the alert.", ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") fixed_at: Missing[None] = Field( default=UNSET, description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", @@ -89,19 +91,47 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): html_url: str = Field(description="The GitHub URL of the alert resource.") most_recent_instance: Missing[ Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + None, ] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Union[None, Literal["open", "fixed"]] = Field( + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( GitHubModel ): """Alert Instance""" @@ -119,10 +149,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -132,11 +162,11 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion """ end_column: Missing[int] = Field(default=UNSET) @@ -146,16 +176,18 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -168,8 +200,8 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" name: str = Field( description="The name of the tool used to generate the code scanning analysis alert." @@ -179,24 +211,26 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py index 51c15c8bf..98ac87437 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,20 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( + description="The code scanning alert involved in the event." ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,6 +50,9 @@ class WebhookCommitCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,70 +60,163 @@ class WebhookCommitCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: datetime = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + dismissal_approved_by: Missing[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None + ] + ] = Field(default=UNSET, title="User") + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." ) -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -145,14 +243,28 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py index 83b8f415c..16f09875f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,17 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +45,13 @@ class WebhookCreate(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - master_branch: str = Field( - description="The name of the repository's default branch (usually `main`)." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) ref: str = Field( - description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object created in the repository." + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -64,6 +60,147 @@ class WebhookCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) + url: str = Field() + dismissal_approved_by: Missing[None] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py index cf694868c..f91539ff4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,19 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0078 import CustomProperty -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["created"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,184 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Union[None, Literal["fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyCreated) +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py index 310278a7b..0bf43a48a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,16 +19,22 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,21 +50,164 @@ class WebhookCustomPropertyDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[str, None] = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - property_name: str = Field(description="The name of the property that was deleted.") + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py index ecb6b08b5..d09f9e9f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,19 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0078 import CustomProperty -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): - """custom property promoted to business event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - action: Literal["promote_to_enterprise"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,153 @@ class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() + state: Union[None, Literal["open", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyPromotedToEnterprise) +model_rebuild(WebhookCodeScanningAlertReopenedByUser) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) -__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py index f657e3675..644c96f89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0078 import CustomProperty -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["updated"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +48,111 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCustomPropertyUpdated) +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py index 1f26ad113..3dbe72f69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0215 import CustomPropertyValue -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["updated"] = Field() + description: Union[str, None] = Field( + description="The repository's current description." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +40,30 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + master_branch: str = Field( + description="The name of the repository's default branch (usually `main`)." ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." ) - new_property_values: list[CustomPropertyValue] = Field( - description="The new custom property values for the repository." + ref: str = Field( + description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." ) - old_property_values: list[CustomPropertyValue] = Field( - description="The old custom property values for the repository." + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object created in the repository." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCreate) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py index b639808df..90a33a72e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py @@ -18,15 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0078 import CustomProperty +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" + action: Literal["created"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,22 +47,11 @@ class WebhookDelete(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDelete) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookDelete",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py index dfb9018c4..495fefe64 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0320 import DependabotAlert -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +43,21 @@ class WebhookDependabotAlertAutoDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoDismissed) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py index f730e0a6c..06e16c8ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py @@ -18,18 +18,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0320 import DependabotAlert -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0078 import CustomProperty +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): + """custom property promoted to business event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["promote_to_enterprise"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertAutoReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookCustomPropertyPromotedToEnterprise) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py index 10aa13b18..dd07b65f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py @@ -18,18 +18,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0320 import DependabotAlert -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0078 import CustomProperty +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py index 95f365b24..5190a1f49 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py @@ -18,40 +18,46 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0320 import DependabotAlert -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0219 import CustomPropertyValue +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + new_property_values: list[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: list[CustomPropertyValue] = Field( + description="The old custom property values for the repository." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py index e02d0e9d2..ffde821d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py @@ -18,18 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0320 import DependabotAlert -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["fixed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object deleted in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -52,6 +58,6 @@ class WebhookDependabotAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py index 41830e8fe..febd51aa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0320 import DependabotAlert -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0324 import DependabotAlert +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["reintroduced"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py index 5c203367f..7cb917e70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0320 import DependabotAlert -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0324 import DependabotAlert +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["reopened"] = Field() + action: Literal["auto_reopened"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py index 854e3998e..d24c26f2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0483 import WebhooksDeployKey +from .group_0324 import DependabotAlert +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py index 99e8e8c83..42585178c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0483 import WebhooksDeployKey +from .group_0324 import DependabotAlert +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["dismissed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py index 6e0e68472..a0a12b689 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py @@ -9,36 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0484 import WebhooksWorkflow +from .group_0324 import DependabotAlert +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,572 +40,18 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( - Field() - ) - performed_via_github_app: Missing[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( - default=UNSET - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Missing[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] - ] = Field(default=UNSET, title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( - Field(default=UNSET) - ) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentCreated) -model_rebuild(WebhookDeploymentCreatedPropDeployment) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py index 098fdeda8..9297a3e4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py @@ -18,54 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0252 import Deployment -from .group_0383 import PullRequest -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0324 import DependabotAlert +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( - default=UNSET, - description="The name of the environment that has the deployment protection rule.", - ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeploymentProtectionRuleRequested) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py index f15e5530b..8463bd206 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,457 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0485 import WebhooksApprover, WebhooksReviewersItems -from .group_0486 import WebhooksWorkflowJobRun +from .group_0324 import DependabotAlert +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py index 9e7149ced..608bdd82e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0485 import WebhooksApprover, WebhooksReviewersItems -from .group_0486 import WebhooksWorkflowJobRun +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0488 import WebhooksDeployKey -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +39,11 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,425 +51,9 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py index 90d687e90..8e352b411 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,29 +18,32 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0488 import WebhooksDeployKey -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["requested"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -49,465 +51,9 @@ class WebhookDeploymentReviewRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhooksUser, None] = Field(title="User") - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User", "Team"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyDeleted) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py index 27787133d..65dbfa40b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py @@ -19,27 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0484 import WebhooksWorkflow +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0489 import WebhooksWorkflow -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( - default=UNSET - ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + deployment: WebhookDeploymentCreatedPropDeployment = Field( title="Deployment", description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." - ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -60,48 +54,13 @@ class WebhookDeploymentStatusCreated(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Missing[Union[WebhooksWorkflow, None]] = Field( - default=UNSET, title="Workflow" - ) - workflow_run: Missing[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] - ] = Field(default=UNSET, title="Deployment Workflow Run") - - -class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The result of the completed check run. This value will be `null` until the check run has completed." - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check run.") - node_id: str = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( - description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" ) - url: str = Field() -class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): +class WebhookDeploymentCreatedPropDeployment(GitHubModel): """Deployment The [deployment](https://docs.github.com/enterprise- @@ -109,21 +68,19 @@ class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): """ created_at: str = Field() - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( - Field(title="User") + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() environment: str = Field() id: int = Field() node_id: str = Field() original_environment: str = Field() - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None - ] = Field() + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( + Field() + ) performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None - ] + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", @@ -140,7 +97,7 @@ class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): url: str = Field() -class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): +class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -167,13 +124,11 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( - GitHubModel -): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -193,11 +148,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, - None, + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -205,7 +159,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( GitHubModel ): """User""" @@ -234,11 +188,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -284,189 +237,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropP workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/statuses#list-deployment-statuses). - """ - - created_at: str = Field() - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None - ] = Field(title="User") - deployment_url: str = Field() - description: str = Field( - description="The optional human-readable description added to the status." - ) - environment: str = Field() - environment_url: Missing[str] = Field(default=UNSET) - id: int = Field() - log_url: Missing[str] = Field(default=UNSET) - node_id: str = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - repository_url: str = Field() - state: str = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: str = Field(description="The optional link added to the status.") - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -484,7 +258,6 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "timed_out", "action_required", "stale", - "startup_failure", ], ] = Field() created_at: datetime = Field() @@ -493,7 +266,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): head_branch: str = Field() head_commit: Missing[None] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -505,18 +278,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Missing[None] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ - list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems - ], + list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], None, ] ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET ) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() @@ -525,16 +296,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") updated_at: datetime = Field() url: str = Field() workflow_id: int = Field() workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -561,17 +332,15 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -598,8 +367,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -636,7 +405,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -651,10 +420,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -676,8 +443,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -713,9 +480,9 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) releases_url: Missing[str] = Field(default=UNSET) @@ -729,8 +496,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -752,33 +519,27 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -788,19 +549,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -810,76 +569,52 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase -) +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py index a25fc7928..6c42f768b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py @@ -18,44 +18,54 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0488 import WebhooksAnswer -from .group_0489 import Discussion +from .group_0256 import Deployment +from .group_0387 import PullRequest +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["answered"] = Field() - answer: WebhooksAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["requested"] = Field() + environment: Missing[str] = Field( + default=UNSET, + description="The name of the environment that has the deployment protection rule.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + event: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The event that triggered the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." + ) + deployment: Missing[Deployment] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ("WebhookDiscussionAnswered",) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py index deddb08a0..73be62639 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0490 import WebhooksApprover, WebhooksReviewersItems +from .group_0491 import WebhooksWorkflowJobRun -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["approved"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,46 +51,425 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): + """User""" - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - is_answerable: bool = Field() - name: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py index 5261b2f14..c0f641b85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,20 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0490 import WebhooksApprover, WebhooksReviewersItems +from .group_0491 import WebhooksWorkflowJobRun -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,8 +43,7 @@ class WebhookDiscussionClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,9 +51,425 @@ class WebhookDiscussionClosed(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ( + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py index fd0a477b9..937bb7e1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,34 +19,29 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion -from .group_0490 import WebhooksComment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,9 +49,465 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhooksUser, None] = Field(title="User") + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + status: str = Field() + updated_at: str = Field() + + +class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: Missing[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User", "Team"]] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( + Field(title="User") + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentCreated",) +__all__ = ( + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py index c56a09fd2..421c85213 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py @@ -9,30 +9,36 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion -from .group_0490 import WebhooksComment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0489 import WebhooksWorkflow -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,8 +60,826 @@ class WebhookDiscussionCommentDeleted(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Missing[Union[WebhooksWorkflow, None]] = Field( + default=UNSET, title="Workflow" + ) + workflow_run: Missing[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] + ] = Field(default=UNSET, title="Deployment Workflow Run") + + +class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The result of the completed check run. This value will be `null` until the check run has completed." + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check run.") + node_id: str = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( + description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + ) + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None + ] = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/statuses#list-deployment-statuses). + """ + + created_at: str = Field() + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None + ] = Field(title="User") + deployment_url: str = Field() + description: str = Field( + description="The optional human-readable description added to the status." + ) + environment: str = Field() + environment_url: Missing[str] = Field(default=UNSET) + id: int = Field() + log_url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + repository_url: str = Field() + state: str = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: str = Field(description="The optional link added to the status.") + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ( + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py index 173a1b328..feeb647b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py @@ -18,20 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion -from .group_0490 import WebhooksComment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0493 import WebhooksAnswer +from .group_0494 import Discussion -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhooksComment = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,24 +56,6 @@ class WebhookDiscussionCommentEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +model_rebuild(WebhookDiscussionAnswered) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() - - -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) - -__all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", -) +__all__ = ("WebhookDiscussionAnswered",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py index b2fbb1a08..bfdade657 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["created"] = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,43 @@ class WebhookDiscussionCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionCreated) +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" -__all__ = ("WebhookDiscussionCreated",) + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" + ) + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + +__all__ = ( + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py index b9ede079a..d86958dfa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["deleted"] = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionDeleted) +model_rebuild(WebhookDiscussionClosed) -__all__ = ("WebhookDiscussionDeleted",) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0585.py b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py index 680742d39..c567e7041 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0585.py @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion +from .group_0495 import WebhooksComment -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["created"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -55,33 +56,6 @@ class WebhookDiscussionEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +model_rebuild(WebhookDiscussionCommentCreated) - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) - -__all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", -) +__all__ = ("WebhookDiscussionCommentCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py index d2dbb6b29..e6a40e72e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion -from .group_0491 import WebhooksLabel +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion +from .group_0495 import WebhooksComment -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["labeled"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +44,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +56,6 @@ class WebhookDiscussionLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionCommentDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py index d9f99602a..e52092eb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion +from .group_0495 import WebhooksComment -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["locked"] = Field() + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +57,24 @@ class WebhookDiscussionLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLocked) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionLocked",) + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + + +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + +__all__ = ( + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py index f53a1150d..9de6e6d1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["pinned"] = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py index ccae412eb..6736eb783 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionReopened) +model_rebuild(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py index 5d31d42b4..276964ff3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py @@ -18,19 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion -from .group_0591 import WebhookDiscussionTransferredPropChanges +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +55,33 @@ class WebhookDiscussionTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionTransferred) +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" -__all__ = ("WebhookDiscussionTransferred",) + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) + +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py index 8212a9efa..a5df5b999 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py @@ -9,26 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion +from .group_0496 import WebhooksLabel -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - new_discussion: Discussion = Field( + action: Literal["labeled"] = Field() + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionLabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py index 7177e37e3..587662ba3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py @@ -18,20 +18,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0488 import WebhooksAnswer -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["unanswered"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -41,11 +51,9 @@ class WebhookDiscussionUnanswered(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py index a01edaca5..004c0dfd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion -from .group_0491 import WebhooksLabel +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["unlabeled"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +42,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +54,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py index 555ce3287..7365b9ea2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - action: Literal["unlocked"] = Field() + action: Literal["reopened"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionUnlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py index 651729136..fb371f74b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0489 import Discussion +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion +from .group_0596 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - action: Literal["unpinned"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py index 07466bd13..69177d82d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py @@ -12,48 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0597 import WebhookForkPropForkee +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookFork(GitHubModel): - """fork event +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - A user forks a repository. - """ - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - forkee: WebhookForkPropForkee = Field( - description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + new_discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - repository: RepositoryWebhooks = Field( + new_repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py index 11c6f8417..36edcfd95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,177 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0599 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0493 import WebhooksAnswer +from .group_0494 import Discussion -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + action: Literal["unanswered"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + old_answer: WebhooksAnswer = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: datetime = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeMergedLicense(GitHubModel): - """WebhookForkPropForkeeMergedLicense""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeMergedOwner(GitHubModel): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookDiscussionUnanswered) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionUnanswered",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py index ca2484061..a68f0a440 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,178 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0599 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion +from .group_0496 import WebhooksLabel -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + action: Literal["unlabeled"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookDiscussionUnlabeled) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookDiscussionUnlabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py index f8d13642f..0ef4bd84b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py @@ -9,23 +9,51 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) - -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion + + +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" + + action: Literal["unlocked"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookDiscussionUnlocked) + +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py index 18554f9e3..8b751433f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,125 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0494 import Discussion -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[list[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - - -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" - - -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", -) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py index 2a852bdcc..100603916 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py @@ -9,22 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser - - -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" - - action: Literal["revoked"] = Field() +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0602 import WebhookForkPropForkee + + +class WebhookFork(GitHubModel): + """fork event + + A user forks a repository. + """ + + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookFork) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py b/githubkit/versions/ghec_v2022_11_28/models/group_0602.py index 74bfbf840..2e0d55c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0602.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,58 +18,177 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0604 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookGollum(GitHubModel): - """gollum event""" +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: datetime = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether to delete head branches when pull requests are merged", ) - pages: list[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." + deployments_url: str = Field() + description: Union[Union[str, None], None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + downloads_url: str = Field() + events_url: str = Field() + fork: Literal[True] = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[Union[str, None], None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[None, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[None, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: WebhookForkPropForkeeMergedOwner = Field() + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: datetime = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) __all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py index 80546b6f6..336c12b9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,43 +18,178 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser -from .group_0492 import WebhooksRepositoriesItems +from .group_0604 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationCreated(GitHubModel): - """installation created event""" +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="An array of repository objects that the installation can access.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - repository: Missing[RepositoryWebhooks] = Field( + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to require contributors to sign off on web-based commits", ) - requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationCreated) +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) -__all__ = ("WebhookInstallationCreated",) +__all__ = ( + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py index 2770d3057..f8d13642f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py @@ -9,50 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0492 import WebhooksRepositoriesItems - - -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookInstallationDeleted) - -__all__ = ("WebhookInstallationDeleted",) + +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) + +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py index 8980b2e7f..18554f9e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,42 +17,125 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0492 import WebhooksRepositoriesItems +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" - - action: Literal["new_permissions_accepted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[list[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationNewPermissionsAccepted) +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) -__all__ = ("WebhookInstallationNewPermissionsAccepted",) +__all__ = ( + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py index d9a0d7d36..2a852bdcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py @@ -9,76 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser -from .group_0493 import WebhooksRepositoriesAddedItems -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") + action: Literal["revoked"] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +model_rebuild(WebhookGithubAppAuthorizationRevoked) - full_name: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the repository" - ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) - - -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) - -__all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py index 8842cc014..bf01bfb80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py @@ -18,63 +18,57 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser -from .group_0493 import WebhooksRepositoriesAddedItems +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." + pages: list[WebhookGollumPropPagesItems] = Field( + description="The pages that were updated." ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") -model_rebuild(WebhookInstallationRepositoriesRemoved) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) __all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", + "WebhookGollum", + "WebhookGollumPropPagesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py index dd47c6feb..0bfc41411 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,16 +19,17 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0492 import WebhooksRepositoriesItems +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser +from .group_0497 import WebhooksRepositoriesItems -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["suspend"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +50,10 @@ class WebhookInstallationSuspend(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationSuspend) +model_rebuild(WebhookInstallationCreated) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ("WebhookInstallationCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py index 259890913..172469602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,118 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0018 import Installation +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0497 import WebhooksRepositoriesItems -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - target_type: str = Field() - - -class WebhookInstallationTargetRenamedPropAccount(GitHubModel): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: Missing[Union[str, None]] = Field(default=UNSET) - avatar_url: str = Field() - created_at: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - has_organization_projects: Missing[bool] = Field(default=UNSET) - has_repository_projects: Missing[bool] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - is_verified: Missing[bool] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: str = Field() - organizations_url: Missing[str] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - public_repos: Missing[int] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - website_url: Missing[None] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str = Field(alias="from") - - -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationDeleted) -__all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", -) +__all__ = ("WebhookInstallationDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py index 441874552..4ee3f7a5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0492 import WebhooksRepositoriesItems +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0497 import WebhooksRepositoriesItems -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["unsuspend"] = Field() + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookInstallationUnsuspend(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py index 39dde6e1f..d8f9eb992 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,47 +18,67 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0612 import WebhookIssueCommentCreatedPropComment -from .group_0613 import WebhookIssueCommentCreatedPropIssue +from .group_0018 import Installation +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser +from .group_0498 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreated) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + node_id: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) + + +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ( + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py index a9859cc27..acc4100a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,94 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser +from .group_0498 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + description="An array of repository objects, which were removed from the installation." ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py index e0798069d..ccab7069a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,165 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType -from .group_0615 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0620 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -from .group_0622 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0623 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0497 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + action: Literal["suspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookInstallationSuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", -) +__all__ = ("WebhookInstallationSuspend",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py index dd422a026..145717efe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,184 +17,119 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType -from .group_0615 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0617 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0619 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0620 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks + + +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + target_type: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - login: str = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) repos_url: Missing[str] = Field(default=UNSET) site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + website_url: Missing[None] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" + + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( + default=UNSET + ) + + +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + from_: str = Field(alias="from") -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0615.py b/githubkit/versions/ghec_v2022_11_28/models/group_0615.py index fda7ebaae..4564e445e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0615.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,66 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0497 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + action: Literal["unsuspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookInstallationUnsuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookInstallationUnsuspend",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py index 3775a89ee..d967c99ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,36 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0617 import WebhookIssueCommentCreatedPropComment +from .group_0618 import WebhookIssueCommentCreatedPropIssue -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" + + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py index 94c8d39a6..a9859cc27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py @@ -15,38 +15,97 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0616 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0010 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - A collection of related issues and pull requests. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): + """User""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0618.py b/githubkit/versions/ghec_v2022_11_28/models/group_0618.py index 9a58db044..de6a326cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0618.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,11 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0153 import IssueType +from .group_0620 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0625 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary +from .group_0627 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0628 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,73 +118,65 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py index 2c2cb8b90..c991f1674 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,184 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0618 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0153 import IssueType +from .group_0620 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) +from .group_0622 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0624 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0625 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py index bdfcb7cc4..fda7ebaae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py @@ -9,19 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py index 7371c113a..3775a89ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py @@ -18,53 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,86 +47,6 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py index ca7f85878..49ca2d7fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py @@ -16,13 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0616 import ( +from .group_0621 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -44,6 +47,6 @@ class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py index 19ab46a59..9a58db044 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +17,98 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0618 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py index 4318d1eb6..8ec2402d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,48 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0494 import WebhooksIssueComment -from .group_0625 import WebhookIssueCommentDeletedPropIssue +from .group_0623 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["deleted"] = Field() - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentDeletedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeleted) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py index d8fabe846..bdfcb7cc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py @@ -9,174 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0150 import IssueType -from .group_0627 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0632 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -from .group_0634 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0635 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py index d584cd310..7371c113a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,104 +17,54 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType -from .group_0627 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0629 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0631 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0632 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET ) -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -144,36 +93,59 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -181,21 +153,26 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py index 79014e43a..82a25a849 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py @@ -15,69 +15,35 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +from .group_0621 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py index 132940878..40d641487 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,36 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0623 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py index b4bc6c998..5474f1c7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py @@ -9,44 +9,56 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0628 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0499 import WebhooksIssueComment +from .group_0630 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - A collection of related issues and pull requests. - """ + action: Literal["deleted"] = Field() + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentDeleted) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py index c6044c9aa..0bab69185 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,11 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0153 import IssueType +from .group_0632 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) +from .group_0637 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary +from .group_0639 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0640 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" + +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,69 +118,65 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py index 2cbd6d403..cd7315268 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,184 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0630 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0153 import IssueType +from .group_0632 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) +from .group_0634 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0636 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0637 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py b/githubkit/versions/ghec_v2022_11_28/models/group_0632.py index f0a05c54f..79014e43a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0632.py @@ -9,19 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py index 10129f694..132940878 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py @@ -18,53 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,87 +47,6 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py index 9baa7f8f1..727084afa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py @@ -16,13 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0628 import ( +from .group_0633 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -44,6 +47,6 @@ class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py index 89a894d22..c6044c9aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +17,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0630 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + The set of permissions for the GitHub app + """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py index d407121dd..eee9f4c48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,50 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0494 import WebhooksIssueComment -from .group_0495 import WebhooksChanges -from .group_0637 import WebhookIssueCommentEditedPropIssue +from .group_0635 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEdited) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEdited",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py index 9a6017b0e..f0a05c54f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py @@ -9,174 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0150 import IssueType -from .group_0639 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) -from .group_0644 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -from .group_0646 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0647 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py index ce8982c28..10129f694 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,104 +17,54 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType -from .group_0639 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) -from .group_0641 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0643 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0644 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET ) -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -144,36 +93,59 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -181,21 +153,27 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py index 1550c9c19..8de6cf2f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py @@ -15,69 +15,35 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +from .group_0633 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py index b0370744c..1f8b1912a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,36 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0635 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py index 9bab034cb..bd25eb76d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py @@ -9,42 +9,58 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0640 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0499 import WebhooksIssueComment +from .group_0500 import WebhooksChanges +from .group_0642 import WebhookIssueCommentEditedPropIssue -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - A collection of related issues and pull requests. - """ + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentEdited) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentEdited",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py b/githubkit/versions/ghec_v2022_11_28/models/group_0642.py index 4a8bc3224..7594c0459 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0642.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,11 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0153 import IssueType +from .group_0644 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) +from .group_0649 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary +from .group_0651 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0652 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() + -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,70 +118,65 @@ class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py index 12fa3c2a5..f555706be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,43 +18,184 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0642 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0153 import IssueType +from .group_0644 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) +from .group_0646 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0648 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0649 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py index 2d17d8ee7..1550c9c19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py @@ -9,19 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py index 7d03e33d0..b0370744c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py @@ -18,53 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" - ) - assignees: Missing[ - list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,86 +47,6 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py index 81ce012db..f47eab494 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py @@ -16,11 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0640 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0645 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -42,6 +45,6 @@ class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py index 9c801f407..4a8bc3224 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,37 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0642 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + The set of permissions for the GitHub app + """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py index 07f2abb0e..d40642e31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,46 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser -from .group_0496 import WebhooksIssue +from .group_0647 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesAssigned) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssuesAssigned",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py index 594d2ce3e..2d17d8ee7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py @@ -9,51 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0650 import WebhookIssuesClosedPropIssue - - -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" - - action: Literal["closed"] = Field(description="The action that was performed.") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookIssuesClosed) - -__all__ = ("WebhookIssuesClosed",) + + +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py index 434502fec..7d03e33d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,86 +17,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType -from .group_0656 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) -from .group_0658 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0659 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp - -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( - default=UNSET + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() + assignees: Missing[ + list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( default=UNSET ) - reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + repository_url: Missing[str] = Field(default=UNSET) state: Literal["open", "closed"] = Field( description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( + default=UNSET ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -125,37 +93,12 @@ class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -168,36 +111,41 @@ class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -205,25 +153,26 @@ class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py index 060138d3d..28d4aac4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py @@ -15,226 +15,33 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0150 import IssueType -from .group_0653 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0655 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -from .group_0656 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) +from .group_0645 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + closed_issues: int = Field() created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py index 038d97dfc..35f05ef7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,36 +18,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0647 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py index ec9e16135..185d95a30 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py @@ -9,42 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser +from .group_0501 import WebhooksIssue + + +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" + + action: Literal["assigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -from .group_0652 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +model_rebuild(WebhookIssuesAssigned) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssuesAssigned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py index 52dd00063..05815d034 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,91 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0655 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["closed"] = Field(description="The action that was performed.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssuesClosed) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py index eda39fa64..649a607d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,43 +18,212 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0654 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0153 import IssueType +from .group_0661 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, ) +from .group_0663 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0664 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET + ) + assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssuesClosedPropIssueMergedUser = Field() + + +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) + +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): + """WebhookIssuesClosedPropIssueMergedReactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): + """WebhookIssuesClosedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) + +__all__ = ( + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py index ada7003bc..b7a804e34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,29 +18,223 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0153 import IssueType +from .group_0658 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0660 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0661 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, +) -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + + +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py index abefecf23..038d97dfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py @@ -18,97 +18,21 @@ from githubkit.utils import UNSET -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) - ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,27 +40,13 @@ class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py b/githubkit/versions/ghec_v2022_11_28/models/group_0658.py index 1aa2dcd50..de696e76a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0658.py @@ -16,11 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0652 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0657 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -42,6 +45,6 @@ class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0659.py b/githubkit/versions/ghec_v2022_11_28/models/group_0659.py index 548fa90a5..52dd00063 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0659.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,37 +17,91 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0654 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" + The set of permissions for the GitHub app + """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py index 19567d564..7ea999899 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,44 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0661 import WebhookIssuesDeletedPropIssue +from .group_0659 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesDeleted) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssuesDeleted",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py index 9648e757a..ada7003bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,317 +18,9 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -337,22 +29,7 @@ class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -360,59 +37,10 @@ class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDeletedPropIssue) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) -model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDeletedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) __all__ = ( - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", - "WebhookIssuesDeletedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof0PropPullRequest", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0662.py b/githubkit/versions/ghec_v2022_11_28/models/group_0662.py index 005a68cf2..abefecf23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0662.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,50 +17,126 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0497 import WebhooksMilestone -from .group_0663 import WebhookIssuesDemilestonedPropIssue +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) ) - milestone: Missing[WebhooksMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + assignees: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestoned) +model_rebuild(WebhookIssuesClosedPropIssueAllof1) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) -__all__ = ("WebhookIssuesDemilestoned",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py index bc9d9095e..3a62a8689 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py @@ -15,172 +15,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0657 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( Field(title="User") ) description: Union[str, None] = Field() @@ -197,234 +42,6 @@ class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesDemilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py index 7e18e58fe..949a828a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,79 +18,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel -from .group_0665 import WebhookIssuesEditedPropIssue +from .group_0659 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ + updated_at: Union[datetime, None] = Field() - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -model_rebuild(WebhookIssuesEdited) -model_rebuild(WebhookIssuesEditedPropChanges) -model_rebuild(WebhookIssuesEditedPropChangesPropBody) -model_rebuild(WebhookIssuesEditedPropChangesPropTitle) - -__all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py b/githubkit/versions/ghec_v2022_11_28/models/group_0665.py index 125826678..ce84b4ae2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0665.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,408 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0666 import WebhookIssuesDeletedPropIssue -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + issue: WebhookIssuesDeletedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) +model_rebuild(WebhookIssuesDeleted) -__all__ = ( - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", - "WebhookIssuesEditedPropIssuePropUser", -) +__all__ = ("WebhookIssuesDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py index dcff3d79f..4bc4878dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,401 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel -from .group_0667 import WebhookIssuesLabeledPropIssue +from .group_0153 import IssueType -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" +class WebhookIssuesDeletedPropIssue(GitHubModel): + """Issue - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLabeled) +model_rebuild(WebhookIssuesDeletedPropIssue) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) +model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDeletedPropIssuePropUser) -__all__ = ("WebhookIssuesLabeled",) +__all__ = ( + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", + "WebhookIssuesDeletedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py index b66217398..eabe3cc22 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,410 +17,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0502 import WebhooksMilestone +from .group_0668 import WebhookIssuesDemilestonedPropIssue -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["demilestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET + issue: WebhookIssuesDemilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +model_rebuild(WebhookIssuesDemilestoned) -__all__ = ( - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", - "WebhookIssuesLabeledPropIssuePropUser", -) +__all__ = ("WebhookIssuesDemilestoned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py index 121248e38..c2ce7f41c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,44 +18,413 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0669 import WebhookIssuesLockedPropIssue +from .group_0153 import IssueType -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" +class WebhookIssuesDemilestonedPropIssue(GitHubModel): + """Issue - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLocked) +model_rebuild(WebhookIssuesDemilestonedPropIssue) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesLocked",) +__all__ = ( + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesDemilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py index aa779db3a..f634b463b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,399 +17,79 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel +from .group_0670 import WebhookIssuesEditedPropIssue -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + issue: WebhookIssuesEditedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: Union[datetime, None] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + The changes to the issue. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) -class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + from_: str = Field(alias="from", description="The previous version of the body.") -class WebhookIssuesLockedPropIssuePropUser(GitHubModel): - """User""" +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from", description="The previous version of the title.") -model_rebuild(WebhookIssuesLockedPropIssue) -model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLockedPropIssuePropReactions) -model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLockedPropIssuePropUser) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) __all__ = ( - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", - "WebhookIssuesLockedPropIssuePropUser", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0670.py b/githubkit/versions/ghec_v2022_11_28/models/group_0670.py index 4618679c0..534df8bde 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0670.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,49 +18,408 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0497 import WebhooksMilestone -from .group_0671 import WebhookIssuesMilestonedPropIssue +from .group_0153 import IssueType -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" +class WebhookIssuesEditedPropIssue(GitHubModel): + """Issue - action: Literal["milestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesMilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - milestone: WebhooksMilestone = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesEditedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestoned) +model_rebuild(WebhookIssuesEditedPropIssue) +model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) +model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesEditedPropIssuePropReactions) +model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesEditedPropIssuePropUser) -__all__ = ("WebhookIssuesMilestoned",) +__all__ = ( + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropSubIssuesSummary", + "WebhookIssuesEditedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py b/githubkit/versions/ghec_v2022_11_28/models/group_0671.py index c38b12c80..12507082f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0671.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,403 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel +from .group_0672 import WebhookIssuesLabeledPropIssue -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """Issue +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + issue: WebhookIssuesLabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesLabeled) -__all__ = ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesMilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesLabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0672.py b/githubkit/versions/ghec_v2022_11_28/models/group_0672.py index 0b3ddeef0..c29b2fc9c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0672.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,410 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0673 import WebhookIssuesOpenedPropChanges -from .group_0675 import WebhookIssuesOpenedPropIssue +from .group_0153 import IssueType -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookIssuesLabeledPropIssue(GitHubModel): + """Issue - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesOpenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesLabeledPropIssue) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLabeledPropIssuePropUser) -__all__ = ("WebhookIssuesOpened",) +__all__ = ( + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", + "WebhookIssuesLabeledPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0673.py b/githubkit/versions/ghec_v2022_11_28/models/group_0673.py index f37f02bd4..b0367efbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0673.py @@ -9,236 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0674 import WebhookIssuesOpenedPropChangesPropOldIssue +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0674 import WebhookIssuesLockedPropIssue -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( + action: Literal["locked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + issue: WebhookIssuesLockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) +model_rebuild(WebhookIssuesLocked) -__all__ = ( - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", -) +__all__ = ("WebhookIssuesLocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py b/githubkit/versions/ghec_v2022_11_28/models/group_0674.py index 534643bd6..719f3a186 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0674.py @@ -18,100 +18,88 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0153 import IssueType -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): +class WebhookIssuesLockedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- cloud@latest//rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: Missing[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] - ] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: Missing[ - list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] = Field( - default=UNSET, title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() draft: Missing[bool] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( Field(default=UNSET) ) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] - ] = Field( - default=UNSET, + labels_url: str = Field() + locked: Literal[True] = Field() + milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET ) - reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( - default=UNSET, title="Reactions" + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") ) - repository_url: Missing[str] = Field(default=UNSET) - sub_issues_summary: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET, description="Title of the issue") - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the issue") - user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( - Field(default=UNSET, title="User") - ) type: Missing[Union[IssueType, None]] = Field( default=UNSET, title="Issue Type", description="The type of issue." ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -138,7 +126,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -165,7 +153,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): +class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -179,7 +167,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): +class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -188,9 +176,9 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -205,7 +193,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -232,7 +220,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -252,11 +240,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -264,9 +251,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -293,11 +278,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -343,8 +325,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLockedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -353,7 +335,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): +class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -368,7 +350,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -376,7 +358,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel percent_completed: int = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): +class WebhookIssuesLockedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -403,36 +385,32 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesLockedPropIssue) +model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLockedPropIssuePropReactions) +model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLockedPropIssuePropUser) __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropSubIssuesSummary", + "WebhookIssuesLockedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0675.py b/githubkit/versions/ghec_v2022_11_28/models/group_0675.py index 011a06c95..010cbf23c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0675.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,403 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0502 import WebhooksMilestone +from .group_0676 import WebhookIssuesMilestonedPropIssue -class WebhookIssuesOpenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( - default=UNSET + issue: WebhookIssuesMilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + milestone: WebhooksMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesMilestoned) -__all__ = ( - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropIssuePropUser", -) +__all__ = ("WebhookIssuesMilestoned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0676.py b/githubkit/versions/ghec_v2022_11_28/models/group_0676.py index 35b280d52..40014eaed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0676.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,44 +18,403 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0498 import WebhooksIssue2 +from .group_0153 import IssueType -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue - action: Literal["pinned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhooksIssue2 = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesMilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesPinned) +model_rebuild(WebhookIssuesMilestonedPropIssue) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesPinned",) +__all__ = ( + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesMilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py index c1b254a10..4e478d9b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0678 import WebhookIssuesReopenedPropIssue +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0678 import WebhookIssuesOpenedPropChanges +from .group_0680 import WebhookIssuesOpenedPropIssue -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - action: Literal["reopened"] = Field() + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +41,7 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field( + issue: WebhookIssuesOpenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) @@ -55,6 +57,6 @@ class WebhookIssuesReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesReopened) +model_rebuild(WebhookIssuesOpened) -__all__ = ("WebhookIssuesReopened",) +__all__ = ("WebhookIssuesOpened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py b/githubkit/versions/ghec_v2022_11_28/models/group_0678.py index aa7fceea5..9d062dafc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0678.py @@ -14,246 +14,183 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0679 import WebhookIssuesOpenedPropChangesPropOldIssue -class WebhookIssuesReopenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( - Field() + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + + +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( - default=UNSET + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - - -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - default: bool = Field() + deployments_url: str = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") + notifications_url: str = Field() open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - - -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -280,147 +217,28 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" -class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssue) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) -model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesReopenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) __all__ = ( - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", - "WebhookIssuesReopenedPropIssuePropUser", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py index 5117142fc..5a442fa35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,421 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0498 import WebhooksIssue2 -from .group_0680 import WebhookIssuesTransferredPropChanges +from .group_0153 import IssueType -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Missing[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] = Field(default=UNSET) + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: Missing[ + list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" ) - issue: WebhooksIssue2 = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] + ] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: Missing[str] = Field(default=UNSET) + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: Missing[str] = Field(default=UNSET) + sub_issues_summary: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET, description="Title of the issue") + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the issue") + user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( + Field(default=UNSET, title="User") + ) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -__all__ = ("WebhookIssuesTransferred",) +__all__ = ( + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py b/githubkit/versions/ghec_v2022_11_28/models/group_0680.py index 53c846fbb..dac861653 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0680.py @@ -14,184 +14,246 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0681 import WebhookIssuesTransferredPropChangesPropNewIssue +from .group_0153 import IssueType -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesOpenedPropIssue(GitHubModel): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + Field() ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") ) - deployments_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() + id: int = Field() labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() + number: int = Field(description="The number of the milestone.") open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App - key: str = Field() - name: str = Field() + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,28 +280,141 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) __all__ = ( - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py index afb3246e8..21f047c5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,422 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0503 import WebhooksIssue2 -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): - """Issue +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] - ] = Field( + action: Literal["pinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesPinned) -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", -) +__all__ = ("WebhookIssuesPinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py index 9f57c02b3..4b58446fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0150 import IssueType -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0496 import WebhooksIssue +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0683 import WebhookIssuesReopenedPropIssue -class WebhookIssuesTyped(GitHubModel): - """issues typed event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["typed"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,13 +39,10 @@ class WebhookIssuesTyped(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesReopenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +55,6 @@ class WebhookIssuesTyped(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTyped) +model_rebuild(WebhookIssuesReopened) -__all__ = ("WebhookIssuesTyped",) +__all__ = ("WebhookIssuesReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py index 6793cfdcb..4f9791f29 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,48 +18,409 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0496 import WebhooksIssue -from .group_0499 import WebhooksUserMannequin +from .group_0153 import IssueType -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + Field() ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnassigned) +model_rebuild(WebhookIssuesReopenedPropIssue) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) +model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesReopenedPropIssuePropUser) -__all__ = ("WebhookIssuesUnassigned",) +__all__ = ( + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", + "WebhookIssuesReopenedPropIssuePropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py index 717ce5e71..5bb64c04a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel -from .group_0496 import WebhooksIssue +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0503 import WebhooksIssue2 +from .group_0685 import WebhookIssuesTransferredPropChanges -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["unlabeled"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +41,10 @@ class WebhookIssuesUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhooksIssue2 = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +57,6 @@ class WebhookIssuesUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlabeled) +model_rebuild(WebhookIssuesTransferred) -__all__ = ("WebhookIssuesUnlabeled",) +__all__ = ("WebhookIssuesTransferred",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py index 4d78be8df..6ed085824 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py @@ -9,52 +9,237 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0686 import WebhookIssuesUnlockedPropIssue +from .group_0686 import WebhookIssuesTransferredPropChangesPropNewIssue -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" - action: Literal["unlocked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - installation: Missing[SimpleInstallation] = Field( + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged", ) - issue: WebhookIssuesUnlockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlocked) +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) -__all__ = ("WebhookIssuesUnlocked",) +__all__ = ( + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py index 651d18c80..b10dc0fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py @@ -18,10 +18,10 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0150 import IssueType +from .group_0153 import IssueType -class WebhookIssuesUnlockedPropIssue(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -31,12 +31,12 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) + assignee: Missing[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -60,31 +60,38 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): html_url: str = Field() id: int = Field() labels: Missing[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] ] = Field(default=UNSET) labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( - default=UNSET + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" ) - reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) + sub_issues_summary: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) @@ -96,10 +103,12 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) -class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -126,7 +135,7 @@ class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -153,7 +162,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -167,7 +176,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -176,9 +185,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -193,7 +202,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -220,7 +231,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -240,10 +253,11 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -251,7 +265,9 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -278,10 +294,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -327,8 +344,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -337,7 +354,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -352,7 +369,7 @@ class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -360,7 +377,7 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -387,32 +404,36 @@ class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssue) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) __all__ = ( - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", - "WebhookIssuesUnlockedPropIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py index 6e799f11f..b1124a1e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0498 import WebhooksIssue2 +from .group_0153 import IssueType +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0501 import WebhooksIssue -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesTyped(GitHubModel): + """issues typed event""" - action: Literal["unpinned"] = Field() + action: Literal["typed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,13 @@ class WebhookIssuesUnpinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhooksIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +59,6 @@ class WebhookIssuesUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesTyped) -__all__ = ("WebhookIssuesUnpinned",) +__all__ = ("WebhookIssuesTyped",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py b/githubkit/versions/ghec_v2022_11_28/models/group_0688.py index b56cd3c65..fa3e57e28 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0688.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0150 import IssueType -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0496 import WebhooksIssue +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0501 import WebhooksIssue +from .group_0504 import WebhooksUserMannequin -class WebhookIssuesUntyped(GitHubModel): - """issues untyped event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["untyped"] = Field() + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +47,6 @@ class WebhookIssuesUntyped(GitHubModel): title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +59,6 @@ class WebhookIssuesUntyped(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUntyped) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ("WebhookIssuesUntyped",) +__all__ = ("WebhookIssuesUnassigned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0689.py b/githubkit/versions/ghec_v2022_11_28/models/group_0689.py index 3fcf87576..692fd84cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0689.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel +from .group_0501 import WebhooksIssue -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["created"] = Field() + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +40,11 @@ class WebhookLabelCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +54,9 @@ class WebhookLabelCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelCreated) +model_rebuild(WebhookIssuesUnlabeled) -__all__ = ("WebhookLabelCreated",) +__all__ = ("WebhookIssuesUnlabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py index d88573d60..39ccc51d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0691 import WebhookIssuesUnlockedPropIssue -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["deleted"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookLabelDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -52,6 +55,6 @@ class WebhookLabelDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelDeleted) +model_rebuild(WebhookIssuesUnlocked) -__all__ = ("WebhookLabelDeleted",) +__all__ = ("WebhookIssuesUnlocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py index 36938987a..06c40be5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,95 +18,401 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel +from .group_0153 import IssueType -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookIssuesUnlockedPropIssue(GitHubModel): + """Issue - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + Field() ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - label: WebhooksLabel = Field(title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") -class WebhookLabelEditedPropChanges(GitHubModel): - """WebhookLabelEditedPropChanges +class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): + """User""" - The changes to the label if the action was `edited`. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) - description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( - default=UNSET + +class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookLabelEditedPropChangesPropColor(GitHubModel): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): + """Milestone - from_: str = Field( - alias="from", - description="The previous version of the color if the action was `edited`.", + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookLabelEditedPropChangesPropDescription(GitHubModel): - """WebhookLabelEditedPropChangesPropDescription""" - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" -class WebhookLabelEditedPropChangesPropName(GitHubModel): - """WebhookLabelEditedPropChangesPropName""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookLabelEdited) -model_rebuild(WebhookLabelEditedPropChanges) -model_rebuild(WebhookLabelEditedPropChangesPropColor) -model_rebuild(WebhookLabelEditedPropChangesPropDescription) -model_rebuild(WebhookLabelEditedPropChangesPropName) +model_rebuild(WebhookIssuesUnlockedPropIssue) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) __all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", + "WebhookIssuesUnlockedPropIssuePropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py index d31916ebf..8b72f7d78 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0500 import WebhooksMarketplacePurchase -from .group_0501 import WebhooksPreviousMarketplacePurchase +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0503 import WebhooksIssue2 -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["unpinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +39,22 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchaseCancelled) +model_rebuild(WebhookIssuesUnpinned) -__all__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ("WebhookIssuesUnpinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py index a8e5bc4a7..728ab6961 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py @@ -18,18 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0500 import WebhooksMarketplacePurchase +from .group_0153 import IssueType +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0501 import WebhooksIssue -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookIssuesUntyped(GitHubModel): + """issues untyped event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["untyped"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +40,25 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookIssuesUntyped) -__all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookIssuesUntyped",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py index e81ff0c96..861572e0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0500 import WebhooksMarketplacePurchase +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,21 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelCreated) -__all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py index ec454e335..ccf298735 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0501 import WebhooksPreviousMarketplacePurchase +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,19 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelDeleted) -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0696.py b/githubkit/versions/ghec_v2022_11_28/models/group_0696.py index 889ef8ec8..234537bac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0696.py @@ -18,19 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0500 import WebhooksMarketplacePurchase -from .group_0501 import WebhooksPreviousMarketplacePurchase +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +43,69 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchasePurchased) +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ( + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py b/githubkit/versions/ghec_v2022_11_28/models/group_0697.py index f620b5be5..8bee8ecc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0697.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0505 import WebhooksMarketplacePurchase +from .group_0506 import WebhooksPreviousMarketplacePurchase -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,63 +41,25 @@ class WebhookMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" - - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." - ) - - -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] = Field() - - -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str = Field() - - -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookMarketplacePurchaseCancelled) -__all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", -) +__all__ = ("WebhookMarketplacePurchaseCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0698.py b/githubkit/versions/ghec_v2022_11_28/models/group_0698.py index 8fad28517..16f721c08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0698.py @@ -18,20 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0505 import WebhooksMarketplacePurchase -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) + action: Literal["changed"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,57 +40,77 @@ class WebhookMemberEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( - default=UNSET - ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( - default=UNSET + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() ) + unit_count: int = Field() -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - from_: str = Field( - alias="from", - description="The previous permissions of the collaborator if the action was edited.", - ) + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0699.py b/githubkit/versions/ghec_v2022_11_28/models/group_0699.py index 85d9061fd..e3a58f9d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0699.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0505 import WebhooksMarketplacePurchase -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["removed"] = Field() + action: Literal["pending_change"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,19 +40,81 @@ class WebhookMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMemberRemoved) +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) -__all__ = ("WebhookMemberRemoved",) +__all__ = ( + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0700.py b/githubkit/versions/ghec_v2022_11_28/models/group_0700.py index 628b5fd30..bcb58a72e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0700.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser -from .group_0502 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0506 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["added"] = Field() + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +40,81 @@ class WebhookMembershipAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py index d9b03f617..37c5db8d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser -from .group_0502 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0505 import WebhooksMarketplacePurchase +from .group_0506 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["removed"] = Field() + action: Literal["purchased"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +41,25 @@ class WebhookMembershipRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookMembershipRemovedPropSender(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) +model_rebuild(WebhookMarketplacePurchasePurchased) -__all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", -) +__all__ = ("WebhookMarketplacePurchasePurchased",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py index 22d2cfc7c..f7ed312c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,40 +18,85 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0503 import MergeGroup +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["checks_requested"] = Field() + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" + + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." ) -model_rebuild(WebhookMergeGroupChecksRequested) +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] = Field() + + +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str = Field() + + +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ( + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0703.py b/githubkit/versions/ghec_v2022_11_28/models/group_0703.py index 945a0f745..6c0fc3ec6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0703.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,81 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0503 import MergeGroup +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) + + +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) -__all__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py index 239dc76dc..394d0f42f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py @@ -18,73 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["deleted"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: list[str] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +model_rebuild(WebhookMemberRemoved) -__all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", -) +__all__ = ("WebhookMemberRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py index 1119f252f..16cccfab4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0497 import WebhooksMilestone +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser +from .group_0507 import WebhooksTeam -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["closed"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,57 @@ class WebhookMilestoneClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + scope: Literal["team"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipAddedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0706.py b/githubkit/versions/ghec_v2022_11_28/models/group_0706.py index 1d56e1cbc..2b153be53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0706.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0504 import WebhooksMilestone3 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser +from .group_0507 import WebhooksTeam -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["created"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,57 @@ class WebhookMilestoneCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipRemovedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ( + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0707.py b/githubkit/versions/ghec_v2022_11_28/models/group_0707.py index e5f96b284..758e9c923 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0707.py @@ -18,43 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0497 import WebhooksMilestone +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0508 import MergeGroup -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["checks_requested"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMilestoneDeleted) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ("WebhookMilestoneDeleted",) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py index 73a43f0be..d1d2144c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py @@ -18,96 +18,44 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0497 import WebhooksMilestone +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0508 import MergeGroup -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookMilestoneEditedPropChanges(GitHubModel): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( - default=UNSET - ) - due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) - title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str = Field( - alias="from", - description="The previous version of the due date if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", -) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py index b8410648b..65250a728 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,43 +18,73 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0504 import WebhooksMilestone3 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["opened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." + ) + hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneOpened) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: list[str] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py index a4811da2f..3359d8ff4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0502 import WebhooksMilestone -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,18 +39,22 @@ class WebhookOrgBlockBlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookMilestoneClosed) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ("WebhookMilestoneClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py index 274d4701f..ee6ea038b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0509 import WebhooksMilestone3 -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,18 +39,22 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ("WebhookMilestoneCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0712.py b/githubkit/versions/ghec_v2022_11_28/models/group_0712.py index 3118b9afc..cb445405b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0712.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0505 import WebhooksMembership +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0502 import WebhooksMilestone -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -39,23 +39,22 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookMilestoneDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py index 01dbb0b73..e2b2ad3b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0505 import WebhooksMembership +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0502 import WebhooksMilestone -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["member_added"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +42,72 @@ class WebhookOrganizationMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberAdded) +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + default=UNSET + ) + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) -__all__ = ("WebhookOrganizationMemberAdded",) +__all__ = ( + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0714.py b/githubkit/versions/ghec_v2022_11_28/models/group_0714.py index 11a82dcd6..2adbed093 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0714.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0509 import WebhooksMilestone3 -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["member_invited"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +39,22 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - - -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( - Field(title="User") - ) - login: Union[str, None] = Field() - node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) +model_rebuild(WebhookMilestoneOpened) -__all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", -) +__all__ = ("WebhookMilestoneOpened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py index 0a36ddbe3..ed2349691 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0505 import WebhooksMembership +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" - action: Literal["member_removed"] = Field() + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,6 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -55,6 +52,6 @@ class WebhookOrganizationMemberRemoved(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberRemoved) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ("WebhookOrgBlockBlocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py index f7ce79ca1..5d743469b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,18 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0505 import WebhooksMembership +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,6 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -57,26 +52,6 @@ class WebhookOrganizationRenamed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" - - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - - -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", -) +__all__ = ("WebhookOrgBlockUnblocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py index 2c926e7e7..687ca4ef1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py @@ -9,52 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" - - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( - default=UNSET - ) - commit_oid: Missing[str] = Field(default=UNSET) - - -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" - - version: Missing[str] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0510 import WebhooksMembership -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhooksMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropVersionInfo", -) +__all__ = ("WebhookOrganizationDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py index 319e81af4..65bce1bac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0719 import WebhookPackagePublishedPropPackage +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0510 import WebhooksMembership -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" - action: Literal["published"] = Field() + action: Literal["member_added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,14 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -55,6 +55,6 @@ class WebhookPackagePublished(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackagePublished) +model_rebuild(WebhookOrganizationMemberAdded) -__all__ = ("WebhookPackagePublished",) +__all__ = ("WebhookOrganizationMemberAdded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py index 50d644f50..4fff598ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,34 +18,67 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0720 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" - Information about the package. + action: Literal["member_invited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None - ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = Field() + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -71,22 +105,12 @@ class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) __all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py index 8fae5bdad..b6b87d668 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py @@ -9,564 +9,52 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0717 import WebhookRubygemsMetadata - - -class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] - ] = Field(default=UNSET, title="User") - body: Missing[ - Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, - None, - ] - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0510 import WebhooksMembership + + +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" + + action: Literal["member_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookOrganizationMemberRemoved) + +__all__ = ("WebhookOrganizationMemberRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py index 4267f01f7..552b20db0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0722 import WebhookPackageUpdatedPropPackage +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0510 import WebhooksMembership -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" - action: Literal["updated"] = Field() + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,21 +40,43 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + membership: Missing[WebhooksMembership] = Field( default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackageUpdated) +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) -__all__ = ("WebhookPackageUpdated",) +__all__ = ( + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py index 5f049bb3a..2c926e7e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py @@ -9,80 +9,52 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0723 import WebhookPackageUpdatedPropPackagePropPackageVersion - - -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" + name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET + ) + commit_oid: Missing[str] = Field(default=UNSET) + + +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) + +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropVersionInfo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py index fb4fb99e4..05ada05bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py @@ -9,177 +9,52 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0717 import WebhookRubygemsMetadata +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0724 import WebhookPackagePublishedPropPackage -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() - size: int = Field() - state: str = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + package: WebhookPackagePublishedPropPackage = Field( + description="Information about the package." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py index c80270424..1ad007c05 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py @@ -17,66 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0725 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - id: int = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPageBuildPropBuild(GitHubModel): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + Information about the package. """ - commit: Union[str, None] = Field() - created_at: str = Field() - duration: int = Field() - error: WebhookPageBuildPropBuildPropError = Field() - pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") - status: str = Field() - updated_at: str = Field() - url: str = Field() - - -class WebhookPageBuildPropBuildPropError(GitHubModel): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] = Field() + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" + ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() -class WebhookPageBuildPropBuildPropPusher(GitHubModel): +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -103,14 +71,22 @@ class WebhookPageBuildPropBuildPropPusher(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) __all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py index 6a9a083e5..b4f10acd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py @@ -9,45 +9,564 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0506 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" - - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestApproved) - -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +from .group_0722 import WebhookRubygemsMetadata + + +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" + + author: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] + ] = Field(default=UNSET, title="User") + body: Missing[ + Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, + None, + ] + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems + ] + ] = Field(default=UNSET) + contributors: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems + ] + ] = Field(default=UNSET) + engines: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: Missing[Union[int, str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersion", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0726.py b/githubkit/versions/ghec_v2022_11_28/models/group_0726.py index 1bd9efa5e..4f81f5ee6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0726.py @@ -18,36 +18,42 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0506 import PersonalAccessTokenRequest +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0727 import WebhookPackageUpdatedPropPackage -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + package: WebhookPackageUpdatedPropPackage = Field( + description="Information about the package." ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPackageUpdated) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py index d9804d5b4..01eef3754 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,38 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0506 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" - - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestCreated) - -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +from .group_0728 import WebhookPackageUpdatedPropPackagePropPackageVersion + + +class WebhookPackageUpdatedPropPackage(GitHubModel): + """WebhookPackageUpdatedPropPackage + + Information about the package. + """ + + created_at: str = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") + package_type: str = Field() + package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() + registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackageUpdatedPropPackage) +model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) +model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) + +__all__ = ( + "WebhookPackageUpdatedPropPackage", + "WebhookPackageUpdatedPropPackagePropOwner", + "WebhookPackageUpdatedPropPackagePropRegistry", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py index e81d9e9cc..9a1b3c351 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py @@ -9,45 +9,177 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0506 import PersonalAccessTokenRequest +from .group_0722 import WebhookRubygemsMetadata -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py b/githubkit/versions/ghec_v2022_11_28/models/group_0729.py index 200e43c27..0c3b97f24 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0729.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,36 +18,99 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0730 import WebhookPingPropHook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPing(GitHubModel): - """WebhookPing""" +class WebhookPageBuild(GitHubModel): + """page_build event""" - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." + id: int = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ + + commit: Union[str, None] = Field() + created_at: str = Field() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() + updated_at: str = Field() + url: str = Field() + + +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] = Field() + + +class WebhookPageBuildPropBuildPropPusher(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPing) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py index 55b1d17e7..afd8183c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,61 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0343 import HookResponse +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0511 import PersonalAccessTokenRequest -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - The webhook that is being pinged - """ - - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", ) - app_id: Missing[int] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", - ) - config: WebhookPingPropHookPropConfig = Field() - created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - id: int = Field(description="Unique identifier of the webhook.") - last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") - name: Literal["web"] = Field( - description="The type of webhook. The only valid value is 'web'." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() - updated_at: datetime = Field() - url: Missing[str] = Field(default=UNSET) - - -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" - - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPersonalAccessTokenRequestApproved) -__all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", -) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py index fac71cc70..100ff2e5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py @@ -9,22 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0511 import PersonalAccessTokenRequest -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0732.py b/githubkit/versions/ghec_v2022_11_28/models/group_0732.py index f4c8ed68f..97ffe994c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0732.py @@ -18,60 +18,37 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0507 import WebhooksProjectCard +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0511 import PersonalAccessTokenRequest -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNote = Field() - - -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str = Field(alias="from") -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py index c99b78094..de9d8d3ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py @@ -18,41 +18,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0507 import WebhooksProjectCard +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0511 import PersonalAccessTokenRequest -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" - action: Literal["created"] = Field() + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectCardCreated) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py index 4bf67742d..5bc29afdb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,91 +16,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0735 import WebhookPingPropHook -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: Union[int, None] = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( - title="User" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py index 158f7a7e2..ae4e52670 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,61 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0507 import WebhooksProjectCard +from .group_0347 import HookResponse -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPingPropHook(GitHubModel): + """Webhook - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + The webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." ) - installation: Missing[SimpleInstallation] = Field( + app_id: Missing[int] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + config: WebhookPingPropHookPropConfig = Field() + created_at: datetime = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="Unique identifier of the webhook.") + last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") + name: Literal["web"] = Field( + description="The type of webhook. The only valid value is 'web'." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" + ping_url: Missing[str] = Field(default=UNSET) + test_url: Missing[str] = Field(default=UNSET) + type: str = Field() + updated_at: datetime = Field() + url: Missing[str] = Field(default=UNSET) - note: WebhookProjectCardEditedPropChangesPropNote = Field() +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] = Field(alias="from") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py index a27a6ee76..fac71cc70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py @@ -9,120 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" - - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() - - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") - - -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" + The webhooks ping payload encoded with URL encoding. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py index 698d7933a..31df5bfb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,60 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0512 import WebhooksProjectCard -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( - Field(title="User") +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" + + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNote = Field() + + +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str = Field(alias="from") -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py index 0afeec58f..77d3ccfb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,53 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] - ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", -) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0512 import WebhooksProjectCard + + +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookProjectCardCreated) + +__all__ = ("WebhookProjectCardCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py index d1fcb6f73..ae7a5263a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0508 import WebhooksProject +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" - action: Literal["closed"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,66 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectClosed) +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectClosed",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py index e5b3b5ab9..8bd033022 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0509 import WebhooksProjectColumn +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0512 import WebhooksProjectCard -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectCardEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,17 +45,33 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNote = Field() + + +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ( + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py index 6f3c8be2f..3af2c8176 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0509 import WebhooksProjectColumn +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["deleted"] = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,13 +45,84 @@ class WebhookProjectColumnDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + project_card: WebhookProjectCardMovedPropProjectCard = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + + +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int = Field(alias="from") + + +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnDeleted) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) -__all__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py index 71dcfc42f..698d7933a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,63 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0509 import WebhooksProjectColumn +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" - - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" - - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str = Field(alias="from") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py index 535e76052..0afeec58f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,53 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0509 import WebhooksProjectColumn - - -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" - - action: Literal["moved"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookProjectColumnMoved) - -__all__ = ("WebhookProjectColumnMoved",) + +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] + ] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py index 465488593..025c182c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0508 import WebhooksProject +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0513 import WebhooksProject -class WebhookProjectCreated(GitHubModel): - """project created event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["created"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookProjectCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectCreated) +model_rebuild(WebhookProjectClosed) -__all__ = ("WebhookProjectCreated",) +__all__ = ("WebhookProjectClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0745.py b/githubkit/versions/ghec_v2022_11_28/models/group_0745.py index 153aefa34..1ff00664b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0745.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0508 import WebhooksProject +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0514 import WebhooksProjectColumn -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,13 +44,17 @@ class WebhookProjectDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookProjectDeleted) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ("WebhookProjectDeleted",) +__all__ = ("WebhookProjectColumnCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py index 5ba0e79d4..3b85dc038 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,21 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0508 import WebhooksProject +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0514 import WebhooksProjectColumn -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,53 +44,13 @@ class WebhookProjectEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) - - -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectColumnDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py b/githubkit/versions/ghec_v2022_11_28/models/group_0747.py index 83607b0ac..e79409172 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0747.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0508 import WebhooksProject +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0514 import WebhooksProjectColumn -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +45,35 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_column: WebhooksProjectColumn = Field(title="Project Column") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookProjectColumnEditedPropChanges(GitHubModel): + """WebhookProjectColumnEditedPropChanges""" + + name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str = Field(alias="from") -model_rebuild(WebhookProjectReopened) +model_rebuild(WebhookProjectColumnEdited) +model_rebuild(WebhookProjectColumnEditedPropChanges) +model_rebuild(WebhookProjectColumnEditedPropChangesPropName) -__all__ = ("WebhookProjectReopened",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py b/githubkit/versions/ghec_v2022_11_28/models/group_0748.py index 872ebac13..0deb05ac3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0748.py @@ -18,30 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0510 import ProjectsV2 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0514 import WebhooksProjectColumn -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - action: Literal["closed"] = Field() + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectClosed) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ("WebhookProjectColumnMoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py index 41084e538..e7c8d255a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py @@ -18,33 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0510 import ProjectsV2 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0513 import WebhooksProject -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated - - A project was created - """ +class WebhookProjectCreated(GitHubModel): + """project created event""" action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectCreated) +model_rebuild(WebhookProjectCreated) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ("WebhookProjectCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py index cda50b164..a74397542 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,30 +18,39 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0510 import ProjectsV2 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0513 import WebhooksProject -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectDeleted) +model_rebuild(WebhookProjectDeleted) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ("WebhookProjectDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0751.py b/githubkit/versions/ghec_v2022_11_28/models/group_0751.py index e3a087a18..7f2791eba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0751.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,88 +18,83 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0510 import ProjectsV2 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0513 import WebhooksProject -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( - Field(default=UNSET) - ) - public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( - default=UNSET + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - short_description: Missing[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescription - ] = Field(default=UNSET) - title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) +class WebhookProjectEditedPropChanges(GitHubModel): + """WebhookProjectEditedPropChanges + The changes to the project if the action was `edited`. + """ -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) +class WebhookProjectEditedPropChangesPropBody(GitHubModel): + """WebhookProjectEditedPropChangesPropBody""" -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" +class WebhookProjectEditedPropChangesPropName(GitHubModel): + """WebhookProjectEditedPropChangesPropName""" - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The changes to the project if the action was `edited`.", + ) -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) +model_rebuild(WebhookProjectEdited) +model_rebuild(WebhookProjectEditedPropChanges) +model_rebuild(WebhookProjectEditedPropChangesPropBody) +model_rebuild(WebhookProjectEditedPropChangesPropName) __all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py index 139f86482..979793b02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py @@ -18,32 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0511 import WebhooksProjectChanges -from .group_0512 import ProjectsV2Item +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0513 import WebhooksProject -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemArchived) +model_rebuild(WebhookProjectReopened) -__all__ = ("WebhookProjectsV2ItemArchived",) +__all__ = ("WebhookProjectReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py index 55b62fc0b..2f4cdc5a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0512 import ProjectsV2Item +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0515 import ProjectsV2 -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["closed"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,33 +36,12 @@ class WebhookProjectsV2ItemConverted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" +model_rebuild(WebhookProjectsV2ProjectClosed) - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) - -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py index abe1577ea..0ecc0cb52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py @@ -18,13 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0512 import ProjectsV2Item +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0515 import ProjectsV2 -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated + + A project was created + """ action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,12 +39,12 @@ class WebhookProjectsV2ItemCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py index ab006bd93..c1472a77c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py @@ -18,13 +18,13 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0512 import ProjectsV2Item +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0515 import ProjectsV2 -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,12 +36,12 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0756.py b/githubkit/versions/ghec_v2022_11_28/models/group_0756.py index 8e012e314..9d1b38ed8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0756.py @@ -18,24 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0512 import ProjectsV2Item +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0515 import ProjectsV2 -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field( - default=UNSET, - description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", - ) + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,84 +37,69 @@ class WebhookProjectsV2ItemEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = Field(default=UNSET) - field_name: Missing[str] = Field(default=UNSET) - project_number: Missing[int] = Field(default=UNSET) - from_: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] - ] = Field(default=UNSET, alias="from") - to: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( + Field(default=UNSET) + ) + public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( + default=UNSET + ) + short_description: Missing[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescription ] = Field(default=UNSET) + title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( + default=UNSET + ) -class ProjectsV2SingleSelectOption(GitHubModel): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str = Field() - name: str = Field() - color: Missing[Union[str, None]] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -class ProjectsV2IterationSetting(GitHubModel): - """Projects v2 Iteration Setting - An iteration setting for an iteration field - """ +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - id: str = Field() - title: str = Field() - duration: Missing[Union[float, None]] = Field(default=UNSET) - start_date: Missing[Union[str, None]] = Field(default=UNSET) + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) -class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" +class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + from_: Missing[str] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectsV2ItemEdited) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) -model_rebuild(ProjectsV2SingleSelectOption) -model_rebuild(ProjectsV2IterationSetting) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) +model_rebuild(WebhookProjectsV2ProjectEdited) +model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) __all__ = ( - "ProjectsV2IterationSetting", - "ProjectsV2SingleSelectOption", - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py index 72e133a71..98cefeb10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0512 import ProjectsV2Item +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0516 import WebhooksProjectChanges +from .group_0517 import ProjectsV2Item -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["archived"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,29 +44,6 @@ class WebhookProjectsV2ItemReordered(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +model_rebuild(WebhookProjectsV2ItemArchived) - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId - ] = Field(default=UNSET) - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) - -__all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", -) +__all__ = ("WebhookProjectsV2ItemArchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py index 5324bea8b..154f3e93d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0511 import WebhooksProjectChanges -from .group_0512 import ProjectsV2Item +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0517 import ProjectsV2Item -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["restored"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,6 +43,27 @@ class WebhookProjectsV2ItemRestored(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemRestored) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2ItemRestored",) + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) + +__all__ = ( + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py index 33596db11..c82e78eae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0510 import ProjectsV2 +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0517 import ProjectsV2Item -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +36,12 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectReopened) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py index 24e910d0d..c3dc9021a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0513 import ProjectsV2StatusUpdate +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0517 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateCreated(GitHubModel): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,13 +36,12 @@ class WebhookProjectsV2StatusUpdateCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateCreated) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookProjectsV2StatusUpdateCreated",) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py index 376359519..3186888e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,15 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0513 import ProjectsV2StatusUpdate +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0517 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( + default=UNSET, + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,13 +45,84 @@ class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateDeleted) +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: Missing[str] = Field(default=UNSET) + field_type: Missing[str] = Field(default=UNSET) + field_name: Missing[str] = Field(default=UNSET) + project_number: Missing[int] = Field(default=UNSET) + from_: Missing[ + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + ] = Field(default=UNSET, alias="from") + to: Missing[ + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + ] = Field(default=UNSET) + + +class ProjectsV2SingleSelectOption(GitHubModel): + """Projects v2 Single Select Option + + An option for a single select field + """ + + id: str = Field() + name: str = Field() + color: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class ProjectsV2IterationSetting(GitHubModel): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str = Field() + title: str = Field() + duration: Missing[Union[float, None]] = Field(default=UNSET) + start_date: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(ProjectsV2SingleSelectOption) +model_rebuild(ProjectsV2IterationSetting) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) -__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) +__all__ = ( + "ProjectsV2IterationSetting", + "ProjectsV2SingleSelectOption", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py index cbcd6b270..f48c7c0af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import date from typing import Literal, Union from pydantic import Field @@ -19,18 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0513 import ProjectsV2StatusUpdate +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0517 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateEdited(GitHubModel): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( - default=UNSET - ) + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,74 +37,35 @@ class WebhookProjectsV2StatusUpdateEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" - body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( - default=UNSET - ) - status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( - default=UNSET - ) - start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( - Field(default=UNSET) - ) - target_date: Missing[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId ] = Field(default=UNSET) -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( + GitHubModel +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") to: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - - from_: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET, alias="from") - to: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2StatusUpdateEdited) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) +model_rebuild(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "WebhookProjectsV2StatusUpdateEdited", - "WebhookProjectsV2StatusUpdateEditedPropChanges", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py index cf4996a63..636cb0e67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,37 +18,32 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0516 import WebhooksProjectChanges +from .group_0517 import ProjectsV2Item -class WebhookPublic(GitHubModel): - """public event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPublic) +model_rebuild(WebhookProjectsV2ItemRestored) -__all__ = ("WebhookPublic",) +__all__ = ("WebhookProjectsV2ItemRestored",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py index d7a5b2a83..56a3c3b4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1159 +18,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0487 import WebhooksUser +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0515 import ProjectsV2 -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAssignedPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py index ca24cb865..cfcfeb199 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1212 +18,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0518 import ProjectsV2StatusUpdate -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["auto_merge_disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0766.py b/githubkit/versions/ghec_v2022_11_28/models/group_0766.py index fc9352f99..b83f0815f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0766.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1204 +18,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0518 import ProjectsV2StatusUpdate -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - action: Literal["auto_merge_enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeEnabled) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py index 7c8fbba5d..25e5c9958 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from pydantic import Field @@ -18,41 +19,95 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0514 import PullRequestWebhook +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0518 import ProjectsV2StatusUpdate -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" - action: Literal["closed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestClosed) +class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( + default=UNSET + ) + status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( + default=UNSET + ) + start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( + Field(default=UNSET) + ) + target_date: Missing[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET, alias="from") + to: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2StatusUpdateEdited) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py index 6db028c36..5b7e672f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,17 +16,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0514 import PullRequestWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +35,11 @@ class WebhookPullRequestConvertedToDraft(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +47,6 @@ class WebhookPullRequestConvertedToDraft(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestConvertedToDraft) +model_rebuild(WebhookPublic) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py index 39edd6c85..626bca5e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,26 +19,27 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0149 import Milestone -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0516 import WebhooksPullRequest5 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0492 import WebhooksUser -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["demilestoned"] = Field() + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,16 +47,1131 @@ class WebhookPullRequestDemilestoned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") + pull_request: WebhookPullRequestAssignedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookPullRequestAssigned) +model_rebuild(WebhookPullRequestAssignedPropPullRequest) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestDemilestoned",) +__all__ = ( + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssignedPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py index 51eb6ec9b..a68b08078 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["dequeued"] = Field() + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,23 +45,10 @@ class WebhookPullRequestDequeued(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( title="Pull Request" ) - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] = Field() + reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -69,19 +56,23 @@ class WebhookPullRequestDequeued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -96,13 +87,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -116,11 +107,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -132,13 +125,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -148,13 +141,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -166,12 +159,12 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -198,7 +191,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -224,7 +217,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -237,14 +230,17 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,7 +267,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -285,7 +281,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -312,7 +308,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +318,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +334,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -360,14 +358,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,12 +387,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -425,98 +423,108 @@ class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +551,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -605,14 +613,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): default=True, description="Whether downloads are enabled." ) has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) has_pages: bool = Field() has_projects: bool = Field( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -626,7 +634,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -647,10 +656,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +708,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -708,7 +720,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -735,10 +749,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -747,21 +763,21 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -788,7 +804,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -871,7 +887,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -892,10 +909,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -943,7 +961,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -953,7 +973,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -980,10 +1002,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -992,7 +1016,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1001,35 +1025,32 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1047,7 +1068,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1064,7 +1087,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1078,10 +1101,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1098,88 +1123,108 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestDequeued) -model_rebuild(WebhookPullRequestDequeuedPropPullRequest) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestDequeuedPropPullRequestPropUser", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py index d9c2573b5..27aa24574 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0514 import PullRequestWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,84 +39,1184 @@ class WebhookPullRequestEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( + title="Pull Request" + ) + reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges - The changes to the comment if the action was `edited`. +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository -class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" + A git repository + """ - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" + Groups of organization members that gives permissions on specified repositories. + """ - from_: str = Field(alias="from") + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ - from_: str = Field(alias="from") + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) +model_rebuild(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py index ea5745536..761b9c8dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0519 import PullRequestWebhook -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["enqueued"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,13 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,1117 +53,6 @@ class WebhookPullRequestEnqueued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestEnqueued) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestClosed) -__all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py index eb2830a28..71644f6d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0519 import PullRequestWebhook -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["labeled"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,13 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,1116 +53,6 @@ class WebhookPullRequestLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): - """Pull Request""" +model_rebuild(WebhookPullRequestConvertedToDraft) - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLabeled) -model_rebuild(WebhookPullRequestLabeledPropPullRequest) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) - -__all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLabeledPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py b/githubkit/versions/ghec_v2022_11_28/models/group_0774.py index a7df27b42..1798079d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0774.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,25 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0152 import Milestone +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0521 import WebhooksPullRequest5 -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["locked"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,1118 +45,16 @@ class WebhookPullRequestLocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLockedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestDemilestoned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py index 36656f20e..cdc9ba131 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,43 +19,1167 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0149 import Milestone -from .group_0474 import EnterpriseWebhooks -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0516 import WebhooksPullRequest5 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["milestoned"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestMilestoned) +model_rebuild(WebhookPullRequestDequeued) +model_rebuild(WebhookPullRequestDequeuedPropPullRequest) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ( + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestDequeuedPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py index 99ed67307..1eaba75d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0514 import PullRequestWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0519 import PullRequestWebhook -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["opened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,9 +53,73 @@ class WebhookPullRequestOpened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + + +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str = Field(alias="from") + + +class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str = Field(alias="from") -model_rebuild(WebhookPullRequestOpened) +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ( + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py index a0eafd1c4..d57c964e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0514 import PullRequestWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["ready_for_review"] = Field() + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,15 @@ class WebhookPullRequestReadyForReview(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +55,1117 @@ class WebhookPullRequestReadyForReview(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReadyForReview) +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestEnqueued) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ( + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py index 11a290c0c..5275bbfbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0514 import PullRequestWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" - action: Literal["reopened"] = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +40,14 @@ class WebhookPullRequestReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +55,1116 @@ class WebhookPullRequestReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReopened) +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" -__all__ = ("WebhookPullRequestReopened",) + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) + assignees: list[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestLabeled) +model_rebuild(WebhookPullRequestLabeledPropPullRequest) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) +model_rebuild( + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) + +__all__ = ( + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLabeledPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py index 65f817b62..cf654a831 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py @@ -19,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,12 +39,13 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,188 +53,19 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -252,63 +80,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -330,16 +177,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,7 +210,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -380,17 +223,14 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -417,7 +257,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -431,7 +271,36 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -441,8 +310,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -458,9 +326,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -482,14 +348,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -520,7 +384,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,116 +413,96 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -685,9 +529,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -770,8 +612,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -792,11 +633,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -844,9 +684,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -856,9 +694,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -885,12 +721,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -899,23 +733,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -982,8 +814,8 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -998,8 +830,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -1020,11 +851,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1072,9 +902,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -1084,9 +912,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1113,12 +939,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1127,9 +951,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1156,7 +978,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1173,7 +995,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1186,11 +1008,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1208,9 +1030,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1227,7 +1047,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1241,12 +1061,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1263,126 +1081,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentCreated) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(WebhookPullRequestLocked) +model_rebuild(WebhookPullRequestLockedPropPullRequest) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLockedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0780.py b/githubkit/versions/ghec_v2022_11_28/models/group_0780.py index 8acdf2b9e..431fb018a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0780.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1187 +18,43 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0517 import WebhooksReviewComment +from .group_0152 import Milestone +from .group_0479 import EnterpriseWebhooks +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0521 import WebhooksPullRequest5 -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["deleted"] = Field() - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestMilestoned) -__all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestMilestoned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py index 5448f83ee..8c9960688 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,23 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0495 import WebhooksChanges -from .group_0517 import WebhooksReviewComment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0519 import PullRequestWebhook -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,12 +39,13 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1139 +53,6 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - user_view_type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestOpened) -__all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0782.py b/githubkit/versions/ghec_v2022_11_28/models/group_0782.py index 089e035d6..1430e9211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0782.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0519 import PullRequestWebhook -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["dismissed"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,1223 +39,20 @@ class WebhookPullRequestReviewDismissed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewDismissedPropReview(GitHubModel): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: Literal["dismissed", "approved", "changes_requested"] = Field() - submitted_at: datetime = Field() - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewDismissed) -model_rebuild(WebhookPullRequestReviewDismissedPropReview) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropReviewPropUser", -) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py index 863b5e058..760b62032 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0518 import WebhooksReview +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0519 import PullRequestWebhook -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,1065 +39,20 @@ class WebhookPullRequestReviewEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewEdited) -model_rebuild(WebhookPullRequestReviewEditedPropChanges) -model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReopened) -__all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py index 5b90700d1..d9bfd5be8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py @@ -19,16 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["review_request_removed"] = Field() + action: Literal["created"] = Field() + comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,26 +43,124 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -85,22 +187,55 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -117,89 +252,63 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -221,12 +330,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -250,14 +361,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -270,7 +380,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -278,7 +388,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -307,9 +417,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -323,38 +431,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -364,7 +441,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -381,7 +458,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -405,12 +482,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -434,12 +513,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -461,41 +542,43 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -503,7 +586,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -511,7 +594,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -519,7 +602,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -527,7 +610,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -535,7 +618,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -543,7 +626,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -551,7 +634,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -559,22 +642,21 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -603,7 +685,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -688,7 +770,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -710,11 +792,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -727,12 +809,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] = Field( default=UNSET, - description="The default value for a squash merge commit message.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title.", + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", ) ) ssh_url: str = Field() @@ -762,7 +844,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -774,7 +856,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -803,11 +885,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -817,51 +899,21 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -930,8 +982,8 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -946,7 +998,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -968,11 +1020,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1020,7 +1072,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1032,7 +1084,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1061,11 +1113,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1075,7 +1127,36 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1092,7 +1173,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1105,11 +1186,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1127,7 +1208,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1136,32 +1217,35 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1179,136 +1263,126 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) +model_rebuild(WebhookPullRequestReviewCommentCreated) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py index fea100bf4..00c5523cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py @@ -19,16 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0522 import WebhooksReviewComment -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["review_request_removed"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,90 +44,34 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -139,89 +88,63 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -248,7 +171,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -274,12 +197,9 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesIt subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -292,7 +212,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -300,7 +220,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -329,9 +249,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -345,38 +263,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -386,7 +273,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -403,7 +290,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -432,7 +319,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -461,7 +348,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,41 +370,43 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -525,7 +414,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -533,7 +422,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -541,7 +430,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -549,7 +438,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -557,7 +446,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -565,7 +454,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -573,7 +462,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -581,22 +470,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -625,7 +513,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -710,7 +598,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -732,11 +620,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -784,7 +672,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -796,7 +684,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -825,11 +713,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -839,51 +727,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -968,7 +826,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -990,11 +848,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1042,7 +900,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1054,7 +912,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1083,11 +941,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1097,7 +955,36 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1106,32 +993,35 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1149,7 +1039,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1158,32 +1048,35 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1201,138 +1094,112 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) +model_rebuild(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py index 167792120..68fa5af69 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py @@ -19,16 +19,23 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0500 import WebhooksChanges +from .group_0522 import WebhooksReviewComment -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["review_requested"] = Field() + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,71 +46,34 @@ class WebhookPullRequestReviewRequestedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None ] ] = Field() author_association: Literal[ @@ -119,84 +89,63 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,14 +167,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -249,14 +196,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -269,7 +214,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -277,7 +222,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -306,9 +251,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -322,34 +265,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -359,7 +275,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -376,7 +292,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -407,7 +323,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -436,7 +352,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -461,40 +377,40 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -502,7 +418,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -510,7 +426,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -518,7 +434,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -526,7 +442,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -534,7 +450,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -542,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -550,7 +466,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -558,23 +474,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -601,9 +515,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -686,7 +598,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -708,11 +620,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -760,7 +672,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -772,7 +684,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -801,11 +713,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool = Field() @@ -815,52 +727,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -943,7 +824,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -965,11 +846,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1017,7 +898,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1029,7 +910,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1058,11 +939,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool = Field() @@ -1072,7 +953,34 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1081,32 +989,35 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1124,7 +1035,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1143,7 +1054,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,11 +1068,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1179,118 +1090,108 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py index b0cdc41f8..016f1d0ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["review_requested"] = Field() + action: Literal["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,90 +39,123 @@ class WebhookPullRequestReviewRequestedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + review: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team +class WebhookPullRequestReviewDismissedPropReview(GitHubModel): + """WebhookPullRequestReviewDismissedPropReview - Groups of organization members that gives permissions on specified repositories. + The review that was affected. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: Literal["dismissed", "approved", "changes_requested"] = Field() + submitted_at: datetime = Field() + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -138,83 +171,61 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() ) + locked: bool = Field() merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -243,9 +254,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,10 +280,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( default=UNSET ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -287,15 +295,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -324,9 +331,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -340,34 +345,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -377,8 +355,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -394,7 +371,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -418,14 +395,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -449,12 +424,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,36 +460,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -520,31 +497,25 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -552,7 +523,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -560,15 +531,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -576,23 +545,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -619,9 +586,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -704,7 +669,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -726,11 +691,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -778,7 +742,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -790,7 +754,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -819,12 +783,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -833,52 +795,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -961,7 +892,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -983,11 +914,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1035,7 +965,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1047,7 +977,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1076,12 +1006,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1090,7 +1018,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1099,35 +1054,32 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1145,7 +1097,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1164,7 +1116,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1178,11 +1130,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1200,120 +1152,110 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissed) +model_rebuild(WebhookPullRequestReviewDismissedPropReview) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropReviewPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py index 030cdd6c7..8d7ded3dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py @@ -19,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0518 import WebhooksReview +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0523 import WebhooksReview -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["submitted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +46,7 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( @@ -56,20 +57,37 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" + + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None - ] = Field(title="User") + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +103,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -98,18 +116,16 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -119,13 +135,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -134,12 +150,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -168,7 +184,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -196,7 +212,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -209,14 +225,14 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -245,7 +261,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -259,7 +275,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -269,7 +285,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -285,7 +301,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -316,7 +332,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +363,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,62 +392,60 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( Field(title="Link") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -439,7 +453,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -447,35 +461,33 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -502,7 +514,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -569,9 +581,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -585,18 +594,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -607,10 +607,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -619,18 +619,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -645,20 +633,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -670,7 +650,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -699,10 +679,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -711,21 +691,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -792,9 +772,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -808,18 +785,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -830,10 +798,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -842,18 +810,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -868,20 +824,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -893,7 +841,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -922,10 +870,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -934,7 +882,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -961,7 +909,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -978,7 +926,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -991,11 +939,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1013,9 +961,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1032,7 +978,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1046,12 +992,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1068,100 +1012,94 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEdited) +model_rebuild(WebhookPullRequestReviewEditedPropChanges) +model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py index 923fda351..8de47fa29 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["resolved"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,39 +39,68 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( - title="Simple Pull Request" + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() + additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -89,61 +118,88 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +226,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -196,9 +252,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -211,7 +270,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -219,7 +278,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +307,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -262,7 +323,38 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -272,7 +364,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +381,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +410,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -342,14 +434,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -371,43 +461,41 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -415,7 +503,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -423,7 +511,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -431,7 +519,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -439,7 +527,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -447,7 +535,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -455,7 +543,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -463,7 +551,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -471,21 +559,22 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -514,7 +603,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -599,10 +688,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -613,11 +710,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -626,6 +723,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title.", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -640,6 +749,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -649,7 +762,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -661,7 +774,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -690,11 +803,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool = Field() @@ -704,21 +817,51 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -803,10 +946,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -817,11 +968,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -830,6 +981,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -844,6 +1007,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -853,7 +1020,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -865,7 +1032,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -894,11 +1061,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool = Field() @@ -908,36 +1075,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -954,7 +1092,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -967,11 +1105,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -989,7 +1127,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -998,35 +1136,32 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1044,324 +1179,136 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py index 670fcbaf4..2ff8ca760 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unresolved"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,39 +39,90 @@ class WebhookPullRequestReviewThreadUnresolved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( - title="Simple Pull Request" + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() + additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -89,61 +140,88 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +248,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -196,9 +274,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,9 +288,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -217,7 +300,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,7 +329,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -262,7 +345,38 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -272,7 +386,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +403,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +432,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +461,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,36 +488,36 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -411,7 +525,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -419,7 +533,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -427,7 +541,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -435,7 +549,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -443,7 +557,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -451,7 +565,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -459,7 +573,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -467,21 +581,22 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -510,7 +625,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -595,10 +710,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -609,11 +732,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -622,6 +745,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -636,6 +771,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -645,7 +784,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +796,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -686,11 +825,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool = Field() @@ -700,21 +839,22 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -743,7 +883,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -828,10 +968,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -842,11 +990,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -855,6 +1003,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -869,6 +1029,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -878,7 +1042,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -890,7 +1054,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -919,11 +1083,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool = Field() @@ -933,7 +1097,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -942,35 +1106,32 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -988,7 +1149,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -997,35 +1158,32 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1043,327 +1201,138 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadUnresolved) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py index eb1a444bf..e6d35e69a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py @@ -19,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,29 +45,66 @@ class WebhookPullRequestSynchronize(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +120,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +139,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,10 +157,10 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -136,13 +173,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +191,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +225,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,9 +253,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel default=UNSET ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +269,15 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -265,7 +306,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -279,7 +322,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -306,7 +349,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -316,7 +359,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +376,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,7 +407,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -385,14 +431,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -421,60 +465,68 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -482,7 +534,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -490,33 +542,39 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +601,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -626,7 +686,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -647,10 +708,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +760,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -710,7 +772,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -739,10 +801,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -751,21 +815,23 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -792,7 +858,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -875,14 +943,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -894,10 +965,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -945,7 +1017,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -957,7 +1029,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -986,10 +1058,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -998,7 +1072,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1015,7 +1089,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1028,11 +1102,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1050,7 +1124,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1067,7 +1143,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1081,10 +1157,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1101,92 +1179,118 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestSynchronize) -model_rebuild(WebhookPullRequestSynchronizePropPullRequest) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py index 0d9510caa..5b13c4f01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py @@ -19,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0499 import WebhooksUserMannequin +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,31 +45,84 @@ class WebhookPullRequestUnassigned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,12 +138,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -108,11 +157,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -124,13 +175,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -140,13 +191,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -158,12 +209,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -192,7 +243,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,9 +271,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) default=UNSET ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,14 +287,15 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -269,7 +324,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -283,7 +340,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,14 +362,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +377,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +394,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,7 +425,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,14 +449,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -427,60 +483,68 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -488,7 +552,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,33 +560,39 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,7 +619,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -632,7 +704,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -653,10 +726,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -704,7 +778,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -716,7 +790,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,10 +819,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -755,21 +833,52 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -852,7 +961,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -873,10 +983,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -924,7 +1035,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -936,7 +1047,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -963,10 +1076,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -975,34 +1090,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1011,32 +1099,35 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1054,7 +1145,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1071,7 +1164,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1085,10 +1178,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1105,92 +1200,120 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnassigned) -model_rebuild(WebhookPullRequestUnassignedPropPullRequest) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py index c907abda9..6fd8613b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0491 import WebhooksLabel +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0523 import WebhooksReview -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["unlabeled"] = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,36 +40,36 @@ class WebhookPullRequestUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,82 +84,62 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() ) + locked: bool = Field() merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +168,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,7 +196,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +209,16 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -263,7 +245,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -277,34 +259,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +269,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +285,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,7 +316,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -390,7 +347,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -419,66 +376,70 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -486,33 +447,35 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +502,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -622,7 +585,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -643,10 +607,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -694,7 +658,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -706,7 +670,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -733,10 +699,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -745,21 +711,21 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -842,14 +808,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -861,10 +830,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -912,7 +881,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -924,7 +893,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -951,10 +922,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -963,7 +934,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -990,7 +961,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1007,7 +978,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1020,11 +991,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1042,7 +1013,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1059,7 +1032,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1073,10 +1046,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1093,88 +1068,100 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlabeled) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py index 19c101e28..3a4b433c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - action: Literal["unlocked"] = Field() + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,35 +39,41 @@ class WebhookPullRequestUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,82 +88,62 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +170,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,7 +198,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -219,16 +207,21 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -255,7 +248,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -269,34 +262,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -306,7 +272,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -322,7 +289,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -349,7 +318,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -373,12 +342,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -400,103 +371,123 @@ class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -523,7 +514,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -606,17 +599,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -627,10 +613,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -639,18 +626,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -665,10 +640,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -678,7 +649,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -688,7 +661,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -715,10 +690,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,21 +704,23 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -824,17 +803,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -845,10 +817,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -857,18 +830,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -883,10 +844,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -896,7 +853,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -906,7 +865,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +894,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,7 +908,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -972,7 +937,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -981,35 +946,32 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1027,7 +989,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1044,7 +1008,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1058,10 +1022,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1078,88 +1044,324 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadResolved) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py index c548c5fb9..d649f9e58 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py @@ -14,41 +14,26 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookPush(GitHubModel): - """push event""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." - ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." - ) - commits: list[WebhookPushPropCommitsItems] = Field( - description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/enterprise-cloud@latest//rest/commits) to fetch additional commits." - ) - compare: str = Field( - description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." - ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - forced: bool = Field(description="Whether this push was a force push of the `ref`.") - head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -59,145 +44,475 @@ class WebhookPush(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher: WebhookPushPropPusher = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." - ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" - added: Missing[list[str]] = Field( - default=UNSET, description="An array of files added in the commit." + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, description="An array of files modified by the commit." + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." ) - removed: Missing[list[str]] = Field( - default=UNSET, description="An array of files removed in the commit." + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookPushPropPusher(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" - date: Missing[datetime] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" - added: Missing[list[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - removed: Missing[list[str]] = Field( - default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") -class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" - Metaproperties for Git author/committer information. - """ + href: str = Field() - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" -class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): - """Committer + href: str = Field() - Metaproperties for Git author/committer information. - """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" -class WebhookPushPropRepository(GitHubModel): + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -234,10 +549,6 @@ class WebhookPushPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) default_branch: str = Field(description="The default branch of the repository.") delete_branch_on_merge: Missing[bool] = Field( default=UNSET, @@ -283,9 +594,10 @@ class WebhookPushPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() milestones_url: str = Field() @@ -296,10 +608,13 @@ class WebhookPushPropRepository(GitHubModel): open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET - ) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() @@ -330,16 +645,9 @@ class WebhookPushPropRepository(GitHubModel): ) -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicense(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -349,7 +657,9 @@ class WebhookPushPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookPushPropRepositoryPropOwner(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,8 +686,12 @@ class WebhookPushPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -386,32 +700,670 @@ class WebhookPushPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadUnresolved) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookPush", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py index 8bf81e235..ae15e08b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0797 import WebhookRegistryPackagePublishedPropRegistryPackage +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - action: Literal["published"] = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,20 +41,1152 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRegistryPackagePublished) +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestSynchronizePropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py index dc664a173..0cbfc0afe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,72 +18,1179 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0798 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0504 import WebhooksUserMannequin -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + issue_url: str = Field() + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: Union[str, None] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + href: str = Field() - avatar_url: str = Field() + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + - about_url: Missing[str] = Field(default=UNSET) +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnassigned) +model_rebuild(WebhookPullRequestUnassignedPropPullRequest) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnassignedPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py index e3b7243d8..f5a23511c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py @@ -9,482 +9,975 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0717 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0496 import WebhooksLabel + + +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ + issue_url: str = Field() + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET) - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - tags: Missing[list[str]] = Field(default=UNSET) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[list[str]] = Field(default=UNSET) - contributors: Missing[list[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ + """Link""" - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) - digest: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + A git repository + """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """License""" - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -492,125 +985,196 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems -) +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py index 2e32f0f3c..225ce0565 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0800 import WebhookRegistryPackageUpdatedPropRegistryPackage +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" - action: Literal["updated"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,20 +39,1127 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRegistryPackageUpdated) +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlockedPropPullRequestPropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py index 51ecc91e2..2f70c051a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py @@ -9,72 +9,409 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0801 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookPush(GitHubModel): + """push event""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None - ] = Field() - updated_at: str = Field() + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: list[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/enterprise-cloud@latest//rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + ) + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, description="An array of files added in the commit." + ) + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, description="An array of files modified by the commit." + ) + removed: Missing[list[str]] = Field( + default=UNSET, description="An array of files removed in the commit." + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropPusher(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[list[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + Metaproperties for Git author/committer information. + """ -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) - avatar_url: str = Field() + +class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookPushPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPushPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) +model_rebuild(WebhookPush) +model_rebuild(WebhookPushPropHeadCommit) +model_rebuild(WebhookPushPropHeadCommitPropAuthor) +model_rebuild(WebhookPushPropHeadCommitPropCommitter) +model_rebuild(WebhookPushPropPusher) +model_rebuild(WebhookPushPropCommitsItems) +model_rebuild(WebhookPushPropCommitsItemsPropAuthor) +model_rebuild(WebhookPushPropCommitsItemsPropCommitter) +model_rebuild(WebhookPushPropRepository) +model_rebuild(WebhookPushPropRepositoryPropCustomProperties) +model_rebuild(WebhookPushPropRepositoryPropLicense) +model_rebuild(WebhookPushPropRepositoryPropOwner) +model_rebuild(WebhookPushPropRepositoryPropPermissions) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookPush", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py index 8dab2c688..f00f11be6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py @@ -9,195 +9,50 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0717 import WebhookRubygemsMetadata - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0802 import WebhookRegistryPackagePublishedPropRegistryPackage + + +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" + + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRegistryPackagePublished) + +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py index a5d0456a6..211e44679 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0519 import WebhooksRelease - - -class WebhookReleaseCreated(GitHubModel): - """release created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookReleaseCreated) - -__all__ = ("WebhookReleaseCreated",) +from .group_0803 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + ] = Field() + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py index 594bf200d..2779301e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py @@ -9,52 +9,608 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0519 import WebhooksRelease - - -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookReleaseDeleted) - -__all__ = ("WebhookReleaseDeleted",) +from .group_0722 import WebhookRubygemsMetadata + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor + ] = Field(default=UNSET) + body: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, + ] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, + None, + ] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[list[str]] = Field(default=UNSET) + contributors: Missing[list[str]] = Field(default=UNSET) + engines: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, + int, + None, + ] + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + published_at: Missing[str] = Field(default=UNSET) + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py index 2ccf8f620..7d4598d6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0519 import WebhooksRelease +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0805 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookReleaseEdited(GitHubModel): - """release edited event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,77 +44,15 @@ class WebhookReleaseEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) - - -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str = Field( - alias="from", - description="The previous version of the tag_name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropTagName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropTagName", -) +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py index 19a8a5afe..c9c7039e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,187 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" - - action: Literal["prereleased"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleasePrereleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +from .group_0806 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, +) -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + created_at: str = Field() + description: None = Field() + ecosystem: str = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() user_view_type: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", + "WebhookRegistryPackageUpdatedPropRegistryPackage", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py index b6f902d9e..e68a5b866 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py @@ -9,54 +9,195 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0520 import WebhooksRelease1 - - -class WebhookReleasePublished(GitHubModel): - """release published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookReleasePublished) - -__all__ = ("WebhookReleasePublished",) +from .group_0722 import WebhookRubygemsMetadata + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, + None, + ] + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + md5: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + sha1: Missing[Union[str, None]] = Field(default=UNSET) + sha256: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + state: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py index 8dce64fcc..eec60c4ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0519 import WebhooksRelease +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0524 import WebhooksRelease -class WebhookReleaseReleased(GitHubModel): - """release released event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["released"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,11 +52,9 @@ class WebhookReleaseReleased(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseReleased) +model_rebuild(WebhookReleaseCreated) -__all__ = ("WebhookReleaseReleased",) +__all__ = ("WebhookReleaseCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py index 71d0d8496..a3646445f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0520 import WebhooksRelease1 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0524 import WebhooksRelease -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["unpublished"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ class WebhookReleaseUnpublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease1 = Field( + release: WebhooksRelease = Field( title="Release", description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", ) @@ -52,11 +52,9 @@ class WebhookReleaseUnpublished(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseUnpublished) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("WebhookReleaseDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py index 9ec5f8738..de1c4f799 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0222 import RepositoryAdvisory -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0524 import WebhooksRelease -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["published"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,77 @@ class WebhookRepositoryAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookRepositoryAdvisoryPublished) +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str = Field( + alias="from", + description="The previous version of the tag_name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) + + +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropTagName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookRepositoryAdvisoryPublished",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropTagName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py index 8d042ec62..c62110400 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0222 import RepositoryAdvisory -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - action: Literal["reported"] = Field() + action: Literal["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,162 @@ class WebhookRepositoryAdvisoryReported(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookRepositoryAdvisoryReported) +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: Literal[True] = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ( + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py index 291a9dadb..1959cc895 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0525 import WebhooksRelease1 -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["archived"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryArchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookReleasePublished) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ("WebhookReleasePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py index 35d6cf399..46c754b9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0524 import WebhooksRelease -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["created"] = Field() + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryCreated) +model_rebuild(WebhookReleaseReleased) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ("WebhookReleaseReleased",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py index d727a4624..2c9eadacc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0525 import WebhooksRelease1 -class WebhookRepositoryDeleted(GitHubModel): - """repository deleted event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["deleted"] = Field() + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDeleted) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ("WebhookRepositoryDeleted",) +__all__ = ("WebhookReleaseUnpublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py index 0c7c1946c..ca65b7ab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0226 import RepositoryAdvisory +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: str = Field( - description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - branch: str = Field() - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( - Field( - description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - ) + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -54,21 +48,14 @@ class WebhookRepositoryDispatchSample(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload - - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", -) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py index 2df661ad6..acc753abc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0226 import RepositoryAdvisory +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,60 +48,14 @@ class WebhookRepositoryEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" - - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) - ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py index 6aa13d804..bd32c97b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py @@ -18,15 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,9 +48,8 @@ class WebhookRepositoryImport(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookRepositoryArchived) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py index a3b407521..c295fbc79 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["privatized"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryPrivatized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPrivatized) +model_rebuild(WebhookRepositoryCreated) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py index 0d41f68a1..83a32e28d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["publicized"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryPublicized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py index 16b0ba62d..edf12dcd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py @@ -9,33 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + branch: str = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -51,32 +57,18 @@ class WebhookRepositoryRenamed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" +class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): + """WebhookRepositoryDispatchSamplePropClientPayload - from_: str = Field(alias="from") + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) +model_rebuild(WebhookRepositoryDispatchSample) +model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) __all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py index c188889f8..b2c4f7797 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0136 import RepositoryRuleset -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,64 @@ class WebhookRepositoryRulesetCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetCreated) +class WebhookRepositoryEditedPropChanges(GitHubModel): + """WebhookRepositoryEditedPropChanges""" + + default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( + Field(default=UNSET) + ) + description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( + default=UNSET + ) + homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( + default=UNSET + ) + topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) + + +class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ( + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py index 29fd56f9e..cbc274f20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py @@ -18,17 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0136 import RepositoryRuleset -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" - action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +42,14 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryRulesetDeleted) +model_rebuild(WebhookRepositoryImport) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py index 843e7dc28..35155e919 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py @@ -18,18 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0136 import RepositoryRuleset -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0823 import WebhookRepositoryRulesetEditedPropChanges +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" - action: Literal["edited"] = Field() + action: Literal["privatized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,19 +43,13 @@ class WebhookRepositoryRulesetEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEdited) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py index 6582eba9d..70bc02281 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py @@ -9,51 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0824 import WebhookRepositoryRulesetEditedPropChangesPropConditions -from .group_0826 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET + action: Literal["publicized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryPublicized) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", - "WebhookRepositoryRulesetEditedPropChangesPropName", -) +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py index 9585d856b..2613d8e50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py @@ -9,28 +9,74 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0085 import RepositoryRulesetConditions -from .group_0825 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks + + +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" + + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" + repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) +class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepository""" -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookRepositoryRenamed) +model_rebuild(WebhookRepositoryRenamedPropChanges) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) + +__all__ = ( + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py index 15cbc0597..0d23ab33d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py @@ -9,113 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0085 import RepositoryRulesetConditions +from .group_0003 import SimpleUser +from .group_0136 import RepositoryRuleset +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - condition: Missing[RepositoryRulesetConditions] = Field( + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: Missing[list[str]] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: Missing[list[str]] = Field(default=UNSET, alias="from") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", -) +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py index c0d918048..d62192846 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,96 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning -from .group_0827 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +from .group_0003 import SimpleUser +from .group_0136 import RepositoryRuleset +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks + + +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryRulesetDeleted) + +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py index 2307f4d30..0301ff80b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,128 +17,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", -) +from .group_0003 import SimpleUser +from .group_0136 import RepositoryRuleset +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0828 import WebhookRepositoryRulesetEditedPropChanges + + +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" + + action: Literal["edited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryRulesetEdited) + +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py index a87d9c176..164cd2c6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py @@ -9,132 +9,51 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0829 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0831 import WebhookRepositoryRulesetEditedPropChangesPropRules -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" +class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropName""" - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" +class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" - ) + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: Missing[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization - ] = Field(default=UNSET, title="Organization") - user: Missing[ - Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] - ] = Field(default=UNSET, title="User") - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( - GitHubModel -): - """Organization""" - - avatar_url: str = Field() - description: Union[str, None] = Field() - events_url: str = Field() - hooks_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - issues_url: str = Field() - login: str = Field() - members_url: str = Field() - node_id: str = Field() - public_members_url: str = Field() - repos_url: str = Field() - url: str = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(WebhookRepositoryRulesetEditedPropChanges) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) __all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryRulesetEditedPropChangesPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py index 2239aafe7..802a03f50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py @@ -9,47 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" - - action: Literal["unarchived"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRepositoryUnarchived) - -__all__ = ("WebhookRepositoryUnarchived",) +from .group_0085 import RepositoryRulesetConditions +from .group_0830 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" + + added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py index cdfae9c29..15cbc0597 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py @@ -9,52 +9,113 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0521 import WebhooksAlert +from .group_0085 import RepositoryRulesetConditions -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py index 45c229c07..314e2232c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,104 +17,96 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - - -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning +from .group_0832 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", -) +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + deleted: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py index dd0447c2e..2307f4d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,128 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0521 import WebhooksAlert - - -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" - - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + + rule: Missing[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern +) + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py index 99aa9e899..3e3a90ac6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,34 +51,52 @@ class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" + ) + - The security alert of the vulnerable dependency. - """ +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + organization: Missing[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization + ] = Field(default=UNSET, title="Organization") + user: Missing[ + Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( + GitHubModel +): + """Organization""" + + avatar_url: str = Field() + description: Union[str, None] = Field() + events_url: str = Field() + hooks_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) id: int = Field() + issues_url: str = Field() + login: str = Field() + members_url: str = Field() node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["fixed", "open"] = Field() + public_members_url: str = Field() + repos_url: str = Field() + url: str = Field() -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -106,14 +120,21 @@ class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubMod subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py index 04fc93292..f757bdde0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py @@ -18,18 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0522 import SecretScanningAlertWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["unarchived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +47,9 @@ class WebhookSecretScanningAlertCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertCreated) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ("WebhookSecretScanningAlertCreated",) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py index 96b2b3a16..ef4a6928e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,23 +18,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0522 import SecretScanningAlertWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0526 import WebhooksAlert -class WebhookSecretScanningAlertLocationCreated(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["create"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -47,267 +55,6 @@ class WebhookSecretScanningAlertLocationCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" - - type: Missing[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] = Field( - default=UNSET, - description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", - ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - - -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." - ) - - -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ( - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationWikiCommit", - "WebhookSecretScanningAlertLocationCreated", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py index 875448bf5..986520e11 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py @@ -9,19 +9,113 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - payload: str = Field( - description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None + ] = Field(title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py index e7adf6bf0..252de6c01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0522 import SecretScanningAlertWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0526 import WebhooksAlert -class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["publicly_leaked"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,9 @@ class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) -__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0838.py b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py index f2b32c595..92cbab6d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0522 import SecretScanningAlertWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,68 @@ class WebhookSecretScanningAlertReopened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["fixed", "open"] = Field() + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py index b80a27d85..c72d660ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0522 import SecretScanningAlertWebhook +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0527 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["resolved"] = Field() + action: Literal["created"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertResolved(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py index ed339b1ea..23e5de221 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py @@ -18,28 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0522 import SecretScanningAlertWebhook +from .group_0422 import SecretScanningLocation +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0527 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["validated"] = Field() + action: Literal["created"] = Field() alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +45,9 @@ class WebhookSecretScanningAlertValidated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertValidated) +model_rebuild(WebhookSecretScanningAlertLocationCreated) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("WebhookSecretScanningAlertLocationCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0841.py b/githubkit/versions/ghec_v2022_11_28/models/group_0841.py index af3b16528..875448bf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0841.py @@ -9,77 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -class WebhookSecretScanningScanCompleted(GitHubModel): - """secret_scanning_scan completed event""" +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["completed"] = Field() - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( - Field(description="What type of scan was completed") - ) - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( - description="What type of content was scanned" - ) - started_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - completed_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - secret_types: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", - ) - custom_pattern_name: Missing[Union[str, None]] = Field( - default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", - ) - custom_pattern_scope: Missing[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] = Field( - default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookSecretScanningScanCompleted) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecretScanningScanCompleted",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py index dc8c775cc..5537a22be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0523 import WebhooksSecurityAdvisory +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0527 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): + """secret_scanning_alert publicly leaked event""" - action: Literal["published"] = Field() + action: Literal["publicly_leaked"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py index 5a3888d49..d25574f9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0523 import WebhooksSecurityAdvisory +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0527 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - action: Literal["updated"] = Field() + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py index 0068e3a67..7a491a1f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0845 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0527 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["withdrawn"] = Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryWithdrawn(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryWithdrawn) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookSecurityAdvisoryWithdrawn",) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py index a20e03470..f1b32e103 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,127 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0527 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - description: str = Field() - ghsa_id: str = Field() - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py index 75c49db4b..7e37cca31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +19,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0218 import FullRepository -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0847 import WebhookSecurityAndAnalysisPropChanges +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" +class WebhookSecretScanningScanCompleted(GitHubModel): + """secret_scanning_scan completed event""" - changes: WebhookSecurityAndAnalysisPropChanges = Field() + action: Literal["completed"] = Field() + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( + Field(description="What type of scan was completed") + ) + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( + description="What type of content was scanned" + ) + started_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + completed_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + secret_types: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", + ) + custom_pattern_name: Missing[Union[str, None]] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", + ) + custom_pattern_scope: Missing[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,14 +75,11 @@ class WebhookSecurityAndAnalysis(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysis) +model_rebuild(WebhookSecretScanningScanCompleted) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ("WebhookSecretScanningScanCompleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0847.py b/githubkit/versions/ghec_v2022_11_28/models/group_0847.py index 6a147bcd4..d676d042e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0847.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0848 import WebhookSecurityAndAnalysisPropChangesPropFrom +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0528 import WebhooksSecurityAdvisory -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecurityAdvisoryPublished) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("WebhookSecurityAdvisoryPublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py index 09d62bdba..9d6ed54f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,17 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0167 import SecurityAndAnalysis +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0528 import WebhooksSecurityAdvisory -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py index 62acfd7ec..e3fa8a5aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0524 import WebhooksSponsorship +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0850 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["cancelled"] = Field() + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +49,14 @@ class WebhookSponsorshipCancelled(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSecurityAdvisoryWithdrawn) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSecurityAdvisoryWithdrawn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py index 50ec262c7..a20e03470 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,127 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0524 import WebhooksSponsorship +from .group_0001 import CvssSeverities -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( + Field() ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() -model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookSponsorshipCreated",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py index b04f50042..5322e9dbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,18 +16,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0524 import WebhooksSponsorship +from .group_0222 import FullRepository +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0852 import WebhookSecurityAndAnalysisPropChanges -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,38 +42,14 @@ class WebhookSponsorshipEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() - - -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET - ) - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", -) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py b/githubkit/versions/ghec_v2022_11_28/models/group_0852.py index a5cdf3bb3..122bf6ada 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0852.py @@ -9,54 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0524 import WebhooksSponsorship +from .group_0853 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py index 22788be04..e492e0426 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,48 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0524 import WebhooksSponsorship -from .group_0525 import WebhooksChanges8 +from .group_0170 import SecurityAndAnalysis -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["pending_tier_change"] = Field() - changes: WebhooksChanges8 = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py index cbb50006c..a63fba0ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0524 import WebhooksSponsorship -from .group_0525 import WebhooksChanges8 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0529 import WebhooksSponsorship -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() + action: Literal["cancelled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,6 +53,6 @@ class WebhookSponsorshipTierChanged(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipTierChanged) +model_rebuild(WebhookSponsorshipCancelled) -__all__ = ("WebhookSponsorshipTierChanged",) +__all__ = ("WebhookSponsorshipCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py index c24759450..bab2d29be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,14 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0529 import WebhooksSponsorship -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -43,16 +44,15 @@ class WebhookStarCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: Union[str, None] = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStarCreated) +model_rebuild(WebhookSponsorshipCreated) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookSponsorshipCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py index 45b04ed00..9d7fdd8d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py @@ -18,16 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0529 import WebhooksSponsorship -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +45,38 @@ class WebhookStarDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: None = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + sponsorship: WebhooksSponsorship = Field() + + +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( + default=UNSET + ) + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str = Field( + alias="from", + description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", ) -model_rebuild(WebhookStarDeleted) +model_rebuild(WebhookSponsorshipEdited) +model_rebuild(WebhookSponsorshipEditedPropChanges) +model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) -__all__ = ("WebhookStarDeleted",) +__all__ = ( + "WebhookSponsorshipEdited", + "WebhookSponsorshipEditedPropChanges", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py index 5620ae1ad..9fdca205b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,233 +18,45 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0529 import WebhooksSponsorship -class WebhookStatus(GitHubModel): - """status event""" +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - avatar_url: Missing[Union[str, None]] = Field(default=UNSET) - branches: list[WebhookStatusPropBranchesItems] = Field( - description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." - ) - commit: WebhookStatusPropCommit = Field() - context: str = Field() - created_at: str = Field() - description: Union[str, None] = Field( - description="The optional human-readable description added to the status." + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sha: str = Field(description="The Commit SHA.") - state: Literal["pending", "success", "failure", "error"] = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: Union[str, None] = Field( - description="The optional link added to the status." - ) - updated_at: str = Field() - - -class WebhookStatusPropBranchesItems(GitHubModel): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommit = Field() - name: str = Field() - protected: bool = Field() - - -class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class WebhookStatusPropCommit(GitHubModel): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") - comments_url: str = Field() - commit: WebhookStatusPropCommitPropCommit = Field() - committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") - html_url: str = Field() - node_id: str = Field() - parents: list[WebhookStatusPropCommitPropParentsItems] = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropParentsItems(GitHubModel): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommit(GitHubModel): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthor = Field() - comment_count: int = Field() - committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() - message: str = Field() - tree: WebhookStatusPropCommitPropCommitPropTree = Field() - url: str = Field() - verification: WebhookStatusPropCommitPropCommitPropVerification = Field() - - -class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] = Field() - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] = Field() - signature: Union[str, None] = Field() - verified: bool = Field() - verified_at: Union[str, None] = Field() + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatus) -model_rebuild(WebhookStatusPropBranchesItems) -model_rebuild(WebhookStatusPropBranchesItemsPropCommit) -model_rebuild(WebhookStatusPropCommit) -model_rebuild(WebhookStatusPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropParentsItems) -model_rebuild(WebhookStatusPropCommitPropCommit) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropCommitPropTree) -model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) +model_rebuild(WebhookSponsorshipPendingCancellation) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", -) +__all__ = ("WebhookSponsorshipPendingCancellation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py index 70880c2d6..6577aa843 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,19 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0529 import WebhooksSponsorship +from .group_0530 import WebhooksChanges8 -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + action: Literal["pending_tier_change"] = Field() + changes: WebhooksChanges8 = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +__all__ = ("WebhookSponsorshipPendingTierChange",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py index edd98c4e3..43535db8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py @@ -9,21 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0529 import WebhooksSponsorship +from .group_0530 import WebhooksChanges8 + + +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" + + action: Literal["tier_changed"] = Field() + changes: WebhooksChanges8 = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipTierChanged) + +__all__ = ("WebhookSponsorshipTierChanged",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py index 696b079fe..91e54db45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,19 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks + + +class WebhookStarCreated(GitHubModel): + """star created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: Union[str, None] = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + ) + + +model_rebuild(WebhookStarCreated) + +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py index 74f78d3d5..075a308d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py @@ -9,21 +9,50 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks + + +class WebhookStarDeleted(GitHubModel): + """star deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: None = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + ) + + +model_rebuild(WebhookStarDeleted) + +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py index 04fe65366..a0b4ccab8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,50 +19,233 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0152 import Issue -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookSubIssuesParentIssueAdded(GitHubModel): - """parent issue added event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["parent_issue_added"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + avatar_url: Missing[Union[str, None]] = Field(default=UNSET) + branches: list[WebhookStatusPropBranchesItems] = Field( + description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." + commit: WebhookStatusPropCommit = Field() + context: str = Field() + created_at: str = Field() + description: Union[str, None] = Field( + description="The optional human-readable description added to the status." ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) + id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sha: str = Field(description="The Commit SHA.") + state: Literal["pending", "success", "failure", "error"] = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: Union[str, None] = Field( + description="The optional link added to the status." ) + updated_at: str = Field() + + +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = Field() + + +class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class WebhookStatusPropCommit(GitHubModel): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") + comments_url: str = Field() + commit: WebhookStatusPropCommitPropCommit = Field() + committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") + html_url: str = Field() + node_id: str = Field() + parents: list[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitter(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropParentsItems(GitHubModel): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommit(GitHubModel): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthor = Field() + comment_count: int = Field() + committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() + message: str = Field() + tree: WebhookStatusPropCommitPropCommitPropTree = Field() + url: str = Field() + verification: WebhookStatusPropCommitPropCommitPropVerification = Field() + + +class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] = Field() + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] = Field() + signature: Union[str, None] = Field() + verified: bool = Field() + verified_at: Union[str, None] = Field() -model_rebuild(WebhookSubIssuesParentIssueAdded) +model_rebuild(WebhookStatus) +model_rebuild(WebhookStatusPropBranchesItems) +model_rebuild(WebhookStatusPropBranchesItemsPropCommit) +model_rebuild(WebhookStatusPropCommit) +model_rebuild(WebhookStatusPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropParentsItems) +model_rebuild(WebhookStatusPropCommitPropCommit) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropCommitPropTree) +model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) -__all__ = ("WebhookSubIssuesParentIssueAdded",) +__all__ = ( + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py index fc00ebf13..70880c2d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,51 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0152 import Issue -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookSubIssuesParentIssueRemoved(GitHubModel): - """parent issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["parent_issue_removed"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesParentIssueRemoved) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ("WebhookSubIssuesParentIssueRemoved",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py index 789911fd7..edd98c4e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py @@ -9,59 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0152 import Issue -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - -class WebhookSubIssuesSubIssueAdded(GitHubModel): - """sub-issue added event""" +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - action: Literal["sub_issue_added"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesSubIssueAdded) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ("WebhookSubIssuesSubIssueAdded",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py index b570608a2..696b079fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,51 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0152 import Issue -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer -class WebhookSubIssuesSubIssueRemoved(GitHubModel): - """sub-issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_removed"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesSubIssueRemoved) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) -__all__ = ("WebhookSubIssuesSubIssueRemoved",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py index 5055d2aed..74f78d3d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py @@ -15,43 +15,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0526 import WebhooksTeam1 - - -class WebhookTeamAdd(GitHubModel): - """team_add event""" - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -model_rebuild(WebhookTeamAdd) - -__all__ = ("WebhookTeamAdd",) + +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" + + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) + +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py index 889c2ae28..b054e8370 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py @@ -9,250 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0526 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0155 import Issue +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" +class WebhookSubIssuesParentIssueAdded(GitHubModel): + """parent issue added event""" - action: Literal["added_to_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["parent_issue_added"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesParentIssueAdded) -__all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueAdded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py b/githubkit/versions/ghec_v2022_11_28/models/group_0868.py index 82bd689e7..edec978d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0868.py @@ -9,246 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0526 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0155 import Issue +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookTeamCreated(GitHubModel): - """team created event""" +class WebhookSubIssuesParentIssueRemoved(GitHubModel): + """parent issue removed event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["parent_issue_removed"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesParentIssueRemoved) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py b/githubkit/versions/ghec_v2022_11_28/models/group_0869.py index cdcd7d61e..f5404c565 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0869.py @@ -9,248 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0526 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0155 import Issue +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class WebhookSubIssuesSubIssueAdded(GitHubModel): + """sub-issue added event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + action: Literal["sub_issue_added"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamDeletedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamDeletedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesSubIssueAdded) -__all__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesSubIssueAdded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py index 8e8f4c38a..391c49f45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py @@ -9,351 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0526 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0155 import Issue +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookTeamEdited(GitHubModel): - """team edited event""" +class WebhookSubIssuesSubIssueRemoved(GitHubModel): + """sub-issue removed event""" - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." + action: Literal["sub_issue_removed"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamEditedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) - privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) - notification_setting: Missing[ - WebhookTeamEditedPropChangesPropNotificationSetting - ] = Field(default=UNSET) - repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( - default=UNSET - ) - - -class WebhookTeamEditedPropChangesPropDescription(GitHubModel): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropName(GitHubModel): - """WebhookTeamEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str = Field( - alias="from", - description="The previous version of the team's privacy if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str = Field( - alias="from", - description="The previous version of the team's notification setting if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropRepository(GitHubModel): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( - alias="from" - ) - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", - ) - pull: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - push: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookTeamEdited) -model_rebuild(WebhookTeamEditedPropRepository) -model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) -model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) -model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChanges) -model_rebuild(WebhookTeamEditedPropChangesPropDescription) -model_rebuild(WebhookTeamEditedPropChangesPropName) -model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) -model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) -model_rebuild(WebhookTeamEditedPropChangesPropRepository) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) +model_rebuild(WebhookSubIssuesSubIssueRemoved) -__all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesSubIssueRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py b/githubkit/versions/ghec_v2022_11_28/models/group_0871.py index 7ebaae7c0..7d8338837 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0871.py @@ -9,26 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0526 import WebhooksTeam1 +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0531 import WebhooksTeam1 -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - action: Literal["removed_from_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,12 +36,14 @@ class WebhookTeamRemovedFromRepository(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") team: WebhooksTeam1 = Field( @@ -53,206 +52,6 @@ class WebhookTeamRemovedFromRepository(GitHubModel): ) -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookTeamRemovedFromRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookTeamAdd) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookTeamAdd",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py index 1498e9dfe..cf1f7f906 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py @@ -9,25 +9,26 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0531 import WebhooksTeam1 -class WebhookWatchStarted(GitHubModel): - """watch started event""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" - action: Literal["started"] = Field() + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,18 +39,220 @@ class WebhookWatchStarted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWatchStarted) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) -__all__ = ("WebhookWatchStarted",) +__all__ = ( + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py index eaef4e292..a17eb7573 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,48 +19,236 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0531 import WebhooksTeam1 -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" +class WebhookTeamCreated(GitHubModel): + """team created event""" + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: str = Field() + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository + A git repository + """ -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py index 5898beb96..f22604856 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0252 import Deployment -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0531 import WebhooksTeam1 -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" - action: Literal["completed"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,95 +39,218 @@ class WebhookWorkflowJobCompleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET ) - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py index d743e6974..84e514796 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py @@ -9,87 +9,351 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0531 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamEdited(GitHubModel): + """team edited event""" + + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", ) - url: str = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" + ) + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookTeamEdited) +model_rebuild(WebhookTeamEditedPropRepository) +model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) +model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) +model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChanges) +model_rebuild(WebhookTeamEditedPropChangesPropDescription) +model_rebuild(WebhookTeamEditedPropChangesPropName) +model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) +model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) +model_rebuild(WebhookTeamEditedPropChangesPropRepository) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamEdited", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py b/githubkit/versions/ghec_v2022_11_28/models/group_0876.py index 13bbf03d1..e5a053d21 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0876.py @@ -9,69 +9,250 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0531 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." - ) - head_sha: Missing[str] = Field(default=UNSET) + +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: Missing[ - list[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py index e76b48f46..e68e10044 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0252 import Deployment -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" +class WebhookWatchStarted(GitHubModel): + """watch started event""" - action: Literal["in_progress"] = Field() + action: Literal["started"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,79 +48,8 @@ class WebhookWorkflowJobInProgress(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() - ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." - ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() - url: str = Field() - - -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookWatchStarted) -__all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", -) +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py index adebeded4..0c4bbfda1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py @@ -9,78 +9,57 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch event""" - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ref: str = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() - + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py index b4d62dfca..13bdedb1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py @@ -17,58 +17,117 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0256 import Deployment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks + + +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - url: Missing[str] = Field(default=UNSET) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() + url: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py index 613780e62..d743e6974 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py @@ -9,84 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0252 import Deployment -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" - - action: Literal["queued"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ check_run_url: str = Field() completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] = Field() created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - labels: list[str] = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) name: str = Field() node_id: str = Field() run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) head_branch: Union[str, None] = Field(description="The name of the current branch.") workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( + Field() + ) url: str = Field() -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): """Workflow Step""" completed_at: Union[str, None] = Field() @@ -96,15 +83,13 @@ class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py index bdd3ff353..13bbf03d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,95 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0252 import Deployment -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks - -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" - - action: Literal["waiting"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" + + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[str] = Field(default=UNSET) + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - + steps: Missing[ + list[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() - ) +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py index 376846365..500ba9535 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0484 import WebhooksWorkflow +from .group_0256 import Deployment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" - action: Literal["completed"] = Field() + action: Literal["in_progress"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,456 +49,79 @@ class WebhookWorkflowRunCompleted(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( - title="Workflow Run" + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", ) -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: Missing[str] = Field( - default=UNSET, - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py index 8e18fdfcb..adebeded4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py @@ -9,486 +9,78 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0484 import WebhooksWorkflow +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" - - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( + Field() ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py index 3d5959ed7..b4d62dfca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,485 +17,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0474 import EnterpriseWebhooks -from .group_0475 import SimpleInstallation -from .group_0476 import OrganizationSimpleWebhooks -from .group_0477 import RepositoryWebhooks -from .group_0484 import WebhooksWorkflow +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" - - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[str]] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Literal["in_progress", "completed", "queued"] = Field() + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( Field() ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" - id: int = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookWorkflowRunRequested) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py index 2a022955e..fda7a3de7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,39 +19,92 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0008 import Enterprise -from .group_0009 import IntegrationPropPermissions +from .group_0256 import Deployment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" +class WebhookWorkflowJobQueued(GitHubModel): + """workflow_job queued event""" - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + action: Literal["queued"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - node_id: str = Field() - client_id: str = Field() - owner: Union[SimpleUser, Enterprise] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - events: list[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The number of installations associated with the GitHub app", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py index d16ddbf37..6d98f861c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py @@ -9,22 +9,104 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0256 import Deployment +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() + ) + + +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) + +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py index 079d8ad9e..3ed4c58c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,24 +18,488 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0489 import WebhooksWorkflow -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - content_type: Missing[str] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - secret: Missing[str] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppHookConfigPatchBody) +model_rebuild(WebhookWorkflowRunCompleted) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ( + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py index 406984575..f3f68a65a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py @@ -9,13 +9,486 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0489 import WebhooksWorkflow + + +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" + + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py index 90930f652..da6720b2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py @@ -9,33 +9,494 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0017 import AppPermissions +from .group_0003 import SimpleUser +from .group_0479 import EnterpriseWebhooks +from .group_0480 import SimpleInstallation +from .group_0481 import OrganizationSimpleWebhooks +from .group_0482 import RepositoryWebhooks +from .group_0489 import WebhooksWorkflow -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" - repositories: Missing[list[str]] = Field( + action: Literal["requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="List of repository names that the token should have access to", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."', ) - repository_ids: Missing[list[int]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="List of repository IDs that the token should have access to", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - permissions: Missing[AppPermissions] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py index 33e9e3dcc..3657b60e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py @@ -9,19 +9,51 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + node_id: str = Field() + client_id: str = Field() + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" + ) + events: list[str] = Field( + description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." + ) + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", ) + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py index 13773092a..d16ddbf37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." - ) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py index 585475cf4..079d8ad9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py @@ -9,19 +9,32 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(AppHookConfigPatchBody) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py index a2c5766c1..406984575 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py @@ -9,19 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" - - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." - ) +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py index 86bfc32e8..90930f652 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py @@ -18,27 +18,16 @@ from .group_0017 import AppPermissions -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." - ) - target: Missing[str] = Field( - default=UNSET, - description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", - ) - target_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", - ) repositories: Missing[list[str]] = Field( default=UNSET, - description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + description="List of repository names that the token should have access to", ) repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + description="List of repository IDs that the token should have access to", ) permissions: Missing[AppPermissions] = Field( default=UNSET, @@ -47,6 +36,6 @@ class ApplicationsClientIdTokenScopedPostBody(GitHubModel): ) -model_rebuild(ApplicationsClientIdTokenScopedPostBody) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py index b92fcfb34..33e9e3dcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py @@ -11,19 +11,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class CredentialsRevokePostBody(GitHubModel): - """CredentialsRevokePostBody""" +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" - credentials: list[str] = Field( - max_length=1000 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="A list of credentials to be revoked, up to 1000 per request.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(CredentialsRevokePostBody) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ("CredentialsRevokePostBody",) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0896.py b/githubkit/versions/ghec_v2022_11_28/models/group_0896.py index 152fcb757..13773092a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0896.py @@ -9,13 +9,19 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" -model_rebuild(EmojisGetResponse200) + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." + ) -__all__ = ("EmojisGetResponse200",) + +model_rebuild(ApplicationsClientIdTokenPostBody) + +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py index 5e18b232e..585475cf4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0031 import ActionsHostedRunner +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" -class EnterprisesEnterpriseActionsHostedRunnersGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." + ) - total_count: int = Field() - runners: list[ActionsHostedRunner] = Field() +model_rebuild(ApplicationsClientIdTokenDeleteBody) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py index b53e297d4..a2c5766c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py @@ -9,59 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class EnterprisesEnterpriseActionsHostedRunnersPostBody(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersPostBody""" - - name: str = Field( - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." - ) - image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage = Field( - description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." - ) - size: str = Field( - description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" - ) - runner_group_id: int = Field( - description="The existing runner group to add this runner to." - ) - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", - ) - enable_static_ip: Missing[bool] = Field( - default=UNSET, - description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", - ) - -class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" - id: Missing[str] = Field( - default=UNSET, description="The unique identifier of the runner image." - ) - source: Missing[Literal["github", "partner", "custom"]] = Field( - default=UNSET, description="The source of the runner image." + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBody) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ( - "EnterprisesEnterpriseActionsHostedRunnersPostBody", - "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", -) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py index 05553deae..86bfc32e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py @@ -12,19 +12,41 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0032 import ActionsHostedRunnerImage - - -class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" - - total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() - - -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0017 import AppPermissions + + +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" + + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." + ) + target: Missing[str] = Field( + default=UNSET, + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", + ) + target_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + ) + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", + ) + + +model_rebuild(ApplicationsClientIdTokenScopedPostBody) + +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py index 419602af1..b92fcfb34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py @@ -11,18 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0032 import ActionsHostedRunnerImage +class CredentialsRevokePostBody(GitHubModel): + """CredentialsRevokePostBody""" -class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" + credentials: list[str] = Field( + max_length=1000 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="A list of credentials to be revoked, up to 1000 per request.", + ) - total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() +model_rebuild(CredentialsRevokePostBody) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200",) +__all__ = ("CredentialsRevokePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py index 50ac5a63e..152fcb757 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py @@ -9,20 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import GitHubModel, model_rebuild -from .group_0030 import ActionsHostedRunnerMachineSpec +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" +model_rebuild(EmojisGetResponse200) - total_count: int = Field() - machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() - - -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200",) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py index 9f79be98b..5e18b232e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py @@ -13,14 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0031 import ActionsHostedRunner -class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" + +class EnterprisesEnterpriseActionsHostedRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" total_count: int = Field() - platforms: list[str] = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0903.py b/githubkit/versions/ghec_v2022_11_28/models/group_0903.py index 96996b89a..b53e297d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0903.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,20 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): - """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" +class EnterprisesEnterpriseActionsHostedRunnersPostBody(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPostBody""" - name: Missing[str] = Field( - default=UNSET, - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." ) - runner_group_id: Missing[int] = Field( - default=UNSET, description="The existing runner group to add this runner to." + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." ) maximum_runners: Missing[int] = Field( default=UNSET, @@ -32,10 +39,29 @@ class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody(GitHubMod ) enable_static_ip: Missing[bool] = Field( default=UNSET, - description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) + + +class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage + + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." ) -model_rebuild(EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBody) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage) -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody",) +__all__ = ( + "EnterprisesEnterpriseActionsHostedRunnersPostBody", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py index 2f0e6146f..05553deae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py @@ -9,27 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0032 import ActionsHostedRunnerImage -class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsPutBody""" +class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" - enabled_organizations: Literal["all", "none", "selected"] = Field( - description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py index 06a7c0feb..419602af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0036 import OrganizationSimple +from .group_0032 import ActionsHostedRunnerImage -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" - total_count: float = Field() - organizations: list[OrganizationSimple] = Field() + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py index 1025d71f1..50ac5a63e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0030 import ActionsHostedRunnerMachineSpec -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" - selected_organization_ids: list[int] = Field( - description="List of organization IDs to enable for GitHub Actions." - ) +class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" + total_count: int = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py index e550b1314..9f79be98b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py @@ -12,50 +12,15 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - - total_count: float = Field() - runner_groups: list[RunnerGroupsEnterprise] = Field() - - -class RunnerGroupsEnterprise(GitHubModel): - """RunnerGroupsEnterprise""" - - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_organizations_url: Missing[str] = Field(default=UNSET) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - network_configuration_id: Missing[str] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - - -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsEnterprise) - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", - "RunnerGroupsEnterprise", -) + + +class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" + + total_count: int = Field() + platforms: list[str] = Field() + + +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py index 5e59c6951..96996b89a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,39 +16,26 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all organizations or select individual organization.", - ) - selected_organization_ids: Missing[list[int]] = Field( + name: Missing[str] = Field( default=UNSET, - description="List of organization IDs that can access the runner group.", - ) - runners: Missing[list[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + runner_group_id: Missing[int] = Field( + default=UNSET, description="The existing runner group to add this runner to." ) - selected_workflows: Missing[list[str]] = Field( + maximum_runners: Missing[int] = Field( default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", ) - network_configuration_id: Missing[str] = Field( + enable_static_ip: Missing[bool] = Field( default=UNSET, - description="The identifier of a hosted compute network configuration.", + description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) +model_rebuild(EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py index 628671205..2f0e6146f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,32 +18,18 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" +class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsPutBody""" - name: Missing[str] = Field(default=UNSET, description="Name of the runner group.") - visibility: Missing[Literal["selected", "all"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all organizations or select individual organizations.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + enabled_organizations: Literal["all", "none", "selected"] = Field( + description="The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions." ) - network_configuration_id: Missing[Union[str, None]] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="The identifier of a hosted compute network configuration.", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) +model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py index 76aa728f2..06a7c0feb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py @@ -16,19 +16,13 @@ from .group_0036 import OrganizationSimple -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" total_count: float = Field() organizations: list[OrganizationSimple] = Field() -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 -) +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", -) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py index 34f034b51..1025d71f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py @@ -14,16 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" selected_organization_ids: list[int] = Field( - description="List of organization IDs that can access the runner group." + description="List of organization IDs to enable for GitHub Actions." ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py index 4751b0e30..e550b1314 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py @@ -12,23 +12,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0041 import Runner - -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" total_count: float = Field() - runners: list[Runner] = Field() - - -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 -) + runner_groups: list[RunnerGroupsEnterprise] = Field() + + +class RunnerGroupsEnterprise(GitHubModel): + """RunnerGroupsEnterprise""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_organizations_url: Missing[str] = Field(default=UNSET) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + + +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsEnterprise) __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", + "RunnerGroupsEnterprise", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py index c5005fa9d..5e59c6951 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py @@ -9,19 +9,48 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all organizations or select individual organization.", + ) + selected_organization_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of organization IDs that can access the runner group.", + ) + runners: Missing[list[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py b/githubkit/versions/ghec_v2022_11_28/models/group_0914.py index 42ed3cde9..628671205 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0914.py @@ -9,22 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0041 import Runner - - -class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" - - total_count: Missing[float] = Field(default=UNSET) - runners: Missing[list[Runner]] = Field(default=UNSET) - - -model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all organizations or select individual organizations.", + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[Union[str, None]] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + + +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) + +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py index 734cf9ee8..76aa728f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py @@ -11,29 +11,24 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0036 import OrganizationSimple -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + total_count: float = Field() + organizations: list[OrganizationSimple] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 +) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py index 38753538e..34f034b51 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py @@ -13,20 +13,17 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0041 import Runner +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" - - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" - ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." + selected_organization_ids: list[int] = Field( + description="List of organization IDs that can access the runner group." ) -model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py index c41f2ae70..4751b0e30 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py @@ -13,16 +13,22 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0040 import RunnerLabel +from .group_0041 import Runner -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: int = Field() - labels: list[RunnerLabel] = Field() + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 +) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0918.py b/githubkit/versions/ghec_v2022_11_28/models/group_0918.py index 154a08888..c5005fa9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0918.py @@ -11,18 +11,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." ) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py index 222d888ed..42ed3cde9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py @@ -11,19 +11,20 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0041 import Runner -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" + total_count: Missing[float] = Field(default=UNSET) + runners: Missing[list[Runner]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py index 28ab5bcf9..734cf9ee8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py @@ -11,18 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0040 import RunnerLabel +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", + ) - total_count: int = Field() - labels: list[RunnerLabel] = Field() +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py index 56bb9bc96..38753538e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py @@ -9,50 +9,24 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0049 import ( - AmazonS3AccessKeysConfig, - AzureBlobConfig, - AzureHubConfig, - DatadogConfig, - HecConfig, -) -from .group_0050 import AmazonS3OidcConfig, SplunkConfig -from .group_0051 import GoogleCloudConfig - - -class EnterprisesEnterpriseAuditLogStreamsPostBody(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsPostBody""" - - enabled: bool = Field(description="This setting pauses or resumes a stream.") - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] = Field( - description="The audit log streaming provider. The name is case sensitive." +from .group_0041 import Runner + + +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" + ) + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) - vendor_specific: Union[ - AzureBlobConfig, - AzureHubConfig, - AmazonS3OidcConfig, - AmazonS3AccessKeysConfig, - SplunkConfig, - HecConfig, - GoogleCloudConfig, - DatadogConfig, - ] = Field() -model_rebuild(EnterprisesEnterpriseAuditLogStreamsPostBody) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py index eb8cbbb70..c41f2ae70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py @@ -9,50 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0049 import ( - AmazonS3AccessKeysConfig, - AzureBlobConfig, - AzureHubConfig, - DatadogConfig, - HecConfig, -) -from .group_0050 import AmazonS3OidcConfig, SplunkConfig -from .group_0051 import GoogleCloudConfig - - -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" - - enabled: bool = Field(description="This setting pauses or resumes a stream.") - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] = Field( - description="The audit log streaming provider. The name is case sensitive." - ) - vendor_specific: Union[ - AzureBlobConfig, - AzureHubConfig, - AmazonS3OidcConfig, - AmazonS3AccessKeysConfig, - SplunkConfig, - HecConfig, - GoogleCloudConfig, - DatadogConfig, - ] = Field() - - -model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody) - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",) +from .group_0040 import RunnerLabel + + +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + + total_count: int = Field() + labels: list[RunnerLabel] = Field() + + +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py index 7d7c33f16..154a08888 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py @@ -11,17 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422(GitHubModel): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" - errors: Missing[list[str]] = Field(default=UNSET) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) -model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py b/githubkit/versions/ghec_v2022_11_28/models/group_0924.py index 44749ade7..222d888ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0924.py @@ -11,19 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", + ) -model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py b/githubkit/versions/ghec_v2022_11_28/models/group_0925.py index 69abfa6e3..28ab5bcf9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0925.py @@ -9,136 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0061 import CodeScanningDefaultSetupOptions - - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" - - name: str = Field( - description="The name of the code security configuration. Must be unique within the enterprise." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) +from .group_0040 import RunnerLabel -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - Feature options for Automatic dependency submission - """ +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py index 8d8887175..56bb9bc96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py @@ -14,136 +14,45 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0061 import CodeScanningDefaultSetupOptions +from .group_0049 import ( + AmazonS3AccessKeysConfig, + AzureBlobConfig, + AzureHubConfig, + DatadogConfig, + HecConfig, +) +from .group_0050 import AmazonS3OidcConfig, SplunkConfig +from .group_0051 import GoogleCloudConfig -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" +class EnterprisesEnterpriseAuditLogStreamsPostBody(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsPostBody""" - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique across the enterprise.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] + enabled: bool = Field(description="This setting pauses or resumes a stream.") + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", + description="The audit log streaming provider. The name is case sensitive." ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - + vendor_specific: Union[ + AzureBlobConfig, + AzureHubConfig, + AmazonS3OidcConfig, + AmazonS3AccessKeysConfig, + SplunkConfig, + HecConfig, + GoogleCloudConfig, + DatadogConfig, + ] = Field() -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) +model_rebuild(EnterprisesEnterpriseAuditLogStreamsPostBody) - -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py index e3ab1c255..eb8cbbb70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py @@ -9,27 +9,50 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - - scope: Literal["all", "all_without_configurations"] = Field( - description="The type of repositories to attach the configuration to." +from .group_0049 import ( + AmazonS3AccessKeysConfig, + AzureBlobConfig, + AzureHubConfig, + DatadogConfig, + HecConfig, +) +from .group_0050 import AmazonS3OidcConfig, SplunkConfig +from .group_0051 import GoogleCloudConfig + + +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" + + enabled: bool = Field(description="This setting pauses or resumes a stream.") + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] = Field( + description="The audit log streaming provider. The name is case sensitive." ) + vendor_specific: Union[ + AzureBlobConfig, + AzureHubConfig, + AmazonS3OidcConfig, + AmazonS3AccessKeysConfig, + SplunkConfig, + HecConfig, + GoogleCloudConfig, + DatadogConfig, + ] = Field() -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody -) +model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py b/githubkit/versions/ghec_v2022_11_28/models/group_0928.py index d990f81b8..7d7c33f16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0928.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,23 +16,12 @@ from githubkit.utils import UNSET -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422(GitHubModel): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", - ) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody -) +model_rebuild(EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py index 8b30ae1f2..44749ade7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py @@ -9,39 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0060 import CodeSecurityConfiguration - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specifies which types of repository this security configuration is applied to by default.", - ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 -) +model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", -) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py b/githubkit/versions/ghec_v2022_11_28/models/group_0930.py index 70b92e1f5..69abfa6e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0930.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,42 +17,128 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0061 import CodeScanningDefaultSetupOptions -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the enterprise." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" ) - advanced_security_enabled_new_user_namespace_repos: Missing[bool] = Field( + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new user namespace repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description='Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "[About Dependabot alerts](https://docs.github.com/enterprise-cloud@latest//code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."', + description="The enablement status of secret scanning push protection", ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories. For more information, see "[About secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/about-secret-scanning)."', + description="The enablement status of secret scanning validity checks", ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description='The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."\nTo disable this functionality, set this field to `null`.', + description="The enablement status of secret scanning delegated alert dismissal", ) - secret_scanning_non_provider_patterns_enabled_for_new_repositories: Missing[ - Union[bool, None] + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] ] = Field( default=UNSET, - description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", ) -model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py index dbd0faff7..8d8887175 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py @@ -9,25 +9,141 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0068 import CopilotSeatDetails +from .group_0061 import CodeScanningDefaultSetupOptions + + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique across the enterprise.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions -class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): - """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" + Feature options for Automatic dependency submission + """ - total_seats: Missing[int] = Field( + labeled_runners: Missing[bool] = Field( default=UNSET, - description="The total number of Copilot seats the enterprise is being billed for. Users with access through multiple organizations or enterprise teams are only counted once.", + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) -__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py index 476090c0b..e3ab1c255 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py @@ -9,20 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import NetworkConfiguration - -class EnterprisesEnterpriseNetworkConfigurationsGetResponse200(GitHubModel): - """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - total_count: int = Field() - network_configurations: list[NetworkConfiguration] = Field() + scope: Literal["all", "all_without_configurations"] = Field( + description="The type of repositories to attach the configuration to." + ) -model_rebuild(EnterprisesEnterpriseNetworkConfigurationsGetResponse200) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody +) -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py index 5ea5ada2b..d990f81b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py @@ -13,28 +13,28 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class EnterprisesEnterpriseNetworkConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseNetworkConfigurationsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - name: str = Field( - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, `.`, `-`, and `_`." - ) - compute_service: Missing[Literal["none", "actions"]] = Field( + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( default=UNSET, - description="The hosted compute service to use for the network configuration.", - ) - network_settings_ids: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(EnterprisesEnterpriseNetworkConfigurationsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody +) -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py index 86c037245..8b30ae1f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py @@ -13,31 +13,35 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0060 import CodeSecurityConfiguration -class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody( + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( GitHubModel ): - """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ - name: Missing[str] = Field( - default=UNSET, - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, `.`, `-`, and `_`.", - ) - compute_service: Missing[Literal["none", "actions"]] = Field( + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( default=UNSET, - description="The hosted compute service to use for the network configuration.", + description="Specifies which types of repository this security configuration is applied to by default.", ) - network_settings_ids: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 +) -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py index ba9a8848d..70b92e1f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py @@ -9,23 +9,50 @@ from __future__ import annotations -from pydantic import Field +from typing import Union -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from pydantic import Field -from .group_0078 import CustomProperty +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class EnterprisesEnterprisePropertiesSchemaPatchBody(GitHubModel): - """EnterprisesEnterprisePropertiesSchemaPatchBody""" +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - properties: list[CustomProperty] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The array of custom properties to create or update.", + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether GitHub Advanced Security is automatically enabled for new repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', + ) + advanced_security_enabled_new_user_namespace_repos: Missing[bool] = Field( + default=UNSET, + description='Whether GitHub Advanced Security is automatically enabled for new user namespace repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "[About Dependabot alerts](https://docs.github.com/enterprise-cloud@latest//code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning is automatically enabled for new repositories. For more information, see "[About secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/about-secret-scanning)."', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + default=UNSET, + description='The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."\nTo disable this functionality, set this field to `null`.', + ) + secret_scanning_non_provider_patterns_enabled_for_new_repositories: Missing[ + Union[bool, None] + ] = Field( + default=UNSET, + description="Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", ) -model_rebuild(EnterprisesEnterprisePropertiesSchemaPatchBody) +model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) -__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBody",) +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py index f3804e1d0..dbd0faff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py @@ -9,99 +9,25 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0080 import RepositoryRulesetBypassActor -from .group_0091 import EnterpriseRulesetConditionsOneof0 -from .group_0092 import EnterpriseRulesetConditionsOneof1 -from .group_0093 import EnterpriseRulesetConditionsOneof2 -from .group_0094 import EnterpriseRulesetConditionsOneof3 -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning +from .group_0068 import CopilotSeatDetails -class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): - """EnterprisesEnterpriseRulesetsPostBody""" +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - EnterpriseRulesetConditionsOneof0, - EnterpriseRulesetConditionsOneof1, - EnterpriseRulesetConditionsOneof2, - EnterpriseRulesetConditionsOneof3, - ] - ] = Field( + total_seats: Missing[int] = Field( default=UNSET, - title="Enterprise ruleset conditions", - description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", + description="The total number of Copilot seats the enterprise is being billed for. Users with access through multiple organizations or enterprise teams are only counted once.", ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseRulesetsPostBody) +model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) -__all__ = ("EnterprisesEnterpriseRulesetsPostBody",) +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py index 264feabe5..600a76144 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py @@ -9,100 +9,25 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0080 import RepositoryRulesetBypassActor -from .group_0091 import EnterpriseRulesetConditionsOneof0 -from .group_0092 import EnterpriseRulesetConditionsOneof1 -from .group_0093 import EnterpriseRulesetConditionsOneof2 -from .group_0094 import EnterpriseRulesetConditionsOneof3 -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning +from .group_0068 import CopilotSeatDetails -class EnterprisesEnterpriseRulesetsRulesetIdPutBody(GitHubModel): - """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" +class EnterprisesEnterpriseMembersUsernameCopilotGetResponse200(GitHubModel): + """EnterprisesEnterpriseMembersUsernameCopilotGetResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - EnterpriseRulesetConditionsOneof0, - EnterpriseRulesetConditionsOneof1, - EnterpriseRulesetConditionsOneof2, - EnterpriseRulesetConditionsOneof3, - ] - ] = Field( + total_seats: Missing[int] = Field( default=UNSET, - title="Enterprise ruleset conditions", - description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", + description="The total number of Copilot seats the enterprise is being billed for. Users with access through enterprise, enterprise teams or multiple organizations are only counted once.", ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseRulesetsRulesetIdPutBody) +model_rebuild(EnterprisesEnterpriseMembersUsernameCopilotGetResponse200) -__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",) +__all__ = ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py index 868a4d46c..476090c0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py @@ -12,25 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0076 import NetworkConfiguration -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - users: Missing[list[str]] = Field( - default=UNSET, - description="The usernames of the users to add to the cost center.", - ) +class EnterprisesEnterpriseNetworkConfigurationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody -) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", -) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsGetResponse200) + +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py index 74ff17176..5ea5ada2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py @@ -9,27 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ +class EnterprisesEnterpriseNetworkConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseNetworkConfigurationsPostBody""" - message: Missing[str] = Field(default=UNSET) + name: str = Field( + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, `.`, `-`, and `_`." + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + ) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 -) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsPostBody) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", -) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py index 223f31b01..86c037245 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py @@ -9,28 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( +class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody( GitHubModel ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" + """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - users: Missing[list[str]] = Field( + name: Missing[str] = Field( + default=UNSET, + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, `.`, `-`, and `_`.", + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The usernames of the users to remove from the cost center.", + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", ) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody -) +model_rebuild(EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", -) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py index 064f62dd7..ba9a8848d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py @@ -11,25 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0078 import CustomProperty -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ - message: Missing[str] = Field(default=UNSET) +class EnterprisesEnterprisePropertiesSchemaPatchBody(GitHubModel): + """EnterprisesEnterprisePropertiesSchemaPatchBody""" + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", + ) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 -) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", -) +model_rebuild(EnterprisesEnterprisePropertiesSchemaPatchBody) + +__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0942.py b/githubkit/versions/ghec_v2022_11_28/models/group_0942.py index 199114879..f3804e1d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0942.py @@ -13,37 +13,95 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class GistsPostBody(GitHubModel): - """GistsPostBody""" - - description: Missing[str] = Field( - default=UNSET, description="Description of the gist" +from .group_0080 import RepositoryRulesetBypassActor +from .group_0091 import EnterpriseRulesetConditionsOneof0 +from .group_0092 import EnterpriseRulesetConditionsOneof1 +from .group_0093 import EnterpriseRulesetConditionsOneof2 +from .group_0094 import EnterpriseRulesetConditionsOneof3 +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning + + +class EnterprisesEnterpriseRulesetsPostBody(GitHubModel): + """EnterprisesEnterpriseRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - - -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles - - Names and content for the files that make up the gist - - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ - - -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) - -__all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", -) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + EnterpriseRulesetConditionsOneof0, + EnterpriseRulesetConditionsOneof1, + EnterpriseRulesetConditionsOneof2, + EnterpriseRulesetConditionsOneof3, + ] + ] = Field( + default=UNSET, + title="Enterprise ruleset conditions", + description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(EnterprisesEnterpriseRulesetsPostBody) + +__all__ = ("EnterprisesEnterpriseRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py index 3d4986472..264feabe5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,27 +17,92 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" - - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" - - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) - -__all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", +from .group_0080 import RepositoryRulesetBypassActor +from .group_0091 import EnterpriseRulesetConditionsOneof0 +from .group_0092 import EnterpriseRulesetConditionsOneof1 +from .group_0093 import EnterpriseRulesetConditionsOneof2 +from .group_0094 import EnterpriseRulesetConditionsOneof3 +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, ) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning + + +class EnterprisesEnterpriseRulesetsRulesetIdPutBody(GitHubModel): + """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + EnterpriseRulesetConditionsOneof0, + EnterpriseRulesetConditionsOneof1, + EnterpriseRulesetConditionsOneof2, + EnterpriseRulesetConditionsOneof3, + ] + ] = Field( + default=UNSET, + title="Enterprise ruleset conditions", + description="Conditions for an enterprise ruleset. The conditions object should contain either the `organization_id` or `organization_name` property and the `repository_name` or `repository_property` property. For branch and tag rulesets, the conditions object should also contain the `ref_name` property.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(EnterprisesEnterpriseRulesetsRulesetIdPutBody) + +__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py index 4c7da0217..868a4d46c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py @@ -11,44 +11,26 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - description: Missing[str] = Field( - default=UNSET, description="The description of the gist." - ) - files: Missing[GistsGistIdPatchBodyPropFiles] = Field( + users: Missing[list[str]] = Field( default=UNSET, - description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", + description="The usernames of the users to add to the cost center.", ) -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ - - -model_rebuild(GistsGistIdPatchBody) -model_rebuild(GistsGistIdPatchBodyPropFiles) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody +) __all__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py index 4da522baf..74ff17176 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py @@ -12,14 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ - body: str = Field(max_length=65535, description="The comment text.") + message: Missing[str] = Field(default=UNSET) -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 +) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py index 6b63828a9..223f31b01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py @@ -12,14 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - body: str = Field(max_length=65535, description="The comment text.") + users: Missing[list[str]] = Field( + default=UNSET, + description="The usernames of the users to remove from the cost center.", + ) -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody +) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py b/githubkit/versions/ghec_v2022_11_28/models/group_0947.py index c642ead3b..064f62dd7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0947.py @@ -9,13 +9,27 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" + message: Missing[str] = Field(default=UNSET) -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 +) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py index 31a724d8d..199114879 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py @@ -9,23 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0020 import Repository +class GistsPostBody(GitHubModel): + """GistsPostBody""" + + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" + ) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" + ) + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) + + +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" + Names and content for the files that make up the gist - total_count: int = Field() - repositories: list[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ -model_rebuild(InstallationRepositoriesGetResponse200) +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ( + "GistsPostBody", + "GistsPostBodyPropFiles", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py index d2f8fe721..3d4986472 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,19 +18,26 @@ from githubkit.utils import UNSET -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" - text: str = Field(description="The Markdown text to render in HTML.") - mode: Missing[Literal["markdown", "gfm"]] = Field( - default=UNSET, description="The rendering mode." - ) - context: Missing[str] = Field( - default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", - ) + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(MarkdownPostBody) +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" -__all__ = ("MarkdownPostBody",) + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) + +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py index a88d20422..4c7da0217 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py @@ -9,27 +9,46 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + description: Missing[str] = Field( + default=UNSET, description="The description of the gist." ) - read: Missing[bool] = Field( - default=UNSET, description="Whether the notification has been read." + files: Missing[GistsGistIdPatchBodyPropFiles] = Field( + default=UNSET, + description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", ) -model_rebuild(NotificationsPutBody) +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles + + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. + + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. + + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ + + +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) -__all__ = ("NotificationsPutBody",) +__all__ = ( + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py index 671e9e3a2..4da522baf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py @@ -12,16 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - message: Missing[str] = Field(default=UNSET) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(NotificationsPutResponse202) +model_rebuild(GistsGistIdCommentsPostBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("GistsGistIdCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py index 0d1f3d378..6b63828a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py @@ -12,18 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." - ) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py index 0c55facb9..c642ead3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py @@ -9,24 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0171 import OrganizationCustomRepositoryRole - -class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" - ) - custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) +__all__ = ("GistsGistIdStarGetResponse404",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py index b8e82fcda..31a724d8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py @@ -9,136 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0020 import Repository + -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, - description="The description of the company. The maximum size is 160 characters.", - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_private_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_public_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] - ] = Field( - default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", - ) - members_can_create_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_public_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_private_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_fork_private_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can fork private organization repositories.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", - ) - blog: Missing[str] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[str] = Field( - default=UNSET, - description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", - ) - secret_scanning_validity_checks_enabled: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", - ) - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", - ) + total_count: int = Field() + repositories: list[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPatchBody) +model_rebuild(InstallationRepositoriesGetResponse200) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ("InstallationRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py index 83117a7e2..d2f8fe721 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py @@ -9,39 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - - total_count: int = Field() - repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() - +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ - - full_name: str = Field( - description="The repository owner and name for the cache usage being shown." - ) - active_caches_size_in_bytes: int = Field( - description="The sum of the size in bytes of all the active cache items in the repository." + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." ) - active_caches_count: int = Field( - description="The number of active caches in the repository." + context: Missing[str] = Field( + default=UNSET, + description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", ) -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(MarkdownPostBody) -__all__ = ( - "ActionsCacheUsageByRepository", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", -) +__all__ = ("MarkdownPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py index 0a765645b..a88d20422 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py @@ -9,20 +9,27 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0031 import ActionsHostedRunner +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersGetResponse200""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - total_count: int = Field() - runners: list[ActionsHostedRunner] = Field() + last_read_at: Missing[datetime] = Field( + default=UNSET, + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + ) + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." + ) -model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) +model_rebuild(NotificationsPutBody) -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) +__all__ = ("NotificationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py index 1517fb1db..671e9e3a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,50 +16,12 @@ from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBody""" - - name: str = Field( - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." - ) - image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( - description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." - ) - size: str = Field( - description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" - ) - runner_group_id: int = Field( - description="The existing runner group to add this runner to." - ) - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", - ) - enable_static_ip: Missing[bool] = Field( - default=UNSET, - description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", - ) - - -class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - id: Missing[str] = Field( - default=UNSET, description="The unique identifier of the runner image." - ) - source: Missing[Literal["github", "partner", "custom"]] = Field( - default=UNSET, description="The source of the runner image." - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsHostedRunnersPostBody) -model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) +model_rebuild(NotificationsPutResponse202) -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBody", - "OrgsOrgActionsHostedRunnersPostBodyPropImage", -) +__all__ = ("NotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py index 0a433f7b2..0d1f3d378 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0032 import ActionsHostedRunnerImage +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." + ) - total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) - -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py index 77ba74660..4e4993f45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py @@ -12,17 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0032 import ActionsHostedRunnerImage +from .group_0174 import OrganizationCustomRepositoryRole -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" +class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" - total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" + ) + custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) +model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py index 6934fa162..03057a804 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py @@ -12,17 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0030 import ActionsHostedRunnerMachineSpec +class OrganizationsOrgDependabotRepositoryAccessPatchBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessPatchBody -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ - total_count: int = Field() - machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() + repository_ids_to_add: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to add." + ) + repository_ids_to_remove: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to remove." + ) -model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessPatchBody) -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py index 1a2bc561d..8e801b382 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py @@ -9,18 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - total_count: int = Field() - platforms: list[str] = Field() + default_level: Literal["public", "internal"] = Field( + description="The default repository access level for Dependabot updates." + ) -model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody) -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py index 281f91f96..b8e82fcda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,26 +18,127 @@ from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" + billing_email: Missing[str] = Field( + default=UNSET, + description="Billing email address. This address is not publicized.", + ) + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." + ) + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." + ) + location: Missing[str] = Field(default=UNSET, description="The location.") name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( + default=UNSET, + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", + ) + members_can_create_pages: Missing[bool] = Field( default=UNSET, - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", ) - runner_group_id: Missing[int] = Field( - default=UNSET, description="The existing runner group to add this runner to." + members_can_create_public_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_private_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", + ) + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[str] = Field( + default=UNSET, + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", ) - maximum_runners: Missing[int] = Field( + secret_scanning_validity_checks_enabled: Missing[bool] = Field( default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.\n\nWhether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", ) - enable_static_ip: Missing[bool] = Field( + deploy_keys_enabled_for_repositories: Missing[bool] = Field( default=UNSET, - description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", ) -model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) +__all__ = ("OrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py index 5069b6316..83117a7e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py @@ -9,27 +9,39 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" + + total_count: int = Field() + repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() + - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." + ) + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + active_caches_count: int = Field( + description="The number of active caches in the repository." ) -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ( + "ActionsCacheUsageByRepository", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py index 422588e8f..0a765645b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0020 import Repository +from .group_0031 import ActionsHostedRunner -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" +class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersGetResponse200""" - total_count: float = Field() - repositories: list[Repository] = Field() + total_count: int = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py index a77afe01a..1517fb1db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py @@ -9,19 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBody""" + + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) + +class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBodyPropImage -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ - selected_repository_ids: list[int] = Field( - description="List of repository IDs to enable for GitHub Actions." + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." ) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0966.py b/githubkit/versions/ghec_v2022_11_28/models/group_0966.py index 269bdfc1b..0a433f7b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0966.py @@ -12,55 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0032 import ActionsHostedRunnerImage -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - total_count: float = Field() - runner_groups: list[RunnerGroupsOrg] = Field() +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -class RunnerGroupsOrg(GitHubModel): - """RunnerGroupsOrg""" - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", - ) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - network_configuration_id: Missing[str] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - inherited: bool = Field() - inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) +model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) - -model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) - -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py index 87ecde816..77ba74660 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py @@ -9,48 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="List of repository IDs that can access the runner group.", - ) - runners: Missing[list[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - network_configuration_id: Missing[str] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) + +from .group_0032 import ActionsHostedRunnerImage + + +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() + + +model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py index adc28b4f8..6934fa162 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py @@ -9,41 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - network_configuration_id: Missing[Union[str, None]] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) + +from .group_0030 import ActionsHostedRunnerMachineSpec + + +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" + + total_count: int = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() + + +model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) + +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py b/githubkit/versions/ghec_v2022_11_28/models/group_0969.py index 13bdeac01..1a2bc561d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0969.py @@ -13,16 +13,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0031 import ActionsHostedRunner +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + total_count: int = Field() + platforms: list[str] = Field() - total_count: float = Field() - runners: list[ActionsHostedRunner] = Field() +model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py index 49bab2f16..281f91f96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py @@ -12,17 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0168 import MinimalRepository +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + name: Missing[str] = Field( + default=UNSET, + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + runner_group_id: Missing[int] = Field( + default=UNSET, description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) - total_count: float = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py index 9316f516b..5069b6316 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py @@ -9,19 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs that can access the runner group." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py index 2f0ef345f..422588e8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0041 import Runner +from .group_0020 import Repository -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" total_count: float = Field() - runners: list[Runner] = Field() + repositories: list[Repository] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py index fdc59a741..a77afe01a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." + selected_repository_ids: list[int] = Field( + description="List of repository IDs to enable for GitHub Actions." ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py index 0248cc0dc..269bdfc1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py @@ -12,17 +12,55 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0041 import Runner +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" + total_count: float = Field() + runner_groups: list[RunnerGroupsOrg] = Field() - total_count: int = Field() - runners: list[Runner] = Field() +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" -model_rebuild(OrgsOrgActionsRunnersGetResponse200) + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + ) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) + +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py index f7baba749..87ecde816 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py @@ -9,31 +9,48 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of repository IDs that can access the runner group.", + ) + runners: Missing[list[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) - work_folder: Missing[str] = Field( + network_configuration_id: Missing[str] = Field( default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py index ad2f375a8..adc28b4f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py @@ -9,20 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[Union[str, None]] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py index f5caa1c57..13bdeac01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0031 import ActionsHostedRunner -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + total_count: float = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py index 80c1e6af7..d1788d8cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[OrganizationActionsSecret] = Field() +from .group_0171 import MinimalRepository -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization - Secrets for GitHub Actions for an organization. - """ +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + total_count: float = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) -__all__ = ( - "OrganizationActionsSecret", - "OrgsOrgActionsSecretsGetResponse200", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py index 7cafea718..9316f516b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py @@ -9,32 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + selected_repository_ids: list[int] = Field( + description="List of repository IDs that can access the runner group." ) -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py index 372760894..2f0ef345f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0168 import MinimalRepository +from .group_0041 import Runner -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py index 6c85f7a46..fdc59a741 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." ) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py index 77241a9f2..0248cc0dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py @@ -9,47 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" - - total_count: int = Field() - variables: list[OrganizationActionsVariable] = Field() +from .group_0041 import Runner -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization - Organization variable for GitHub Actions. - """ +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a variable" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) -__all__ = ( - "OrganizationActionsVariable", - "OrgsOrgActionsVariablesGetResponse200", -) +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py b/githubkit/versions/ghec_v2022_11_28/models/group_0983.py index 42955f682..f7baba749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0983.py @@ -9,29 +9,31 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - selected_repository_ids: Missing[list[int]] = Field( + work_folder: Missing[str] = Field( default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py index f229885c2..ad2f375a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py index f2446a322..f5caa1c57 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py @@ -11,18 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0168 import MinimalRepository +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", + ) - total_count: int = Field() - repositories: list[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py index 4c5d80233..80c1e6af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py @@ -9,19 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[OrganizationActionsSecret] = Field() + +class OrganizationActionsSecret(GitHubModel): + """Actions Secret for an Organization -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" + Secrets for GitHub Actions for an organization. + """ - selected_repository_ids: list[int] = Field( - description="The IDs of the repositories that can access the organization variable." + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ( + "OrganizationActionsSecret", + "OrgsOrgActionsSecretsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py b/githubkit/versions/ghec_v2022_11_28/models/group_0987.py index 6f5195042..7cafea718 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0987.py @@ -9,86 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" - - attestations: Missing[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" - bundle: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pVerificationMaterial - """ - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pDsseEnvelope - """ -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py index 9d7a74b47..77019d9b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py @@ -9,66 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgCampaignsPostBody(GitHubModel): - """OrgsOrgCampaignsPostBody""" +from githubkit.compat import GitHubModel, model_rebuild - name: str = Field( - min_length=1, max_length=50, description="The name of the campaign" - ) - description: str = Field( - min_length=1, max_length=255, description="A description for the campaign" - ) - managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", - ) - team_managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The slugs of the teams to set as the campaign managers.", - ) - ends_at: datetime = Field( - description="The end date and time of the campaign. The date must be in the future." - ) - contact_link: Missing[Union[str, None]] = Field( - default=UNSET, description="The contact link of the campaign. Must be a URI." - ) - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( - Field( - min_length=1 if PYDANTIC_V2 else None, - description="The code scanning alerts to include in this campaign", - ) - ) - generate_issues: Missing[bool] = Field( - default=UNSET, - description="If true, will automatically generate issues for the campaign. The default is false.", - ) +from .group_0171 import MinimalRepository -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" - repository_id: int = Field(description="The repository id") - alert_numbers: list[int] = Field( - min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCampaignsPostBody) -model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) -__all__ = ( - "OrgsOrgCampaignsPostBody", - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py index 8be946ada..6c85f7a46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py @@ -9,55 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): - """OrgsOrgCampaignsCampaignNumberPatchBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - name: Missing[str] = Field( - min_length=1, - max_length=50, - default=UNSET, - description="The name of the campaign", - ) - description: Missing[str] = Field( - min_length=1, - max_length=255, - default=UNSET, - description="A description for the campaign", - ) - managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", - ) - team_managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The slugs of the teams to set as the campaign managers.", - ) - ends_at: Missing[datetime] = Field( - default=UNSET, - description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - contact_link: Missing[Union[str, None]] = Field( - default=UNSET, description="The contact link of the campaign. Must be a URI." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - title="Campaign state", - description="Indicates whether a campaign is open or closed", + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgCampaignsCampaignNumberPatchBody) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py index 9bab42a4d..77241a9f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field @@ -17,182 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0061 import CodeScanningDefaultSetupOptions +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" -class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsPostBody""" + total_count: int = Field() + variables: list[OrganizationActionsVariable] = Field() - name: str = Field( - description="The name of the code security configuration. Must be unique within the organization." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission + Organization variable for GitHub Actions. """ - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a variable" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) __all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBody", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", + "OrganizationActionsVariable", + "OrgsOrgActionsVariablesGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py index 4bcc6720d..42955f682 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,20 @@ from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + ) selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="An array of repository IDs to detach from configurations.", + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) +__all__ = ("OrgsOrgActionsVariablesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py index 22d01795d..f229885c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,185 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0061 import CodeScanningDefaultSetupOptions +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + visibility: Missing[Literal["all", "private", "selected"]] = Field( default=UNSET, - description="The enablement status of secret scanning validity checks", + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py index 3e150ccc7..c8615db9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0171 import MinimalRepository -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] = Field( - description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py index b47755cb5..4c5d80233 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py @@ -9,26 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", + selected_repository_ids: list[int] = Field( + description="The IDs of the repositories that can access the organization variable." ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py b/githubkit/versions/ghec_v2022_11_28/models/group_0995.py index 46b932f1e..c7f4b426e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0995.py @@ -9,33 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0060 import CodeSecurityConfiguration - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" +class OrgsOrgAttestationsBulkListPostBody(GitHubModel): + """OrgsOrgAttestationsBulkListPostBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specifies which types of repository this security configuration is applied to by default.", + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests to fetch attestations for.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + predicate_type: Missing[str] = Field( + default=UNSET, + description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgAttestationsBulkListPostBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ("OrgsOrgAttestationsBulkListPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py index 683569a81..33ac34ff1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py @@ -11,18 +11,57 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0179 import Codespace +class OrgsOrgAttestationsBulkListPostResponse200(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200""" -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" + attestations_subject_digests: Missing[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") + page_info: Missing[OrgsOrgAttestationsBulkListPostResponse200PropPageInfo] = Field( + default=UNSET, description="Information about the current page." + ) - total_count: int = Field() - codespaces: list[Codespace] = Field() +class OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( + ExtraGitHubModel +): + """OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests -model_rebuild(OrgsOrgCodespacesGetResponse200) + Mapping of subject digest to bundles. + """ -__all__ = ("OrgsOrgCodespacesGetResponse200",) + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a next page." + ) + has_previous: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a previous page." + ) + next_: Missing[str] = Field( + default=UNSET, alias="next", description="The cursor to the next page." + ) + previous: Missing[str] = Field( + default=UNSET, description="The cursor to the previous page." + ) + + +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropPageInfo) + +__all__ = ( + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py index ed7cad665..6f5195042 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py @@ -9,33 +9,86 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", + bundle: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." - ) - selected_usernames: Missing[list[str]] = Field( - max_length=100 if PYDANTIC_V2 else None, default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pVerificationMaterial + """ + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pDsseEnvelope + """ -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py index 7ae93c749..9d7a74b47 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py @@ -9,20 +9,66 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgCampaignsPostBody(GitHubModel): + """OrgsOrgCampaignsPostBody""" + + name: str = Field( + min_length=1, max_length=50, description="The name of the campaign" + ) + description: str = Field( + min_length=1, max_length=255, description="A description for the campaign" + ) + managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + ) + team_managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the teams to set as the campaign managers.", + ) + ends_at: datetime = Field( + description="The end date and time of the campaign. The date must be in the future." + ) + contact_link: Missing[Union[str, None]] = Field( + default=UNSET, description="The contact link of the campaign. Must be a URI." + ) + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( + Field( + min_length=1 if PYDANTIC_V2 else None, + description="The code scanning alerts to include in this campaign", + ) + ) + generate_issues: Missing[bool] = Field( + default=UNSET, + description="If true, will automatically generate issues for the campaign. The default is false.", + ) -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces be billed to the organization.", + repository_id: int = Field(description="The repository id") + alert_numbers: list[int] = Field( + min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgCampaignsPostBody) +model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ( + "OrgsOrgCampaignsPostBody", + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py index 0c752f566..8be946ada 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py @@ -9,20 +9,55 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", + name: Missing[str] = Field( + min_length=1, + max_length=50, + default=UNSET, + description="The name of the campaign", + ) + description: Missing[str] = Field( + min_length=1, + max_length=255, + default=UNSET, + description="A description for the campaign", + ) + managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + ) + team_managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the teams to set as the campaign managers.", + ) + ends_at: Missing[datetime] = Field( + default=UNSET, + description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + contact_link: Missing[Union[str, None]] = Field( + default=UNSET, description="The contact link of the campaign. Must be a URI." + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + title="Campaign state", + description="Indicates whether a campaign is open or closed", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCampaignsCampaignNumberPatchBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py index 58a07d080..9bab42a4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,40 +17,182 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0061 import CodeScanningDefaultSetupOptions -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" - total_count: int = Field() - secrets: list[CodespacesOrgSecret] = Field() +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) -class CodespacesOrgSecret(GitHubModel): - """Codespaces Secret +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons - Secrets for a GitHub Codespace. + Feature options for Automatic dependency submission """ - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", ) - updated_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" ) - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="The API URL at which the list of repositories this secret is visible to can be retrieved", + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) __all__ = ( - "CodespacesOrgSecret", - "OrgsOrgCodespacesSecretsGetResponse200", + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py index e71b0039e..4bcc6720d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="An array of repository IDs to detach from configurations.", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py index 0585ac99e..22d01795d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py @@ -9,20 +9,193 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0061 import CodeScanningDefaultSetupOptions + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ -from .group_0168 import MinimalRepository + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" + ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py index f2bac9ddd..3e150ccc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py @@ -9,19 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] = Field( + description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py index a4dabc8c2..b47755cb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py @@ -9,25 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0068 import CopilotSeatDetails - -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - total_seats: Missing[int] = Field( + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + description="Specify which types of repository this security configuration should be applied to by default.", ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py b/githubkit/versions/ghec_v2022_11_28/models/group_1005.py index f9277a829..46b932f1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1005.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0060 import CodeSecurityConfiguration -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="List of team names within the organization to which to grant access to GitHub Copilot.", + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specifies which types of repository this security configuration is applied to by default.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py index 225617267..f5a5e5854 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0183 import Codespace -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - The total number of seats created for members of the specified team(s). - """ +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" - seats_created: int = Field() + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(OrgsOrgCodespacesGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py index 8f14a6e14..ed7cad665 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The names of teams from which to revoke access to GitHub Copilot.", + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] = Field( + description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." + ) + selected_usernames: Missing[list[str]] = Field( + max_length=100 if PYDANTIC_V2 else None, + default=UNSET, + description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py index 137e9507f..7ae93c749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_usernames: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces be billed to the organization.", + ) - seats_cancelled: int = Field() +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py index 6a10dd79f..0c752f566 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py @@ -14,15 +14,15 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members to be granted access to GitHub Copilot.", + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py index 83f481941..58a07d080 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py @@ -9,20 +9,49 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" - The total number of seats created for the specified user(s). - """ + total_count: int = Field() + secrets: list[CodespacesOrgSecret] = Field() - seats_created: int = Field() +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + Secrets for a GitHub Codespace. + """ -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL at which the list of repositories this secret is visible to can be retrieved", + ) + + +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) + +__all__ = ( + "CodespacesOrgSecret", + "OrgsOrgCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py index 270057c2e..e71b0039e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py @@ -9,20 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py index ac7addbd5..a1cc73124 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0171 import MinimalRepository -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - seats_cancelled: int = Field() + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py b/githubkit/versions/ghec_v2022_11_28/models/group_1013.py index 69f01739e..f2bac9ddd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1013.py @@ -12,21 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0171 import OrganizationCustomRepositoryRole +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): - """OrgsOrgCustomRepositoryRolesGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) - custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py index a96d49f72..a4dabc8c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py @@ -9,42 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0068 import CopilotSeatDetails -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[OrganizationDependabotSecret] = Field() - - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization - Secrets for GitHub Dependabot for an organization. - """ +class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): + """OrgsOrgCopilotBillingSeatsGetResponse200""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + total_seats: Missing[int] = Field( + default=UNSET, + description="Total number of Copilot seats for the organization currently being billed.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) -__all__ = ( - "OrganizationDependabotSecret", - "OrgsOrgDependabotSecretsGetResponse200", -) +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py index 83753c512..f9277a829 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[str]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + selected_teams: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py index f2067acae..225617267 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0168 import MinimalRepository +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + The total number of seats created for members of the specified team(s). + """ - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + seats_created: int = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py index 1d8e42f73..8f14a6e14 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py @@ -11,17 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + selected_teams: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The names of teams from which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py index f32e08d2a..137e9507f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py @@ -9,56 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" - - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." - ) - events: Missing[list[str]] = Field( - default=UNSET, - description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) -class OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - Key/value pairs to provide settings for this webhook. + The total number of seats set to "pending cancellation" for members of the + specified team(s). """ - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py index ddab845d4..6a10dd79f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py @@ -9,55 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - name: Missing[str] = Field(default=UNSET) +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members to be granted access to GitHub Copilot.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py index 737eb45c6..83f481941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py @@ -9,32 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seats created for the specified user(s). + """ - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + seats_created: int = Field() -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1021.py b/githubkit/versions/ghec_v2022_11_28/models/group_1021.py index cd6df6a66..270057c2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1021.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0018 import Installation +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + ) - total_count: int = Field() - installations: list[Installation] = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -model_rebuild(OrgsOrgInstallationsGetResponse200) - -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py b/githubkit/versions/ghec_v2022_11_28/models/group_1022.py index 17fac965f..ac7addbd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1022.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + + The total number of seats set to "pending cancellation" for the specified users. + """ + + seats_cancelled: int = Field() -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py index 163abb03c..34d7025de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py @@ -9,38 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0174 import OrganizationCustomRepositoryRole -class OrgsOrgInvitationsPostBody(GitHubModel): - """OrgsOrgInvitationsPostBody""" - invitee_id: Missing[int] = Field( - default=UNSET, - description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", - ) - email: Missing[str] = Field( - default=UNSET, - description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", - ) - role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( - Field( - default=UNSET, - description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", - ) - ) - team_ids: Missing[list[int]] = Field( - default=UNSET, - description="Specify IDs for the teams you want to invite new members to.", +class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): + """OrgsOrgCustomRepositoryRolesGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of custom roles in this organization" ) + custom_roles: Missing[list[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgInvitationsPostBody) +model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py index 30a4be17e..a96d49f72 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py @@ -9,20 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0179 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" total_count: int = Field() - codespaces: list[Codespace] = Field() + secrets: list[OrganizationDependabotSecret] = Field() + + +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" + ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ( + "OrganizationDependabotSecret", + "OrgsOrgDependabotSecretsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py index 7da7af9d3..83753c512 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py @@ -18,15 +18,26 @@ from githubkit.utils import UNSET -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - role: Missing[Literal["admin", "member"]] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[str]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py b/githubkit/versions/ghec_v2022_11_28/models/group_1026.py index 68c6b8f27..f4993c30d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1026.py @@ -9,55 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" - - repositories: list[str] = Field( - description="A list of arrays indicating which repositories should be migrated." - ) - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, - description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", - ) - - -model_rebuild(OrgsOrgMigrationsPostBody) - -__all__ = ("OrgsOrgMigrationsPostBody",) + +from .group_0171 import MinimalRepository + + +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: list[MinimalRepository] = Field() + + +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py index 93499063e..1d8e42f73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py @@ -12,20 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - async_: Missing[bool] = Field( - default=UNSET, - alias="async", - description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py index dc2469b07..f32e08d2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py @@ -9,13 +9,56 @@ from __future__ import annotations +from typing import Union + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" + + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." + ) + events: Missing[list[str]] = Field( + default=UNSET, + description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig + Key/value pairs to provide settings for this webhook. + """ -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + username: Missing[str] = Field(default=UNSET) + password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py index 523846f85..ddab845d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,46 @@ from githubkit.utils import UNSET -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) - -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" + + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + name: Missing[str] = Field(default=UNSET) + + +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + + +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) + +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py b/githubkit/versions/ghec_v2022_11_28/models/group_1030.py index 8f8247056..737eb45c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1030.py @@ -9,33 +9,32 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" - pat_request_ids: Missing[list[int]] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the requests." + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + secret: Missing[str] = Field( default=UNSET, - description="Reason for approving or denying the requests. Max 1024 characters.", + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py b/githubkit/versions/ghec_v2022_11_28/models/group_1031.py index af6277ed1..cd6df6a66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1031.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0018 import Installation -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", - ) + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgInstallationsGetResponse200) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py index 2677c34ff..17fac965f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py @@ -9,26 +9,13 @@ from __future__ import annotations -from typing import Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." - ) - pat_ids: list[int] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The IDs of the fine-grained personal access tokens.", - ) - - -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) - -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py index 53f6146e3..163abb03c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py @@ -14,16 +14,33 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgInvitationsPostBody(GitHubModel): + """OrgsOrgInvitationsPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + invitee_id: Missing[int] = Field( + default=UNSET, + description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", + ) + email: Missing[str] = Field( + default=UNSET, + description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", + ) + role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( + Field( + default=UNSET, + description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", + ) + ) + team_ids: Missing[list[int]] = Field( + default=UNSET, + description="Specify IDs for the teams you want to invite new members to.", ) -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgInvitationsPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ("OrgsOrgInvitationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py b/githubkit/versions/ghec_v2022_11_28/models/group_1034.py index fd70d18f0..d5f55df99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1034.py @@ -9,46 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesGetResponse200""" - - total_count: int = Field() - configurations: list[OrgPrivateRegistryConfiguration] = Field() +from .group_0183 import Codespace -class OrgPrivateRegistryConfiguration(GitHubModel): - """Organization private registry - Private registry configuration for an organization - """ +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry.", - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry." - ) - created_at: datetime = Field() - updated_at: datetime = Field() + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) -model_rebuild(OrgPrivateRegistryConfiguration) +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) -__all__ = ( - "OrgPrivateRegistryConfiguration", - "OrgsOrgPrivateRegistriesGetResponse200", -) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py b/githubkit/versions/ghec_v2022_11_28/models/group_1035.py index 5e270b1b4..7da7af9d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1035.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,28 +18,15 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesPostBody(GitHubModel): - """OrgsOrgPrivateRegistriesPostBody""" +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( + role: Missing[Literal["admin", "member"]] = Field( default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", - ) - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - ) - key_id: str = Field(description="The ID of the key you used to encrypt the secret.") - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", + description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", ) -model_rebuild(OrgsOrgPrivateRegistriesPostBody) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgPrivateRegistriesPostBody",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py b/githubkit/versions/ghec_v2022_11_28/models/group_1036.py index a51c170a5..68c6b8f27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1036.py @@ -9,18 +9,55 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - - -model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) - -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" + + repositories: list[str] = Field( + description="A list of arrays indicating which repositories should be migrated." + ) + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, + description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, + description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[list[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude related items from being returned in the response in order to improve performance of the request.", + ) + + +model_rebuild(OrgsOrgMigrationsPostBody) + +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py index 20c264ef1..93499063e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,34 +16,16 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - registry_type: Missing[Literal["maven_repository"]] = Field( - default=UNSET, description="The registry type." - ) - username: Missing[Union[str, None]] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", - ) - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." - ) - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", - ) - selected_repository_ids: Missing[list[int]] = Field( + async_: Missing[bool] = Field( default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", + alias="async", + description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", ) -model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1038.py b/githubkit/versions/ghec_v2022_11_28/models/group_1038.py index ed09aabdb..dc2469b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1038.py @@ -9,22 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." - ) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py index d918ecfdc..523846f85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py @@ -11,21 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0078 import CustomProperty +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) - properties: list[CustomProperty] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The array of custom properties to create or update.", - ) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) - -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py b/githubkit/versions/ghec_v2022_11_28/models/group_1040.py index b6a7eae2b..8f8247056 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1040.py @@ -9,26 +9,33 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild - -from .group_0215 import CustomPropertyValue +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - repository_names: list[str] = Field( - max_length=30 if PYDANTIC_V2 else None, + pat_request_ids: Missing[list[int]] = Field( + max_length=100 if PYDANTIC_V2 else None, min_length=1 if PYDANTIC_V2 else None, - description="The names of repositories that the custom property values will be applied to.", + default=UNSET, + description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + ) + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." ) - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the requests. Max 1024 characters.", ) -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py index 8a3c986d9..af6277ed1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py @@ -9,128 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + description="Reason for approving or denying the request. Max 1024 characters.", ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( - default=UNSET, - description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py index 9ec31a1eb..2677c34ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py @@ -9,97 +9,26 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0080 import RepositoryRulesetBypassActor -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning -from .group_0133 import OrgRulesetConditionsOneof0 -from .group_0134 import OrgRulesetConditionsOneof1 -from .group_0135 import OrgRulesetConditionsOneof2 +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + pat_ids: list[int] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The IDs of the fine-grained personal access tokens.", ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py index 5caf6ba0e..53f6146e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py @@ -9,98 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0080 import RepositoryRulesetBypassActor -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning -from .group_0133 import OrgRulesetConditionsOneof0 -from .group_0134 import OrgRulesetConditionsOneof1 -from .group_0135 import OrgRulesetConditionsOneof2 +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1044.py b/githubkit/versions/ghec_v2022_11_28/models/group_1044.py index 79ff75f94..83cd2fd4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1044.py @@ -9,20 +9,48 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0076 import NetworkConfiguration +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" +class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesGetResponse200""" total_count: int = Field() - network_configurations: list[NetworkConfiguration] = Field() + configurations: list[OrgPrivateRegistryConfiguration] = Field() + + +class OrgPrivateRegistryConfiguration(GitHubModel): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( + description="The registry type." + ) + username: Missing[Union[str, None]] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry.", + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry." + ) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) +model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) +model_rebuild(OrgPrivateRegistryConfiguration) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",) +__all__ = ( + "OrgPrivateRegistryConfiguration", + "OrgsOrgPrivateRegistriesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py index b6be61b0d..4f0a0ba67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgPrivateRegistriesPostBody(GitHubModel): + """OrgsOrgPrivateRegistriesPostBody""" - name: str = Field( - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( + description="The registry type." ) - compute_service: Missing[Literal["none", "actions"]] = Field( + username: Missing[Union[str, None]] = Field( default=UNSET, - description="The hosted compute service to use for the network configuration.", + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", ) - network_settings_ids: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", + ) + key_id: str = Field(description="The ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", ) -model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) +model_rebuild(OrgsOrgPrivateRegistriesPostBody) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) +__all__ = ("OrgsOrgPrivateRegistriesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py index d68e0ab2a..a51c170a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py @@ -9,33 +9,18 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - name: Missing[str] = Field( - default=UNSET, - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", - ) - compute_service: Missing[Literal["none", "actions"]] = Field( - default=UNSET, - description="The hosted compute service to use for the network configuration.", - ) - network_settings_ids: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) +model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1047.py b/githubkit/versions/ghec_v2022_11_28/models/group_1047.py index ea9293710..65d38b2ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1047.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,40 +18,34 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - maintainers: Missing[list[str]] = Field( + registry_type: Missing[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] + ] = Field(default=UNSET, description="The registry type.") + username: Missing[Union[str, None]] = Field( default=UNSET, - description="List GitHub usernames for organization members who will become team maintainers.", + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", ) - repo_names: Missing[list[str]] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-cloud@latest//rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + visibility: Missing[Literal["all", "private", "selected"]] = Field( default=UNSET, - description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", ) - permission: Missing[Literal["pull", "push"]] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py b/githubkit/versions/ghec_v2022_11_28/models/group_1048.py index ef46562c8..ed09aabdb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1048.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,32 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py b/githubkit/versions/ghec_v2022_11_28/models/group_1049.py index 5aca60c84..d918ecfdc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1049.py @@ -11,22 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0078 import CustomProperty -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( - default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py index 155ed9640..eecb85138 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py @@ -11,22 +11,24 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0219 import CustomPropertyValue -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" + + repository_names: list[str] = Field( + max_length=30 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of repositories that the custom property values will be applied to.", ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py b/githubkit/versions/ghec_v2022_11_28/models/group_1051.py index d8f084a3e..8a3c986d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1051.py @@ -9,17 +9,128 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Pass `true` to create an initial commit with empty README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', + ) + license_template: Missing[str] = Field( + default=UNSET, + description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties - body: str = Field(description="The discussion comment's body text.") + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py index f9ed8041d..9ec31a1eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py @@ -9,23 +9,97 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0080 import RepositoryRulesetBypassActor +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning +from .group_0133 import OrgRulesetConditionsOneof0 +from .group_0134 import OrgRulesetConditionsOneof1 +from .group_0135 import OrgRulesetConditionsOneof2 -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - body: str = Field(description="The discussion comment's body text.") +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +model_rebuild(OrgsOrgRulesetsPostBody) + +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py index 6459343b4..5caf6ba0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py @@ -9,31 +9,98 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0080 import RepositoryRulesetBypassActor +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning +from .group_0133 import OrgRulesetConditionsOneof0 +from .group_0134 import OrgRulesetConditionsOneof1 +from .group_0135 import OrgRulesetConditionsOneof2 -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py b/githubkit/versions/ghec_v2022_11_28/models/group_1054.py index 1c2173ab7..79ff75f94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1054.py @@ -9,23 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0076 import NetworkConfiguration + -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." - ) + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py index c48fb6c94..b6be61b0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py @@ -9,17 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - group_id: int = Field(description="External Group Id") + name: str = Field( + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + ) -model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py index d4ebf1d16..d68e0ab2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py @@ -13,19 +13,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + name: Missing[str] = Field( + default=UNSET, + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", ) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py index db4c59000..ea9293710 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py @@ -18,15 +18,40 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + maintainers: Missing[list[str]] = Field( + default=UNSET, + description="List GitHub usernames for organization members who will become team maintainers.", + ) + repo_names: Missing[list[str]] = Field( + default=UNSET, + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + ) + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py index b947a7fa2..ef46562c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,32 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) - -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) + +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py index 4127c4263..5aca60c84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py @@ -16,15 +16,17 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - permission: Missing[str] = Field( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", ) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py index 412383f61..155ed9640 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py @@ -16,29 +16,17 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - - groups: Missing[ - list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] - ] = Field( - default=UNSET, - description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", - ) - - -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - group_id: str = Field(description="ID of the IdP group.") - group_name: str = Field(description="Name of the IdP group.") - group_description: str = Field(description="Description of the IdP group.") + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." + ) + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." + ) -model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody) -model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py index adc736feb..d8f084a3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py @@ -9,24 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, - description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py b/githubkit/versions/ghec_v2022_11_28/models/group_1062.py index 8e4aacd13..f9ed8041d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1062.py @@ -12,18 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py index f56c2018f..6459343b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py @@ -9,26 +9,31 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" - ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py index 525269481..1c2173ab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py @@ -9,26 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", - ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py index 7d3245c63..c48fb6c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py @@ -9,13 +9,17 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" + + group_id: int = Field(description="External Group Id") -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py index 4a6010387..d4ebf1d16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,29 +18,14 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py index 396dbfe80..db4c59000 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,28 +18,15 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py index e6f9395a8..b947a7fa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py @@ -12,14 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - name: str = Field(description="Name of the project column") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py index 17db0e859..4127c4263 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py @@ -9,19 +9,22 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - note: Union[str, None] = Field(description="The project card's note") + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py index 78dbfee00..412383f61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py @@ -12,19 +12,33 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - content_id: int = Field( - description="The unique identifier of the content associated with the card" - ) - content_type: str = Field( - description="The piece of content associated with the card" + groups: Missing[ + list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] + ] = Field( + default=UNSET, + description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str = Field(description="ID of the IdP group.") + group_name: str = Field(description="Name of the IdP group.") + group_description: str = Field(description="Description of the IdP group.") + + +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py index cd4d5b3d2..adc736feb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,28 +18,15 @@ from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, + description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py index 003392298..8e4aacd13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - position: str = Field( - pattern="^(?:first|last|after:\\d+)$", - description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py b/githubkit/versions/ghec_v2022_11_28/models/group_1073.py index 6009bdb4e..f56c2018f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1073.py @@ -9,13 +9,26 @@ from __future__ import annotations +from typing import Union + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" + ) + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py index a0ef8d52d..525269481 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py @@ -16,14 +16,19 @@ from githubkit.utils import UNSET -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + position: str = Field( + pattern="^(?:top|bottom|after:\\d+)$", + description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", + ) + column_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the column the card should be moved to", + ) -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py b/githubkit/versions/ghec_v2022_11_28/models/group_1075.py index e99c686c3..7d3245c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1075.py @@ -9,35 +9,13 @@ from __future__ import annotations -from typing import Literal, Union - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone.", - ) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py index 8448c850e..4a6010387 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py @@ -16,14 +16,29 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchResponse403) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -__all__ = ("ProjectsProjectIdPatchResponse403",) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) + + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py index 4745249cd..396dbfe80 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,14 +16,28 @@ from githubkit.utils import UNSET -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" + + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] + ] = Field(default=UNSET) + + +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py index e33e0910d..e6f9395a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" name: str = Field(description="Name of the project column") -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1079.py b/githubkit/versions/ghec_v2022_11_28/models/group_1079.py index 82852ecb9..17db0e859 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1079.py @@ -9,20 +9,19 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py index 8305abbcb..78dbfee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py @@ -9,313 +9,22 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - code_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable GitHub Code Security for this repository.", - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_ai_detection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', - ) - secret_scanning_non_provider_patterns: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret_scanning_validity_checks: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- - security/secret-scanning/using-advanced-secret-scanning-and-push-protection- - features/generic-secret-detection/responsible-ai-generic-secrets)." - """ +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." + content_id: int = Field( + description="The unique identifier of the content associated with the card" ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." + content_type: str = Field( + description="The piece of content associated with the card" ) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks -) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py index b854e6d84..cd4d5b3d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py @@ -12,17 +12,32 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0237 import Artifact +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] + ] = Field(default=UNSET) - total_count: int = Field() - artifacts: list[Artifact] = Field() +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) + +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py b/githubkit/versions/ghec_v2022_11_28/models/group_1082.py index eabc5484e..003392298 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1082.py @@ -12,18 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + position: str = Field( + pattern="^(?:first|last|after:\\d+)$", + description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", ) -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py index 4ca168cda..6009bdb4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py @@ -9,28 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[list[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", - ) +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py index f78799a28..a0ef8d52d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0241 import ActionsSecret +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ProjectsProjectIdDeleteResponse403) -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py index 07d0d0fc2..e99c686c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py @@ -9,20 +9,35 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0242 import ActionsVariable +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - total_count: int = Field() - variables: list[ActionsVariable] = Field() + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" + ) + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", + ) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py index b882d15a4..8448c850e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,18 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ProjectsProjectIdPatchResponse403) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py b/githubkit/versions/ghec_v2022_11_28/models/group_1087.py index 748b3db37..4745249cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1087.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0041 import Runner +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - total_count: int = Field() - runners: list[Runner] = Field() + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py b/githubkit/versions/ghec_v2022_11_28/models/group_1088.py index 4b74e8b7f..e33e0910d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1088.py @@ -11,29 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py index 07ff84efb..82852ecb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py b/githubkit/versions/ghec_v2022_11_28/models/group_1090.py index 5c0dd84b7..8305abbcb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1090.py @@ -9,21 +9,313 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/enterprise- + cloud@latest//organizations/managing-peoples-access-to-your-organization-with- + roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', + ) + code_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable GitHub Code Security for this repository.", + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_ai_detection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret_scanning_validity_checks: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- + security/secret-scanning/using-advanced-secret-scanning-and-push-protection- + features/generic-secret-detection/responsible-ai-generic-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks +) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py b/githubkit/versions/ghec_v2022_11_28/models/group_1091.py index 879fabfb7..1e375c44e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1091.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0247 import WorkflowRun +from .group_0241 import Artifact -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py b/githubkit/versions/ghec_v2022_11_28/models/group_1092.py index 9458bd5b7..eabc5484e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1092.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0237 import Artifact +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - total_count: int = Field() - artifacts: list[Artifact] = Field() +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py b/githubkit/versions/ghec_v2022_11_28/models/group_1093.py index aac5c1409..4ca168cda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1093.py @@ -12,19 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0239 import Job +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int = Field() - jobs: list[Job] = Field() + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[list[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py b/githubkit/versions/ghec_v2022_11_28/models/group_1094.py index 6b55f9f32..4f8ddd42b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1094.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0239 import Job +from .group_0245 import ActionsSecret -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int = Field() - jobs: list[Job] = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py b/githubkit/versions/ghec_v2022_11_28/models/group_1095.py index daa1a984d..3b13b8bd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1095.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0246 import ActionsVariable + -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" - environment_ids: list[int] = Field( - description="The list of environment ids to approve or reject" - ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." - ) - comment: str = Field(description="A comment to accompany the deployment review") + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py index f45127160..b882d15a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +18,18 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py index f97011ea2..748b3db37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py @@ -12,18 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0041 import Runner -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py b/githubkit/versions/ghec_v2022_11_28/models/group_1098.py index 54370162d..4b74e8b7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1098.py @@ -11,18 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0241 import ActionsSecret +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", + ) - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py b/githubkit/versions/ghec_v2022_11_28/models/group_1099.py index 58d527265..07ff84efb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1099.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key) endpoint.", + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py b/githubkit/versions/ghec_v2022_11_28/models/group_1100.py index 0d962654b..5c0dd84b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1100.py @@ -11,18 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0242 import ActionsVariable +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", + ) - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py b/githubkit/versions/ghec_v2022_11_28/models/group_1101.py index bf9209ee5..d2226e36f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1101.py @@ -13,14 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0251 import WorkflowRun -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1102.py b/githubkit/versions/ghec_v2022_11_28/models/group_1102.py index 2a4d3aeda..c24e1ad87 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1102.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1102.py @@ -12,17 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0241 import Artifact -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py b/githubkit/versions/ghec_v2022_11_28/models/group_1103.py index 3c3259aed..23b54ea3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1103.py @@ -9,48 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int = Field() - workflows: list[Workflow] = Field() +from .group_0243 import Job -class Workflow(GitHubModel): - """Workflow - A GitHub Actions workflow - """ +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - id: int = Field() - node_id: str = Field() - name: str = Field() - path: str = Field() - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - url: str = Field() - html_url: str = Field() - badge_url: str = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) + total_count: int = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py b/githubkit/versions/ghec_v2022_11_28/models/group_1104.py index 437f66baa..c6226a2a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1104.py @@ -11,40 +11,18 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0243 import Job -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - ref: str = Field( - description="The git reference for the workflow. The reference can be a branch or tag name." - ) - inputs: Missing[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - ] = Field( - default=UNSET, - description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", - ) +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int = Field() + jobs: list[Job] = Field() -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py b/githubkit/versions/ghec_v2022_11_28/models/group_1105.py index 99576f442..daa1a984d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1105.py @@ -9,20 +9,25 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0247 import WorkflowRun - -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() + environment_ids: list[int] = Field( + description="The list of environment ids to approve or reject" + ) + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." + ) + comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py b/githubkit/versions/ghec_v2022_11_28/models/group_1106.py index 1559b8643..f45127160 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1106.py @@ -11,55 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundle = Field( - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundle +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) - -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py b/githubkit/versions/ghec_v2022_11_28/models/group_1107.py index e78d24aec..f97011ea2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1107.py @@ -16,12 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py b/githubkit/versions/ghec_v2022_11_28/models/group_1108.py index a764a785c..653d7f5f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1108.py @@ -11,89 +11,18 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0245 import ActionsSecret -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - attestations: Missing[ - list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", - ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial - """ - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope - """ - - -model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) - -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py b/githubkit/versions/ghec_v2022_11_28/models/group_1109.py index e795956c5..58d527265 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1109.py @@ -12,25 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." - ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." - ) - is_alphanumeric: Missing[bool] = Field( - default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key) endpoint.", ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py b/githubkit/versions/ghec_v2022_11_28/models/group_1110.py index 3416b1207..dd71643fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1110.py @@ -9,227 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" - - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None - ] = Field( - description="Require status checks to pass before merging. Set to `null` to disable." - ) - enforce_admins: Union[bool, None] = Field( - description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." - ) - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, - None, - ] = Field( - description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." - ) - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None - ] = Field( - description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." - ) - required_linear_history: Missing[bool] = Field( - default=UNSET, - description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', - ) - allow_force_pushes: Missing[Union[bool, None]] = Field( - default=UNSET, - description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', - ) - allow_deletions: Missing[bool] = Field( - default=UNSET, - description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', - ) - block_creations: Missing[bool] = Field( - default=UNSET, - description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", - ) - required_conversation_resolution: Missing[bool] = Field( - default=UNSET, - description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", - ) - lock_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", - ) - allow_fork_syncing: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: list[str] = Field( - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[list[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) +from .group_0246 import ActionsVariable -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - users: list[str] = Field(description="The list of user `login`s with push access") - teams: list[str] = Field(description="The list of team `slug`s with push access") - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with push access" - ) + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py b/githubkit/versions/ghec_v2022_11_28/models/group_1111.py index 37470089c..bf9209ee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1111.py @@ -12,101 +12,15 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[list[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", -) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py b/githubkit/versions/ghec_v2022_11_28/models/group_1112.py index 199aa5468..2a4d3aeda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1112.py @@ -16,46 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." - ) - contexts: Missing[list[str]] = Field( - default=UNSET, - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", -) +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + + +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) + +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py index c92d11192..3c3259aed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py @@ -9,27 +9,48 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + total_count: int = Field() + workflows: list[Workflow] = Field() -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - Examples: - {'contexts': ['contexts']} +class Workflow(GitHubModel): + """Workflow + + A GitHub Actions workflow """ - contexts: list[str] = Field(description="The name of the status checks") + id: int = Field() + node_id: str = Field() + name: str = Field() + path: str = Field() + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + url: str = Field() + html_url: str = Field() + badge_url: str = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py b/githubkit/versions/ghec_v2022_11_28/models/group_1114.py index 736a856c2..437f66baa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1114.py @@ -11,25 +11,40 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + + ref: str = Field( + description="The git reference for the workflow. The reference can be a branch or tag name." + ) + inputs: Missing[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + ] = Field( + default=UNSET, + description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + ) + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Examples: - {'contexts': ['contexts']} + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. """ - contexts: list[str] = Field(description="The name of the status checks") - -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py b/githubkit/versions/ghec_v2022_11_28/models/group_1115.py index 6e14562a0..bf9b1fa14 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1115.py @@ -13,24 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0251 import WorkflowRun -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - contexts: list[str] = Field(description="The name of the status checks") + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py index 705f549eb..1559b8643 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py @@ -11,21 +11,55 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" - Examples: - {'apps': ['my-app']} + bundle: ReposOwnerRepoAttestationsPostBodyPropBundle = Field( + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information." + ) + + +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." - ) + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) +model_rebuild(ReposOwnerRepoAttestationsPostBody) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) +__all__ = ( + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py index 60a283330..e78d24aec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py @@ -12,20 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - Examples: - {'apps': ['my-app']} - """ + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." - ) +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py index ce2d7c174..a764a785c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py @@ -11,21 +11,89 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) - Examples: - {'apps': ['my-app']} - """ - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) +model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py index 84ad571cb..e795956c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py @@ -12,18 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - Examples: - {'teams': ['justice-league']} - """ + key_prefix: str = Field( + description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." + ) + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." + ) + is_alphanumeric: Missing[bool] = Field( + default=UNSET, + description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", + ) - teams: list[str] = Field(description="The slug values for teams") +model_rebuild(ReposOwnerRepoAutolinksPostBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py b/githubkit/versions/ghec_v2022_11_28/models/group_1120.py index 958afae89..3416b1207 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1120.py @@ -9,23 +9,227 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" + + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." + ) + enforce_admins: Union[bool, None] = Field( + description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + ) + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, + None, + ] = Field( + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." + ) + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None + ] = Field( + description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." + ) + required_linear_history: Missing[bool] = Field( + default=UNSET, + description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', + ) + allow_force_pushes: Missing[Union[bool, None]] = Field( + default=UNSET, + description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', + ) + allow_deletions: Missing[bool] = Field( + default=UNSET, + description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', + ) + block_creations: Missing[bool] = Field( + default=UNSET, + description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", + ) + required_conversation_resolution: Missing[bool] = Field( + default=UNSET, + description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", + ) + lock_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", + ) + allow_fork_syncing: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: list[str] = Field( + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[list[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[list[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[list[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[list[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[list[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - Examples: - {'teams': ['my-team']} + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. """ - teams: list[str] = Field(description="The slug values for teams") + users: list[str] = Field(description="The list of user `login`s with push access") + teams: list[str] = Field(description="The list of team `slug`s with push access") + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with push access" + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py index 19a5a7072..37470089c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py @@ -12,20 +12,101 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - Examples: - {'teams': ['my-team']} + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) have reviewed.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[list[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[list[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - teams: list[str] = Field(description="The slug values for teams") + users: Missing[list[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[list[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[list[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py b/githubkit/versions/ghec_v2022_11_28/models/group_1122.py index bf770df8d..199aa5468 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1122.py @@ -12,18 +12,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody - - Examples: - {'users': ['mona']} +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." + ) + contexts: Missing[list[str]] = Field( + default=UNSET, + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - users: list[str] = Field(description="The username for users") + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py b/githubkit/versions/ghec_v2022_11_28/models/group_1123.py index 047d05a26..c92d11192 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1123.py @@ -14,16 +14,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] = Field(description="The username for users") + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py b/githubkit/versions/ghec_v2022_11_28/models/group_1124.py index 181ab0f55..736a856c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1124.py @@ -14,16 +14,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] = Field(description="The username for users") + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py b/githubkit/versions/ghec_v2022_11_28/models/group_1125.py index 5fcd45c02..6e14562a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1125.py @@ -14,12 +14,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - new_name: str = Field(description="The new name of the branch.") + Examples: + {'contexts': ['contexts']} + """ + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py b/githubkit/versions/ghec_v2022_11_28/models/group_1126.py index 4cd6ff585..705f549eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1126.py @@ -9,26 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody( - GitHubModel -): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody - status: Literal["approve", "reject"] = Field( - description="The review action to perform on the bypass request." - ) - message: str = Field( - description="A message to include with the review. Has a maximum character length of 2048." + Examples: + {'apps': ['my-app']} + """ + + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) -__all__ = ("ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py b/githubkit/versions/ghec_v2022_11_28/models/group_1127.py index 3ead2dfbf..60a283330 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1127.py @@ -12,24 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200( - GitHubModel -): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - bypass_review_id: Missing[int] = Field( - default=UNSET, description="ID of the bypass review." + Examples: + {'apps': ['my-app']} + """ + + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild( - ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200 -) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) -__all__ = ( - "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py b/githubkit/versions/ghec_v2022_11_28/models/group_1128.py index 599652b03..ce2d7c174 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1128.py @@ -9,117 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. + Examples: + {'apps': ['my-app']} """ - title: str = Field(description="The title of the check run.") - summary: str = Field( - max_length=65535, - description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - text: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, - default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', - ) - images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( - Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py b/githubkit/versions/ghec_v2022_11_28/models/group_1129.py index 8a440c840..84ad571cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1129.py @@ -9,67 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1128 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" + Examples: + {'teams': ['justice-league']} + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py b/githubkit/versions/ghec_v2022_11_28/models/group_1130.py index d60b8dd3e..958afae89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1130.py @@ -9,72 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1128 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" + Examples: + {'teams': ['my-team']} + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Missing[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] = Field(default=UNSET) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py index 642ef6696..19a5a7072 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py @@ -9,114 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: Missing[str] = Field(default=UNSET, description="**Required**.") - summary: str = Field(max_length=65535, description="Can contain Markdown.") - text: Missing[str] = Field( - max_length=65535, default=UNSET, description="Can contain Markdown." - ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, - default=UNSET, - description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", - ) - images: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( GitHubModel ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + Examples: + {'teams': ['my-team']} + """ - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py b/githubkit/versions/ghec_v2022_11_28/models/group_1132.py index eaf68fbf1..bf770df8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1132.py @@ -9,69 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1131 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + Examples: + {'users': ['mona']} + """ - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py index cf0f6d957..047d05a26 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py @@ -9,72 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1131 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + Examples: + {'users': ['mona']} + """ - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1134.py b/githubkit/versions/ghec_v2022_11_28/models/group_1134.py index 2a8e7cd54..181ab0f55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1134.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1134.py @@ -14,12 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody - head_sha: str = Field(description="The sha of the head commit.") + Examples: + {'users': ['mona']} + """ + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py b/githubkit/versions/ghec_v2022_11_28/models/group_1135.py index c56809f38..5fcd45c02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1135.py @@ -12,37 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - auto_trigger_checks: Missing[ - list[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] - ] = Field( - default=UNSET, - description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", - ) + new_name: str = Field(description="The new name of the branch.") -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( - GitHubModel -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) - app_id: int = Field(description="The `id` of the GitHub App.") - setting: bool = Field( - default=True, - description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", - ) - - -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py b/githubkit/versions/ghec_v2022_11_28/models/group_1136.py index fa7be64bb..4cd6ff585 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1136.py @@ -9,20 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0273 import CheckRun - -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody( + GitHubModel +): + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" - total_count: int = Field() - check_runs: list[CheckRun] = Field() + status: Literal["approve", "reject"] = Field( + description="The review action to perform on the bypass request." + ) + message: str = Field( + description="A message to include with the review. Has a maximum character length of 2048." + ) -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody) -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py b/githubkit/versions/ghec_v2022_11_28/models/group_1137.py index 15a8f3fb1..3ead2dfbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1137.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,30 +16,20 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200( + GitHubModel +): + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" - state: Literal["open", "dismissed"] = Field( - description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." - ) - dismissed_reason: Missing[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] = Field( - default=UNSET, - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - create_request: Missing[bool] = Field( - default=UNSET, - description="If `true`, attempt to create an alert dismissal request.", + bypass_review_id: Missing[int] = Field( + default=UNSET, description="ID of the bypass review." ) -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild( + ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200 +) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py b/githubkit/versions/ghec_v2022_11_28/models/group_1138.py index 3d05d5b64..599652b03 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1138.py @@ -18,30 +18,108 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: str = Field(description="The title of the check run.") + summary: str = Field( + max_length=65535, + description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + text: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + annotations: Missing[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50 if PYDANTIC_V2 else None, + default=UNSET, + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', + ) + images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( + Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", ) - repositories: list[str] = Field( - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The title that represents the annotation. The maximum size is 255 characters.", ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + raw_details: Missing[str] = Field( default=UNSET, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1139.py b/githubkit/versions/ghec_v2022_11_28/models/group_1139.py index b178bf51d..1291dc978 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1139.py @@ -9,39 +9,67 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1138 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - repositories: Missing[list[str]] = Field( + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - repository_lists: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py b/githubkit/versions/ghec_v2022_11_28/models/group_1140.py index eaeb5dbf9..b73f22699 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1140.py @@ -9,39 +9,72 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1138 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - repositories: Missing[list[str]] = Field( + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + status: Missing[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] = Field(default=UNSET) + started_at: Missing[datetime] = Field( default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - repository_owners: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py b/githubkit/versions/ghec_v2022_11_28/models/group_1141.py index 75eecf30a..642ef6696 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1141.py @@ -9,50 +9,114 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." ) - ref: str = Field( - pattern="^refs/(heads|tags|pull)/.*$", - description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + annotations: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50 if PYDANTIC_V2 else None, + default=UNSET, + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", ) - sarif: str = Field( - description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secure-coding/sarif-support-for-code-scanning)."' + images: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", ) - checkout_uri: Missing[str] = Field( + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( default=UNSET, - description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", ) - started_at: Missing[datetime] = Field( + end_column: Missing[int] = Field( default=UNSET, - description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." ) - tool_name: Missing[str] = Field( + title: Missing[str] = Field( default=UNSET, - description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + description="The title that represents the annotation. The maximum size is 255 characters.", ) - validate_: Missing[bool] = Field( + raw_details: Missing[str] = Field( default=UNSET, - alias="validate", - description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", ) -model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py b/githubkit/versions/ghec_v2022_11_28/models/group_1142.py index ba5edd65b..81d95a084 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1142.py @@ -9,20 +9,69 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0179 import Codespace +from .group_1141 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py b/githubkit/versions/ghec_v2022_11_28/models/group_1143.py index 9d9c2bbbd..238fc5815 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1143.py @@ -9,61 +9,72 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1141 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" - ref: Missing[str] = Field( +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: Missing[str] = Field( default=UNSET, - description="Git ref (typically a branch name) for this codespace", + description='The name of the check. For example, "code-coverage".', ) - location: Missing[str] = Field( + details_url: Missing[str] = Field( default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + description="The URL of the integrator's site that has the full details of the check.", ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - client_ip: Missing[str] = Field( + started_at: Missing[datetime] = Field( default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - devcontainer_path: Missing[str] = Field( + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( default=UNSET, - description="Path to devcontainer.json config to use for this codespace", + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", ) - multi_repo_permissions_opt_out: Missing[bool] = Field( + completed_at: Missing[datetime] = Field( default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - retention_period_minutes: Missing[int] = Field( + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py index 262d6c72c..2a8e7cd54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py @@ -12,33 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - total_count: int = Field() - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() + head_sha: str = Field(description="The sha of the head commit.") -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( - GitHubModel -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py b/githubkit/versions/ghec_v2022_11_28/models/group_1145.py index 0d881be88..c56809f38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1145.py @@ -12,17 +12,37 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0178 import CodespaceMachine +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + auto_trigger_checks: Missing[ + list[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = Field( + default=UNSET, + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", + ) - total_count: int = Field() - machines: list[CodespaceMachine] = Field() +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) + +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py b/githubkit/versions/ghec_v2022_11_28/models/group_1146.py index 14c58fd19..7c5509b25 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1146.py @@ -9,39 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser - - -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) +from .group_0277 import CheckRun -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - location: str = Field() - devcontainer_path: Union[str, None] = Field() + total_count: int = Field() + check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py b/githubkit/versions/ghec_v2022_11_28/models/group_1147.py index ea29eb2ed..15a8f3fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1147.py @@ -9,35 +9,39 @@ from __future__ import annotations -from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) - -__all__ = ( - "RepoCodespacesSecret", - "ReposOwnerRepoCodespacesSecretsGetResponse200", -) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" + + state: Literal["open", "dismissed"] = Field( + description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." + ) + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( + default=UNSET, + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + create_request: Missing[bool] = Field( + default=UNSET, + description="If `true`, attempt to create an alert dismissal request.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) + +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py b/githubkit/versions/ghec_v2022_11_28/models/group_1148.py index 9ae26cc4d..3d05d5b64 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1148.py @@ -9,26 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: list[str] = Field( + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." + ) + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py index 637f9ed63..b178bf51d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py @@ -9,22 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - permission: Missing[str] = Field( + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py index 75effd211..eaeb5dbf9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py @@ -9,17 +9,39 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +from typing import Literal - body: str = Field(description="The contents of the comment") - - -model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) +from pydantic import Field -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" + + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) + +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py index a64b1dfaa..75eecf30a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py @@ -9,23 +9,50 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment." + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + ref: str = Field( + pattern="^refs/(heads|tags|pull)/.*$", + description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + ) + sarif: str = Field( + description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secure-coding/sarif-support-for-code-scanning)."' + ) + checkout_uri: Missing[str] = Field( + default=UNSET, + description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + tool_name: Missing[str] = Field( + default=UNSET, + description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + ) + validate_: Missing[bool] = Field( + default=UNSET, + alias="validate", + description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", ) -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py index 757d9d282..dc27c86f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py @@ -12,26 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0183 import Codespace -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." - ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." - ) - line: Missing[int] = Field( - default=UNSET, - description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", - ) +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py index 2324aa051..9d9c2bbbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py @@ -9,20 +9,61 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0273 import CheckRun +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - total_count: int = Field() - check_runs: list[CheckRun] = Field() + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py index 06ebae173..262d6c72c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py @@ -16,66 +16,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - message: str = Field(description="The commit message.") - content: str = Field(description="The new file content, using Base64 encoding.") - sha: Missing[str] = Field( - default=UNSET, - description="**Required if you are updating a file**. The blob SHA of the file being replaced.", - ) - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch.", - ) - committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( - default=UNSET, - description="The person that committed the file. Default: the authenticated user.", - ) - author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( - default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", - ) + total_count: int = Field() + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - The person that committed the file. Default: the authenticated user. - """ + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) __all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py index b246a17c2..88fce4863 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py @@ -12,63 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0182 import CodespaceMachine -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" - message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch", - ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." - ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - object containing information about the committer. - """ +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py index 98b4b8e85..14c58fd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,28 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." - ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( - default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" + + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - dismissed_comment: Missing[str] = Field( - max_length=280, - default=UNSET, - description="An optional comment associated with dismissing the alert.", + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET ) -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str = Field() + devcontainer_path: Union[str, None] = Field() + + +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py index 22c7a2b35..ea29eb2ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py @@ -16,17 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" total_count: int = Field() - secrets: list[DependabotSecret] = Field() + secrets: list[RepoCodespacesSecret] = Field() -class DependabotSecret(GitHubModel): - """Dependabot Secret +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret - Set secrets for Dependabot. + Set repository secrets for GitHub Codespaces. """ name: str = Field(description="The name of the secret.") @@ -34,10 +34,10 @@ class DependabotSecret(GitHubModel): updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "DependabotSecret", - "ReposOwnerRepoDependabotSecretsGetResponse200", + "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesSecretsGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py index 795166023..9ae26cc4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py @@ -16,19 +16,19 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" encrypted_value: Missing[str] = Field( pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", ) key_id: Missing[str] = Field( default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py index d8abaeb32..637f9ed63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py @@ -12,21 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - id: int = Field(description="ID of the created snapshot.") - created_at: str = Field(description="The time at which the snapshot was created.") - result: str = Field( - description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' - ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", ) -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py b/githubkit/versions/ghec_v2022_11_28/models/group_1160.py index 93e1d173a..75effd211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1160.py @@ -9,61 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +from githubkit.compat import GitHubModel, model_rebuild - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." - ) - task: Missing[str] = Field( - default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", - ) - auto_merge: Missing[bool] = Field( - default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", - ) - required_contexts: Missing[list[str]] = Field( - default=UNSET, - description="The [status](https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", - ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." - ) - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", - ) +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py index 87a3629c8..a64b1dfaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py @@ -9,19 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - message: Missing[str] = Field(default=UNSET) + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment." + ) -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py index fbbf01aa8..757d9d282 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,40 +16,22 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] = Field( - description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." - ) - target_url: Missing[str] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", - ) - log_url: Missing[str] = Field( - default=UNSET, - description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", - ) - environment_url: Missing[str] = Field( - default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." ) - auto_inactive: Missing[bool] = Field( + line: Missing[int] = Field( default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", ) -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py index 287c5f54c..1520ac014 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0277 import CheckRun + -class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" - status: Literal["approve", "deny"] = Field( - description="The review action to perform on the dismissal request." - ) - message: str = Field( - description="A message to include with the review. Has a maximum character length of 2048." - ) + total_count: int = Field() + check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) -__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py index a17cd6785..06ebae173 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py @@ -16,16 +16,66 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200( - GitHubModel -): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" - dismissal_review_id: Missing[int] = Field( - default=UNSET, description="ID of the dismissal review." + message: str = Field(description="The commit message.") + content: str = Field(description="The new file content, using Base64 encoding.") + sha: Missing[str] = Field( + default=UNSET, + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", ) + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch.", + ) + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", + ) + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + ) + + +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) -__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200",) +__all__ = ( + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py index 7a5ec1511..b246a17c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py @@ -11,38 +11,64 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + message: str = Field(description="The commit message.") + sha: str = Field(description="The blob SHA of the file being deleted.") + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch", + ) + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", + description="The email of the author (or committer) of the commit", ) -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. The total - size of the JSON payload must be less than 64KB. + object containing information about the author. """ + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) __all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py index 32f6ad2f6..98b4b8e85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,53 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0329 import DeploymentBranchPolicySettings +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - - wait_timer: Missing[int] = Field( - default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + state: Literal["dismissed", "open"] = Field( + description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." ) - prevent_self_review: Missing[bool] = Field( - default=UNSET, - description="Whether or not a user who created the job is prevented from approving their own job.", - ) - reviewers: Missing[ - Union[ - list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], - None, + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" ] ] = Field( default=UNSET, - description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", - ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) - ) - - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - id: Missing[int] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="The id of the user or team who can review the deployment", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py index e8d56e3db..22c7a2b35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py @@ -9,51 +9,35 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." - ) - branch_policies: list[DeploymentBranchPolicy] = Field() + total_count: int = Field() + secrets: list[DependabotSecret] = Field() -class DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy +class DependabotSecret(GitHubModel): + """Dependabot Secret - Details of a deployment branch or tag policy. + Set secrets for Dependabot. """ - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." - ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", - ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." - ) - - -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) __all__ = ( - "DeploymentBranchPolicy", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "DependabotSecret", + "ReposOwnerRepoDependabotSecretsGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py index b5d03989b..795166023 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py @@ -16,21 +16,19 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - integration_id: Missing[int] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py index 22b06bf8f..d8abaeb32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1169.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1169.py @@ -12,32 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0335 import CustomDeploymentRuleApp +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ - - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", + id: int = Field(description="ID of the created snapshot.") + created_at: str = Field(description="The time at which the snapshot was created.") + result: str = Field( + description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' + ) + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) - available_custom_deployment_protection_rule_integrations: Missing[ - list[CustomDeploymentRuleApp] - ] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1170.py b/githubkit/versions/ghec_v2022_11_28/models/group_1170.py index 447dcddd5..93e1d173a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1170.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1170.py @@ -9,20 +9,61 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + -from .group_0241 import ActionsSecret +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or SHA." + ) + task: Missing[str] = Field( + default=UNSET, + description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + ) + auto_merge: Missing[bool] = Field( + default=UNSET, + description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + ) + required_contexts: Missing[list[str]] = Field( + default=UNSET, + description="The [status](https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", + ) + payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( + Field(default=UNSET) + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the deployment." + ) + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", + ) + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", + ) -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1171.py b/githubkit/versions/ghec_v2022_11_28/models/group_1171.py index 60d9411b7..87a3629c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1171.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1171.py @@ -12,18 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") + message: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1172.py b/githubkit/versions/ghec_v2022_11_28/models/group_1172.py index da86cbd52..fbbf01aa8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1172.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1172.py @@ -9,20 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0242 import ActionsVariable - - -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" - - total_count: int = Field() - variables: list[ActionsVariable] = Field() - - -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" + + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] = Field( + description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." + ) + target_url: Missing[str] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", + ) + log_url: Missing[str] = Field( + default=UNSET, + description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the status. The maximum description length is 140 characters.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", + ) + environment_url: Missing[str] = Field( + default=UNSET, + description='Sets the URL for accessing your environment. Default: `""`', + ) + auto_inactive: Missing[bool] = Field( + default=UNSET, + description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + ) + + +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) + +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1173.py b/githubkit/versions/ghec_v2022_11_28/models/group_1173.py index 376060834..287c5f54c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1173.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1173.py @@ -9,18 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + status: Literal["approve", "deny"] = Field( + description="The review action to perform on the dismissal request." + ) + message: str = Field( + description="A message to include with the review. Has a maximum character length of 2048." + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1174.py b/githubkit/versions/ghec_v2022_11_28/models/group_1174.py index 6a0d6de99..a17cd6785 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1174.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1174.py @@ -16,13 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200( + GitHubModel +): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + dismissal_review_id: Missing[int] = Field( + default=UNSET, description="ID of the dismissal review." + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1175.py b/githubkit/versions/ghec_v2022_11_28/models/group_1175.py index abc9b3749..7a5ec1511 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1175.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1175.py @@ -11,28 +11,38 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - organization: Missing[str] = Field( - default=UNSET, - description="Optional parameter to specify the organization name if forking into an organization.", - ) - name: Missing[str] = Field( - default=UNSET, - description="When forking from an existing repository, a new name for the fork.", + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - default_branch_only: Missing[bool] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", + description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", ) -model_rebuild(ReposOwnerRepoForksPostBody) +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. The total + size of the JSON payload must be less than 64KB. + """ + + +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1176.py b/githubkit/versions/ghec_v2022_11_28/models/group_1176.py index f4b8ca964..85fe03ece 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1176.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1176.py @@ -9,23 +9,61 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0333 import DeploymentBranchPolicySettings + -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + prevent_self_review: Missing[bool] = Field( + default=UNSET, + description="Whether or not a user who created the job is prevented from approving their own job.", + ) + reviewers: Missing[ + Union[ + list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( + default=UNSET, + description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + id: Missing[int] = Field( default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + description="The id of the user or team who can review the deployment", ) -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1177.py b/githubkit/versions/ghec_v2022_11_28/models/group_1177.py index 111a9d4a5..e8d56e3db 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1177.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1177.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,74 +18,42 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[list[str]] = Field( - default=UNSET, - description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( - default=UNSET, - description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - ) - committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( - default=UNSET, - description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - ) - signature: Missing[str] = Field( - default=UNSET, - description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + total_count: int = Field( + description="The number of deployment branch policies for the environment." ) + branch_policies: list[DeploymentBranchPolicy] = Field() -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. + Details of a deployment branch or tag policy. """ - name: str = Field(description="The name of the author (or committer) of the commit") - email: str = Field( - description="The email of the author (or committer) of the commit" - ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." ) - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - + node_id: Missing[str] = Field(default=UNSET) name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( default=UNSET, - description="The email of the author (or committer) of the commit", + description="The name pattern that branches or tags must match in order to deploy to the environment.", ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag." ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) __all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", + "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1178.py b/githubkit/versions/ghec_v2022_11_28/models/group_1178.py index e02988ad3..b5d03989b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1178.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1178.py @@ -12,17 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - ref: str = Field( - description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." + integration_id: Missing[int] = Field( + default=UNSET, + description="The ID of the custom app that will be enabled on the environment.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1179.py b/githubkit/versions/ghec_v2022_11_28/models/group_1179.py index dc680ffcd..ada07498e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1179.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1179.py @@ -15,17 +15,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0339 import CustomDeploymentRuleApp -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + + total_count: Missing[int] = Field( default=UNSET, - description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + description="The total number of custom deployment protection rule integrations available for this environment.", ) + available_custom_deployment_protection_rule_integrations: Missing[ + list[CustomDeploymentRuleApp] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1180.py b/githubkit/versions/ghec_v2022_11_28/models/group_1180.py index 2366c3d87..0625d874d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1180.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1180.py @@ -9,53 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" - - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' - ) - message: str = Field(description="The tag message.") - object_: str = Field( - alias="object", description="The SHA of the git object this is tagging." - ) - type: Literal["commit", "tree", "blob"] = Field( - description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." - ) - tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( - default=UNSET, - description="An object with information about the individual creating the tag.", - ) - - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( - default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) - -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) + +from .group_0245 import ActionsSecret + + +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[ActionsSecret] = Field() + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1181.py b/githubkit/versions/ghec_v2022_11_28/models/group_1181.py index 1d6bd8e59..60d9411b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1181.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1181.py @@ -9,54 +9,21 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" - - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." - ) - base_tree: Missing[str] = Field( - default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", - ) -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." - ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( - default=UNSET, - description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", - ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." - ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", - ) - content: Missing[str] = Field( - default=UNSET, - description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key) endpoint.", ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1182.py b/githubkit/versions/ghec_v2022_11_28/models/group_1182.py index 0a8c270bb..073ebecbe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1182.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1182.py @@ -9,60 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" - - name: Missing[str] = Field( - default=UNSET, - description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", - ) - config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) +from .group_0246 import ActionsVariable -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1183.py b/githubkit/versions/ghec_v2022_11_28/models/group_1183.py index aead6592d..376060834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1183.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1183.py @@ -12,38 +12,15 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0011 import WebhookConfig - - -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( - default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", - ) - add_events: Missing[list[str]] = Field( - default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", - ) - remove_events: Missing[list[str]] = Field( - default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) + + +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1184.py b/githubkit/versions/ghec_v2022_11_28/models/group_1184.py index 150aaa1f2..6a0d6de99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1184.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1184.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,23 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1185.py b/githubkit/versions/ghec_v2022_11_28/models/group_1185.py index 4e11d0489..abc9b3749 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1185.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1185.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,28 +16,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - vcs_url: str = Field(description="The URL of the originating repository.") - vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( - default=UNSET, - description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", - ) - vcs_username: Missing[str] = Field( + organization: Missing[str] = Field( default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", + description="Optional parameter to specify the organization name if forking into an organization.", ) - vcs_password: Missing[str] = Field( + name: Missing[str] = Field( default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + description="When forking from an existing repository, a new name for the fork.", ) - tfvc_project: Missing[str] = Field( + default_branch_only: Missing[bool] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description="When forking from an existing repository, fork with only the default branch.", ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1186.py b/githubkit/versions/ghec_v2022_11_28/models/group_1186.py index 73c9a3a1e..f4b8ca964 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1186.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1186.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,27 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - vcs_username: Missing[str] = Field( - default=UNSET, - description="The username to provide to the originating repository.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="The password to provide to the originating repository.", - ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( - default=UNSET, - description="The type of version control system you are migrating from.", - ) - tfvc_project: Missing[str] = Field( + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoImportPatchBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1187.py b/githubkit/versions/ghec_v2022_11_28/models/group_1187.py index bac05d75f..111a9d4a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1187.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1187.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,74 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" + + message: str = Field(description="The commit message") + tree: str = Field(description="The SHA of the tree object this commit points to") + parents: Missing[list[str]] = Field( + default=UNSET, + description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", + ) + author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( + default=UNSET, + description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", + ) + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( + default=UNSET, + description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", + ) + signature: Missing[str] = Field( + default=UNSET, + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str = Field(description="The name of the author (or committer) of the commit") + email: str = Field( + description="The email of the author (or committer) of the commit" + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1188.py b/githubkit/versions/ghec_v2022_11_28/models/group_1188.py index 7727d20f6..e02988ad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1188.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1188.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - use_lfs: Literal["opt_in", "opt_out"] = Field( - description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." + ref: str = Field( + description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." ) + sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1189.py b/githubkit/versions/ghec_v2022_11_28/models/group_1189.py index 759975570..dc680ffcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1189.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1189.py @@ -9,13 +9,23 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = Field( + default=UNSET, + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + ) -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1190.py b/githubkit/versions/ghec_v2022_11_28/models/group_1190.py index 3569862c6..2366c3d87 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1190.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1190.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,17 +19,43 @@ from githubkit.utils import UNSET -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" - permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( - Field( - default=UNSET, - description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", - ) + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + ) + message: str = Field(description="The tag message.") + object_: str = Field( + alias="object", description="The SHA of the git object this is tagging." + ) + type: Literal["commit", "tree", "blob"] = Field( + description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." + ) + tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( + default=UNSET, + description="An object with information about the individual creating the tag.", + ) + + +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( + default=UNSET, + description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1191.py b/githubkit/versions/ghec_v2022_11_28/models/group_1191.py index 6c961bc46..1d6bd8e59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1191.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1191.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,45 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", + ) + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", ) - assignees: Missing[list[str]] = Field( + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", ) - type: Missing[Union[str, None]] = Field( + content: Missing[str] = Field( default=UNSET, - description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", + description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", ) -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) __all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1192.py b/githubkit/versions/ghec_v2022_11_28/models/group_1192.py index 2e91230e7..0a8c270bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1192.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1192.py @@ -9,17 +9,60 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" + + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", + ) + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" + Key/value pairs to provide settings for this webhook. + """ - body: str = Field(description="The contents of the comment.") + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +__all__ = ( + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1193.py b/githubkit/versions/ghec_v2022_11_28/models/group_1193.py index e13da8a38..aead6592d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1193.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1193.py @@ -9,23 +9,41 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0011 import WebhookConfig -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." + config: Missing[WebhookConfig] = Field( + default=UNSET, + title="Webhook Configuration", + description="Configuration object of the webhook", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + ) + add_events: Missing[list[str]] = Field( + default=UNSET, + description="Determines a list of events to be added to the list of events that the Hook triggers for.", + ) + remove_events: Missing[list[str]] = Field( + default=UNSET, + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1194.py b/githubkit/versions/ghec_v2022_11_28/models/group_1194.py index 0b68f57a6..150aaa1f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1194.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1194.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,58 +18,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - title: Missing[Union[str, int, None]] = Field( - default=UNSET, description="The title of the issue." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="The contents of the issue." - ) - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Username to assign to this issue. **This field is closing down.**", - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." - ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( - default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( + content_type: Missing[str] = Field( default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", ) - assignees: Missing[list[str]] = Field( + secret: Missing[str] = Field( default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", ) - type: Missing[Union[str, None]] = Field( - default=UNSET, - description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", - ) - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1195.py b/githubkit/versions/ghec_v2022_11_28/models/group_1195.py index 5b60a1932..4e11d0489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1195.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1195.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,28 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - assignees: Missing[list[str]] = Field( + vcs_url: str = Field(description="The URL of the originating repository.") + vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( + default=UNSET, + description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + ) + vcs_username: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the username to provide to `vcs_url`.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the password to provide to `vcs_url`.", + ) + tfvc_project: Missing[str] = Field( default=UNSET, - description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1196.py b/githubkit/versions/ghec_v2022_11_28/models/group_1196.py index 1c74a1195..73c9a3a1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1196.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1196.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - assignees: Missing[list[str]] = Field( + vcs_username: Missing[str] = Field( + default=UNSET, + description="The username to provide to the originating repository.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="The password to provide to the originating repository.", + ) + vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + default=UNSET, + description="The type of version control system you are migrating from.", + ) + tfvc_project: Missing[str] = Field( default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1197.py b/githubkit/versions/ghec_v2022_11_28/models/group_1197.py index 49a6d6da0..bac05d75f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1197.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1197.py @@ -12,14 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - body: str = Field(description="The contents of the comment.") + email: Missing[str] = Field(default=UNSET, description="The new Git author email.") + name: Missing[str] = Field(default=UNSET, description="The new Git author name.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1198.py b/githubkit/versions/ghec_v2022_11_28/models/group_1198.py index 761aba5f8..7727d20f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1198.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1198.py @@ -9,23 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue)."', + use_lfs: Literal["opt_in", "opt_out"] = Field( + description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1199.py b/githubkit/versions/ghec_v2022_11_28/models/group_1199.py index ed2c2a834..759975570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1199.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1199.py @@ -9,31 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1200.py b/githubkit/versions/ghec_v2022_11_28/models/group_1200.py index d59513ace..3569862c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1200.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1200.py @@ -9,17 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - name: str = Field() + permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( + Field( + default=UNSET, + description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", + ) + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1201.py b/githubkit/versions/ghec_v2022_11_28/models/group_1201.py index ebaf1ae29..6c961bc46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1201.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1201.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + ) + assignees: Missing[list[str]] = Field( default=UNSET, - description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)."', + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", + ) + + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1202.py b/githubkit/versions/ghec_v2022_11_28/models/group_1202.py index f67daaa62..2e91230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1202.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1202.py @@ -11,29 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) + body: str = Field(description="The contents of the comment.") -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1203.py b/githubkit/versions/ghec_v2022_11_28/models/group_1203.py index dfb903bb9..e13da8a38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1203.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1203.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - name: str = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1204.py b/githubkit/versions/ghec_v2022_11_28/models/group_1204.py index 485b30e7e..0b68f57a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1204.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1204.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,58 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" - lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( - Field( - default=UNSET, - description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", - ) + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is closing down.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", + ) + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1205.py b/githubkit/versions/ghec_v2022_11_28/models/group_1205.py index 42295dd52..5b60a1932 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1205.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1205.py @@ -9,23 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue." + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1206.py b/githubkit/versions/ghec_v2022_11_28/models/group_1206.py index f813db6bf..1c74a1195 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1206.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1206.py @@ -12,14 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to remove") + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1207.py b/githubkit/versions/ghec_v2022_11_28/models/group_1207.py index 7e9d65950..49a6d6da0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1207.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1207.py @@ -12,22 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - sub_issue_id: int = Field( - description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" - ) - replace_parent: Missing[bool] = Field( - default=UNSET, - description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1208.py b/githubkit/versions/ghec_v2022_11_28/models/group_1208.py index f3aab1e81..761aba5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1208.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1208.py @@ -11,25 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") - after_id: Missing[int] = Field( + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", - ) - before_id: Missing[int] = Field( - default=UNSET, - description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", + description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue)."', ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1209.py b/githubkit/versions/ghec_v2022_11_28/models/group_1209.py index c1416622e..ed2c2a834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1209.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1209.py @@ -11,22 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - title: Missing[str] = Field(default=UNSET, description="A name for the key.") - key: str = Field(description="The contents of the key.") - read_only: Missing[bool] = Field( - default=UNSET, - description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/enterprise-cloud@latest//articles/permission-levels-for-a-user-account-repository/)."', - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoKeysPostBody) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoKeysPostBody",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1210.py b/githubkit/versions/ghec_v2022_11_28/models/group_1210.py index 27dc128b3..d59513ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1210.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1210.py @@ -12,26 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - name: str = Field( - description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) + name: str = Field() -model_rebuild(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1211.py b/githubkit/versions/ghec_v2022_11_28/models/group_1211.py index 810ac1cad..ebaf1ae29 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1211.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1211.py @@ -11,28 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - new_name: Missing[str] = Field( + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", + description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)."', ) -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1212.py b/githubkit/versions/ghec_v2022_11_28/models/group_1212.py index 7be32859a..f67daaa62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1212.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1212.py @@ -11,17 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1213.py b/githubkit/versions/ghec_v2022_11_28/models/group_1213.py index 8d864c09c..dfb903bb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1213.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1213.py @@ -12,25 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - base: str = Field( - description="The name of the base branch that the head will be merged into." - ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." - ) - commit_message: Missing[str] = Field( - default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", - ) + name: str = Field() -model_rebuild(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1214.py b/githubkit/versions/ghec_v2022_11_28/models/group_1214.py index 4c86e4385..485b30e7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1214.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1214.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -19,23 +18,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( + Field( + default=UNSET, + description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", + ) ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1215.py b/githubkit/versions/ghec_v2022_11_28/models/group_1215.py index c674f9121..42295dd52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1215.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1215.py @@ -9,35 +9,23 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue." ) -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1216.py b/githubkit/versions/ghec_v2022_11_28/models/group_1216.py index 7a766cc33..f813db6bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1216.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1216.py @@ -9,24 +9,17 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", - ) + sub_issue_id: int = Field(description="The id of the sub-issue to remove") -model_rebuild(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1217.py b/githubkit/versions/ghec_v2022_11_28/models/group_1217.py index 41ae3801e..7e9d65950 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1217.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1217.py @@ -16,13 +16,18 @@ from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + sub_issue_id: int = Field( + description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" + ) + replace_parent: Missing[bool] = Field( + default=UNSET, + description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + ) -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1218.py b/githubkit/versions/ghec_v2022_11_28/models/group_1218.py index aaa502a31..f3aab1e81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1218.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1218.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - branch: str = Field( - description="The repository branch used to publish your site's source files." + sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") + after_id: Missing[int] = Field( + default=UNSET, + description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + before_id: Missing[int] = Field( + default=UNSET, + description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", ) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1219.py b/githubkit/versions/ghec_v2022_11_28/models/group_1219.py index fd668c058..c1416622e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1219.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1219.py @@ -9,43 +9,24 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Literal["legacy", "workflow"] = Field( - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( + title: Missing[str] = Field(default=UNSET, description="A name for the key.") + key: str = Field(description="The contents of the key.") + read_only: Missing[bool] = Field( default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/enterprise-cloud@latest//articles/permission-levels-for-a-user-account-repository/)."', ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1220.py b/githubkit/versions/ghec_v2022_11_28/models/group_1220.py index 08dc7668c..27dc128b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1220.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1220.py @@ -9,42 +9,29 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + name: str = Field( + description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + color: Missing[str] = Field( default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() - public: Missing[bool] = Field( + description: Missing[str] = Field( default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1221.py b/githubkit/versions/ghec_v2022_11_28/models/group_1221.py index f6b64639b..810ac1cad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1221.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1221.py @@ -9,43 +9,30 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' - ) - https_enforced: Missing[bool] = Field( + new_name: Missing[str] = Field( default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + color: Missing[str] = Field( default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( + description: Missing[str] = Field( default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1222.py b/githubkit/versions/ghec_v2022_11_28/models/group_1222.py index 87f0fc808..7be32859a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1222.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1222.py @@ -9,43 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: bool = Field( - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1223.py b/githubkit/versions/ghec_v2022_11_28/models/group_1223.py index 8e1147e66..8d864c09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1223.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1223.py @@ -9,43 +9,28 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + base: str = Field( + description="The name of the base branch that the head will be merged into." ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + head: str = Field( + description="The head to merge. This can be a branch name or a commit SHA1." ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( + commit_message: Missing[str] = Field( default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + description="Commit message to use for the merge commit. If omitted, a default message will be used.", ) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1224.py b/githubkit/versions/ghec_v2022_11_28/models/group_1224.py index 693572351..4c86e4385 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1224.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1224.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,21 +19,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - The source branch and directory used to publish your Pages site. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." + title: str = Field(description="The title of the milestone.") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - path: Missing[Literal["/", "/docs"]] = Field( + due_on: Missing[datetime] = Field( default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1225.py b/githubkit/versions/ghec_v2022_11_28/models/group_1225.py index feb862f2a..c674f9121 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1225.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1225.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -17,21 +18,26 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1224 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" - - build_type: Missing[Literal["legacy", "workflow"]] = Field( + title: Missing[str] = Field( + default=UNSET, description="The title of the milestone." + ) + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + description="The state of the milestone. Either `open` or `closed`.", ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." + ) + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1226.py b/githubkit/versions/ghec_v2022_11_28/models/group_1226.py index fa233e2bd..7a766cc33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1226.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1226.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,21 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1224 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" - - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' - ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + last_read_at: Missing[datetime] = Field( default=UNSET, - description="The source branch and directory used to publish your Pages site.", + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1227.py b/githubkit/versions/ghec_v2022_11_28/models/group_1227.py index d9c520300..41ae3801e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1227.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1227.py @@ -16,33 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ - - artifact_id: Missing[float] = Field( - default=UNSET, - description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="The target environment for this GitHub Pages deployment.", - ) - pages_build_version: str = Field( - default="GITHUB_SHA", - description="A unique string that represents the version of the build for this deployment.", - ) - oidc_token: str = Field( - description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." - ) - - -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" + + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) + +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1228.py b/githubkit/versions/ghec_v2022_11_28/models/group_1228.py index c70eda7b0..aaa502a31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1228.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1228.py @@ -9,19 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + Update the source for the repository. Must include the branch name and path. + """ - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + branch: str = Field( + description="The repository branch used to publish your site's source files." + ) + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1229.py b/githubkit/versions/ghec_v2022_11_28/models/group_1229.py index a5aa6012f..f6fcf3f58 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1229.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1229.py @@ -9,22 +9,43 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Literal["legacy", "workflow"] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1230.py b/githubkit/versions/ghec_v2022_11_28/models/group_1230.py index 74f4c6430..350aa5087 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1230.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1230.py @@ -9,21 +9,42 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0215 import CustomPropertyValue +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - properties: list[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1231.py b/githubkit/versions/ghec_v2022_11_28/models/group_1231.py index fc07eac19..302d53e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1231.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1231.py @@ -9,47 +9,43 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPostBody(GitHubModel): - """ReposOwnerRepoPullsPostBody""" - title: Missing[str] = Field( - default=UNSET, - description="The title of the new pull request. Required unless `issue` is specified.", - ) - head: str = Field( - description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." - ) - head_repo: Missing[str] = Field( - default=UNSET, - description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", - ) - base: str = Field( - description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" + + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' ) - maintainer_can_modify: Missing[bool] = Field( + https_enforced: Missing[bool] = Field( default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + description="Specify whether HTTPS should be enforced for the repository.", ) - draft: Missing[bool] = Field( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/enterprise-cloud@latest//articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', - ) - issue: Missing[int] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( default=UNSET, - description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoPullsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPullsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1232.py b/githubkit/versions/ghec_v2022_11_28/models/group_1232.py index b48ea50a0..aba2478a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1232.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1232.py @@ -9,17 +9,43 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - - body: str = Field(description="The text of the reply to the review comment.") - - -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: bool = Field( + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." + ) + + +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1233.py b/githubkit/versions/ghec_v2022_11_28/models/group_1233.py index 7206cc70c..867145b02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1233.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1233.py @@ -9,23 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the pull request review comment." +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", ) -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1234.py b/githubkit/versions/ghec_v2022_11_28/models/group_1234.py index b3df1fc05..693572351 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1234.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1234.py @@ -18,29 +18,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", - ) - base: Missing[str] = Field( - default=UNSET, - description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", + The source branch and directory used to publish your Pages site. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - maintainer_can_modify: Missing[bool] = Field( + path: Missing[Literal["/", "/docs"]] = Field( default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) -model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1235.py b/githubkit/versions/ghec_v2022_11_28/models/group_1235.py index 3bd074c1a..b6adb8791 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1235.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1235.py @@ -17,49 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1234 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" + + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1236.py b/githubkit/versions/ghec_v2022_11_28/models/group_1236.py index 9c11e4401..27898c0a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1236.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1236.py @@ -17,46 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1234 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', - ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" + + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' ) - in_reply_to: Missing[int] = Field( + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( default=UNSET, - description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1237.py b/githubkit/versions/ghec_v2022_11_28/models/group_1237.py index 19ce96346..d9c520300 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1237.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1237.py @@ -12,14 +12,37 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - - body: str = Field(description="The text of the review comment.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody + + The object used to create GitHub Pages deployment + """ + + artifact_id: Missing[float] = Field( + default=UNSET, + description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", + ) + artifact_url: Missing[str] = Field( + default=UNSET, + description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="The target environment for this GitHub Pages deployment.", + ) + pages_build_version: str = Field( + default="GITHUB_SHA", + description="A unique string that represents the version of the build for this deployment.", + ) + oidc_token: str = Field( + description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." + ) + + +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1238.py b/githubkit/versions/ghec_v2022_11_28/models/group_1238.py index ea6df3d24..c70eda7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1238.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1238.py @@ -9,33 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - commit_title: Missing[str] = Field( - default=UNSET, description="Title for the automatic commit message." - ) - commit_message: Missing[str] = Field( - default=UNSET, description="Extra detail to append to automatic commit message." - ) - sha: Missing[str] = Field( - default=UNSET, - description="SHA that pull request head must match to allow merge.", - ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1239.py b/githubkit/versions/ghec_v2022_11_28/models/group_1239.py index d66d3bdba..a5aa6012f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1239.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1239.py @@ -16,13 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1240.py b/githubkit/versions/ghec_v2022_11_28/models/group_1240.py index bd6450076..36e3a1ee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1240.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1240.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0219 import CustomPropertyValue -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValue] = Field( + description="A list of custom property names and associated values to apply to the repositories." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1241.py b/githubkit/versions/ghec_v2022_11_28/models/group_1241.py index 902cd85dd..fc07eac19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1241.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1241.py @@ -16,17 +16,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be requested." + title: Missing[str] = Field( + default=UNSET, + description="The title of the new pull request. Required unless `issue` is specified.", ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." + head: str = Field( + description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." + ) + head_repo: Missing[str] = Field( + default=UNSET, + description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", + ) + base: str = Field( + description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + ) + draft: Missing[bool] = Field( + default=UNSET, + description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/enterprise-cloud@latest//articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', + ) + issue: Missing[int] = Field( + default=UNSET, + description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPullsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1242.py b/githubkit/versions/ghec_v2022_11_28/models/group_1242.py index a68a64ae9..b48ea50a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1242.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1242.py @@ -12,21 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." - ) - team_reviewers: list[str] = Field( - description="An array of team `slug`s that will be requested." - ) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1243.py b/githubkit/versions/ghec_v2022_11_28/models/group_1243.py index 80abd70e6..7206cc70c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1243.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1243.py @@ -9,24 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be removed." - ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the pull request review comment." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1244.py b/githubkit/versions/ghec_v2022_11_28/models/group_1244.py index 3da9be3cf..b3df1fc05 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1244.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1244.py @@ -18,50 +18,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - commit_id: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + title: Missing[str] = Field( + default=UNSET, description="The title of the pull request." ) body: Missing[str] = Field( - default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + default=UNSET, description="The contents of the pull request." ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + description="State of this Pull Request. Either `open` or `closed`.", ) - comments: Missing[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( + base: Missing[str] = Field( default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", - ) - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str = Field( - description="The relative path to the file that necessitates a review comment." + description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", ) - position: Missing[int] = Field( + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", ) - body: str = Field(description="Text of the review comment.") - line: Missing[int] = Field(default=UNSET) - side: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1245.py b/githubkit/versions/ghec_v2022_11_28/models/group_1245.py index 60600e7a7..3bd074c1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1245.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1245.py @@ -9,17 +9,57 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - body: str = Field(description="The body text of the pull request review.") + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1246.py b/githubkit/versions/ghec_v2022_11_28/models/group_1246.py index 0c8535339..9c11e4401 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1246.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1246.py @@ -18,15 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - message: str = Field( - description="The message for the pull request review dismissal" + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." + ) + path: str = Field( + description="The relative path to the file that necessitates a comment." + ) + position: Missing[int] = Field( + default=UNSET, + description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', + ) + line: Missing[int] = Field( + default=UNSET, + description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", + ) + start_line: Missing[int] = Field( + default=UNSET, + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', + ) + start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( + default=UNSET, + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', + ) + in_reply_to: Missing[int] = Field( + default=UNSET, + description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, description="The level at which the comment is targeted." ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1247.py b/githubkit/versions/ghec_v2022_11_28/models/group_1247.py index 6298e6dda..19ce96346 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1247.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1247.py @@ -9,26 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - body: Missing[str] = Field( - default=UNSET, description="The body text of the pull request review" - ) - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." - ) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1248.py b/githubkit/versions/ghec_v2022_11_28/models/group_1248.py index 2cd70e70e..ea6df3d24 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1248.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1248.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,24 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - expected_head_sha: Missing[str] = Field( + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." + ) + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." + ) + sha: Missing[str] = Field( default=UNSET, - description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", + description="SHA that pull request head must match to allow merge.", + ) + merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( + default=UNSET, description="The merge method to use." ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1249.py b/githubkit/versions/ghec_v2022_11_28/models/group_1249.py index 0846546b8..d66d3bdba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1249.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1249.py @@ -16,13 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1250.py b/githubkit/versions/ghec_v2022_11_28/models/group_1250.py index e8299b1e6..bd6450076 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1250.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1250.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,40 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" - - tag_name: str = Field(description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` to create a draft (unpublished) release, `false` to create a published one.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", - ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', - ) - generate_release_notes: Missing[bool] = Field( - default=UNSET, - description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", - ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( - default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", - ) - - -model_rebuild(ReposOwnerRepoReleasesPostBody) - -__all__ = ("ReposOwnerRepoReleasesPostBody",) +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) + +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1251.py b/githubkit/versions/ghec_v2022_11_28/models/group_1251.py index 1c74bbef7..902cd85dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1251.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1251.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( - default=UNSET, - description="An alternate short description of the asset. Used in place of the filename.", + reviewers: list[str] = Field( + description="An array of user `login`s that will be requested." + ) + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be requested." ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1252.py b/githubkit/versions/ghec_v2022_11_28/models/group_1252.py index 05de52925..a68a64ae9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1252.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1252.py @@ -16,26 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." + reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." ) - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", - ) - previous_tag_name: Missing[str] = Field( - default=UNSET, - description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", - ) - configuration_file_path: Missing[str] = Field( - default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", + team_reviewers: list[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1253.py b/githubkit/versions/ghec_v2022_11_28/models/group_1253.py index 14a71f3c8..80abd70e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1253.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1253.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,36 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` makes the release a draft, and `false` publishes the release.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", - ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( - default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + reviewers: list[str] = Field( + description="An array of user `login`s that will be removed." ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1254.py b/githubkit/versions/ghec_v2022_11_28/models/group_1254.py index 2e3235af7..3da9be3cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1254.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1254.py @@ -14,16 +14,54 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the release." + commit_id: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", ) + body: Missing[str] = Field( + default=UNSET, + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + ) + event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + default=UNSET, + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + ) + comments: Missing[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = Field( + default=UNSET, + description="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) + + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str = Field( + description="The relative path to the file that necessitates a review comment." + ) + position: Missing[int] = Field( + default=UNSET, + description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + ) + body: str = Field(description="Text of the review comment.") + line: Missing[int] = Field(default=UNSET) + side: Missing[str] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1255.py b/githubkit/versions/ghec_v2022_11_28/models/group_1255.py index 30c2958c5..60600e7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1255.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1255.py @@ -9,89 +9,17 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0080 import RepositoryRulesetBypassActor -from .group_0085 import RepositoryRulesetConditions -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", - ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1256.py b/githubkit/versions/ghec_v2022_11_28/models/group_1256.py index 89723ebcc..0c8535339 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1256.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1256.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,82 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0080 import RepositoryRulesetBypassActor -from .group_0085 import RepositoryRulesetConditions -from .group_0095 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0096 import RepositoryRuleUpdate -from .group_0098 import RepositoryRuleRequiredLinearHistory -from .group_0099 import RepositoryRuleMergeQueue -from .group_0101 import RepositoryRuleRequiredDeployments -from .group_0104 import RepositoryRulePullRequest -from .group_0106 import RepositoryRuleRequiredStatusChecks -from .group_0108 import RepositoryRuleCommitMessagePattern -from .group_0110 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleCommitterEmailPattern -from .group_0114 import RepositoryRuleBranchNamePattern -from .group_0116 import RepositoryRuleTagNamePattern -from .group_0118 import RepositoryRuleFilePathRestriction -from .group_0120 import RepositoryRuleMaxFilePathLength -from .group_0122 import RepositoryRuleFileExtensionRestriction -from .group_0124 import RepositoryRuleMaxFileSize -from .group_0127 import RepositoryRuleWorkflows -from .group_0129 import RepositoryRuleCodeScanning +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + message: str = Field( + description="The message for the pull request review dismissal" ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1257.py b/githubkit/versions/ghec_v2022_11_28/models/group_1257.py index d03e15fb0..6298e6dda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1257.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1257.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,24 +18,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - state: Literal["open", "resolved"] = Field( - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." + body: Missing[str] = Field( + default=UNSET, description="The body text of the pull request review" ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." ) -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1258.py b/githubkit/versions/ghec_v2022_11_28/models/group_1258.py index decc899b3..2cd70e70e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1258.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1258.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( - description="The reason for bypassing push protection." - ) - placeholder_id: str = Field( - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." + expected_head_sha: Missing[str] = Field( + default=UNSET, + description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", ) -model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1259.py b/githubkit/versions/ghec_v2022_11_28/models/group_1259.py index e513640d6..0846546b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1259.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1259.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,25 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." - ) - target_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." - ) - context: Missing[str] = Field( - default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1260.py b/githubkit/versions/ghec_v2022_11_28/models/group_1260.py index 892aedcd1..e8299b1e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1260.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1260.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,19 +18,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - subscribed: Missing[bool] = Field( + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` to create a draft (unpublished) release, `false` to create a published one.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + ) + generate_release_notes: Missing[bool] = Field( default=UNSET, - description="Determines if notifications should be received from this repository.", + description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", ) - ignored: Missing[bool] = Field( + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( default=UNSET, - description="Determines if all notifications should be blocked from this repository.", + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", ) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1261.py b/githubkit/versions/ghec_v2022_11_28/models/group_1261.py index 59aae89ec..1c74bbef7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1261.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1261.py @@ -12,16 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( + default=UNSET, + description="An alternate short description of the asset. Used in place of the filename.", ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1262.py b/githubkit/versions/ghec_v2022_11_28/models/group_1262.py index 0e1dc53ec..05de52925 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1262.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1262.py @@ -12,16 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - names: list[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." + ) + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", + ) + previous_tag_name: Missing[str] = Field( + default=UNSET, + description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", + ) + configuration_file_path: Missing[str] = Field( + default=UNSET, + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", ) -model_rebuild(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1263.py b/githubkit/versions/ghec_v2022_11_28/models/group_1263.py index df5879cb9..14a71f3c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1263.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1263.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,21 +18,36 @@ from githubkit.utils import UNSET -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." + tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` makes the release a draft, and `false` publishes the release.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", ) - new_name: Missing[str] = Field( - default=UNSET, description="The new name to be given to the repository." + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", ) - team_ids: Missing[list[int]] = Field( + discussion_category_name: Missing[str] = Field( default=UNSET, - description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1264.py b/githubkit/versions/ghec_v2022_11_28/models/group_1264.py index 91764e3b1..2e3235af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1264.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1264.py @@ -9,34 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - owner: Missing[str] = Field( - default=UNSET, - description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", - ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." - ) - include_all_branches: Missing[bool] = Field( - default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the release." ) -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1265.py b/githubkit/versions/ghec_v2022_11_28/models/group_1265.py index 0909fe5f8..30c2958c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1265.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1265.py @@ -9,61 +9,89 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBody""" - - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", +from .group_0080 import RepositoryRulesetBypassActor +from .group_0085 import RepositoryRulesetConditions +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning + + +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target." ) - display_name: Missing[str] = Field( + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", + description="The actors that can bypass the rules in this ruleset", ) - name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() - emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( - min_length=1 if PYDANTIC_V2 else None, description="user emails" + conditions: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - schemas: Missing[list[str]] = Field(default=UNSET) - external_id: Missing[str] = Field(default=UNSET, alias="externalId") - groups: Missing[list[str]] = Field(default=UNSET) - active: Missing[bool] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[str] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersPostBody) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) - -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBody", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", - "ScimV2OrganizationsOrgUsersPostBodyPropName", -) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(ReposOwnerRepoRulesetsPostBody) + +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1266.py b/githubkit/versions/ghec_v2022_11_28/models/group_1266.py index 9cfdbc55c..89723ebcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1266.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1266.py @@ -9,61 +9,90 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - - schemas: Missing[list[str]] = Field(default=UNSET) - display_name: Missing[str] = Field( +from .group_0080 import RepositoryRulesetBypassActor +from .group_0085 import RepositoryRulesetConditions +from .group_0095 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0096 import RepositoryRuleUpdate +from .group_0098 import RepositoryRuleRequiredLinearHistory +from .group_0099 import RepositoryRuleMergeQueue +from .group_0101 import RepositoryRuleRequiredDeployments +from .group_0104 import RepositoryRulePullRequest +from .group_0106 import RepositoryRuleRequiredStatusChecks +from .group_0108 import RepositoryRuleCommitMessagePattern +from .group_0110 import RepositoryRuleCommitAuthorEmailPattern +from .group_0112 import RepositoryRuleCommitterEmailPattern +from .group_0114 import RepositoryRuleBranchNamePattern +from .group_0116 import RepositoryRuleTagNamePattern +from .group_0118 import RepositoryRuleFilePathRestriction +from .group_0120 import RepositoryRuleMaxFilePathLength +from .group_0122 import RepositoryRuleFileExtensionRestriction +from .group_0124 import RepositoryRuleMaxFileSize +from .group_0127 import RepositoryRuleWorkflows +from .group_0129 import RepositoryRuleCodeScanning + + +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. `evaluate` is not available for the `repository` target.", ) - external_id: Missing[str] = Field(default=UNSET, alias="externalId") - groups: Missing[list[str]] = Field(default=UNSET) - active: Missing[bool] = Field(default=UNSET) - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", ) - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() - emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( - min_length=1 if PYDANTIC_V2 else None, description="user emails" + conditions: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[str] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: Missing[str] = Field(default=UNSET) - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBody", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", -) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") + + +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) + +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1267.py b/githubkit/versions/ghec_v2022_11_28/models/group_1267.py index d9bccefa5..d03e15fb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1267.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1267.py @@ -13,75 +13,29 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - schemas: Missing[list[str]] = Field(default=UNSET) - operations: list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems + state: Literal["open", "resolved"] = Field( + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] = Field( - min_length=1 if PYDANTIC_V2 else None, - alias="Operations", - description="Set of operations to be performed", + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", ) -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, - list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items - ], - str, - ] - ] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: Missing[Union[bool, None]] = Field(default=UNSET) - user_name: Missing[Union[str, None]] = Field(default=UNSET, alias="userName") - external_id: Missing[Union[str, None]] = Field(default=UNSET, alias="externalId") - given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") - family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( - GitHubModel -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ - - value: Missing[str] = Field(default=UNSET) - primary: Missing[bool] = Field(default=UNSET) - - -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 -) -model_rebuild( - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items -) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", -) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1268.py b/githubkit/versions/ghec_v2022_11_28/models/group_1268.py index b47b92a02..decc899b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1268.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1268.py @@ -9,41 +9,24 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( + description="The reason for bypassing push protection." ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + placeholder_id: str = Field( + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." ) -model_rebuild(TeamsTeamIdPatchBody) +model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1269.py b/githubkit/versions/ghec_v2022_11_28/models/group_1269.py index 89bdf737f..e513640d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1269.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1269.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,25 @@ from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." + ) + target_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." + ) + context: Missing[str] = Field( default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", ) -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1270.py b/githubkit/versions/ghec_v2022_11_28/models/group_1270.py index 01b62eeb5..892aedcd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1270.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1270.py @@ -16,17 +16,19 @@ from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." + subscribed: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications should be received from this repository.", ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + ignored: Missing[bool] = Field( + default=UNSET, + description="Determines if all notifications should be blocked from this repository.", ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1271.py b/githubkit/versions/ghec_v2022_11_28/models/group_1271.py index 2333d1363..59aae89ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1271.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1271.py @@ -14,12 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - body: str = Field(description="The discussion comment's body text.") + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1272.py b/githubkit/versions/ghec_v2022_11_28/models/group_1272.py index a44a260ff..0e1dc53ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1272.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1272.py @@ -14,12 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - body: str = Field(description="The discussion comment's body text.") + names: list[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1273.py b/githubkit/versions/ghec_v2022_11_28/models/group_1273.py index fae48df36..df5879cb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1273.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1273.py @@ -9,29 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." + ) + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." + ) + team_ids: Missing[list[int]] = Field( + default=UNSET, + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1274.py b/githubkit/versions/ghec_v2022_11_28/models/group_1274.py index a1d80ad44..91764e3b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1274.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1274.py @@ -9,23 +9,34 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." + owner: Missing[str] = Field( + default=UNSET, + description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + ) + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." + ) + include_all_branches: Missing[bool] = Field( + default=UNSET, + description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to create a new private repository or `false` to create a new public one.", ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1275.py b/githubkit/versions/ghec_v2022_11_28/models/group_1275.py index db25cce3b..0909fe5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1275.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1275.py @@ -9,23 +9,61 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + display_name: Missing[str] = Field( + default=UNSET, + alias="displayName", + description="The name of the user, suitable for display to end-users", + ) + name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() + emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( + min_length=1 if PYDANTIC_V2 else None, description="user emails" ) + schemas: Missing[list[str]] = Field(default=UNSET) + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[list[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBody", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", + "ScimV2OrganizationsOrgUsersPostBodyPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1276.py b/githubkit/versions/ghec_v2022_11_28/models/group_1276.py index ffbe5471a..9cfdbc55c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1276.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1276.py @@ -9,24 +9,61 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( + schemas: Missing[list[str]] = Field(default=UNSET) + display_name: Missing[str] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + alias="displayName", + description="The name of the user, suitable for display to end-users", + ) + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[list[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() + emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( + min_length=1 if PYDANTIC_V2 else None, description="user emails" ) -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: Missing[str] = Field(default=UNSET) + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + + +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPutBody", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1277.py b/githubkit/versions/ghec_v2022_11_28/models/group_1277.py index 4a3155ea1..d9bccefa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1277.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1277.py @@ -9,20 +9,79 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" + + schemas: Missing[list[str]] = Field(default=UNSET) + operations: list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems + ] = Field( + min_length=1 if PYDANTIC_V2 else None, + alias="Operations", + description="Set of operations to be performed", + ) + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" + + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, + list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items + ], + str, + ] + ] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: Missing[Union[bool, None]] = Field(default=UNSET) + user_name: Missing[Union[str, None]] = Field(default=UNSET, alias="userName") + external_id: Missing[Union[str, None]] = Field(default=UNSET, alias="externalId") + given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") + family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 +) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items +) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1278.py b/githubkit/versions/ghec_v2022_11_28/models/group_1278.py index 726eb0c42..b47b92a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1278.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1278.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,15 +18,32 @@ from githubkit.utils import UNSET -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) permission: Missing[Literal["pull", "push", "admin"]] = Field( default=UNSET, - description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1279.py b/githubkit/versions/ghec_v2022_11_28/models/group_1279.py index 1c4758631..89bdf737f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1279.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1279.py @@ -16,30 +16,17 @@ from githubkit.utils import UNSET -class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - - groups: list[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems] = Field( - description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove." +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" + + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( + default=UNSET, + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", ) - synced_at: Missing[str] = Field(default=UNSET) - - -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str = Field(description="ID of the IdP group.") - group_name: str = Field(description="Name of the IdP group.") - group_description: str = Field(description="Description of the IdP group.") - id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) -model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBody", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1280.py b/githubkit/versions/ghec_v2022_11_28/models/group_1280.py index 7a471250b..01b62eeb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1280.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1280.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,33 +16,17 @@ from githubkit.utils import UNSET -class UserPatchBody(GitHubModel): - """UserPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The new name of the user.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address of the user." - ) - blog: Missing[str] = Field( - default=UNSET, description="The new blog URL of the user." - ) - twitter_username: Missing[Union[str, None]] = Field( - default=UNSET, description="The new Twitter username of the user." - ) - company: Missing[str] = Field( - default=UNSET, description="The new company of the user." - ) - location: Missing[str] = Field( - default=UNSET, description="The new location of the user." - ) - hireable: Missing[bool] = Field( - default=UNSET, description="The new hiring availability of the user." + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." ) - bio: Missing[str] = Field( - default=UNSET, description="The new short biography of the user." + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(UserPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("UserPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1281.py b/githubkit/versions/ghec_v2022_11_28/models/group_1281.py index 7fcd84ec9..2333d1363 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1281.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1281.py @@ -13,16 +13,13 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0179 import Codespace +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" + body: str = Field(description="The discussion comment's body text.") - total_count: int = Field() - codespaces: list[Codespace] = Field() +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1282.py b/githubkit/versions/ghec_v2022_11_28/models/group_1282.py index d698dac84..a44a260ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1282.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1282.py @@ -9,62 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserCodespacesPostBodyOneof0) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1283.py b/githubkit/versions/ghec_v2022_11_28/models/group_1283.py index 66fe98e84..fae48df36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1283.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1283.py @@ -14,54 +14,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") - - -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) __all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1284.py b/githubkit/versions/ghec_v2022_11_28/models/group_1284.py index 860690ae3..a1d80ad44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1284.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1284.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -17,38 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - total_count: int = Field() - secrets: list[CodespacesSecret] = Field() - - -class CodespacesSecret(GitHubModel): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" - ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ( - "CodespacesSecret", - "UserCodespacesSecretsGetResponse200", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1285.py b/githubkit/versions/ghec_v2022_11_28/models/group_1285.py index 6e0327543..db25cce3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1285.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1285.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,21 +18,14 @@ from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[list[Union[int, str]]] = Field( - default=UNSET, - description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1286.py b/githubkit/versions/ghec_v2022_11_28/models/group_1286.py index 3d5f7248b..ffbe5471a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1286.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1286.py @@ -9,20 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0168 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + ) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1287.py b/githubkit/versions/ghec_v2022_11_28/models/group_1287.py index 8e24407b0..4a3155ea1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1287.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1287.py @@ -12,16 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1288.py b/githubkit/versions/ghec_v2022_11_28/models/group_1288.py index 279933b1d..726eb0c42 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1288.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1288.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,21 +18,15 @@ from githubkit.utils import UNSET -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - machine: Missing[str] = Field( - default=UNSET, description="A valid machine to transition this codespace to." - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - recent_folders: Missing[list[str]] = Field( + permission: Missing[Literal["pull", "push", "admin"]] = Field( default=UNSET, - description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", ) -model_rebuild(UserCodespacesCodespaceNamePatchBody) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1289.py b/githubkit/versions/ghec_v2022_11_28/models/group_1289.py index bb81bd237..1c4758631 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1289.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1289.py @@ -12,17 +12,34 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0178 import CodespaceMachine +class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + groups: list[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems] = Field( + description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove." + ) + synced_at: Missing[str] = Field(default=UNSET) - total_count: int = Field() - machines: list[CodespaceMachine] = Field() +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) + group_id: str = Field(description="ID of the IdP group.") + group_name: str = Field(description="Name of the IdP group.") + group_description: str = Field(description="Description of the IdP group.") + id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) + +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) + +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBody", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1290.py b/githubkit/versions/ghec_v2022_11_28/models/group_1290.py index 874e87674..7a471250b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1290.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1290.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,33 @@ from githubkit.utils import UNSET -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserPatchBody(GitHubModel): + """UserPatchBody""" - name: Missing[str] = Field( - default=UNSET, description="A name for the new repository." + name: Missing[str] = Field(default=UNSET, description="The new name of the user.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address of the user." + ) + blog: Missing[str] = Field( + default=UNSET, description="The new blog URL of the user." + ) + twitter_username: Missing[Union[str, None]] = Field( + default=UNSET, description="The new Twitter username of the user." + ) + company: Missing[str] = Field( + default=UNSET, description="The new company of the user." + ) + location: Missing[str] = Field( + default=UNSET, description="The new location of the user." + ) + hireable: Missing[bool] = Field( + default=UNSET, description="The new hiring availability of the user." ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the new repository should be private." + bio: Missing[str] = Field( + default=UNSET, description="The new short biography of the user." ) -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(UserPatchBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1291.py b/githubkit/versions/ghec_v2022_11_28/models/group_1291.py index 04c6a0578..c5d2107b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1291.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1291.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0183 import Codespace + -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." - ) + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(UserEmailVisibilityPatchBody) +model_rebuild(UserCodespacesGetResponse200) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1292.py b/githubkit/versions/ghec_v2022_11_28/models/group_1292.py index 323704de5..d698dac84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1292.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1292.py @@ -9,24 +9,62 @@ from __future__ import annotations -from pydantic import Field +from typing import Literal -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", + repository_id: int = Field(description="Repository id for this codespace") + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1293.py b/githubkit/versions/ghec_v2022_11_28/models/group_1293.py index 361a2d243..66fe98e84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1293.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1293.py @@ -9,29 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" + + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} +class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace """ - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Email addresses associated with the GitHub user account.", - ) + pull_request_number: int = Field(description="Pull request number") + repository_id: int = Field(description="Repository id for this codespace") -model_rebuild(UserEmailsDeleteBodyOneof0) +model_rebuild(UserCodespacesPostBodyOneof1) +model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1294.py b/githubkit/versions/ghec_v2022_11_28/models/group_1294.py index 2f1994e20..860690ae3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1294.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1294.py @@ -9,22 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[CodespacesSecret] = Field() + + +class CodespacesSecret(GitHubModel): + """Codespaces Secret - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + Secrets for a GitHub Codespace. + """ + + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserGpgKeysPostBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ( + "CodespacesSecret", + "UserCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1295.py b/githubkit/versions/ghec_v2022_11_28/models/group_1295.py index 436810cf8..6e0327543 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1295.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1295.py @@ -9,20 +9,30 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0018 import Installation +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - total_count: int = Field() - installations: list[Installation] = Field() + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + selected_repository_ids: Missing[list[Union[int, str]]] = Field( + default=UNSET, + description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", + ) -model_rebuild(UserInstallationsGetResponse200) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1296.py b/githubkit/versions/ghec_v2022_11_28/models/group_1296.py index 867314a9d..34e2df928 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1296.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1296.py @@ -12,20 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0020 import Repository +from .group_0171 import MinimalRepository -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: list[Repository] = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1297.py b/githubkit/versions/ghec_v2022_11_28/models/group_1297.py index 09cbf54e3..8e24407b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1297.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1297.py @@ -9,13 +9,19 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: list[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." + ) -model_rebuild(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1298.py b/githubkit/versions/ghec_v2022_11_28/models/group_1298.py index b55f576db..279933b1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1298.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1298.py @@ -16,18 +16,21 @@ from githubkit.utils import UNSET -class UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", - description="The public SSH key to add to your GitHub account.", + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + recent_folders: Missing[list[str]] = Field( + default=UNSET, + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", ) -model_rebuild(UserKeysPostBody) +model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("UserKeysPostBody",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1299.py b/githubkit/versions/ghec_v2022_11_28/models/group_1299.py index 9b771b5c3..6f62f0912 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1299.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1299.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0182 import CodespaceMachine + -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' - ) + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -model_rebuild(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1300.py b/githubkit/versions/ghec_v2022_11_28/models/group_1300.py index f7179f26c..874e87674 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1300.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1300.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,42 +16,17 @@ from githubkit.utils import UNSET -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." ) - repositories: list[str] = Field() -model_rebuild(UserMigrationsPostBody) +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -__all__ = ("UserMigrationsPostBody",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1301.py b/githubkit/versions/ghec_v2022_11_28/models/group_1301.py index 4a4feed8c..04c6a0578 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1301.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1301.py @@ -9,24 +9,21 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) -model_rebuild(UserProjectsPostBody) +model_rebuild(UserEmailVisibilityPatchBody) -__all__ = ("UserProjectsPostBody",) +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1302.py b/githubkit/versions/ghec_v2022_11_28/models/group_1302.py index 422fe894e..323704de5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1302.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1302.py @@ -9,102 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", ) -model_rebuild(UserReposPostBody) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ("UserReposPostBody",) +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1303.py b/githubkit/versions/ghec_v2022_11_28/models/group_1303.py index 4608b8021..361a2d243 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1303.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1303.py @@ -11,22 +11,27 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserEmailsDeleteBodyOneof0(GitHubModel): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + {'emails': ['octocat@github.com', 'mona@github.com']} """ - account_urls: list[str] = Field( - description="Full URLs for the social media profiles to add." + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Email addresses associated with the GitHub user account.", ) -model_rebuild(UserSocialAccountsPostBody) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1304.py b/githubkit/versions/ghec_v2022_11_28/models/group_1304.py index 6c8803a2d..2f1994e20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1304.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1304.py @@ -12,21 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: list[str] = Field( - description="Full URLs for the social media profiles to delete." + name: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." ) + armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserSocialAccountsDeleteBody) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1305.py b/githubkit/versions/ghec_v2022_11_28/models/group_1305.py index 35fe31558..436810cf8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1305.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1305.py @@ -12,22 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0018 import Installation -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", - description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/enterprise-cloud@latest//authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', - ) +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(UserSshSigningKeysPostBody) -__all__ = ("UserSshSigningKeysPostBody",) +model_rebuild(UserInstallationsGetResponse200) + +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1306.py b/githubkit/versions/ghec_v2022_11_28/models/group_1306.py index 851e1541a..867314a9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1306.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1306.py @@ -11,87 +11,21 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0020 import Repository -class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestations: Missing[ - list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: list[Repository] = Field() -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", - ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropVerificationMaterial - """ - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropDsseEnvelope - """ - - -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1307.py b/githubkit/versions/ghec_v2022_11_28/models/group_1307.py new file mode 100644 index 000000000..09cbf54e3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1307.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" + + +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1308.py b/githubkit/versions/ghec_v2022_11_28/models/group_1308.py new file mode 100644 index 000000000..b55f576db --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1308.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", + ) + + +model_rebuild(UserKeysPostBody) + +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1309.py b/githubkit/versions/ghec_v2022_11_28/models/group_1309.py new file mode 100644 index 000000000..9b771b5c3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1309.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' + ) + + +model_rebuild(UserMembershipsOrgsOrgPatchBody) + +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1310.py b/githubkit/versions/ghec_v2022_11_28/models/group_1310.py new file mode 100644 index 000000000..f7179f26c --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1310.py @@ -0,0 +1,59 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" + + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[list[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude attributes from the API response to improve performance", + ) + repositories: list[str] = Field() + + +model_rebuild(UserMigrationsPostBody) + +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1311.py b/githubkit/versions/ghec_v2022_11_28/models/group_1311.py new file mode 100644 index 000000000..4a4feed8c --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1311.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" + + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + + +model_rebuild(UserProjectsPostBody) + +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1312.py b/githubkit/versions/ghec_v2022_11_28/models/group_1312.py new file mode 100644 index 000000000..422fe894e --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1312.py @@ -0,0 +1,110 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Whether the repository is initialized with a minimal README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description="The desired language or platform to apply to the .gitignore.", + ) + license_template: Missing[str] = Field( + default=UNSET, + description="The license keyword of the open source license for this repository.", + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + + +model_rebuild(UserReposPostBody) + +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1313.py b/githubkit/versions/ghec_v2022_11_28/models/group_1313.py new file mode 100644 index 000000000..4608b8021 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1313.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to add." + ) + + +model_rebuild(UserSocialAccountsPostBody) + +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1314.py b/githubkit/versions/ghec_v2022_11_28/models/group_1314.py new file mode 100644 index 000000000..6c8803a2d --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1314.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to delete." + ) + + +model_rebuild(UserSocialAccountsDeleteBody) + +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1315.py b/githubkit/versions/ghec_v2022_11_28/models/group_1315.py new file mode 100644 index 000000000..35fe31558 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1315.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/enterprise-cloud@latest//authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', + ) + + +model_rebuild(UserSshSigningKeysPostBody) + +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1316.py b/githubkit/versions/ghec_v2022_11_28/models/group_1316.py new file mode 100644 index 000000000..b2dd1e918 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1316.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" + + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests associated with the artifact attestations to delete.", + ) + + +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof0) + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1317.py b/githubkit/versions/ghec_v2022_11_28/models/group_1317.py new file mode 100644 index 000000000..e440ff714 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1317.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" + + attestation_ids: list[int] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of unique IDs associated with the artifact attestations to delete.", + ) + + +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof1) + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1318.py b/githubkit/versions/ghec_v2022_11_28/models/group_1318.py new file mode 100644 index 000000000..851e1541a --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1318.py @@ -0,0 +1,97 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropVerificationMaterial + """ + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropDsseEnvelope + """ + + +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/actions.py b/githubkit/versions/ghec_v2022_11_28/rest/actions.py index 6386c2595..4552b3faf 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/actions.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/actions.py @@ -5222,6 +5222,8 @@ def delete_self_hosted_runner_from_org( See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization """ + from ..models import ValidationErrorSimple + url = f"/orgs/{org}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -5230,6 +5232,9 @@ def delete_self_hosted_runner_from_org( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) async def async_delete_self_hosted_runner_from_org( @@ -5252,6 +5257,8 @@ async def async_delete_self_hosted_runner_from_org( See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization """ + from ..models import ValidationErrorSimple + url = f"/orgs/{org}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -5260,6 +5267,9 @@ async def async_delete_self_hosted_runner_from_org( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) def list_labels_for_self_hosted_runner_for_org( @@ -10177,6 +10187,8 @@ def delete_self_hosted_runner_from_repo( See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository """ + from ..models import ValidationErrorSimple + url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -10185,6 +10197,9 @@ def delete_self_hosted_runner_from_repo( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) async def async_delete_self_hosted_runner_from_repo( @@ -10208,6 +10223,8 @@ async def async_delete_self_hosted_runner_from_repo( See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository """ + from ..models import ValidationErrorSimple + url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -10216,6 +10233,9 @@ async def async_delete_self_hosted_runner_from_repo( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) def list_labels_for_self_hosted_runner_for_repo( diff --git a/githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py b/githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py index 0757d944c..3f170a1ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/code_scanning.py @@ -2548,6 +2548,7 @@ def update_default_setup( runner_type: Missing[Literal["standard", "labeled"]] = UNSET, runner_label: Missing[Union[str, None]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, + threat_model: Missing[Literal["remote", "remote_and_local"]] = UNSET, languages: Missing[ list[ Literal[ @@ -2641,6 +2642,7 @@ async def async_update_default_setup( runner_type: Missing[Literal["standard", "labeled"]] = UNSET, runner_label: Missing[Union[str, None]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, + threat_model: Missing[Literal["remote", "remote_and_local"]] = UNSET, languages: Missing[ list[ Literal[ diff --git a/githubkit/versions/ghec_v2022_11_28/rest/copilot.py b/githubkit/versions/ghec_v2022_11_28/rest/copilot.py index 199ec899c..c20cdeff3 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/copilot.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/copilot.py @@ -30,6 +30,7 @@ CopilotSeatDetails, CopilotUsageMetricsDay, EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, OrgsOrgCopilotBillingSeatsGetResponse200, OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, OrgsOrgCopilotBillingSelectedTeamsPostResponse201, @@ -41,6 +42,7 @@ CopilotSeatDetailsType, CopilotUsageMetricsDayType, EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type, OrgsOrgCopilotBillingSeatsGetResponse200Type, OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, @@ -302,6 +304,106 @@ async def async_copilot_metrics_for_enterprise( }, ) + def get_copilot_seat_details_for_enterprise_user( + self, + enterprise: str, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type, + ]: + """copilot/get-copilot-seat-details-for-enterprise-user + + GET /enterprises/{enterprise}/members/{username}/copilot + + > [!NOTE] + > This endpoint is in public preview and is subject to change. + + Gets the GitHub Copilot seat details for a member of an enterprise who currently has access to GitHub Copilot. + + The seat object contains information about the user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. + + Only enterprise owners can view Copilot seat assignment details for members of their enterprise. + + OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-user-management#get-copilot-seat-assignment-details-for-an-enterprise-user + """ + + from ..models import ( + BasicError, + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, + ) + + url = f"/enterprises/{enterprise}/members/{username}/copilot" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, + error_models={ + "500": BasicError, + "401": BasicError, + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_copilot_seat_details_for_enterprise_user( + self, + enterprise: str, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type, + ]: + """copilot/get-copilot-seat-details-for-enterprise-user + + GET /enterprises/{enterprise}/members/{username}/copilot + + > [!NOTE] + > This endpoint is in public preview and is subject to change. + + Gets the GitHub Copilot seat details for a member of an enterprise who currently has access to GitHub Copilot. + + The seat object contains information about the user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. + + Only enterprise owners can view Copilot seat assignment details for members of their enterprise. + + OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-user-management#get-copilot-seat-assignment-details-for-an-enterprise-user + """ + + from ..models import ( + BasicError, + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, + ) + + url = f"/enterprises/{enterprise}/members/{username}/copilot" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseMembersUsernameCopilotGetResponse200, + error_models={ + "500": BasicError, + "401": BasicError, + "403": BasicError, + "404": BasicError, + }, + ) + def copilot_metrics_for_enterprise_team( self, enterprise: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py b/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py index 5d0d6ecd4..c9163065f 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/dependabot.py @@ -31,6 +31,7 @@ DependabotAlert, DependabotAlertWithRepository, DependabotPublicKey, + DependabotRepositoryAccessDetails, DependabotSecret, EmptyObject, OrganizationDependabotSecret, @@ -42,9 +43,12 @@ DependabotAlertType, DependabotAlertWithRepositoryType, DependabotPublicKeyType, + DependabotRepositoryAccessDetailsType, DependabotSecretType, EmptyObjectType, OrganizationDependabotSecretType, + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + OrganizationsOrgDependabotRepositoryAccessPatchBodyType, OrgsOrgDependabotSecretsGetResponse200Type, OrgsOrgDependabotSecretsSecretNamePutBodyType, OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, @@ -224,6 +228,400 @@ async def async_list_alerts_for_enterprise( }, ) + def repository_access_for_org( + self, + org: str, + *, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + DependabotRepositoryAccessDetails, DependabotRepositoryAccessDetailsType + ]: + """dependabot/repository-access-for-org + + GET /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#lists-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import BasicError, DependabotRepositoryAccessDetails + + url = f"/organizations/{org}/dependabot/repository-access" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=DependabotRepositoryAccessDetails, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_repository_access_for_org( + self, + org: str, + *, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + DependabotRepositoryAccessDetails, DependabotRepositoryAccessDetailsType + ]: + """dependabot/repository-access-for-org + + GET /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#lists-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import BasicError, DependabotRepositoryAccessDetails + + url = f"/organizations/{org}/dependabot/repository-access" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=DependabotRepositoryAccessDetails, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + def update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessPatchBodyType, + ) -> Response: ... + + @overload + def update_repository_access_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + repository_ids_to_add: Missing[list[int]] = UNSET, + repository_ids_to_remove: Missing[list[int]] = UNSET, + ) -> Response: ... + + def update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrganizationsOrgDependabotRepositoryAccessPatchBodyType] = UNSET, + **kwargs, + ) -> Response: + """dependabot/update-repository-access-for-org + + PATCH /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + **Example request body:** + ```json + { + "repository_ids_to_add": [123, 456], + "repository_ids_to_remove": [789] + } + ``` + + See also: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + async def async_update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessPatchBodyType, + ) -> Response: ... + + @overload + async def async_update_repository_access_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + repository_ids_to_add: Missing[list[int]] = UNSET, + repository_ids_to_remove: Missing[list[int]] = UNSET, + ) -> Response: ... + + async def async_update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrganizationsOrgDependabotRepositoryAccessPatchBodyType] = UNSET, + **kwargs, + ) -> Response: + """dependabot/update-repository-access-for-org + + PATCH /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + **Example request body:** + ```json + { + "repository_ids_to_add": [123, 456], + "repository_ids_to_remove": [789] + } + ``` + + See also: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + def set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + ) -> Response: ... + + @overload + def set_repository_access_default_level( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + default_level: Literal["public", "internal"], + ) -> Response: ... + + def set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType + ] = UNSET, + **kwargs, + ) -> Response: + """dependabot/set-repository-access-default-level + + PUT /organizations/{org}/dependabot/repository-access/default-level + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Sets the default level of repository access Dependabot will have while performing an update. Available values are: + - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#set-the-default-repository-access-level-for-dependabot + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access/default-level" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + async def async_set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + ) -> Response: ... + + @overload + async def async_set_repository_access_default_level( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + default_level: Literal["public", "internal"], + ) -> Response: ... + + async def async_set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType + ] = UNSET, + **kwargs, + ) -> Response: + """dependabot/set-repository-access-default-level + + PUT /organizations/{org}/dependabot/repository-access/default-level + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Sets the default level of repository access Dependabot will have while performing an update. Available values are: + - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#set-the-default-repository-access-level-for-dependabot + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access/default-level" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + def list_alerts_for_org( self, org: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py index 2bbd116b7..b8708dfa0 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py @@ -2423,6 +2423,8 @@ def delete_self_hosted_runner_from_enterprise( See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-enterprise """ + from ..models import ValidationErrorSimple + url = f"/enterprises/{enterprise}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -2431,6 +2433,9 @@ def delete_self_hosted_runner_from_enterprise( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) async def async_delete_self_hosted_runner_from_enterprise( @@ -2451,6 +2456,8 @@ async def async_delete_self_hosted_runner_from_enterprise( See also: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-enterprise """ + from ..models import ValidationErrorSimple + url = f"/enterprises/{enterprise}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -2459,6 +2466,9 @@ async def async_delete_self_hosted_runner_from_enterprise( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) def list_labels_for_self_hosted_runner_for_enterprise( diff --git a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py index eb0f9c5b1..236c63ecd 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py @@ -55,6 +55,7 @@ OrgHook, OrgMembership, OrgRepoCustomPropertyValues, + OrgsOrgAttestationsBulkListPostResponse200, OrgsOrgAttestationsSubjectDigestGetResponse200, OrgsOrgCustomRepositoryRolesGetResponse200, OrgsOrgInstallationsGetResponse200, @@ -107,6 +108,8 @@ OrgHookType, OrgMembershipType, OrgRepoCustomPropertyValuesType, + OrgsOrgAttestationsBulkListPostBodyType, + OrgsOrgAttestationsBulkListPostResponse200Type, OrgsOrgAttestationsSubjectDigestGetResponse200Type, OrgsOrgCustomRepositoryRolesGetResponse200Type, OrgsOrgHooksHookIdConfigPatchBodyType, @@ -941,6 +944,190 @@ async def async_set_announcement_banner_for_org( response_model=AnnouncementBanner, ) + @overload + def list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgAttestationsBulkListPostBodyType, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + @overload + def list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + predicate_type: Missing[str] = UNSET, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + def list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgAttestationsBulkListPostBodyType] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: + """orgs/list-attestations-bulk + + POST /orgs/{org}/attestations/bulk-list + + List a collection of artifact attestations associated with any entry in a list of subject digests owned by an organization. + + The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required. + + **Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + + See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/orgs#list-attestations-by-bulk-subject-digests + """ + + from ..models import ( + OrgsOrgAttestationsBulkListPostBody, + OrgsOrgAttestationsBulkListPostResponse200, + ) + + url = f"/orgs/{org}/attestations/bulk-list" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgAttestationsBulkListPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + params=exclude_unset(params), + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsBulkListPostResponse200, + ) + + @overload + async def async_list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgAttestationsBulkListPostBodyType, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + @overload + async def async_list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + predicate_type: Missing[str] = UNSET, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + async def async_list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgAttestationsBulkListPostBodyType] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: + """orgs/list-attestations-bulk + + POST /orgs/{org}/attestations/bulk-list + + List a collection of artifact attestations associated with any entry in a list of subject digests owned by an organization. + + The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required. + + **Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/enterprise-cloud@latest//actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + + See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/orgs#list-attestations-by-bulk-subject-digests + """ + + from ..models import ( + OrgsOrgAttestationsBulkListPostBody, + OrgsOrgAttestationsBulkListPostResponse200, + ) + + url = f"/orgs/{org}/attestations/bulk-list" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgAttestationsBulkListPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + params=exclude_unset(params), + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsBulkListPostResponse200, + ) + def list_attestations( self, org: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py b/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py index dd5d1058e..ec0bfb4fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/private_registries.py @@ -171,7 +171,7 @@ def create_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Literal["maven_repository"], + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], username: Missing[Union[str, None]] = UNSET, encrypted_value: str, key_id: str, @@ -256,7 +256,7 @@ async def async_create_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Literal["maven_repository"], + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], username: Missing[Union[str, None]] = UNSET, encrypted_value: str, key_id: str, @@ -554,7 +554,9 @@ def update_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Missing[Literal["maven_repository"]] = UNSET, + registry_type: Missing[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] + ] = UNSET, username: Missing[Union[str, None]] = UNSET, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -633,7 +635,9 @@ async def async_update_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Missing[Literal["maven_repository"]] = UNSET, + registry_type: Missing[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] + ] = UNSET, username: Missing[Union[str, None]] = UNSET, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/repos.py b/githubkit/versions/ghec_v2022_11_28/rest/repos.py index ee8c3dd7a..d74a7128d 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/repos.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/repos.py @@ -2138,6 +2138,7 @@ def delete( error_models={ "403": ReposOwnerRepoDeleteResponse403, "404": BasicError, + "409": BasicError, }, ) @@ -2175,6 +2176,7 @@ async def async_delete( error_models={ "403": ReposOwnerRepoDeleteResponse403, "404": BasicError, + "409": BasicError, }, ) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py b/githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py index 879a17d32..1c382d776 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/secret_scanning.py @@ -85,6 +85,7 @@ def list_alerts_for_enterprise( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -119,6 +120,7 @@ def list_alerts_for_enterprise( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -150,6 +152,7 @@ async def async_list_alerts_for_enterprise( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -184,6 +187,7 @@ async def async_list_alerts_for_enterprise( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -468,6 +472,7 @@ def list_alerts_for_org( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -506,6 +511,7 @@ def list_alerts_for_org( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -538,6 +544,7 @@ async def async_list_alerts_for_org( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -576,6 +583,7 @@ async def async_list_alerts_for_org( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -1465,6 +1473,7 @@ def list_alerts_for_repo( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[list[SecretScanningAlert], list[SecretScanningAlertType]]: """secret-scanning/list-alerts-for-repo @@ -1500,6 +1509,7 @@ def list_alerts_for_repo( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -1532,6 +1542,7 @@ async def async_list_alerts_for_repo( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[list[SecretScanningAlert], list[SecretScanningAlertType]]: """secret-scanning/list-alerts-for-repo @@ -1567,6 +1578,7 @@ async def async_list_alerts_for_repo( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -1588,6 +1600,7 @@ def get_alert( repo: str, alert_number: int, *, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[SecretScanningAlert, SecretScanningAlertType]: """secret-scanning/get-alert @@ -1610,11 +1623,16 @@ def get_alert( url = f"/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}" + params = { + "hide_secret": hide_secret, + } + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return self._github.request( "GET", url, + params=exclude_unset(params), headers=exclude_unset(headers), response_model=SecretScanningAlert, error_models={ @@ -1628,6 +1646,7 @@ async def async_get_alert( repo: str, alert_number: int, *, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[SecretScanningAlert, SecretScanningAlertType]: """secret-scanning/get-alert @@ -1650,11 +1669,16 @@ async def async_get_alert( url = f"/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}" + params = { + "hide_secret": hide_secret, + } + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return await self._github.arequest( "GET", url, + params=exclude_unset(params), headers=exclude_unset(headers), response_model=SecretScanningAlert, error_models={ diff --git a/githubkit/versions/ghec_v2022_11_28/rest/users.py b/githubkit/versions/ghec_v2022_11_28/rest/users.py index 6b7dec385..66a8a78dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/users.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/users.py @@ -60,6 +60,8 @@ UserSocialAccountsDeleteBodyType, UserSocialAccountsPostBodyType, UserSshSigningKeysPostBodyType, + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) @@ -3163,6 +3165,314 @@ async def async_get_by_username( }, ) + @overload + def delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ], + ) -> Response: ... + + @overload + def delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + ) -> Response: ... + + @overload + def delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + attestation_ids: list[int], + ) -> Response: ... + + def delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ] + ] = UNSET, + **kwargs, + ) -> Response: + """users/delete-attestations-bulk + + POST /users/{username}/attestations/delete-request + + Delete artifact attestations in bulk by either subject digests or unique ID. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#delete-attestations-in-bulk + """ + + from typing import Union + + from ..models import ( + BasicError, + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) + + url = f"/users/{username}/attestations/delete-request" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ], + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + @overload + async def async_delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ], + ) -> Response: ... + + @overload + async def async_delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + ) -> Response: ... + + @overload + async def async_delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + attestation_ids: list[int], + ) -> Response: ... + + async def async_delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ] + ] = UNSET, + **kwargs, + ) -> Response: + """users/delete-attestations-bulk + + POST /users/{username}/attestations/delete-request + + Delete artifact attestations in bulk by either subject digests or unique ID. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#delete-attestations-in-bulk + """ + + from typing import Union + + from ..models import ( + BasicError, + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) + + url = f"/users/{username}/attestations/delete-request" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ], + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + def delete_attestations_by_subject_digest( + self, + username: str, + subject_digest: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-subject-digest + + DELETE /users/{username}/attestations/digest/{subject_digest} + + Delete an artifact attestation by subject digest. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#delete-attestations-by-subject-digest + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/digest/{subject_digest}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + async def async_delete_attestations_by_subject_digest( + self, + username: str, + subject_digest: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-subject-digest + + DELETE /users/{username}/attestations/digest/{subject_digest} + + Delete an artifact attestation by subject digest. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#delete-attestations-by-subject-digest + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/digest/{subject_digest}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + def delete_attestations_by_id( + self, + username: str, + attestation_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-id + + DELETE /users/{username}/attestations/{attestation_id} + + Delete an artifact attestation by unique ID that is associated with a repository owned by a user. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#delete-attestations-by-id + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/{attestation_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_delete_attestations_by_id( + self, + username: str, + attestation_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-id + + DELETE /users/{username}/attestations/{attestation_id} + + Delete an artifact attestation by unique ID that is associated with a repository owned by a user. + + See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#delete-attestations-by-id + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/{attestation_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + def list_attestations( self, username: str, diff --git a/githubkit/versions/ghec_v2022_11_28/types/__init__.py b/githubkit/versions/ghec_v2022_11_28/types/__init__.py index 7ef57c951..4d0301fa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/types/__init__.py @@ -61,6 +61,9 @@ from .group_0017 import AppPermissionsType as AppPermissionsType from .group_0018 import InstallationType as InstallationType from .group_0019 import LicenseSimpleType as LicenseSimpleType + from .group_0020 import ( + RepositoryPropCodeSearchIndexStatusType as RepositoryPropCodeSearchIndexStatusType, + ) from .group_0020 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -549,9009 +552,9042 @@ RulesetVersionWithStateAllof1PropStateType as RulesetVersionWithStateAllof1PropStateType, ) from .group_0142 import ( - OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, + SecretScanningLocationCommitType as SecretScanningLocationCommitType, + ) + from .group_0142 import ( + SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, + ) + from .group_0142 import ( + SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, + ) + from .group_0142 import ( + SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, + ) + from .group_0142 import ( + SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, + ) + from .group_0142 import ( + SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, + ) + from .group_0142 import ( + SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) from .group_0143 import ( - ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, + SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, + ) + from .group_0143 import ( + SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, + ) + from .group_0143 import ( + SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, + ) + from .group_0143 import ( + SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0143 import ActionsBillingUsageType as ActionsBillingUsageType from .group_0144 import ( - AdvancedSecurityActiveCommittersRepositoryType as AdvancedSecurityActiveCommittersRepositoryType, + SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) from .group_0144 import ( + SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, + ) + from .group_0145 import ( + OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, + ) + from .group_0146 import ( + ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, + ) + from .group_0146 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0147 import ( + AdvancedSecurityActiveCommittersRepositoryType as AdvancedSecurityActiveCommittersRepositoryType, + ) + from .group_0147 import ( AdvancedSecurityActiveCommittersType as AdvancedSecurityActiveCommittersType, ) - from .group_0144 import ( + from .group_0147 import ( AdvancedSecurityActiveCommittersUserType as AdvancedSecurityActiveCommittersUserType, ) - from .group_0145 import ( + from .group_0148 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItemsType as GetAllCostCentersPropCostCentersItemsPropResourcesItemsType, ) - from .group_0145 import ( + from .group_0148 import ( GetAllCostCentersPropCostCentersItemsType as GetAllCostCentersPropCostCentersItemsType, ) - from .group_0145 import GetAllCostCentersType as GetAllCostCentersType - from .group_0146 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0147 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0148 import ( + from .group_0148 import GetAllCostCentersType as GetAllCostCentersType + from .group_0149 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0150 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0151 import ( BillingUsageReportPropUsageItemsItemsType as BillingUsageReportPropUsageItemsItemsType, ) - from .group_0148 import BillingUsageReportType as BillingUsageReportType - from .group_0149 import MilestoneType as MilestoneType - from .group_0150 import IssueTypeType as IssueTypeType - from .group_0151 import ReactionRollupType as ReactionRollupType - from .group_0152 import ( + from .group_0151 import BillingUsageReportType as BillingUsageReportType + from .group_0152 import MilestoneType as MilestoneType + from .group_0153 import IssueTypeType as IssueTypeType + from .group_0154 import ReactionRollupType as ReactionRollupType + from .group_0155 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0152 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0152 import IssueType as IssueType - from .group_0152 import SubIssuesSummaryType as SubIssuesSummaryType - from .group_0153 import IssueCommentType as IssueCommentType - from .group_0154 import ActorType as ActorType - from .group_0154 import ( + from .group_0155 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0155 import IssueType as IssueType + from .group_0155 import SubIssuesSummaryType as SubIssuesSummaryType + from .group_0156 import IssueCommentType as IssueCommentType + from .group_0157 import ActorType as ActorType + from .group_0157 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0154 import EventPropPayloadType as EventPropPayloadType - from .group_0154 import EventPropRepoType as EventPropRepoType - from .group_0154 import EventType as EventType - from .group_0155 import FeedPropLinksType as FeedPropLinksType - from .group_0155 import FeedType as FeedType - from .group_0155 import LinkWithTypeType as LinkWithTypeType - from .group_0156 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0156 import BaseGistType as BaseGistType - from .group_0157 import ( + from .group_0157 import EventPropPayloadType as EventPropPayloadType + from .group_0157 import EventPropRepoType as EventPropRepoType + from .group_0157 import EventType as EventType + from .group_0158 import FeedPropLinksType as FeedPropLinksType + from .group_0158 import FeedType as FeedType + from .group_0158 import LinkWithTypeType as LinkWithTypeType + from .group_0159 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0159 import BaseGistType as BaseGistType + from .group_0160 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0157 import GistHistoryType as GistHistoryType - from .group_0157 import ( + from .group_0160 import GistHistoryType as GistHistoryType + from .group_0160 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0157 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0158 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0158 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0158 import GistSimpleType as GistSimpleType - from .group_0158 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0158 import PublicUserType as PublicUserType - from .group_0159 import GistCommentType as GistCommentType - from .group_0160 import ( + from .group_0160 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0161 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0161 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0161 import GistSimpleType as GistSimpleType + from .group_0161 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0161 import PublicUserType as PublicUserType + from .group_0162 import GistCommentType as GistCommentType + from .group_0163 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0160 import GistCommitType as GistCommitType - from .group_0161 import GitignoreTemplateType as GitignoreTemplateType - from .group_0162 import LicenseType as LicenseType - from .group_0163 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0164 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0165 import ( + from .group_0163 import GistCommitType as GistCommitType + from .group_0164 import GitignoreTemplateType as GitignoreTemplateType + from .group_0165 import LicenseType as LicenseType + from .group_0166 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0167 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0168 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0165 import ( + from .group_0168 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0166 import ( + from .group_0169 import ( ApiOverviewPropDomainsPropActionsInboundType as ApiOverviewPropDomainsPropActionsInboundType, ) - from .group_0166 import ( + from .group_0169 import ( ApiOverviewPropDomainsPropArtifactAttestationsType as ApiOverviewPropDomainsPropArtifactAttestationsType, ) - from .group_0166 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0166 import ( + from .group_0169 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0169 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0166 import ApiOverviewType as ApiOverviewType - from .group_0167 import ( + from .group_0169 import ApiOverviewType as ApiOverviewType + from .group_0170 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropCodeSecurityType as SecurityAndAnalysisPropCodeSecurityType, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningAiDetectionType as SecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0167 import ( + from .group_0170 import ( SecurityAndAnalysisPropSecretScanningValidityChecksType as SecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_0167 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0168 import CodeOfConductType as CodeOfConductType - from .group_0168 import ( + from .group_0170 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0171 import CodeOfConductType as CodeOfConductType + from .group_0171 import ( + MinimalRepositoryPropCustomPropertiesType as MinimalRepositoryPropCustomPropertiesType, + ) + from .group_0171 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0168 import ( + from .group_0171 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0168 import MinimalRepositoryType as MinimalRepositoryType - from .group_0169 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0169 import ThreadType as ThreadType - from .group_0170 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0171 import ( + from .group_0171 import MinimalRepositoryType as MinimalRepositoryType + from .group_0172 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0172 import ThreadType as ThreadType + from .group_0173 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0174 import ( OrganizationCustomRepositoryRoleType as OrganizationCustomRepositoryRoleType, ) - from .group_0172 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0172 import OrganizationFullType as OrganizationFullType - from .group_0173 import OidcCustomSubType as OidcCustomSubType - from .group_0174 import ( + from .group_0175 import ( + DependabotRepositoryAccessDetailsType as DependabotRepositoryAccessDetailsType, + ) + from .group_0176 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0176 import OrganizationFullType as OrganizationFullType + from .group_0177 import OidcCustomSubType as OidcCustomSubType + from .group_0178 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0175 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0176 import ( + from .group_0179 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0180 import ( SecretScanningBypassRequestPropDataItemsType as SecretScanningBypassRequestPropDataItemsType, ) - from .group_0176 import ( + from .group_0180 import ( SecretScanningBypassRequestPropOrganizationType as SecretScanningBypassRequestPropOrganizationType, ) - from .group_0176 import ( + from .group_0180 import ( SecretScanningBypassRequestPropRepositoryType as SecretScanningBypassRequestPropRepositoryType, ) - from .group_0176 import ( + from .group_0180 import ( SecretScanningBypassRequestPropRequesterType as SecretScanningBypassRequestPropRequesterType, ) - from .group_0176 import ( + from .group_0180 import ( SecretScanningBypassRequestType as SecretScanningBypassRequestType, ) - from .group_0177 import ( + from .group_0181 import ( CampaignSummaryPropAlertStatsType as CampaignSummaryPropAlertStatsType, ) - from .group_0177 import CampaignSummaryType as CampaignSummaryType - from .group_0178 import CodespaceMachineType as CodespaceMachineType - from .group_0179 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0179 import ( + from .group_0181 import CampaignSummaryType as CampaignSummaryType + from .group_0182 import CodespaceMachineType as CodespaceMachineType + from .group_0183 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0183 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0179 import CodespaceType as CodespaceType - from .group_0180 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0181 import ( + from .group_0183 import CodespaceType as CodespaceType + from .group_0184 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0185 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0181 import ( + from .group_0185 import ( CopilotOrganizationSeatBreakdownType as CopilotOrganizationSeatBreakdownType, ) - from .group_0182 import CredentialAuthorizationType as CredentialAuthorizationType - from .group_0183 import ( + from .group_0186 import CredentialAuthorizationType as CredentialAuthorizationType + from .group_0187 import ( OrganizationCustomRepositoryRoleCreateSchemaType as OrganizationCustomRepositoryRoleCreateSchemaType, ) - from .group_0184 import ( + from .group_0188 import ( OrganizationCustomRepositoryRoleUpdateSchemaType as OrganizationCustomRepositoryRoleUpdateSchemaType, ) - from .group_0185 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0186 import ( + from .group_0189 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0190 import ( SecretScanningDismissalRequestPropDataItemsType as SecretScanningDismissalRequestPropDataItemsType, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestPropOrganizationType as SecretScanningDismissalRequestPropOrganizationType, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestPropRepositoryType as SecretScanningDismissalRequestPropRepositoryType, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestPropRequesterType as SecretScanningDismissalRequestPropRequesterType, ) - from .group_0186 import ( + from .group_0190 import ( SecretScanningDismissalRequestType as SecretScanningDismissalRequestType, ) - from .group_0187 import PackageType as PackageType - from .group_0188 import ( + from .group_0191 import PackageType as PackageType + from .group_0192 import ( ExternalGroupPropMembersItemsType as ExternalGroupPropMembersItemsType, ) - from .group_0188 import ( + from .group_0192 import ( ExternalGroupPropTeamsItemsType as ExternalGroupPropTeamsItemsType, ) - from .group_0188 import ExternalGroupType as ExternalGroupType - from .group_0189 import ( + from .group_0192 import ExternalGroupType as ExternalGroupType + from .group_0193 import ( ExternalGroupsPropGroupsItemsType as ExternalGroupsPropGroupsItemsType, ) - from .group_0189 import ExternalGroupsType as ExternalGroupsType - from .group_0190 import OrganizationInvitationType as OrganizationInvitationType - from .group_0191 import ( + from .group_0193 import ExternalGroupsType as ExternalGroupsType + from .group_0194 import OrganizationInvitationType as OrganizationInvitationType + from .group_0195 import ( RepositoryFineGrainedPermissionType as RepositoryFineGrainedPermissionType, ) - from .group_0192 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0192 import OrgHookType as OrgHookType - from .group_0193 import ( + from .group_0196 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0196 import OrgHookType as OrgHookType + from .group_0197 import ( ApiInsightsRouteStatsItemsType as ApiInsightsRouteStatsItemsType, ) - from .group_0194 import ( + from .group_0198 import ( ApiInsightsSubjectStatsItemsType as ApiInsightsSubjectStatsItemsType, ) - from .group_0195 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType - from .group_0196 import ( + from .group_0199 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType + from .group_0200 import ( ApiInsightsTimeStatsItemsType as ApiInsightsTimeStatsItemsType, ) - from .group_0197 import ( + from .group_0201 import ( ApiInsightsUserStatsItemsType as ApiInsightsUserStatsItemsType, ) - from .group_0198 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0199 import InteractionLimitType as InteractionLimitType - from .group_0200 import ( + from .group_0202 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0203 import InteractionLimitType as InteractionLimitType + from .group_0204 import ( OrganizationCreateIssueTypeType as OrganizationCreateIssueTypeType, ) - from .group_0201 import ( + from .group_0205 import ( OrganizationUpdateIssueTypeType as OrganizationUpdateIssueTypeType, ) - from .group_0202 import ( + from .group_0206 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0202 import OrgMembershipType as OrgMembershipType - from .group_0203 import MigrationType as MigrationType - from .group_0204 import ( + from .group_0206 import OrgMembershipType as OrgMembershipType + from .group_0207 import MigrationType as MigrationType + from .group_0208 import ( OrganizationFineGrainedPermissionType as OrganizationFineGrainedPermissionType, ) - from .group_0205 import OrganizationRoleType as OrganizationRoleType - from .group_0205 import ( + from .group_0209 import OrganizationRoleType as OrganizationRoleType + from .group_0209 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0206 import ( + from .group_0210 import ( OrganizationCustomOrganizationRoleCreateSchemaType as OrganizationCustomOrganizationRoleCreateSchemaType, ) - from .group_0207 import ( + from .group_0211 import ( OrganizationCustomOrganizationRoleUpdateSchemaType as OrganizationCustomOrganizationRoleUpdateSchemaType, ) - from .group_0208 import ( + from .group_0212 import ( TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, ) - from .group_0208 import TeamRoleAssignmentType as TeamRoleAssignmentType - from .group_0209 import UserRoleAssignmentType as UserRoleAssignmentType - from .group_0210 import ( + from .group_0212 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0213 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0214 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0210 import ( + from .group_0214 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0210 import ( + from .group_0214 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0210 import PackageVersionType as PackageVersionType - from .group_0211 import ( + from .group_0214 import PackageVersionType as PackageVersionType + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0211 import ( + from .group_0215 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0212 import ( + from .group_0216 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0213 import ( + from .group_0217 import ( OrgPrivateRegistryConfigurationWithSelectedRepositoriesType as OrgPrivateRegistryConfigurationWithSelectedRepositoriesType, ) - from .group_0214 import ProjectType as ProjectType - from .group_0215 import CustomPropertyValueType as CustomPropertyValueType - from .group_0216 import ( + from .group_0218 import ProjectType as ProjectType + from .group_0219 import CustomPropertyValueType as CustomPropertyValueType + from .group_0220 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0217 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0218 import ( + from .group_0221 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0222 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0218 import ( + from .group_0222 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0218 import FullRepositoryType as FullRepositoryType - from .group_0219 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0220 import ( + from .group_0222 import FullRepositoryType as FullRepositoryType + from .group_0223 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0224 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0220 import ( + from .group_0224 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0220 import RuleSuiteType as RuleSuiteType - from .group_0221 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0222 import ( + from .group_0224 import RuleSuiteType as RuleSuiteType + from .group_0225 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0226 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0222 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0222 import ( + from .group_0226 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0226 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0222 import ( + from .group_0226 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0223 import ( + from .group_0227 import ( GroupMappingPropGroupsItemsType as GroupMappingPropGroupsItemsType, ) - from .group_0223 import GroupMappingType as GroupMappingType - from .group_0224 import TeamFullType as TeamFullType - from .group_0224 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0224 import TeamOrganizationType as TeamOrganizationType - from .group_0225 import TeamDiscussionType as TeamDiscussionType - from .group_0226 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0227 import ReactionType as ReactionType - from .group_0228 import TeamMembershipType as TeamMembershipType - from .group_0229 import ( + from .group_0227 import GroupMappingType as GroupMappingType + from .group_0228 import TeamFullType as TeamFullType + from .group_0228 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0228 import TeamOrganizationType as TeamOrganizationType + from .group_0229 import TeamDiscussionType as TeamDiscussionType + from .group_0230 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0231 import ReactionType as ReactionType + from .group_0232 import TeamMembershipType as TeamMembershipType + from .group_0233 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0229 import TeamProjectType as TeamProjectType - from .group_0230 import ( + from .group_0233 import TeamProjectType as TeamProjectType + from .group_0234 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0230 import TeamRepositoryType as TeamRepositoryType - from .group_0231 import ProjectCardType as ProjectCardType - from .group_0232 import ProjectColumnType as ProjectColumnType - from .group_0233 import ( + from .group_0234 import TeamRepositoryType as TeamRepositoryType + from .group_0235 import ProjectCardType as ProjectCardType + from .group_0236 import ProjectColumnType as ProjectColumnType + from .group_0237 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0234 import RateLimitType as RateLimitType - from .group_0235 import RateLimitOverviewType as RateLimitOverviewType - from .group_0236 import ( + from .group_0238 import RateLimitType as RateLimitType + from .group_0239 import RateLimitOverviewType as RateLimitOverviewType + from .group_0240 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0237 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0237 import ArtifactType as ArtifactType - from .group_0238 import ( + from .group_0241 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0241 import ArtifactType as ArtifactType + from .group_0242 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0238 import ActionsCacheListType as ActionsCacheListType - from .group_0239 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0239 import JobType as JobType - from .group_0240 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0241 import ActionsSecretType as ActionsSecretType - from .group_0242 import ActionsVariableType as ActionsVariableType - from .group_0243 import ( + from .group_0242 import ActionsCacheListType as ActionsCacheListType + from .group_0243 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0243 import JobType as JobType + from .group_0244 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0245 import ActionsSecretType as ActionsSecretType + from .group_0246 import ActionsVariableType as ActionsVariableType + from .group_0247 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0244 import ( + from .group_0248 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0245 import ( + from .group_0249 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0245 import ( + from .group_0249 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0245 import ( + from .group_0249 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0245 import ( + from .group_0249 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0245 import PullRequestMinimalType as PullRequestMinimalType - from .group_0246 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0246 import ( + from .group_0249 import PullRequestMinimalType as PullRequestMinimalType + from .group_0250 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0250 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0246 import SimpleCommitType as SimpleCommitType - from .group_0247 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0247 import WorkflowRunType as WorkflowRunType - from .group_0248 import ( + from .group_0250 import SimpleCommitType as SimpleCommitType + from .group_0251 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0251 import WorkflowRunType as WorkflowRunType + from .group_0252 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0248 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0249 import ( + from .group_0252 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0253 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0250 import ( + from .group_0254 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0251 import ( + from .group_0255 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0251 import ( + from .group_0255 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0251 import PendingDeploymentType as PendingDeploymentType - from .group_0252 import ( + from .group_0255 import PendingDeploymentType as PendingDeploymentType + from .group_0256 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0252 import DeploymentType as DeploymentType - from .group_0253 import ( + from .group_0256 import DeploymentType as DeploymentType + from .group_0257 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0253 import ( + from .group_0257 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0253 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0254 import ( + from .group_0257 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0258 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0254 import ( + from .group_0258 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0254 import ( + from .group_0258 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0254 import ( + from .group_0258 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0254 import WorkflowUsageType as WorkflowUsageType - from .group_0255 import ActivityType as ActivityType - from .group_0256 import AutolinkType as AutolinkType - from .group_0257 import ( + from .group_0258 import WorkflowUsageType as WorkflowUsageType + from .group_0259 import ActivityType as ActivityType + from .group_0260 import AutolinkType as AutolinkType + from .group_0261 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0258 import ( + from .group_0262 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0259 import ( + from .group_0263 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0259 import ( + from .group_0263 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0260 import ( + from .group_0264 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0260 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0261 import ( + from .group_0264 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0265 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0261 import ( + from .group_0265 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0261 import BranchProtectionType as BranchProtectionType - from .group_0261 import ( + from .group_0265 import BranchProtectionType as BranchProtectionType + from .group_0265 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0261 import ( + from .group_0265 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0261 import ( + from .group_0265 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0262 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0262 import ShortBranchType as ShortBranchType - from .group_0263 import GitUserType as GitUserType - from .group_0264 import VerificationType as VerificationType - from .group_0265 import DiffEntryType as DiffEntryType - from .group_0266 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0266 import CommitPropStatsType as CommitPropStatsType - from .group_0266 import CommitType as CommitType - from .group_0266 import EmptyObjectType as EmptyObjectType - from .group_0267 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0267 import CommitPropCommitType as CommitPropCommitType - from .group_0268 import ( + from .group_0266 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0266 import ShortBranchType as ShortBranchType + from .group_0267 import GitUserType as GitUserType + from .group_0268 import VerificationType as VerificationType + from .group_0269 import DiffEntryType as DiffEntryType + from .group_0270 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0270 import CommitPropStatsType as CommitPropStatsType + from .group_0270 import CommitType as CommitType + from .group_0270 import EmptyObjectType as EmptyObjectType + from .group_0271 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0271 import CommitPropCommitType as CommitPropCommitType + from .group_0272 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0268 import BranchWithProtectionType as BranchWithProtectionType - from .group_0269 import ( + from .group_0272 import BranchWithProtectionType as BranchWithProtectionType + from .group_0273 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0269 import ( + from .group_0273 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0269 import ProtectedBranchType as ProtectedBranchType - from .group_0269 import ( + from .group_0273 import ProtectedBranchType as ProtectedBranchType + from .group_0273 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0269 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0270 import ( + from .group_0273 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0274 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0271 import ( + from .group_0275 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0271 import ( + from .group_0275 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0272 import DeploymentSimpleType as DeploymentSimpleType - from .group_0273 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0273 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0273 import CheckRunType as CheckRunType - from .group_0274 import CheckAnnotationType as CheckAnnotationType - from .group_0275 import CheckSuiteType as CheckSuiteType - from .group_0275 import ( + from .group_0276 import DeploymentSimpleType as DeploymentSimpleType + from .group_0277 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0277 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0277 import CheckRunType as CheckRunType + from .group_0278 import CheckAnnotationType as CheckAnnotationType + from .group_0279 import CheckSuiteType as CheckSuiteType + from .group_0279 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0276 import ( + from .group_0280 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0276 import ( + from .group_0280 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0276 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0277 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0278 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0278 import CodeScanningAlertType as CodeScanningAlertType - from .group_0279 import CodeScanningAutofixType as CodeScanningAutofixType - from .group_0280 import ( + from .group_0280 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0281 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0282 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0282 import CodeScanningAlertType as CodeScanningAlertType + from .group_0283 import CodeScanningAutofixType as CodeScanningAutofixType + from .group_0284 import ( CodeScanningAutofixCommitsType as CodeScanningAutofixCommitsType, ) - from .group_0281 import ( + from .group_0285 import ( CodeScanningAutofixCommitsResponseType as CodeScanningAutofixCommitsResponseType, ) - from .group_0282 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0283 import ( + from .group_0286 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0287 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0284 import ( + from .group_0288 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0285 import ( + from .group_0289 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0286 import ( + from .group_0290 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0287 import ( + from .group_0291 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0288 import ( + from .group_0292 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0289 import ( + from .group_0293 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0289 import ( + from .group_0293 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0290 import ( + from .group_0294 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0291 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0292 import ( + from .group_0295 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0296 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0293 import ( + from .group_0297 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0294 import ( + from .group_0298 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0295 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0296 import ( + from .group_0299 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0300 import ( CodeSecurityConfigurationForRepositoryType as CodeSecurityConfigurationForRepositoryType, ) - from .group_0297 import ( + from .group_0301 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0297 import CodeownersErrorsType as CodeownersErrorsType - from .group_0298 import ( + from .group_0301 import CodeownersErrorsType as CodeownersErrorsType + from .group_0302 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0299 import RepositoryInvitationType as RepositoryInvitationType - from .group_0300 import ( + from .group_0303 import RepositoryInvitationType as RepositoryInvitationType + from .group_0304 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0300 import CollaboratorType as CollaboratorType - from .group_0300 import ( + from .group_0304 import CollaboratorType as CollaboratorType + from .group_0304 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0301 import CommitCommentType as CommitCommentType - from .group_0301 import ( + from .group_0305 import CommitCommentType as CommitCommentType + from .group_0305 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0302 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0302 import BranchShortType as BranchShortType - from .group_0303 import LinkType as LinkType - from .group_0304 import AutoMergeType as AutoMergeType - from .group_0305 import ( + from .group_0306 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0306 import BranchShortType as BranchShortType + from .group_0307 import LinkType as LinkType + from .group_0308 import AutoMergeType as AutoMergeType + from .group_0309 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0305 import PullRequestSimpleType as PullRequestSimpleType - from .group_0306 import ( + from .group_0309 import PullRequestSimpleType as PullRequestSimpleType + from .group_0310 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0306 import ( + from .group_0310 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0307 import ( + from .group_0311 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0308 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0308 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0309 import StatusType as StatusType - from .group_0310 import CommunityHealthFileType as CommunityHealthFileType - from .group_0310 import ( + from .group_0312 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0312 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0313 import StatusType as StatusType + from .group_0314 import CommunityHealthFileType as CommunityHealthFileType + from .group_0314 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0310 import CommunityProfileType as CommunityProfileType - from .group_0311 import CommitComparisonType as CommitComparisonType - from .group_0312 import ( + from .group_0314 import CommunityProfileType as CommunityProfileType + from .group_0315 import CommitComparisonType as CommitComparisonType + from .group_0316 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0312 import ( + from .group_0316 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0312 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0312 import ContentTreeType as ContentTreeType - from .group_0313 import ( + from .group_0316 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0316 import ContentTreeType as ContentTreeType + from .group_0317 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0313 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0314 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0314 import ContentFileType as ContentFileType - from .group_0315 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0315 import ContentSymlinkType as ContentSymlinkType - from .group_0316 import ( + from .group_0317 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0318 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0318 import ContentFileType as ContentFileType + from .group_0319 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0319 import ContentSymlinkType as ContentSymlinkType + from .group_0320 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0316 import ContentSubmoduleType as ContentSubmoduleType - from .group_0317 import ( + from .group_0320 import ContentSubmoduleType as ContentSubmoduleType + from .group_0321 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0317 import ( + from .group_0321 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0317 import ( + from .group_0321 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0317 import ( + from .group_0321 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0317 import ( + from .group_0321 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0317 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0317 import ( + from .group_0321 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0321 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0317 import FileCommitPropContentType as FileCommitPropContentType - from .group_0317 import FileCommitType as FileCommitType - from .group_0318 import ( + from .group_0321 import FileCommitPropContentType as FileCommitPropContentType + from .group_0321 import FileCommitType as FileCommitType + from .group_0322 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType, ) - from .group_0318 import ( + from .group_0322 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningType, ) - from .group_0318 import ( + from .group_0322 import ( RepositoryRuleViolationErrorPropMetadataType as RepositoryRuleViolationErrorPropMetadataType, ) - from .group_0318 import ( + from .group_0322 import ( RepositoryRuleViolationErrorType as RepositoryRuleViolationErrorType, ) - from .group_0319 import ContributorType as ContributorType - from .group_0320 import DependabotAlertType as DependabotAlertType - from .group_0321 import ( + from .group_0323 import ContributorType as ContributorType + from .group_0324 import DependabotAlertType as DependabotAlertType + from .group_0325 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0322 import ( + from .group_0326 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0322 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0323 import ( + from .group_0326 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType as DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType, ) - from .group_0323 import ( + from .group_0327 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0323 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0324 import MetadataType as MetadataType - from .group_0325 import DependencyType as DependencyType - from .group_0326 import ManifestPropFileType as ManifestPropFileType - from .group_0326 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0326 import ManifestType as ManifestType - from .group_0327 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0327 import SnapshotPropJobType as SnapshotPropJobType - from .group_0327 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0327 import SnapshotType as SnapshotType - from .group_0328 import DeploymentStatusType as DeploymentStatusType - from .group_0329 import ( + from .group_0327 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0328 import MetadataType as MetadataType + from .group_0329 import DependencyType as DependencyType + from .group_0330 import ManifestPropFileType as ManifestPropFileType + from .group_0330 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0330 import ManifestType as ManifestType + from .group_0331 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0331 import SnapshotPropJobType as SnapshotPropJobType + from .group_0331 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0331 import SnapshotType as SnapshotType + from .group_0332 import DeploymentStatusType as DeploymentStatusType + from .group_0333 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0330 import ( + from .group_0334 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0330 import ( + from .group_0334 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0330 import EnvironmentType as EnvironmentType - from .group_0330 import ( + from .group_0334 import EnvironmentType as EnvironmentType + from .group_0334 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0331 import ( + from .group_0335 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0332 import ( + from .group_0336 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0333 import ( + from .group_0337 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0334 import ( + from .group_0338 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0335 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0336 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0336 import ( + from .group_0339 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0340 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0340 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0337 import ShortBlobType as ShortBlobType - from .group_0338 import BlobType as BlobType - from .group_0339 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0339 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0339 import ( + from .group_0341 import ShortBlobType as ShortBlobType + from .group_0342 import BlobType as BlobType + from .group_0343 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0343 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0343 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0339 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0339 import ( + from .group_0343 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0343 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0339 import GitCommitType as GitCommitType - from .group_0340 import GitRefPropObjectType as GitRefPropObjectType - from .group_0340 import GitRefType as GitRefType - from .group_0341 import GitTagPropObjectType as GitTagPropObjectType - from .group_0341 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0341 import GitTagType as GitTagType - from .group_0342 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0342 import GitTreeType as GitTreeType - from .group_0343 import HookResponseType as HookResponseType - from .group_0344 import HookType as HookType - from .group_0345 import ( + from .group_0343 import GitCommitType as GitCommitType + from .group_0344 import GitRefPropObjectType as GitRefPropObjectType + from .group_0344 import GitRefType as GitRefType + from .group_0345 import GitTagPropObjectType as GitTagPropObjectType + from .group_0345 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0345 import GitTagType as GitTagType + from .group_0346 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0346 import GitTreeType as GitTreeType + from .group_0347 import HookResponseType as HookResponseType + from .group_0348 import HookType as HookType + from .group_0349 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0345 import ImportType as ImportType - from .group_0346 import PorterAuthorType as PorterAuthorType - from .group_0347 import PorterLargeFileType as PorterLargeFileType - from .group_0348 import ( + from .group_0349 import ImportType as ImportType + from .group_0350 import PorterAuthorType as PorterAuthorType + from .group_0351 import PorterLargeFileType as PorterLargeFileType + from .group_0352 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0348 import IssueEventLabelType as IssueEventLabelType - from .group_0348 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0348 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0348 import IssueEventRenameType as IssueEventRenameType - from .group_0348 import IssueEventType as IssueEventType - from .group_0349 import ( + from .group_0352 import IssueEventLabelType as IssueEventLabelType + from .group_0352 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0352 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0352 import IssueEventRenameType as IssueEventRenameType + from .group_0352 import IssueEventType as IssueEventType + from .group_0353 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0349 import LabeledIssueEventType as LabeledIssueEventType - from .group_0350 import ( + from .group_0353 import LabeledIssueEventType as LabeledIssueEventType + from .group_0354 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0350 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0351 import AssignedIssueEventType as AssignedIssueEventType - from .group_0352 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0353 import ( + from .group_0354 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0355 import AssignedIssueEventType as AssignedIssueEventType + from .group_0356 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0357 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0353 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0354 import ( + from .group_0357 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0358 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0354 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0355 import ( + from .group_0358 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0359 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0355 import RenamedIssueEventType as RenamedIssueEventType - from .group_0356 import ( + from .group_0359 import RenamedIssueEventType as RenamedIssueEventType + from .group_0360 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0357 import ( + from .group_0361 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0358 import ( + from .group_0362 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0358 import ( + from .group_0362 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0359 import LockedIssueEventType as LockedIssueEventType - from .group_0360 import ( + from .group_0363 import LockedIssueEventType as LockedIssueEventType + from .group_0364 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0360 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0361 import ( + from .group_0364 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0365 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0361 import ( + from .group_0365 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0362 import ( + from .group_0366 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0362 import ( + from .group_0366 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0363 import ( + from .group_0367 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0363 import ( + from .group_0367 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0364 import TimelineCommentEventType as TimelineCommentEventType - from .group_0365 import ( + from .group_0368 import TimelineCommentEventType as TimelineCommentEventType + from .group_0369 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0366 import ( + from .group_0370 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0367 import ( + from .group_0371 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0367 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0368 import ( + from .group_0371 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0372 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0368 import ( + from .group_0372 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0368 import ( + from .group_0372 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0368 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0369 import ( + from .group_0372 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0373 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0369 import ( + from .group_0373 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0369 import ( + from .group_0373 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0369 import ( + from .group_0373 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0369 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0369 import ( + from .group_0373 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0373 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0370 import ( + from .group_0374 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0371 import ( + from .group_0375 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0372 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0373 import DeployKeyType as DeployKeyType - from .group_0374 import LanguageType as LanguageType - from .group_0375 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0375 import LicenseContentType as LicenseContentType - from .group_0376 import MergedUpstreamType as MergedUpstreamType - from .group_0377 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0377 import PagesSourceHashType as PagesSourceHashType - from .group_0377 import PageType as PageType - from .group_0378 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0378 import PageBuildType as PageBuildType - from .group_0379 import PageBuildStatusType as PageBuildStatusType - from .group_0380 import PageDeploymentType as PageDeploymentType - from .group_0381 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0382 import ( + from .group_0376 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0377 import DeployKeyType as DeployKeyType + from .group_0378 import LanguageType as LanguageType + from .group_0379 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0379 import LicenseContentType as LicenseContentType + from .group_0380 import MergedUpstreamType as MergedUpstreamType + from .group_0381 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0381 import PagesSourceHashType as PagesSourceHashType + from .group_0381 import PageType as PageType + from .group_0382 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0382 import PageBuildType as PageBuildType + from .group_0383 import PageBuildStatusType as PageBuildStatusType + from .group_0384 import PageDeploymentType as PageDeploymentType + from .group_0385 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0386 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0382 import ( + from .group_0386 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0382 import PagesHealthCheckType as PagesHealthCheckType - from .group_0383 import PullRequestType as PullRequestType - from .group_0384 import ( + from .group_0386 import PagesHealthCheckType as PagesHealthCheckType + from .group_0387 import PullRequestType as PullRequestType + from .group_0388 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0385 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0385 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0386 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0387 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0388 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0389 import ( + from .group_0389 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0389 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0390 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0391 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0392 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0393 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0389 import ( + from .group_0393 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0389 import ( + from .group_0393 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0389 import PullRequestReviewType as PullRequestReviewType - from .group_0390 import ReviewCommentType as ReviewCommentType - from .group_0391 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0392 import ReleaseAssetType as ReleaseAssetType - from .group_0393 import ReleaseType as ReleaseType - from .group_0394 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0395 import ( + from .group_0393 import PullRequestReviewType as PullRequestReviewType + from .group_0394 import ReviewCommentType as ReviewCommentType + from .group_0395 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0396 import ReleaseAssetType as ReleaseAssetType + from .group_0397 import ReleaseType as ReleaseType + from .group_0398 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0399 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0396 import ( + from .group_0400 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0397 import ( + from .group_0401 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0398 import ( + from .group_0402 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0399 import ( + from .group_0403 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0400 import ( + from .group_0404 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0401 import ( + from .group_0405 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0402 import ( + from .group_0406 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0403 import ( + from .group_0407 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0404 import ( + from .group_0408 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0406 import ( + from .group_0410 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0407 import ( + from .group_0411 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0408 import ( + from .group_0412 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0409 import ( + from .group_0413 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0410 import ( + from .group_0414 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0411 import ( + from .group_0415 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0412 import ( + from .group_0416 import ( RepositoryRuleDetailedOneof16Type as RepositoryRuleDetailedOneof16Type, ) - from .group_0413 import ( + from .group_0417 import ( RepositoryRuleDetailedOneof17Type as RepositoryRuleDetailedOneof17Type, ) - from .group_0414 import ( + from .group_0418 import ( RepositoryRuleDetailedOneof18Type as RepositoryRuleDetailedOneof18Type, ) - from .group_0415 import ( + from .group_0419 import ( RepositoryRuleDetailedOneof19Type as RepositoryRuleDetailedOneof19Type, ) - from .group_0416 import ( + from .group_0420 import ( RepositoryRuleDetailedOneof20Type as RepositoryRuleDetailedOneof20Type, ) - from .group_0417 import SecretScanningAlertType as SecretScanningAlertType - from .group_0418 import ( + from .group_0421 import SecretScanningAlertType as SecretScanningAlertType + from .group_0422 import SecretScanningLocationType as SecretScanningLocationType + from .group_0423 import ( SecretScanningPushProtectionBypassType as SecretScanningPushProtectionBypassType, ) - from .group_0419 import ( + from .group_0424 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType, ) - from .group_0419 import ( + from .group_0424 import ( SecretScanningScanHistoryType as SecretScanningScanHistoryType, ) - from .group_0419 import SecretScanningScanType as SecretScanningScanType - from .group_0420 import ( + from .group_0424 import SecretScanningScanType as SecretScanningScanType + from .group_0425 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type, ) - from .group_0421 import ( + from .group_0426 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0421 import ( + from .group_0426 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0421 import ( + from .group_0426 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0421 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0422 import ( + from .group_0426 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0427 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0422 import ( + from .group_0427 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0422 import ( + from .group_0427 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0423 import ( + from .group_0428 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0423 import ( + from .group_0428 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0423 import ( + from .group_0428 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0423 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0424 import StargazerType as StargazerType - from .group_0425 import CommitActivityType as CommitActivityType - from .group_0426 import ( + from .group_0428 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0429 import StargazerType as StargazerType + from .group_0430 import CommitActivityType as CommitActivityType + from .group_0431 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0426 import ContributorActivityType as ContributorActivityType - from .group_0427 import ParticipationStatsType as ParticipationStatsType - from .group_0428 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0429 import TagPropCommitType as TagPropCommitType - from .group_0429 import TagType as TagType - from .group_0430 import TagProtectionType as TagProtectionType - from .group_0431 import TopicType as TopicType - from .group_0432 import TrafficType as TrafficType - from .group_0433 import CloneTrafficType as CloneTrafficType - from .group_0434 import ContentTrafficType as ContentTrafficType - from .group_0435 import ReferrerTrafficType as ReferrerTrafficType - from .group_0436 import ViewTrafficType as ViewTrafficType - from .group_0437 import ( + from .group_0431 import ContributorActivityType as ContributorActivityType + from .group_0432 import ParticipationStatsType as ParticipationStatsType + from .group_0433 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0434 import TagPropCommitType as TagPropCommitType + from .group_0434 import TagType as TagType + from .group_0435 import TagProtectionType as TagProtectionType + from .group_0436 import TopicType as TopicType + from .group_0437 import TrafficType as TrafficType + from .group_0438 import CloneTrafficType as CloneTrafficType + from .group_0439 import ContentTrafficType as ContentTrafficType + from .group_0440 import ReferrerTrafficType as ReferrerTrafficType + from .group_0441 import ViewTrafficType as ViewTrafficType + from .group_0442 import ( GroupResponsePropMembersItemsType as GroupResponsePropMembersItemsType, ) - from .group_0437 import GroupResponseType as GroupResponseType - from .group_0438 import MetaType as MetaType - from .group_0439 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType - from .group_0439 import ( + from .group_0442 import GroupResponseType as GroupResponseType + from .group_0443 import MetaType as MetaType + from .group_0444 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType + from .group_0444 import ( ScimEnterpriseGroupResponseMergedMembersType as ScimEnterpriseGroupResponseMergedMembersType, ) - from .group_0439 import ( + from .group_0444 import ( ScimEnterpriseGroupResponseType as ScimEnterpriseGroupResponseType, ) - from .group_0440 import ( + from .group_0445 import ( ScimEnterpriseGroupResponseAllof1PropMembersItemsType as ScimEnterpriseGroupResponseAllof1PropMembersItemsType, ) - from .group_0440 import ( + from .group_0445 import ( ScimEnterpriseGroupResponseAllof1Type as ScimEnterpriseGroupResponseAllof1Type, ) - from .group_0441 import GroupPropMembersItemsType as GroupPropMembersItemsType - from .group_0441 import GroupType as GroupType - from .group_0442 import ( + from .group_0446 import GroupPropMembersItemsType as GroupPropMembersItemsType + from .group_0446 import GroupType as GroupType + from .group_0447 import ( PatchSchemaPropOperationsItemsType as PatchSchemaPropOperationsItemsType, ) - from .group_0442 import PatchSchemaType as PatchSchemaType - from .group_0443 import UserEmailsResponseItemsType as UserEmailsResponseItemsType - from .group_0443 import UserNameResponseType as UserNameResponseType - from .group_0444 import UserRoleItemsType as UserRoleItemsType - from .group_0445 import UserResponseType as UserResponseType - from .group_0446 import ScimEnterpriseUserListType as ScimEnterpriseUserListType - from .group_0446 import ( + from .group_0447 import PatchSchemaType as PatchSchemaType + from .group_0448 import UserEmailsResponseItemsType as UserEmailsResponseItemsType + from .group_0448 import UserNameResponseType as UserNameResponseType + from .group_0449 import UserRoleItemsType as UserRoleItemsType + from .group_0450 import UserResponseType as UserResponseType + from .group_0451 import ScimEnterpriseUserListType as ScimEnterpriseUserListType + from .group_0451 import ( ScimEnterpriseUserResponseType as ScimEnterpriseUserResponseType, ) - from .group_0447 import ( + from .group_0452 import ( ScimEnterpriseUserResponseAllof1Type as ScimEnterpriseUserResponseAllof1Type, ) - from .group_0448 import ( + from .group_0453 import ( ScimEnterpriseUserResponseAllof1PropGroupsItemsType as ScimEnterpriseUserResponseAllof1PropGroupsItemsType, ) - from .group_0449 import UserEmailsItemsType as UserEmailsItemsType - from .group_0449 import UserNameType as UserNameType - from .group_0449 import UserType as UserType - from .group_0450 import ScimUserListType as ScimUserListType - from .group_0450 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType - from .group_0450 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType - from .group_0450 import ScimUserPropMetaType as ScimUserPropMetaType - from .group_0450 import ScimUserPropNameType as ScimUserPropNameType - from .group_0450 import ( + from .group_0454 import UserEmailsItemsType as UserEmailsItemsType + from .group_0454 import UserNameType as UserNameType + from .group_0454 import UserType as UserType + from .group_0455 import ScimUserListType as ScimUserListType + from .group_0455 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType + from .group_0455 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType + from .group_0455 import ScimUserPropMetaType as ScimUserPropMetaType + from .group_0455 import ScimUserPropNameType as ScimUserPropNameType + from .group_0455 import ( ScimUserPropOperationsItemsPropValueOneof1Type as ScimUserPropOperationsItemsPropValueOneof1Type, ) - from .group_0450 import ( + from .group_0455 import ( ScimUserPropOperationsItemsType as ScimUserPropOperationsItemsType, ) - from .group_0450 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType - from .group_0450 import ScimUserType as ScimUserType - from .group_0451 import ( + from .group_0455 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType + from .group_0455 import ScimUserType as ScimUserType + from .group_0456 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0451 import ( + from .group_0456 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0452 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0452 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0453 import ( + from .group_0457 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0457 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0458 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0453 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0453 import ( + from .group_0458 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0458 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0454 import ( + from .group_0459 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0454 import ( + from .group_0459 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0454 import ( + from .group_0459 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0455 import ( + from .group_0460 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0455 import ( + from .group_0460 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0455 import ( + from .group_0460 import ( IssueSearchResultItemPropSubIssuesSummaryType as IssueSearchResultItemPropSubIssuesSummaryType, ) - from .group_0455 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0455 import ( + from .group_0460 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0460 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0456 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0456 import ( + from .group_0461 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0461 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0457 import ( + from .group_0462 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0457 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0457 import ( + from .group_0462 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0462 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0458 import ( + from .group_0463 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0458 import ( + from .group_0463 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0458 import ( + from .group_0463 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0458 import ( + from .group_0463 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0458 import ( + from .group_0463 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0458 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0459 import ( + from .group_0463 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0464 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0459 import UserSearchResultItemType as UserSearchResultItemType - from .group_0460 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0460 import PrivateUserType as PrivateUserType - from .group_0461 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0462 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0463 import ( + from .group_0464 import UserSearchResultItemType as UserSearchResultItemType + from .group_0465 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0465 import PrivateUserType as PrivateUserType + from .group_0466 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0467 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0468 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0463 import ( + from .group_0468 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0463 import ( + from .group_0468 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0464 import EmailType as EmailType - from .group_0465 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0465 import ( + from .group_0469 import EmailType as EmailType + from .group_0470 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0470 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0465 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0465 import GpgKeyType as GpgKeyType - from .group_0466 import KeyType as KeyType - from .group_0467 import MarketplaceAccountType as MarketplaceAccountType - from .group_0467 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0468 import SocialAccountType as SocialAccountType - from .group_0469 import SshSigningKeyType as SshSigningKeyType - from .group_0470 import StarredRepositoryType as StarredRepositoryType - from .group_0471 import ( + from .group_0470 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0470 import GpgKeyType as GpgKeyType + from .group_0471 import KeyType as KeyType + from .group_0472 import MarketplaceAccountType as MarketplaceAccountType + from .group_0472 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0473 import SocialAccountType as SocialAccountType + from .group_0474 import SshSigningKeyType as SshSigningKeyType + from .group_0475 import StarredRepositoryType as StarredRepositoryType + from .group_0476 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0471 import HovercardType as HovercardType - from .group_0472 import KeySimpleType as KeySimpleType - from .group_0473 import ( + from .group_0476 import HovercardType as HovercardType + from .group_0477 import KeySimpleType as KeySimpleType + from .group_0478 import ( BillingUsageReportUserPropUsageItemsItemsType as BillingUsageReportUserPropUsageItemsItemsType, ) - from .group_0473 import BillingUsageReportUserType as BillingUsageReportUserType - from .group_0474 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0475 import SimpleInstallationType as SimpleInstallationType - from .group_0476 import ( + from .group_0478 import BillingUsageReportUserType as BillingUsageReportUserType + from .group_0479 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0480 import SimpleInstallationType as SimpleInstallationType + from .group_0481 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0477 import ( + from .group_0482 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0477 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0478 import WebhooksRuleType as WebhooksRuleType - from .group_0479 import ExemptionResponseType as ExemptionResponseType - from .group_0480 import ( + from .group_0482 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0483 import WebhooksRuleType as WebhooksRuleType + from .group_0484 import ExemptionResponseType as ExemptionResponseType + from .group_0485 import ( DismissalRequestCodeScanningMetadataType as DismissalRequestCodeScanningMetadataType, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestCodeScanningPropDataItemsType as DismissalRequestCodeScanningPropDataItemsType, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestCodeScanningType as DismissalRequestCodeScanningType, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestSecretScanningMetadataType as DismissalRequestSecretScanningMetadataType, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestSecretScanningPropDataItemsType as DismissalRequestSecretScanningPropDataItemsType, ) - from .group_0480 import ( + from .group_0485 import ( DismissalRequestSecretScanningType as DismissalRequestSecretScanningType, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestPushRulesetBypassPropDataItemsType as ExemptionRequestPushRulesetBypassPropDataItemsType, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestPushRulesetBypassType as ExemptionRequestPushRulesetBypassType, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanningMetadataType as ExemptionRequestSecretScanningMetadataType, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType as ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanningPropDataItemsType as ExemptionRequestSecretScanningPropDataItemsType, ) - from .group_0480 import ( + from .group_0485 import ( ExemptionRequestSecretScanningType as ExemptionRequestSecretScanningType, ) - from .group_0480 import ExemptionRequestType as ExemptionRequestType - from .group_0481 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0482 import ( + from .group_0485 import ExemptionRequestType as ExemptionRequestType + from .group_0486 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0487 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0482 import ( + from .group_0487 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0483 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0484 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0485 import WebhooksApproverType as WebhooksApproverType - from .group_0485 import ( + from .group_0488 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0489 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0490 import WebhooksApproverType as WebhooksApproverType + from .group_0490 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0485 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0486 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0487 import WebhooksUserType as WebhooksUserType - from .group_0488 import ( + from .group_0490 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0491 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0492 import WebhooksUserType as WebhooksUserType + from .group_0493 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0488 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0488 import WebhooksAnswerType as WebhooksAnswerType - from .group_0489 import ( + from .group_0493 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0493 import WebhooksAnswerType as WebhooksAnswerType + from .group_0494 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0489 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0489 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0489 import DiscussionPropUserType as DiscussionPropUserType - from .group_0489 import DiscussionType as DiscussionType - from .group_0489 import LabelType as LabelType - from .group_0490 import ( + from .group_0494 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0494 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0494 import DiscussionPropUserType as DiscussionPropUserType + from .group_0494 import DiscussionType as DiscussionType + from .group_0494 import LabelType as LabelType + from .group_0495 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0490 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0490 import WebhooksCommentType as WebhooksCommentType - from .group_0491 import WebhooksLabelType as WebhooksLabelType - from .group_0492 import ( + from .group_0495 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0495 import WebhooksCommentType as WebhooksCommentType + from .group_0496 import WebhooksLabelType as WebhooksLabelType + from .group_0497 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0493 import ( + from .group_0498 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0494 import ( + from .group_0499 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0494 import ( + from .group_0499 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0494 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0495 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0495 import WebhooksChangesType as WebhooksChangesType - from .group_0496 import ( + from .group_0499 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0500 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0500 import WebhooksChangesType as WebhooksChangesType + from .group_0501 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0496 import ( + from .group_0501 import ( WebhooksIssuePropSubIssuesSummaryType as WebhooksIssuePropSubIssuesSummaryType, ) - from .group_0496 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0496 import WebhooksIssueType as WebhooksIssueType - from .group_0497 import ( + from .group_0501 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0501 import WebhooksIssueType as WebhooksIssueType + from .group_0502 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0497 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0498 import ( + from .group_0502 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0503 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0498 import ( + from .group_0503 import ( WebhooksIssue2PropSubIssuesSummaryType as WebhooksIssue2PropSubIssuesSummaryType, ) - from .group_0498 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0498 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0499 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0500 import ( + from .group_0503 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0503 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0504 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0505 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0500 import ( + from .group_0505 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0500 import ( + from .group_0505 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0501 import ( + from .group_0506 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0501 import ( + from .group_0506 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0501 import ( + from .group_0506 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0502 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0502 import WebhooksTeamType as WebhooksTeamType - from .group_0503 import MergeGroupType as MergeGroupType - from .group_0504 import ( + from .group_0507 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0507 import WebhooksTeamType as WebhooksTeamType + from .group_0508 import MergeGroupType as MergeGroupType + from .group_0509 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0504 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0505 import ( + from .group_0509 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0510 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0505 import WebhooksMembershipType as WebhooksMembershipType - from .group_0506 import ( + from .group_0510 import WebhooksMembershipType as WebhooksMembershipType + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0506 import ( + from .group_0511 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0507 import ( + from .group_0512 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0507 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0508 import ( + from .group_0512 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0513 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0508 import WebhooksProjectType as WebhooksProjectType - from .group_0509 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0510 import ProjectsV2Type as ProjectsV2Type - from .group_0511 import ( + from .group_0513 import WebhooksProjectType as WebhooksProjectType + from .group_0514 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0515 import ProjectsV2Type as ProjectsV2Type + from .group_0516 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0511 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0512 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0513 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType - from .group_0514 import PullRequestWebhookType as PullRequestWebhookType - from .group_0515 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0516 import ( + from .group_0516 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0517 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0518 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0519 import PullRequestWebhookType as PullRequestWebhookType + from .group_0520 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0521 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0516 import ( + from .group_0521 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0516 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0517 import ( + from .group_0521 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0522 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0517 import ( + from .group_0522 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0517 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0518 import ( + from .group_0522 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0523 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0518 import ( + from .group_0523 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0518 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0518 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0518 import WebhooksReviewType as WebhooksReviewType - from .group_0519 import ( + from .group_0523 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0523 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0523 import WebhooksReviewType as WebhooksReviewType + from .group_0524 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0519 import ( + from .group_0524 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0519 import ( + from .group_0524 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0519 import ( + from .group_0524 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0519 import WebhooksReleaseType as WebhooksReleaseType - from .group_0520 import ( + from .group_0524 import WebhooksReleaseType as WebhooksReleaseType + from .group_0525 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0520 import ( + from .group_0525 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0520 import ( + from .group_0525 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0520 import ( + from .group_0525 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0520 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0521 import ( + from .group_0525 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0526 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0521 import WebhooksAlertType as WebhooksAlertType - from .group_0522 import ( + from .group_0526 import WebhooksAlertType as WebhooksAlertType + from .group_0527 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0523 import ( + from .group_0528 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0523 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0524 import ( + from .group_0528 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0529 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0524 import ( + from .group_0529 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0524 import ( + from .group_0529 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0524 import ( + from .group_0529 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0524 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0525 import ( + from .group_0529 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0530 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0525 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0525 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0526 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0526 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0527 import ( + from .group_0530 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0530 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0531 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0531 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0532 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0528 import ( + from .group_0533 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0529 import ( + from .group_0534 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0530 import ( + from .group_0535 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0532 import ( + from .group_0537 import ( WebhookExemptionRequestCancelledType as WebhookExemptionRequestCancelledType, ) - from .group_0533 import ( + from .group_0538 import ( WebhookExemptionRequestCompletedType as WebhookExemptionRequestCompletedType, ) - from .group_0534 import ( + from .group_0539 import ( WebhookExemptionRequestCreatedType as WebhookExemptionRequestCreatedType, ) - from .group_0535 import ( + from .group_0540 import ( WebhookExemptionRequestResponseDismissedType as WebhookExemptionRequestResponseDismissedType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookExemptionRequestResponseSubmittedType as WebhookExemptionRequestResponseSubmittedType, ) - from .group_0537 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0538 import ( + from .group_0542 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0543 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0539 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0540 import ( + from .group_0544 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0545 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0541 import ( + from .group_0546 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0541 import ( + from .group_0546 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0542 import ( + from .group_0547 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0543 import ( + from .group_0548 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0544 import ( + from .group_0549 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0554 import ( + from .group_0559 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0554 import ( + from .group_0559 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0554 import ( + from .group_0559 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0554 import ( + from .group_0559 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0555 import WebhookCreateType as WebhookCreateType - from .group_0556 import ( + from .group_0560 import WebhookCreateType as WebhookCreateType + from .group_0561 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0557 import ( + from .group_0562 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0557 import ( + from .group_0562 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookCustomPropertyPromotedToEnterpriseType as WebhookCustomPropertyPromotedToEnterpriseType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0560 import ( + from .group_0565 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0561 import WebhookDeleteType as WebhookDeleteType - from .group_0562 import ( + from .group_0566 import WebhookDeleteType as WebhookDeleteType + from .group_0567 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0565 import ( + from .group_0570 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0566 import ( + from .group_0571 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0567 import ( + from .group_0572 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0568 import ( + from .group_0573 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0569 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0570 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0571 import ( + from .group_0574 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0575 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0571 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0572 import ( + from .group_0576 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0577 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0577 import ( + from .group_0582 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0578 import ( + from .group_0583 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0578 import ( + from .group_0583 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0578 import ( + from .group_0583 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0578 import ( + from .group_0583 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0579 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0580 import ( + from .group_0584 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0585 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0582 import ( + from .group_0587 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0582 import ( + from .group_0587 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0582 import ( + from .group_0587 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0583 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0584 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0585 import ( + from .group_0588 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0589 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0590 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0585 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0586 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0587 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0588 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0589 import ( + from .group_0590 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0591 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0592 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0593 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0594 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0591 import ( + from .group_0596 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0594 import ( + from .group_0599 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0596 import WebhookForkType as WebhookForkType - from .group_0597 import ( + from .group_0601 import WebhookForkType as WebhookForkType + from .group_0602 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0597 import ( + from .group_0602 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0597 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0598 import ( + from .group_0602 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0603 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0598 import ( + from .group_0603 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0598 import ( + from .group_0603 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0599 import ( + from .group_0604 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0601 import ( + from .group_0606 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0602 import WebhookGollumType as WebhookGollumType - from .group_0603 import ( + from .group_0607 import WebhookGollumType as WebhookGollumType + from .group_0608 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0604 import ( + from .group_0609 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0606 import ( + from .group_0611 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0606 import ( + from .group_0611 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0608 import ( + from .group_0613 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0610 import ( + from .group_0615 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0614 import ( + from .group_0619 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0615 import ( + from .group_0620 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0615 import ( + from .group_0620 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0615 import ( + from .group_0620 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0617 import ( + from .group_0622 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0620 import ( + from .group_0625 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0622 import ( + from .group_0627 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0623 import ( + from .group_0628 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0625 import ( + from .group_0630 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0625 import ( + from .group_0630 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0625 import ( + from .group_0630 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0625 import ( + from .group_0630 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0626 import ( + from .group_0631 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0627 import ( + from .group_0632 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0627 import ( + from .group_0632 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0627 import ( + from .group_0632 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0628 import ( + from .group_0633 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0630 import ( + from .group_0635 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0630 import ( + from .group_0635 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0634 import ( + from .group_0639 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0635 import ( + from .group_0640 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0636 import ( + from .group_0641 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0637 import ( + from .group_0642 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0637 import ( + from .group_0642 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0637 import ( + from .group_0642 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0637 import ( + from .group_0642 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0638 import ( + from .group_0643 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0639 import ( + from .group_0644 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0639 import ( + from .group_0644 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0639 import ( + from .group_0644 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0640 import ( + from .group_0645 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0641 import ( + from .group_0646 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0642 import ( + from .group_0647 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0642 import ( + from .group_0647 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0643 import ( + from .group_0648 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0644 import ( + from .group_0649 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0646 import ( + from .group_0651 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0647 import ( + from .group_0652 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0648 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0649 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0650 import ( + from .group_0653 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0654 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0650 import ( + from .group_0655 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0652 import ( + from .group_0657 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0653 import ( + from .group_0658 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0654 import ( + from .group_0659 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0654 import ( + from .group_0659 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0655 import ( + from .group_0660 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0656 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0656 import ( + from .group_0661 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0658 import ( + from .group_0663 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0659 import ( + from .group_0664 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0660 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0661 import ( + from .group_0665 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType as WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0662 import ( + from .group_0667 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0664 import ( + from .group_0669 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0664 import ( + from .group_0669 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0664 import ( + from .group_0669 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0664 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0665 import ( + from .group_0669 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0670 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummaryType as WebhookIssuesEditedPropIssuePropSubIssuesSummaryType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0666 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0667 import ( + from .group_0671 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType as WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0668 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0669 import ( + from .group_0673 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0674 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummaryType as WebhookIssuesLockedPropIssuePropSubIssuesSummaryType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0669 import ( + from .group_0674 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0670 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0671 import ( + from .group_0675 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0672 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0673 import ( + from .group_0677 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0673 import ( + from .group_0678 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0676 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0677 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0678 import ( + from .group_0681 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0682 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType as WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0678 import ( + from .group_0683 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0679 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0680 import ( + from .group_0684 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0682 import WebhookIssuesTypedType as WebhookIssuesTypedType - from .group_0683 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0684 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0685 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0686 import ( + from .group_0687 import WebhookIssuesTypedType as WebhookIssuesTypedType + from .group_0688 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0689 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0690 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType as WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0686 import ( + from .group_0691 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0687 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0688 import WebhookIssuesUntypedType as WebhookIssuesUntypedType - from .group_0689 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0690 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0691 import ( + from .group_0692 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0693 import WebhookIssuesUntypedType as WebhookIssuesUntypedType + from .group_0694 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0695 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0696 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0691 import ( + from .group_0696 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0691 import ( + from .group_0696 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0691 import ( + from .group_0696 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0691 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0692 import ( + from .group_0696 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0697 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0693 import ( + from .group_0698 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0694 import ( + from .group_0699 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0695 import ( + from .group_0700 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0696 import ( + from .group_0701 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0697 import ( + from .group_0702 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0697 import ( + from .group_0702 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0697 import ( + from .group_0702 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0697 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0698 import ( + from .group_0702 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0703 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0698 import ( + from .group_0703 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0698 import ( + from .group_0703 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0698 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0699 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0700 import ( + from .group_0703 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0704 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0705 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0700 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0701 import ( + from .group_0705 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0706 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0701 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0702 import ( + from .group_0706 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0707 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0704 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0705 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0706 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0707 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0708 import ( + from .group_0709 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0710 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0711 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0712 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0713 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0708 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0709 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0710 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0711 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0712 import ( + from .group_0713 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0714 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0715 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0716 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0717 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0713 import ( + from .group_0718 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0714 import ( + from .group_0719 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0714 import ( + from .group_0719 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0714 import ( + from .group_0719 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0715 import ( + from .group_0720 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0716 import ( + from .group_0721 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0716 import ( + from .group_0721 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0716 import ( + from .group_0721 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0717 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0718 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0719 import ( + from .group_0722 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0723 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0724 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0721 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0722 import ( + from .group_0726 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0727 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0724 import WebhookPageBuildType as WebhookPageBuildType - from .group_0725 import ( + from .group_0729 import WebhookPageBuildType as WebhookPageBuildType + from .group_0730 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0729 import WebhookPingType as WebhookPingType - from .group_0730 import ( + from .group_0734 import WebhookPingType as WebhookPingType + from .group_0735 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0730 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0731 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0732 import ( + from .group_0735 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0736 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0737 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0734 import ( + from .group_0739 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0734 import ( + from .group_0739 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0734 import ( + from .group_0739 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0735 import ( + from .group_0740 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0735 import ( + from .group_0740 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0735 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0736 import ( + from .group_0740 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0741 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0736 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0737 import ( + from .group_0741 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0742 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0737 import ( + from .group_0742 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0738 import ( + from .group_0743 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0738 import ( + from .group_0743 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0739 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0740 import ( + from .group_0744 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0745 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0741 import ( + from .group_0746 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0742 import ( + from .group_0747 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0742 import ( + from .group_0747 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0742 import ( + from .group_0747 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0743 import ( + from .group_0748 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0744 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0745 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0746 import ( + from .group_0749 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0750 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0751 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0746 import ( + from .group_0751 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0746 import ( + from .group_0751 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0746 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0747 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0748 import ( + from .group_0751 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0752 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0753 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0749 import ( + from .group_0754 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0750 import ( + from .group_0755 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0751 import ( + from .group_0756 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0752 import ( + from .group_0757 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0754 import ( + from .group_0759 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0755 import ( + from .group_0760 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0756 import ( + from .group_0761 import ( ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, ) - from .group_0756 import ( + from .group_0761 import ( ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0756 import ( + from .group_0761 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0757 import ( + from .group_0762 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0757 import ( + from .group_0762 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0757 import ( + from .group_0762 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0758 import ( + from .group_0763 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0759 import ( + from .group_0764 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0760 import ( + from .group_0765 import ( WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, ) - from .group_0761 import ( + from .group_0766 import ( WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, ) - from .group_0762 import ( + from .group_0767 import ( WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, ) - from .group_0763 import WebhookPublicType as WebhookPublicType - from .group_0764 import ( + from .group_0768 import WebhookPublicType as WebhookPublicType + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0767 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0768 import ( + from .group_0772 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0773 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0769 import ( + from .group_0774 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0771 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0772 import ( + from .group_0776 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0773 import ( + from .group_0778 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0774 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0775 import ( + from .group_0779 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0780 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0776 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0777 import ( + from .group_0781 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0782 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0778 import ( + from .group_0783 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0790 import ( + from .group_0795 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0793 import ( + from .group_0798 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0794 import ( + from .group_0799 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0795 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0795 import ( + from .group_0800 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0800 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0795 import WebhookPushType as WebhookPushType - from .group_0796 import ( + from .group_0800 import WebhookPushType as WebhookPushType + from .group_0801 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0797 import ( + from .group_0802 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0797 import ( + from .group_0802 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0797 import ( + from .group_0802 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0798 import ( + from .group_0803 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0799 import ( + from .group_0804 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0800 import ( + from .group_0805 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0800 import ( + from .group_0805 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0800 import ( + from .group_0805 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0802 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0803 import WebhookReleaseDeletedType as WebhookReleaseDeletedType - from .group_0804 import ( + from .group_0807 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0808 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0809 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesPropTagNameType as WebhookReleaseEditedPropChangesPropTagNameType, ) - from .group_0804 import ( + from .group_0809 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0804 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0805 import ( + from .group_0809 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0806 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0807 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0808 import ( + from .group_0811 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0812 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0813 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0809 import ( + from .group_0814 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0810 import ( + from .group_0815 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0811 import ( + from .group_0816 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0812 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0813 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0814 import ( + from .group_0817 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0818 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0819 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0814 import ( + from .group_0819 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0815 import ( + from .group_0820 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0815 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0816 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0817 import ( + from .group_0820 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0821 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0822 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0818 import ( + from .group_0823 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0819 import ( + from .group_0824 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0819 import ( + from .group_0824 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0819 import ( + from .group_0824 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0819 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0820 import ( + from .group_0824 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0825 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0823 import ( + from .group_0828 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0823 import ( + from .group_0828 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0823 import ( + from .group_0828 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0824 import ( + from .group_0829 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0825 import ( + from .group_0830 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0826 import ( + from .group_0831 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0827 import ( + from .group_0832 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0828 import ( + from .group_0833 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0829 import ( + from .group_0834 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0830 import ( + from .group_0835 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0831 import ( + from .group_0836 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0831 import ( + from .group_0836 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0831 import ( + from .group_0836 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0832 import ( + from .group_0837 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0833 import ( + from .group_0838 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0833 import ( + from .group_0838 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0833 import ( + from .group_0838 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0834 import ( + from .group_0839 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0835 import ( - SecretScanningLocationCommitType as SecretScanningLocationCommitType, + from .group_0840 import ( + WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0835 import ( - SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, + from .group_0841 import ( + WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0835 import ( - SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, + from .group_0842 import ( + WebhookSecretScanningAlertPubliclyLeakedType as WebhookSecretScanningAlertPubliclyLeakedType, ) - from .group_0835 import ( - SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, + from .group_0843 import ( + WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0835 import ( - SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, + from .group_0844 import ( + WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0835 import ( - SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, - ) - from .group_0835 import ( - SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, - ) - from .group_0835 import ( - SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, - ) - from .group_0835 import SecretScanningLocationType as SecretScanningLocationType - from .group_0835 import ( - SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, - ) - from .group_0835 import ( - WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, - ) - from .group_0836 import ( - WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, - ) - from .group_0837 import ( - WebhookSecretScanningAlertPubliclyLeakedType as WebhookSecretScanningAlertPubliclyLeakedType, - ) - from .group_0838 import ( - WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, - ) - from .group_0839 import ( - WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, - ) - from .group_0840 import ( + from .group_0845 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0841 import ( + from .group_0846 import ( WebhookSecretScanningScanCompletedType as WebhookSecretScanningScanCompletedType, ) - from .group_0842 import ( + from .group_0847 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0843 import ( + from .group_0848 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0844 import ( + from .group_0849 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0845 import ( + from .group_0850 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0846 import ( + from .group_0851 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0847 import ( + from .group_0852 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0848 import ( + from .group_0853 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0849 import ( + from .group_0854 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0850 import ( + from .group_0855 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0851 import ( + from .group_0856 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0851 import ( + from .group_0856 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0851 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0852 import ( + from .group_0856 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0857 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0853 import ( + from .group_0858 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0854 import ( + from .group_0859 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0855 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0856 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0857 import ( + from .group_0860 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0861 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0862 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0857 import ( + from .group_0862 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0857 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0857 import WebhookStatusType as WebhookStatusType - from .group_0858 import ( + from .group_0862 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0862 import WebhookStatusType as WebhookStatusType + from .group_0863 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0859 import ( + from .group_0864 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0860 import ( + from .group_0865 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0861 import ( + from .group_0866 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0862 import ( + from .group_0867 import ( WebhookSubIssuesParentIssueAddedType as WebhookSubIssuesParentIssueAddedType, ) - from .group_0863 import ( + from .group_0868 import ( WebhookSubIssuesParentIssueRemovedType as WebhookSubIssuesParentIssueRemovedType, ) - from .group_0864 import ( + from .group_0869 import ( WebhookSubIssuesSubIssueAddedType as WebhookSubIssuesSubIssueAddedType, ) - from .group_0865 import ( + from .group_0870 import ( WebhookSubIssuesSubIssueRemovedType as WebhookSubIssuesSubIssueRemovedType, ) - from .group_0866 import WebhookTeamAddType as WebhookTeamAddType - from .group_0867 import ( + from .group_0871 import WebhookTeamAddType as WebhookTeamAddType + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0867 import ( + from .group_0872 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0868 import ( + from .group_0873 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0868 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0869 import ( + from .group_0873 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0869 import ( + from .group_0874 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0869 import WebhookTeamDeletedType as WebhookTeamDeletedType - from .group_0870 import ( + from .group_0874 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0875 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0870 import ( + from .group_0875 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0870 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_0871 import ( + from .group_0875 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0871 import ( + from .group_0876 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0872 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0873 import ( + from .group_0877 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0878 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0873 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0874 import ( + from .group_0878 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0879 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0874 import ( + from .group_0879 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0874 import ( + from .group_0879 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0875 import ( + from .group_0880 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0875 import ( + from .group_0880 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0876 import ( + from .group_0881 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0876 import ( + from .group_0881 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0877 import ( + from .group_0882 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0877 import ( + from .group_0882 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0877 import ( + from .group_0882 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0878 import ( + from .group_0883 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0878 import ( + from .group_0883 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0879 import ( + from .group_0884 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0879 import ( + from .group_0884 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0880 import ( + from .group_0885 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0880 import ( + from .group_0885 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0880 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_0881 import ( + from .group_0885 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_0886 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0881 import ( + from .group_0886 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0881 import ( + from .group_0886 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0882 import ( + from .group_0887 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0883 import ( + from .group_0888 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0884 import ( + from .group_0889 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0885 import ( + from .group_0890 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0886 import ( + from .group_0891 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0887 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0888 import ( + from .group_0892 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0893 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0889 import ( + from .group_0894 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0890 import ( + from .group_0895 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0891 import ( + from .group_0896 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0892 import ( + from .group_0897 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0893 import ( + from .group_0898 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0894 import ( + from .group_0899 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0895 import ( + from .group_0900 import ( CredentialsRevokePostBodyType as CredentialsRevokePostBodyType, ) - from .group_0896 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0897 import ( + from .group_0901 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0902 import ( EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type, ) - from .group_0898 import ( + from .group_0903 import ( EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType as EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType, ) - from .group_0898 import ( + from .group_0903 import ( EnterprisesEnterpriseActionsHostedRunnersPostBodyType as EnterprisesEnterpriseActionsHostedRunnersPostBodyType, ) - from .group_0899 import ( + from .group_0904 import ( EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ) - from .group_0900 import ( + from .group_0905 import ( EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type, ) - from .group_0901 import ( + from .group_0906 import ( EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type, ) - from .group_0902 import ( + from .group_0907 import ( EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type as EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type, ) - from .group_0903 import ( + from .group_0908 import ( EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType as EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType, ) - from .group_0904 import ( + from .group_0909 import ( EnterprisesEnterpriseActionsPermissionsPutBodyType as EnterprisesEnterpriseActionsPermissionsPutBodyType, ) - from .group_0905 import ( + from .group_0910 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type, ) - from .group_0906 import ( + from .group_0911 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType, ) - from .group_0907 import ( + from .group_0912 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type, ) - from .group_0907 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType - from .group_0908 import ( + from .group_0912 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType + from .group_0913 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBodyType as EnterprisesEnterpriseActionsRunnerGroupsPostBodyType, ) - from .group_0909 import ( + from .group_0914 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0910 import ( + from .group_0915 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type, ) - from .group_0911 import ( + from .group_0916 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType, ) - from .group_0912 import ( + from .group_0917 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0913 import ( + from .group_0918 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0914 import ( + from .group_0919 import ( EnterprisesEnterpriseActionsRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnersGetResponse200Type, ) - from .group_0915 import ( + from .group_0920 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0916 import ( + from .group_0921 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0917 import ( + from .group_0922 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0918 import ( + from .group_0923 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0919 import ( + from .group_0924 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0920 import ( + from .group_0925 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0921 import ( + from .group_0926 import ( EnterprisesEnterpriseAuditLogStreamsPostBodyType as EnterprisesEnterpriseAuditLogStreamsPostBodyType, ) - from .group_0922 import ( + from .group_0927 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType as EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType, ) - from .group_0923 import ( + from .group_0928 import ( EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type as EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type, ) - from .group_0924 import ( + from .group_0929 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type as EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type, ) - from .group_0925 import ( + from .group_0930 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0925 import ( + from .group_0930 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType, ) - from .group_0926 import ( + from .group_0931 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0926 import ( + from .group_0931 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0927 import ( + from .group_0932 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0928 import ( + from .group_0933 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0929 import ( + from .group_0934 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0930 import ( + from .group_0935 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType, ) - from .group_0931 import ( + from .group_0936 import ( EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, ) - from .group_0932 import ( + from .group_0937 import ( + EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type as EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type, + ) + from .group_0938 import ( EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type as EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type, ) - from .group_0933 import ( + from .group_0939 import ( EnterprisesEnterpriseNetworkConfigurationsPostBodyType as EnterprisesEnterpriseNetworkConfigurationsPostBodyType, ) - from .group_0934 import ( + from .group_0940 import ( EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType as EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType, ) - from .group_0935 import ( + from .group_0941 import ( EnterprisesEnterprisePropertiesSchemaPatchBodyType as EnterprisesEnterprisePropertiesSchemaPatchBodyType, ) - from .group_0936 import ( + from .group_0942 import ( EnterprisesEnterpriseRulesetsPostBodyType as EnterprisesEnterpriseRulesetsPostBodyType, ) - from .group_0937 import ( + from .group_0943 import ( EnterprisesEnterpriseRulesetsRulesetIdPutBodyType as EnterprisesEnterpriseRulesetsRulesetIdPutBodyType, ) - from .group_0938 import ( + from .group_0944 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType, ) - from .group_0939 import ( + from .group_0945 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type, ) - from .group_0940 import ( + from .group_0946 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType, ) - from .group_0941 import ( + from .group_0947 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type, ) - from .group_0942 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0942 import GistsPostBodyType as GistsPostBodyType - from .group_0943 import ( + from .group_0948 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0948 import GistsPostBodyType as GistsPostBodyType + from .group_0949 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0943 import ( + from .group_0949 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0944 import ( + from .group_0950 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0944 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0945 import ( + from .group_0950 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0951 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0946 import ( + from .group_0952 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0947 import ( + from .group_0953 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0948 import ( + from .group_0954 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0949 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0950 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0951 import ( + from .group_0955 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0956 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0957 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0952 import ( + from .group_0958 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0953 import ( + from .group_0959 import ( OrganizationsOrganizationIdCustomRolesGetResponse200Type as OrganizationsOrganizationIdCustomRolesGetResponse200Type, ) - from .group_0954 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0955 import ( + from .group_0960 import ( + OrganizationsOrgDependabotRepositoryAccessPatchBodyType as OrganizationsOrgDependabotRepositoryAccessPatchBodyType, + ) + from .group_0961 import ( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + ) + from .group_0962 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0963 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0955 import ( + from .group_0963 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0956 import ( + from .group_0964 import ( OrgsOrgActionsHostedRunnersGetResponse200Type as OrgsOrgActionsHostedRunnersGetResponse200Type, ) - from .group_0957 import ( + from .group_0965 import ( OrgsOrgActionsHostedRunnersPostBodyPropImageType as OrgsOrgActionsHostedRunnersPostBodyPropImageType, ) - from .group_0957 import ( + from .group_0965 import ( OrgsOrgActionsHostedRunnersPostBodyType as OrgsOrgActionsHostedRunnersPostBodyType, ) - from .group_0958 import ( + from .group_0966 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ) - from .group_0959 import ( + from .group_0967 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, ) - from .group_0960 import ( + from .group_0968 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, ) - from .group_0961 import ( + from .group_0969 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type as OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, ) - from .group_0962 import ( + from .group_0970 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, ) - from .group_0963 import ( + from .group_0971 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0964 import ( + from .group_0972 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0965 import ( + from .group_0973 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0966 import ( + from .group_0974 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0966 import RunnerGroupsOrgType as RunnerGroupsOrgType - from .group_0967 import ( + from .group_0974 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0975 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0968 import ( + from .group_0976 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0969 import ( + from .group_0977 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, ) - from .group_0970 import ( + from .group_0978 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0971 import ( + from .group_0979 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0972 import ( + from .group_0980 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0973 import ( + from .group_0981 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0974 import ( + from .group_0982 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0975 import ( + from .group_0983 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0976 import ( + from .group_0984 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0977 import ( + from .group_0985 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0978 import ( + from .group_0986 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0978 import ( + from .group_0986 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0979 import ( + from .group_0987 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0980 import ( + from .group_0988 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0981 import ( + from .group_0989 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0982 import ( + from .group_0990 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0982 import ( + from .group_0990 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0983 import ( + from .group_0991 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0984 import ( + from .group_0992 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0985 import ( + from .group_0993 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0986 import ( + from .group_0994 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0987 import ( + from .group_0995 import ( + OrgsOrgAttestationsBulkListPostBodyType as OrgsOrgAttestationsBulkListPostBodyType, + ) + from .group_0996 import ( + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType, + ) + from .group_0996 import ( + OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType as OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType, + ) + from .group_0996 import ( + OrgsOrgAttestationsBulkListPostResponse200Type as OrgsOrgAttestationsBulkListPostResponse200Type, + ) + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0987 import ( + from .group_0997 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_0988 import ( + from .group_0998 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType, ) - from .group_0988 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType - from .group_0989 import ( + from .group_0998 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType + from .group_0999 import ( OrgsOrgCampaignsCampaignNumberPatchBodyType as OrgsOrgCampaignsCampaignNumberPatchBodyType, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0990 import ( + from .group_1000 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_0991 import ( + from .group_1001 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0992 import ( + from .group_1002 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0993 import ( + from .group_1003 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0994 import ( + from .group_1004 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0995 import ( + from .group_1005 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0996 import ( + from .group_1006 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0997 import ( + from .group_1007 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0998 import ( + from .group_1008 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0999 import ( + from .group_1009 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_1000 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1000 import ( + from .group_1010 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1010 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_1001 import ( + from .group_1011 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_1002 import ( + from .group_1012 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1003 import ( + from .group_1013 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1004 import ( + from .group_1014 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_1005 import ( + from .group_1015 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_1006 import ( + from .group_1016 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_1007 import ( + from .group_1017 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_1008 import ( + from .group_1018 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_1009 import ( + from .group_1019 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_1010 import ( + from .group_1020 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_1011 import ( + from .group_1021 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_1012 import ( + from .group_1022 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_1013 import ( + from .group_1023 import ( OrgsOrgCustomRepositoryRolesGetResponse200Type as OrgsOrgCustomRepositoryRolesGetResponse200Type, ) - from .group_1014 import ( + from .group_1024 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_1014 import ( + from .group_1024 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_1015 import ( + from .group_1025 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_1016 import ( + from .group_1026 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1017 import ( + from .group_1027 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1018 import ( + from .group_1028 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_1018 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_1019 import ( + from .group_1028 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_1029 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_1019 import ( + from .group_1029 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_1020 import ( + from .group_1030 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_1021 import ( + from .group_1031 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_1022 import ( + from .group_1032 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1023 import ( + from .group_1033 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_1024 import ( + from .group_1034 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_1025 import ( + from .group_1035 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_1026 import ( + from .group_1036 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) - from .group_1027 import ( + from .group_1037 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_1028 import ( + from .group_1038 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_1029 import ( + from .group_1039 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_1030 import ( + from .group_1040 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_1031 import ( + from .group_1041 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_1032 import ( + from .group_1042 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_1033 import ( + from .group_1043 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_1034 import ( + from .group_1044 import ( OrgPrivateRegistryConfigurationType as OrgPrivateRegistryConfigurationType, ) - from .group_1034 import ( + from .group_1044 import ( OrgsOrgPrivateRegistriesGetResponse200Type as OrgsOrgPrivateRegistriesGetResponse200Type, ) - from .group_1035 import ( + from .group_1045 import ( OrgsOrgPrivateRegistriesPostBodyType as OrgsOrgPrivateRegistriesPostBodyType, ) - from .group_1036 import ( + from .group_1046 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type as OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type, ) - from .group_1037 import ( + from .group_1047 import ( OrgsOrgPrivateRegistriesSecretNamePatchBodyType as OrgsOrgPrivateRegistriesSecretNamePatchBodyType, ) - from .group_1038 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_1039 import ( + from .group_1048 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_1049 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_1040 import ( + from .group_1050 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_1041 import ( + from .group_1051 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_1041 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_1042 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_1043 import ( + from .group_1051 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_1052 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_1053 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_1044 import ( + from .group_1054 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200Type as OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, ) - from .group_1045 import ( + from .group_1055 import ( OrgsOrgSettingsNetworkConfigurationsPostBodyType as OrgsOrgSettingsNetworkConfigurationsPostBodyType, ) - from .group_1046 import ( + from .group_1056 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, ) - from .group_1047 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_1048 import ( + from .group_1057 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_1058 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_1049 import ( + from .group_1059 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_1050 import ( + from .group_1060 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1051 import ( + from .group_1061 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1052 import ( + from .group_1062 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1053 import ( + from .group_1063 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1054 import ( + from .group_1064 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1055 import ( + from .group_1065 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType as OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType, ) - from .group_1056 import ( + from .group_1066 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_1057 import ( + from .group_1067 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_1058 import ( + from .group_1068 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_1059 import ( + from .group_1069 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_1060 import ( + from .group_1070 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1060 import ( + from .group_1070 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType, ) - from .group_1061 import ( + from .group_1071 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_1062 import ( + from .group_1072 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_1063 import ( + from .group_1073 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_1064 import ( + from .group_1074 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_1065 import ( + from .group_1075 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_1066 import ( + from .group_1076 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_1066 import ( + from .group_1076 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_1067 import ( + from .group_1077 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_1067 import ( + from .group_1077 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_1068 import ( + from .group_1078 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_1069 import ( + from .group_1079 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_1070 import ( + from .group_1080 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_1071 import ( + from .group_1081 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_1071 import ( + from .group_1081 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_1072 import ( + from .group_1082 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_1073 import ( + from .group_1083 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_1074 import ( + from .group_1084 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_1075 import ( + from .group_1085 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1076 import ( + from .group_1086 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_1077 import ( + from .group_1087 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_1078 import ( + from .group_1088 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_1079 import ( + from .group_1089 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_1080 import ( + from .group_1090 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_1080 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType - from .group_1081 import ( + from .group_1090 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_1091 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_1082 import ( + from .group_1092 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_1083 import ( + from .group_1093 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_1084 import ( + from .group_1094 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_1085 import ( + from .group_1095 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_1086 import ( + from .group_1096 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_1087 import ( + from .group_1097 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_1088 import ( + from .group_1098 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_1089 import ( + from .group_1099 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_1090 import ( + from .group_1100 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_1091 import ( + from .group_1101 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1092 import ( + from .group_1102 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_1093 import ( + from .group_1103 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_1094 import ( + from .group_1104 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_1095 import ( + from .group_1105 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_1096 import ( + from .group_1106 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_1097 import ( + from .group_1107 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_1098 import ( + from .group_1108 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_1099 import ( + from .group_1109 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_1100 import ( + from .group_1110 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_1101 import ( + from .group_1111 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_1102 import ( + from .group_1112 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1103 import ( + from .group_1113 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1103 import WorkflowType as WorkflowType - from .group_1104 import ( + from .group_1113 import WorkflowType as WorkflowType + from .group_1114 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_1104 import ( + from .group_1114 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_1105 import ( + from .group_1115 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_1106 import ( + from .group_1116 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_1107 import ( + from .group_1117 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1108 import ( + from .group_1118 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_1109 import ( + from .group_1119 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_1110 import ( + from .group_1120 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_1111 import ( + from .group_1121 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_1111 import ( + from .group_1121 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_1111 import ( + from .group_1121 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_1112 import ( + from .group_1122 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_1112 import ( + from .group_1122 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_1113 import ( + from .group_1123 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1114 import ( + from .group_1124 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1115 import ( + from .group_1125 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_1116 import ( + from .group_1126 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType, ) - from .group_1117 import ( + from .group_1127 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType, ) - from .group_1118 import ( + from .group_1128 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType, ) - from .group_1119 import ( + from .group_1129 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_1120 import ( + from .group_1130 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_1121 import ( + from .group_1131 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_1122 import ( + from .group_1132 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType, ) - from .group_1123 import ( + from .group_1133 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType, ) - from .group_1124 import ( + from .group_1134 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType, ) - from .group_1125 import ( + from .group_1135 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_1126 import ( + from .group_1136 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType, ) - from .group_1127 import ( + from .group_1137 import ( ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type as ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1128 import ( + from .group_1138 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_1129 import ( + from .group_1139 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_1130 import ( + from .group_1140 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_1131 import ( + from .group_1141 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_1132 import ( + from .group_1142 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_1133 import ( + from .group_1143 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_1134 import ( + from .group_1144 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1135 import ( + from .group_1145 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_1135 import ( + from .group_1145 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_1136 import ( + from .group_1146 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_1137 import ( + from .group_1147 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1138 import ( + from .group_1148 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_1139 import ( + from .group_1149 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_1140 import ( + from .group_1150 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_1141 import ( + from .group_1151 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_1142 import ( + from .group_1152 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1143 import ( + from .group_1153 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1144 import ( + from .group_1154 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_1144 import ( + from .group_1154 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1145 import ( + from .group_1155 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1146 import ( + from .group_1156 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1146 import ( + from .group_1156 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1147 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1147 import ( + from .group_1157 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1157 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1148 import ( + from .group_1158 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1149 import ( + from .group_1159 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1150 import ( + from .group_1160 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1151 import ( + from .group_1161 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1152 import ( + from .group_1162 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1153 import ( + from .group_1163 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1154 import ( + from .group_1164 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1154 import ( + from .group_1164 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1154 import ( + from .group_1164 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1155 import ( + from .group_1165 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1155 import ( + from .group_1165 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1155 import ( + from .group_1165 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1156 import ( + from .group_1166 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1157 import DependabotSecretType as DependabotSecretType - from .group_1157 import ( + from .group_1167 import DependabotSecretType as DependabotSecretType + from .group_1167 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1158 import ( + from .group_1168 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1159 import ( + from .group_1169 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1160 import ( + from .group_1170 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1160 import ( + from .group_1170 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1161 import ( + from .group_1171 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1162 import ( + from .group_1172 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1163 import ( + from .group_1173 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType, ) - from .group_1164 import ( + from .group_1174 import ( ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type as ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type, ) - from .group_1165 import ( + from .group_1175 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1165 import ( + from .group_1175 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1166 import ( + from .group_1176 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1166 import ( + from .group_1176 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1167 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1167 import ( + from .group_1177 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1177 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1168 import ( + from .group_1178 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1169 import ( + from .group_1179 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1170 import ( + from .group_1180 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_1171 import ( + from .group_1181 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1172 import ( + from .group_1182 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_1173 import ( + from .group_1183 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1174 import ( + from .group_1184 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1175 import ( + from .group_1185 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1176 import ( + from .group_1186 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1177 import ( + from .group_1187 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1177 import ( + from .group_1187 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1177 import ( + from .group_1187 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1178 import ( + from .group_1188 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1179 import ( + from .group_1189 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1180 import ( + from .group_1190 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1180 import ( + from .group_1190 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1181 import ( + from .group_1191 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1181 import ( + from .group_1191 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1182 import ( + from .group_1192 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1182 import ( + from .group_1192 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1183 import ( + from .group_1193 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1184 import ( + from .group_1194 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1185 import ( + from .group_1195 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1186 import ( + from .group_1196 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) - from .group_1187 import ( + from .group_1197 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1188 import ( + from .group_1198 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1189 import ( + from .group_1199 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1190 import ( + from .group_1200 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1191 import ( + from .group_1201 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1191 import ( + from .group_1201 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1192 import ( + from .group_1202 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1193 import ( + from .group_1203 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1194 import ( + from .group_1204 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1194 import ( + from .group_1204 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1195 import ( + from .group_1205 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1196 import ( + from .group_1206 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1197 import ( + from .group_1207 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1198 import ( + from .group_1208 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1199 import ( + from .group_1209 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1199 import ( + from .group_1209 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1200 import ( + from .group_1210 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1201 import ( + from .group_1211 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1202 import ( + from .group_1212 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_1202 import ( + from .group_1212 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1203 import ( + from .group_1213 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1204 import ( + from .group_1214 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1205 import ( + from .group_1215 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1206 import ( + from .group_1216 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType, ) - from .group_1207 import ( + from .group_1217 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType, ) - from .group_1208 import ( + from .group_1218 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType, ) - from .group_1209 import ( + from .group_1219 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1210 import ( + from .group_1220 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1211 import ( + from .group_1221 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1212 import ( + from .group_1222 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1213 import ( + from .group_1223 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1214 import ( + from .group_1224 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1215 import ( + from .group_1225 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1216 import ( + from .group_1226 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) - from .group_1217 import ( + from .group_1227 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1218 import ( + from .group_1228 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1219 import ( + from .group_1229 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1220 import ( + from .group_1230 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1221 import ( + from .group_1231 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1222 import ( + from .group_1232 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1223 import ( + from .group_1233 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1224 import ( + from .group_1234 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1225 import ( + from .group_1235 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1226 import ( + from .group_1236 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1227 import ( + from .group_1237 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1228 import ( + from .group_1238 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1229 import ( + from .group_1239 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1230 import ( + from .group_1240 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1231 import ( + from .group_1241 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1232 import ( + from .group_1242 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1233 import ( + from .group_1243 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_1234 import ( + from .group_1244 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1235 import ( + from .group_1245 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1236 import ( + from .group_1246 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_1237 import ( + from .group_1247 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1238 import ( + from .group_1248 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1239 import ( + from .group_1249 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1240 import ( + from .group_1250 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1241 import ( + from .group_1251 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1242 import ( + from .group_1252 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1243 import ( + from .group_1253 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1244 import ( + from .group_1254 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1244 import ( + from .group_1254 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1245 import ( + from .group_1255 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_1246 import ( + from .group_1256 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_1247 import ( + from .group_1257 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_1248 import ( + from .group_1258 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1249 import ( + from .group_1259 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1250 import ( + from .group_1260 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1251 import ( + from .group_1261 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1252 import ( + from .group_1262 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1253 import ( + from .group_1263 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) - from .group_1254 import ( + from .group_1264 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_1255 import ( + from .group_1265 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1256 import ( + from .group_1266 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1257 import ( + from .group_1267 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1258 import ( + from .group_1268 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType, ) - from .group_1259 import ( + from .group_1269 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1260 import ( + from .group_1270 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) - from .group_1261 import ( + from .group_1271 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1262 import ( + from .group_1272 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) - from .group_1263 import ( + from .group_1273 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1264 import ( + from .group_1274 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1265 import ( + from .group_1275 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType, ) - from .group_1265 import ( + from .group_1275 import ( ScimV2OrganizationsOrgUsersPostBodyPropNameType as ScimV2OrganizationsOrgUsersPostBodyPropNameType, ) - from .group_1265 import ( + from .group_1275 import ( ScimV2OrganizationsOrgUsersPostBodyType as ScimV2OrganizationsOrgUsersPostBodyType, ) - from .group_1266 import ( + from .group_1276 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType, ) - from .group_1266 import ( + from .group_1276 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType, ) - from .group_1266 import ( + from .group_1276 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyType, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType, ) - from .group_1267 import ( + from .group_1277 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType, ) - from .group_1268 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1269 import ( + from .group_1278 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1279 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) - from .group_1270 import ( + from .group_1280 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1271 import ( + from .group_1281 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1272 import ( + from .group_1282 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1273 import ( + from .group_1283 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1274 import ( + from .group_1284 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1275 import ( + from .group_1285 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_1276 import ( + from .group_1286 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1277 import ( + from .group_1287 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1278 import ( + from .group_1288 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) - from .group_1279 import ( + from .group_1289 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1279 import ( + from .group_1289 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyType, ) - from .group_1280 import UserPatchBodyType as UserPatchBodyType - from .group_1281 import ( + from .group_1290 import UserPatchBodyType as UserPatchBodyType + from .group_1291 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1282 import ( + from .group_1292 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1283 import ( + from .group_1293 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_1283 import ( + from .group_1293 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1284 import CodespacesSecretType as CodespacesSecretType - from .group_1284 import ( + from .group_1294 import CodespacesSecretType as CodespacesSecretType + from .group_1294 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) - from .group_1285 import ( + from .group_1295 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_1286 import ( + from .group_1296 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1287 import ( + from .group_1297 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1288 import ( + from .group_1298 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) - from .group_1289 import ( + from .group_1299 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_1290 import ( + from .group_1300 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from .group_1291 import ( + from .group_1301 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1292 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type - from .group_1293 import ( + from .group_1302 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1303 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1294 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType - from .group_1295 import ( + from .group_1304 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_1305 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1296 import ( + from .group_1306 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_1297 import ( + from .group_1307 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1298 import UserKeysPostBodyType as UserKeysPostBodyType - from .group_1299 import ( + from .group_1308 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_1309 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1300 import UserMigrationsPostBodyType as UserMigrationsPostBodyType - from .group_1301 import UserProjectsPostBodyType as UserProjectsPostBodyType - from .group_1302 import UserReposPostBodyType as UserReposPostBodyType - from .group_1303 import ( + from .group_1310 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_1311 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_1312 import UserReposPostBodyType as UserReposPostBodyType + from .group_1313 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1304 import ( + from .group_1314 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_1305 import ( + from .group_1315 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) - from .group_1306 import ( + from .group_1316 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + ) + from .group_1317 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ) + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1306 import ( + from .group_1318 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) else: @@ -9600,6 +9636,7 @@ ".group_0020": ( "RepositoryType", "RepositoryPropPermissionsType", + "RepositoryPropCodeSearchIndexStatusType", ), ".group_0021": ("InstallationTokenType",), ".group_0022": ("ScopedInstallationType",), @@ -9868,87 +9905,106 @@ ".group_0139": ("RulesetVersionWithStateType",), ".group_0140": ("RulesetVersionWithStateAllof1Type",), ".group_0141": ("RulesetVersionWithStateAllof1PropStateType",), - ".group_0142": ("OrganizationSecretScanningAlertType",), + ".group_0142": ( + "SecretScanningLocationCommitType", + "SecretScanningLocationWikiCommitType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestReviewType", + ), ".group_0143": ( + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationPullRequestReviewCommentType", + ), + ".group_0144": ( + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationPullRequestCommentType", + ), + ".group_0145": ("OrganizationSecretScanningAlertType",), + ".group_0146": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0144": ( + ".group_0147": ( "AdvancedSecurityActiveCommittersType", "AdvancedSecurityActiveCommittersRepositoryType", "AdvancedSecurityActiveCommittersUserType", ), - ".group_0145": ( + ".group_0148": ( "GetAllCostCentersType", "GetAllCostCentersPropCostCentersItemsType", "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", ), - ".group_0146": ("PackagesBillingUsageType",), - ".group_0147": ("CombinedBillingUsageType",), - ".group_0148": ( + ".group_0149": ("PackagesBillingUsageType",), + ".group_0150": ("CombinedBillingUsageType",), + ".group_0151": ( "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", ), - ".group_0149": ("MilestoneType",), - ".group_0150": ("IssueTypeType",), - ".group_0151": ("ReactionRollupType",), - ".group_0152": ( + ".group_0152": ("MilestoneType",), + ".group_0153": ("IssueTypeType",), + ".group_0154": ("ReactionRollupType",), + ".group_0155": ( "IssueType", "SubIssuesSummaryType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0153": ("IssueCommentType",), - ".group_0154": ( + ".group_0156": ("IssueCommentType",), + ".group_0157": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0155": ( + ".group_0158": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0156": ( + ".group_0159": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0157": ( + ".group_0160": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0158": ( + ".group_0161": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0159": ("GistCommentType",), - ".group_0160": ( + ".group_0162": ("GistCommentType",), + ".group_0163": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0161": ("GitignoreTemplateType",), - ".group_0162": ("LicenseType",), - ".group_0163": ("MarketplaceListingPlanType",), - ".group_0164": ("MarketplacePurchaseType",), - ".group_0165": ( + ".group_0164": ("GitignoreTemplateType",), + ".group_0165": ("LicenseType",), + ".group_0166": ("MarketplaceListingPlanType",), + ".group_0167": ("MarketplacePurchaseType",), + ".group_0168": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0166": ( + ".group_0169": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", "ApiOverviewPropDomainsPropActionsInboundType", "ApiOverviewPropDomainsPropArtifactAttestationsType", ), - ".group_0167": ( + ".group_0170": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropCodeSecurityType", @@ -9959,138 +10015,140 @@ "SecurityAndAnalysisPropSecretScanningAiDetectionType", "SecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_0168": ( + ".group_0171": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropCustomPropertiesType", ), - ".group_0169": ( + ".group_0172": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0170": ("ThreadSubscriptionType",), - ".group_0171": ("OrganizationCustomRepositoryRoleType",), - ".group_0172": ( + ".group_0173": ("ThreadSubscriptionType",), + ".group_0174": ("OrganizationCustomRepositoryRoleType",), + ".group_0175": ("DependabotRepositoryAccessDetailsType",), + ".group_0176": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0173": ("OidcCustomSubType",), - ".group_0174": ("ActionsOrganizationPermissionsType",), - ".group_0175": ("ActionsPublicKeyType",), - ".group_0176": ( + ".group_0177": ("OidcCustomSubType",), + ".group_0178": ("ActionsOrganizationPermissionsType",), + ".group_0179": ("ActionsPublicKeyType",), + ".group_0180": ( "SecretScanningBypassRequestType", "SecretScanningBypassRequestPropRepositoryType", "SecretScanningBypassRequestPropOrganizationType", "SecretScanningBypassRequestPropRequesterType", "SecretScanningBypassRequestPropDataItemsType", ), - ".group_0177": ( + ".group_0181": ( "CampaignSummaryType", "CampaignSummaryPropAlertStatsType", ), - ".group_0178": ("CodespaceMachineType",), - ".group_0179": ( + ".group_0182": ("CodespaceMachineType",), + ".group_0183": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0180": ("CodespacesPublicKeyType",), - ".group_0181": ( + ".group_0184": ("CodespacesPublicKeyType",), + ".group_0185": ( "CopilotOrganizationDetailsType", "CopilotOrganizationSeatBreakdownType", ), - ".group_0182": ("CredentialAuthorizationType",), - ".group_0183": ("OrganizationCustomRepositoryRoleCreateSchemaType",), - ".group_0184": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), - ".group_0185": ("DependabotPublicKeyType",), - ".group_0186": ( + ".group_0186": ("CredentialAuthorizationType",), + ".group_0187": ("OrganizationCustomRepositoryRoleCreateSchemaType",), + ".group_0188": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), + ".group_0189": ("DependabotPublicKeyType",), + ".group_0190": ( "SecretScanningDismissalRequestType", "SecretScanningDismissalRequestPropRepositoryType", "SecretScanningDismissalRequestPropOrganizationType", "SecretScanningDismissalRequestPropRequesterType", "SecretScanningDismissalRequestPropDataItemsType", ), - ".group_0187": ("PackageType",), - ".group_0188": ( + ".group_0191": ("PackageType",), + ".group_0192": ( "ExternalGroupType", "ExternalGroupPropTeamsItemsType", "ExternalGroupPropMembersItemsType", ), - ".group_0189": ( + ".group_0193": ( "ExternalGroupsType", "ExternalGroupsPropGroupsItemsType", ), - ".group_0190": ("OrganizationInvitationType",), - ".group_0191": ("RepositoryFineGrainedPermissionType",), - ".group_0192": ( + ".group_0194": ("OrganizationInvitationType",), + ".group_0195": ("RepositoryFineGrainedPermissionType",), + ".group_0196": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0193": ("ApiInsightsRouteStatsItemsType",), - ".group_0194": ("ApiInsightsSubjectStatsItemsType",), - ".group_0195": ("ApiInsightsSummaryStatsType",), - ".group_0196": ("ApiInsightsTimeStatsItemsType",), - ".group_0197": ("ApiInsightsUserStatsItemsType",), - ".group_0198": ("InteractionLimitResponseType",), - ".group_0199": ("InteractionLimitType",), - ".group_0200": ("OrganizationCreateIssueTypeType",), - ".group_0201": ("OrganizationUpdateIssueTypeType",), - ".group_0202": ( + ".group_0197": ("ApiInsightsRouteStatsItemsType",), + ".group_0198": ("ApiInsightsSubjectStatsItemsType",), + ".group_0199": ("ApiInsightsSummaryStatsType",), + ".group_0200": ("ApiInsightsTimeStatsItemsType",), + ".group_0201": ("ApiInsightsUserStatsItemsType",), + ".group_0202": ("InteractionLimitResponseType",), + ".group_0203": ("InteractionLimitType",), + ".group_0204": ("OrganizationCreateIssueTypeType",), + ".group_0205": ("OrganizationUpdateIssueTypeType",), + ".group_0206": ( "OrgMembershipType", "OrgMembershipPropPermissionsType", ), - ".group_0203": ("MigrationType",), - ".group_0204": ("OrganizationFineGrainedPermissionType",), - ".group_0205": ( + ".group_0207": ("MigrationType",), + ".group_0208": ("OrganizationFineGrainedPermissionType",), + ".group_0209": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0206": ("OrganizationCustomOrganizationRoleCreateSchemaType",), - ".group_0207": ("OrganizationCustomOrganizationRoleUpdateSchemaType",), - ".group_0208": ( + ".group_0210": ("OrganizationCustomOrganizationRoleCreateSchemaType",), + ".group_0211": ("OrganizationCustomOrganizationRoleUpdateSchemaType",), + ".group_0212": ( "TeamRoleAssignmentType", "TeamRoleAssignmentPropPermissionsType", ), - ".group_0209": ("UserRoleAssignmentType",), - ".group_0210": ( + ".group_0213": ("UserRoleAssignmentType",), + ".group_0214": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0211": ( + ".group_0215": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0212": ( + ".group_0216": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0213": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), - ".group_0214": ("ProjectType",), - ".group_0215": ("CustomPropertyValueType",), - ".group_0216": ("OrgRepoCustomPropertyValuesType",), - ".group_0217": ("CodeOfConductSimpleType",), - ".group_0218": ( + ".group_0217": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), + ".group_0218": ("ProjectType",), + ".group_0219": ("CustomPropertyValueType",), + ".group_0220": ("OrgRepoCustomPropertyValuesType",), + ".group_0221": ("CodeOfConductSimpleType",), + ".group_0222": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0219": ("RuleSuitesItemsType",), - ".group_0220": ( + ".group_0223": ("RuleSuitesItemsType",), + ".group_0224": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0221": ("RepositoryAdvisoryCreditType",), - ".group_0222": ( + ".group_0225": ("RepositoryAdvisoryCreditType",), + ".group_0226": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -10100,82 +10158,82 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0223": ( + ".group_0227": ( "GroupMappingType", "GroupMappingPropGroupsItemsType", ), - ".group_0224": ( + ".group_0228": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0225": ("TeamDiscussionType",), - ".group_0226": ("TeamDiscussionCommentType",), - ".group_0227": ("ReactionType",), - ".group_0228": ("TeamMembershipType",), - ".group_0229": ( + ".group_0229": ("TeamDiscussionType",), + ".group_0230": ("TeamDiscussionCommentType",), + ".group_0231": ("ReactionType",), + ".group_0232": ("TeamMembershipType",), + ".group_0233": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0230": ( + ".group_0234": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0231": ("ProjectCardType",), - ".group_0232": ("ProjectColumnType",), - ".group_0233": ("ProjectCollaboratorPermissionType",), - ".group_0234": ("RateLimitType",), - ".group_0235": ("RateLimitOverviewType",), - ".group_0236": ("RateLimitOverviewPropResourcesType",), - ".group_0237": ( + ".group_0235": ("ProjectCardType",), + ".group_0236": ("ProjectColumnType",), + ".group_0237": ("ProjectCollaboratorPermissionType",), + ".group_0238": ("RateLimitType",), + ".group_0239": ("RateLimitOverviewType",), + ".group_0240": ("RateLimitOverviewPropResourcesType",), + ".group_0241": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0238": ( + ".group_0242": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0239": ( + ".group_0243": ( "JobType", "JobPropStepsItemsType", ), - ".group_0240": ("OidcCustomSubRepoType",), - ".group_0241": ("ActionsSecretType",), - ".group_0242": ("ActionsVariableType",), - ".group_0243": ("ActionsRepositoryPermissionsType",), - ".group_0244": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0245": ( + ".group_0244": ("OidcCustomSubRepoType",), + ".group_0245": ("ActionsSecretType",), + ".group_0246": ("ActionsVariableType",), + ".group_0247": ("ActionsRepositoryPermissionsType",), + ".group_0248": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0249": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0246": ( + ".group_0250": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0247": ( + ".group_0251": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0248": ( + ".group_0252": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0249": ("ReviewCustomGatesCommentRequiredType",), - ".group_0250": ("ReviewCustomGatesStateRequiredType",), - ".group_0251": ( + ".group_0253": ("ReviewCustomGatesCommentRequiredType",), + ".group_0254": ("ReviewCustomGatesStateRequiredType",), + ".group_0255": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0252": ( + ".group_0256": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0253": ( + ".group_0257": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -10185,22 +10243,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0254": ( + ".group_0258": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0255": ("ActivityType",), - ".group_0256": ("AutolinkType",), - ".group_0257": ("CheckAutomatedSecurityFixesType",), - ".group_0258": ("ProtectedBranchPullRequestReviewType",), - ".group_0259": ( + ".group_0259": ("ActivityType",), + ".group_0260": ("AutolinkType",), + ".group_0261": ("CheckAutomatedSecurityFixesType",), + ".group_0262": ("ProtectedBranchPullRequestReviewType",), + ".group_0263": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0260": ( + ".group_0264": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -10208,7 +10266,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0261": ( + ".group_0265": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -10222,28 +10280,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0262": ( + ".group_0266": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0263": ("GitUserType",), - ".group_0264": ("VerificationType",), - ".group_0265": ("DiffEntryType",), - ".group_0266": ( + ".group_0267": ("GitUserType",), + ".group_0268": ("VerificationType",), + ".group_0269": ("DiffEntryType",), + ".group_0270": ( "CommitType", "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0267": ( + ".group_0271": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0268": ( + ".group_0272": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0269": ( + ".group_0273": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -10257,117 +10315,117 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0270": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0271": ( + ".group_0274": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0275": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0272": ("DeploymentSimpleType",), - ".group_0273": ( + ".group_0276": ("DeploymentSimpleType",), + ".group_0277": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0274": ("CheckAnnotationType",), - ".group_0275": ( + ".group_0278": ("CheckAnnotationType",), + ".group_0279": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0276": ( + ".group_0280": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0277": ("CodeScanningAlertItemsType",), - ".group_0278": ( + ".group_0281": ("CodeScanningAlertItemsType",), + ".group_0282": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0279": ("CodeScanningAutofixType",), - ".group_0280": ("CodeScanningAutofixCommitsType",), - ".group_0281": ("CodeScanningAutofixCommitsResponseType",), - ".group_0282": ("CodeScanningAnalysisType",), - ".group_0283": ("CodeScanningAnalysisDeletionType",), - ".group_0284": ("CodeScanningCodeqlDatabaseType",), - ".group_0285": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0286": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0287": ("CodeScanningVariantAnalysisType",), - ".group_0288": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0289": ( + ".group_0283": ("CodeScanningAutofixType",), + ".group_0284": ("CodeScanningAutofixCommitsType",), + ".group_0285": ("CodeScanningAutofixCommitsResponseType",), + ".group_0286": ("CodeScanningAnalysisType",), + ".group_0287": ("CodeScanningAnalysisDeletionType",), + ".group_0288": ("CodeScanningCodeqlDatabaseType",), + ".group_0289": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0290": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0291": ("CodeScanningVariantAnalysisType",), + ".group_0292": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0293": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0290": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0291": ("CodeScanningDefaultSetupType",), - ".group_0292": ("CodeScanningDefaultSetupUpdateType",), - ".group_0293": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0294": ("CodeScanningSarifsReceiptType",), - ".group_0295": ("CodeScanningSarifsStatusType",), - ".group_0296": ("CodeSecurityConfigurationForRepositoryType",), - ".group_0297": ( + ".group_0294": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0295": ("CodeScanningDefaultSetupType",), + ".group_0296": ("CodeScanningDefaultSetupUpdateType",), + ".group_0297": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0298": ("CodeScanningSarifsReceiptType",), + ".group_0299": ("CodeScanningSarifsStatusType",), + ".group_0300": ("CodeSecurityConfigurationForRepositoryType",), + ".group_0301": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0298": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0299": ("RepositoryInvitationType",), - ".group_0300": ( + ".group_0302": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0303": ("RepositoryInvitationType",), + ".group_0304": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0301": ( + ".group_0305": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0302": ( + ".group_0306": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0303": ("LinkType",), - ".group_0304": ("AutoMergeType",), - ".group_0305": ( + ".group_0307": ("LinkType",), + ".group_0308": ("AutoMergeType",), + ".group_0309": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0306": ( + ".group_0310": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0307": ("PullRequestSimplePropLinksType",), - ".group_0308": ( + ".group_0311": ("PullRequestSimplePropLinksType",), + ".group_0312": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0309": ("StatusType",), - ".group_0310": ( + ".group_0313": ("StatusType",), + ".group_0314": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0311": ("CommitComparisonType",), - ".group_0312": ( + ".group_0315": ("CommitComparisonType",), + ".group_0316": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0313": ( + ".group_0317": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0314": ( + ".group_0318": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0315": ( + ".group_0319": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0316": ( + ".group_0320": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0317": ( + ".group_0321": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -10378,20 +10436,20 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0318": ( + ".group_0322": ( "RepositoryRuleViolationErrorType", "RepositoryRuleViolationErrorPropMetadataType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", ), - ".group_0319": ("ContributorType",), - ".group_0320": ("DependabotAlertType",), - ".group_0321": ("DependabotAlertPropDependencyType",), - ".group_0322": ( + ".group_0323": ("ContributorType",), + ".group_0324": ("DependabotAlertType",), + ".group_0325": ("DependabotAlertPropDependencyType",), + ".group_0326": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0323": ( + ".group_0327": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", @@ -10399,41 +10457,41 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0324": ("MetadataType",), - ".group_0325": ("DependencyType",), - ".group_0326": ( + ".group_0328": ("MetadataType",), + ".group_0329": ("DependencyType",), + ".group_0330": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0327": ( + ".group_0331": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0328": ("DeploymentStatusType",), - ".group_0329": ("DeploymentBranchPolicySettingsType",), - ".group_0330": ( + ".group_0332": ("DeploymentStatusType",), + ".group_0333": ("DeploymentBranchPolicySettingsType",), + ".group_0334": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0331": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0332": ( + ".group_0335": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0336": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0333": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0334": ("DeploymentBranchPolicyNamePatternType",), - ".group_0335": ("CustomDeploymentRuleAppType",), - ".group_0336": ( + ".group_0337": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0338": ("DeploymentBranchPolicyNamePatternType",), + ".group_0339": ("CustomDeploymentRuleAppType",), + ".group_0340": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0337": ("ShortBlobType",), - ".group_0338": ("BlobType",), - ".group_0339": ( + ".group_0341": ("ShortBlobType",), + ".group_0342": ("BlobType",), + ".group_0343": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -10441,28 +10499,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0340": ( + ".group_0344": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0341": ( + ".group_0345": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0342": ( + ".group_0346": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0343": ("HookResponseType",), - ".group_0344": ("HookType",), - ".group_0345": ( + ".group_0347": ("HookResponseType",), + ".group_0348": ("HookType",), + ".group_0349": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0346": ("PorterAuthorType",), - ".group_0347": ("PorterLargeFileType",), - ".group_0348": ( + ".group_0350": ("PorterAuthorType",), + ".group_0351": ("PorterLargeFileType",), + ".group_0352": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -10470,55 +10528,55 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0349": ( + ".group_0353": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0350": ( + ".group_0354": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0351": ("AssignedIssueEventType",), - ".group_0352": ("UnassignedIssueEventType",), - ".group_0353": ( + ".group_0355": ("AssignedIssueEventType",), + ".group_0356": ("UnassignedIssueEventType",), + ".group_0357": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0354": ( + ".group_0358": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0355": ( + ".group_0359": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0356": ("ReviewRequestedIssueEventType",), - ".group_0357": ("ReviewRequestRemovedIssueEventType",), - ".group_0358": ( + ".group_0360": ("ReviewRequestedIssueEventType",), + ".group_0361": ("ReviewRequestRemovedIssueEventType",), + ".group_0362": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0359": ("LockedIssueEventType",), - ".group_0360": ( + ".group_0363": ("LockedIssueEventType",), + ".group_0364": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0361": ( + ".group_0365": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0362": ( + ".group_0366": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0363": ( + ".group_0367": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0364": ("TimelineCommentEventType",), - ".group_0365": ("TimelineCrossReferencedEventType",), - ".group_0366": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0367": ( + ".group_0368": ("TimelineCommentEventType",), + ".group_0369": ("TimelineCrossReferencedEventType",), + ".group_0370": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0371": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -10526,13 +10584,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0368": ( + ".group_0372": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0369": ( + ".group_0373": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -10540,161 +10598,162 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0370": ("TimelineAssignedIssueEventType",), - ".group_0371": ("TimelineUnassignedIssueEventType",), - ".group_0372": ("StateChangeIssueEventType",), - ".group_0373": ("DeployKeyType",), - ".group_0374": ("LanguageType",), - ".group_0375": ( + ".group_0374": ("TimelineAssignedIssueEventType",), + ".group_0375": ("TimelineUnassignedIssueEventType",), + ".group_0376": ("StateChangeIssueEventType",), + ".group_0377": ("DeployKeyType",), + ".group_0378": ("LanguageType",), + ".group_0379": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0376": ("MergedUpstreamType",), - ".group_0377": ( + ".group_0380": ("MergedUpstreamType",), + ".group_0381": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0378": ( + ".group_0382": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0379": ("PageBuildStatusType",), - ".group_0380": ("PageDeploymentType",), - ".group_0381": ("PagesDeploymentStatusType",), - ".group_0382": ( + ".group_0383": ("PageBuildStatusType",), + ".group_0384": ("PageDeploymentType",), + ".group_0385": ("PagesDeploymentStatusType",), + ".group_0386": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0383": ("PullRequestType",), - ".group_0384": ("PullRequestPropLabelsItemsType",), - ".group_0385": ( + ".group_0387": ("PullRequestType",), + ".group_0388": ("PullRequestPropLabelsItemsType",), + ".group_0389": ( "PullRequestPropHeadType", "PullRequestPropBaseType", ), - ".group_0386": ("PullRequestPropLinksType",), - ".group_0387": ("PullRequestMergeResultType",), - ".group_0388": ("PullRequestReviewRequestType",), - ".group_0389": ( + ".group_0390": ("PullRequestPropLinksType",), + ".group_0391": ("PullRequestMergeResultType",), + ".group_0392": ("PullRequestReviewRequestType",), + ".group_0393": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0390": ("ReviewCommentType",), - ".group_0391": ("ReviewCommentPropLinksType",), - ".group_0392": ("ReleaseAssetType",), - ".group_0393": ("ReleaseType",), - ".group_0394": ("ReleaseNotesContentType",), - ".group_0395": ("RepositoryRuleRulesetInfoType",), - ".group_0396": ("RepositoryRuleDetailedOneof0Type",), - ".group_0397": ("RepositoryRuleDetailedOneof1Type",), - ".group_0398": ("RepositoryRuleDetailedOneof2Type",), - ".group_0399": ("RepositoryRuleDetailedOneof3Type",), - ".group_0400": ("RepositoryRuleDetailedOneof4Type",), - ".group_0401": ("RepositoryRuleDetailedOneof5Type",), - ".group_0402": ("RepositoryRuleDetailedOneof6Type",), - ".group_0403": ("RepositoryRuleDetailedOneof7Type",), - ".group_0404": ("RepositoryRuleDetailedOneof8Type",), - ".group_0405": ("RepositoryRuleDetailedOneof9Type",), - ".group_0406": ("RepositoryRuleDetailedOneof10Type",), - ".group_0407": ("RepositoryRuleDetailedOneof11Type",), - ".group_0408": ("RepositoryRuleDetailedOneof12Type",), - ".group_0409": ("RepositoryRuleDetailedOneof13Type",), - ".group_0410": ("RepositoryRuleDetailedOneof14Type",), - ".group_0411": ("RepositoryRuleDetailedOneof15Type",), - ".group_0412": ("RepositoryRuleDetailedOneof16Type",), - ".group_0413": ("RepositoryRuleDetailedOneof17Type",), - ".group_0414": ("RepositoryRuleDetailedOneof18Type",), - ".group_0415": ("RepositoryRuleDetailedOneof19Type",), - ".group_0416": ("RepositoryRuleDetailedOneof20Type",), - ".group_0417": ("SecretScanningAlertType",), - ".group_0418": ("SecretScanningPushProtectionBypassType",), - ".group_0419": ( + ".group_0394": ("ReviewCommentType",), + ".group_0395": ("ReviewCommentPropLinksType",), + ".group_0396": ("ReleaseAssetType",), + ".group_0397": ("ReleaseType",), + ".group_0398": ("ReleaseNotesContentType",), + ".group_0399": ("RepositoryRuleRulesetInfoType",), + ".group_0400": ("RepositoryRuleDetailedOneof0Type",), + ".group_0401": ("RepositoryRuleDetailedOneof1Type",), + ".group_0402": ("RepositoryRuleDetailedOneof2Type",), + ".group_0403": ("RepositoryRuleDetailedOneof3Type",), + ".group_0404": ("RepositoryRuleDetailedOneof4Type",), + ".group_0405": ("RepositoryRuleDetailedOneof5Type",), + ".group_0406": ("RepositoryRuleDetailedOneof6Type",), + ".group_0407": ("RepositoryRuleDetailedOneof7Type",), + ".group_0408": ("RepositoryRuleDetailedOneof8Type",), + ".group_0409": ("RepositoryRuleDetailedOneof9Type",), + ".group_0410": ("RepositoryRuleDetailedOneof10Type",), + ".group_0411": ("RepositoryRuleDetailedOneof11Type",), + ".group_0412": ("RepositoryRuleDetailedOneof12Type",), + ".group_0413": ("RepositoryRuleDetailedOneof13Type",), + ".group_0414": ("RepositoryRuleDetailedOneof14Type",), + ".group_0415": ("RepositoryRuleDetailedOneof15Type",), + ".group_0416": ("RepositoryRuleDetailedOneof16Type",), + ".group_0417": ("RepositoryRuleDetailedOneof17Type",), + ".group_0418": ("RepositoryRuleDetailedOneof18Type",), + ".group_0419": ("RepositoryRuleDetailedOneof19Type",), + ".group_0420": ("RepositoryRuleDetailedOneof20Type",), + ".group_0421": ("SecretScanningAlertType",), + ".group_0422": ("SecretScanningLocationType",), + ".group_0423": ("SecretScanningPushProtectionBypassType",), + ".group_0424": ( "SecretScanningScanHistoryType", "SecretScanningScanType", "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", ), - ".group_0420": ( + ".group_0425": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type", ), - ".group_0421": ( + ".group_0426": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0422": ( + ".group_0427": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0423": ( + ".group_0428": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0424": ("StargazerType",), - ".group_0425": ("CommitActivityType",), - ".group_0426": ( + ".group_0429": ("StargazerType",), + ".group_0430": ("CommitActivityType",), + ".group_0431": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0427": ("ParticipationStatsType",), - ".group_0428": ("RepositorySubscriptionType",), - ".group_0429": ( + ".group_0432": ("ParticipationStatsType",), + ".group_0433": ("RepositorySubscriptionType",), + ".group_0434": ( "TagType", "TagPropCommitType", ), - ".group_0430": ("TagProtectionType",), - ".group_0431": ("TopicType",), - ".group_0432": ("TrafficType",), - ".group_0433": ("CloneTrafficType",), - ".group_0434": ("ContentTrafficType",), - ".group_0435": ("ReferrerTrafficType",), - ".group_0436": ("ViewTrafficType",), - ".group_0437": ( + ".group_0435": ("TagProtectionType",), + ".group_0436": ("TopicType",), + ".group_0437": ("TrafficType",), + ".group_0438": ("CloneTrafficType",), + ".group_0439": ("ContentTrafficType",), + ".group_0440": ("ReferrerTrafficType",), + ".group_0441": ("ViewTrafficType",), + ".group_0442": ( "GroupResponseType", "GroupResponsePropMembersItemsType", ), - ".group_0438": ("MetaType",), - ".group_0439": ( + ".group_0443": ("MetaType",), + ".group_0444": ( "ScimEnterpriseGroupResponseType", "ScimEnterpriseGroupResponseMergedMembersType", "ScimEnterpriseGroupListType", ), - ".group_0440": ( + ".group_0445": ( "ScimEnterpriseGroupResponseAllof1Type", "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", ), - ".group_0441": ( + ".group_0446": ( "GroupType", "GroupPropMembersItemsType", ), - ".group_0442": ( + ".group_0447": ( "PatchSchemaType", "PatchSchemaPropOperationsItemsType", ), - ".group_0443": ( + ".group_0448": ( "UserNameResponseType", "UserEmailsResponseItemsType", ), - ".group_0444": ("UserRoleItemsType",), - ".group_0445": ("UserResponseType",), - ".group_0446": ( + ".group_0449": ("UserRoleItemsType",), + ".group_0450": ("UserResponseType",), + ".group_0451": ( "ScimEnterpriseUserResponseType", "ScimEnterpriseUserListType", ), - ".group_0447": ("ScimEnterpriseUserResponseAllof1Type",), - ".group_0448": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), - ".group_0449": ( + ".group_0452": ("ScimEnterpriseUserResponseAllof1Type",), + ".group_0453": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), + ".group_0454": ( "UserType", "UserNameType", "UserEmailsItemsType", ), - ".group_0450": ( + ".group_0455": ( "ScimUserListType", "ScimUserType", "ScimUserPropNameType", @@ -10705,41 +10764,41 @@ "ScimUserPropOperationsItemsType", "ScimUserPropOperationsItemsPropValueOneof1Type", ), - ".group_0451": ( + ".group_0456": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0452": ( + ".group_0457": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0453": ( + ".group_0458": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0454": ( + ".group_0459": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0455": ( + ".group_0460": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", "IssueSearchResultItemPropSubIssuesSummaryType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0456": ( + ".group_0461": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0457": ( + ".group_0462": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0458": ( + ".group_0463": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -10747,49 +10806,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0459": ( + ".group_0464": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0460": ( + ".group_0465": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0461": ("CodespacesUserPublicKeyType",), - ".group_0462": ("CodespaceExportDetailsType",), - ".group_0463": ( + ".group_0466": ("CodespacesUserPublicKeyType",), + ".group_0467": ("CodespaceExportDetailsType",), + ".group_0468": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0464": ("EmailType",), - ".group_0465": ( + ".group_0469": ("EmailType",), + ".group_0470": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0466": ("KeyType",), - ".group_0467": ( + ".group_0471": ("KeyType",), + ".group_0472": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0468": ("SocialAccountType",), - ".group_0469": ("SshSigningKeyType",), - ".group_0470": ("StarredRepositoryType",), - ".group_0471": ( + ".group_0473": ("SocialAccountType",), + ".group_0474": ("SshSigningKeyType",), + ".group_0475": ("StarredRepositoryType",), + ".group_0476": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0472": ("KeySimpleType",), - ".group_0473": ( + ".group_0477": ("KeySimpleType",), + ".group_0478": ( "BillingUsageReportUserType", "BillingUsageReportUserPropUsageItemsItemsType", ), - ".group_0474": ("EnterpriseWebhooksType",), - ".group_0475": ("SimpleInstallationType",), - ".group_0476": ("OrganizationSimpleWebhooksType",), - ".group_0477": ( + ".group_0479": ("EnterpriseWebhooksType",), + ".group_0480": ("SimpleInstallationType",), + ".group_0481": ("OrganizationSimpleWebhooksType",), + ".group_0482": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -10797,9 +10856,9 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0478": ("WebhooksRuleType",), - ".group_0479": ("ExemptionResponseType",), - ".group_0480": ( + ".group_0483": ("WebhooksRuleType",), + ".group_0484": ("ExemptionResponseType",), + ".group_0485": ( "ExemptionRequestType", "ExemptionRequestSecretScanningMetadataType", "DismissalRequestSecretScanningMetadataType", @@ -10814,26 +10873,26 @@ "ExemptionRequestSecretScanningPropDataItemsType", "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", ), - ".group_0481": ("SimpleCheckSuiteType",), - ".group_0482": ( + ".group_0486": ("SimpleCheckSuiteType",), + ".group_0487": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0483": ("WebhooksDeployKeyType",), - ".group_0484": ("WebhooksWorkflowType",), - ".group_0485": ( + ".group_0488": ("WebhooksDeployKeyType",), + ".group_0489": ("WebhooksWorkflowType",), + ".group_0490": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0486": ("WebhooksWorkflowJobRunType",), - ".group_0487": ("WebhooksUserType",), - ".group_0488": ( + ".group_0491": ("WebhooksWorkflowJobRunType",), + ".group_0492": ("WebhooksUserType",), + ".group_0493": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0489": ( + ".group_0494": ( "DiscussionType", "LabelType", "DiscussionPropAnswerChosenByType", @@ -10841,24 +10900,24 @@ "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0490": ( + ".group_0495": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0491": ("WebhooksLabelType",), - ".group_0492": ("WebhooksRepositoriesItemsType",), - ".group_0493": ("WebhooksRepositoriesAddedItemsType",), - ".group_0494": ( + ".group_0496": ("WebhooksLabelType",), + ".group_0497": ("WebhooksRepositoriesItemsType",), + ".group_0498": ("WebhooksRepositoriesAddedItemsType",), + ".group_0499": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0495": ( + ".group_0500": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0496": ( + ".group_0501": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -10873,11 +10932,11 @@ "WebhooksIssuePropSubIssuesSummaryType", "WebhooksIssuePropUserType", ), - ".group_0497": ( + ".group_0502": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0498": ( + ".group_0503": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -10892,31 +10951,31 @@ "WebhooksIssue2PropSubIssuesSummaryType", "WebhooksIssue2PropUserType", ), - ".group_0499": ("WebhooksUserMannequinType",), - ".group_0500": ( + ".group_0504": ("WebhooksUserMannequinType",), + ".group_0505": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0501": ( + ".group_0506": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0502": ( + ".group_0507": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0503": ("MergeGroupType",), - ".group_0504": ( + ".group_0508": ("MergeGroupType",), + ".group_0509": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0505": ( + ".group_0510": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0506": ( + ".group_0511": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -10932,25 +10991,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0507": ( + ".group_0512": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0508": ( + ".group_0513": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0509": ("WebhooksProjectColumnType",), - ".group_0510": ("ProjectsV2Type",), - ".group_0511": ( + ".group_0514": ("WebhooksProjectColumnType",), + ".group_0515": ("ProjectsV2Type",), + ".group_0516": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0512": ("ProjectsV2ItemType",), - ".group_0513": ("ProjectsV2StatusUpdateType",), - ".group_0514": ("PullRequestWebhookType",), - ".group_0515": ("PullRequestWebhookAllof1Type",), - ".group_0516": ( + ".group_0517": ("ProjectsV2ItemType",), + ".group_0518": ("ProjectsV2StatusUpdateType",), + ".group_0519": ("PullRequestWebhookType",), + ".group_0520": ("PullRequestWebhookAllof1Type",), + ".group_0521": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -10988,7 +11047,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0517": ( + ".group_0522": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -10997,33 +11056,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0518": ( + ".group_0523": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0519": ( + ".group_0524": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0520": ( + ".group_0525": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0521": ( + ".group_0526": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0522": ("SecretScanningAlertWebhookType",), - ".group_0523": ( + ".group_0527": ("SecretScanningAlertWebhookType",), + ".group_0528": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -11033,27 +11092,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0524": ( + ".group_0529": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0525": ( + ".group_0530": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0526": ( + ".group_0531": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0527": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0528": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0529": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0530": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0531": ( + ".group_0532": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0533": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0534": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0535": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0536": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -11068,23 +11127,23 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0532": ("WebhookExemptionRequestCancelledType",), - ".group_0533": ("WebhookExemptionRequestCompletedType",), - ".group_0534": ("WebhookExemptionRequestCreatedType",), - ".group_0535": ("WebhookExemptionRequestResponseDismissedType",), - ".group_0536": ("WebhookExemptionRequestResponseSubmittedType",), - ".group_0537": ("WebhookCheckRunCompletedType",), - ".group_0538": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0539": ("WebhookCheckRunCreatedType",), - ".group_0540": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0541": ( + ".group_0537": ("WebhookExemptionRequestCancelledType",), + ".group_0538": ("WebhookExemptionRequestCompletedType",), + ".group_0539": ("WebhookExemptionRequestCreatedType",), + ".group_0540": ("WebhookExemptionRequestResponseDismissedType",), + ".group_0541": ("WebhookExemptionRequestResponseSubmittedType",), + ".group_0542": ("WebhookCheckRunCompletedType",), + ".group_0543": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0544": ("WebhookCheckRunCreatedType",), + ".group_0545": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0546": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0542": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0543": ("WebhookCheckRunRerequestedType",), - ".group_0544": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0545": ( + ".group_0547": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0548": ("WebhookCheckRunRerequestedType",), + ".group_0549": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0550": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -11099,7 +11158,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0546": ( + ".group_0551": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -11114,7 +11173,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0547": ( + ".group_0552": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -11129,7 +11188,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0548": ( + ".group_0553": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -11139,7 +11198,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0549": ( + ".group_0554": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -11150,7 +11209,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", ), - ".group_0550": ( + ".group_0555": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -11159,7 +11218,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0551": ( + ".group_0556": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -11169,7 +11228,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0552": ( + ".group_0557": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -11179,7 +11238,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0553": ( + ".group_0558": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -11188,32 +11247,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0554": ( + ".group_0559": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0555": ("WebhookCreateType",), - ".group_0556": ("WebhookCustomPropertyCreatedType",), - ".group_0557": ( + ".group_0560": ("WebhookCreateType",), + ".group_0561": ("WebhookCustomPropertyCreatedType",), + ".group_0562": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0558": ("WebhookCustomPropertyPromotedToEnterpriseType",), - ".group_0559": ("WebhookCustomPropertyUpdatedType",), - ".group_0560": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0561": ("WebhookDeleteType",), - ".group_0562": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0563": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0564": ("WebhookDependabotAlertCreatedType",), - ".group_0565": ("WebhookDependabotAlertDismissedType",), - ".group_0566": ("WebhookDependabotAlertFixedType",), - ".group_0567": ("WebhookDependabotAlertReintroducedType",), - ".group_0568": ("WebhookDependabotAlertReopenedType",), - ".group_0569": ("WebhookDeployKeyCreatedType",), - ".group_0570": ("WebhookDeployKeyDeletedType",), - ".group_0571": ( + ".group_0563": ("WebhookCustomPropertyPromotedToEnterpriseType",), + ".group_0564": ("WebhookCustomPropertyUpdatedType",), + ".group_0565": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0566": ("WebhookDeleteType",), + ".group_0567": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0568": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0569": ("WebhookDependabotAlertCreatedType",), + ".group_0570": ("WebhookDependabotAlertDismissedType",), + ".group_0571": ("WebhookDependabotAlertFixedType",), + ".group_0572": ("WebhookDependabotAlertReintroducedType",), + ".group_0573": ("WebhookDependabotAlertReopenedType",), + ".group_0574": ("WebhookDeployKeyCreatedType",), + ".group_0575": ("WebhookDeployKeyDeletedType",), + ".group_0576": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -11235,8 +11294,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0572": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0573": ( + ".group_0577": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0578": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -11254,7 +11313,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0574": ( + ".group_0579": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -11272,7 +11331,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0575": ( + ".group_0580": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -11292,7 +11351,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0576": ( + ".group_0581": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -11320,119 +11379,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0577": ("WebhookDiscussionAnsweredType",), - ".group_0578": ( + ".group_0582": ("WebhookDiscussionAnsweredType",), + ".group_0583": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0579": ("WebhookDiscussionClosedType",), - ".group_0580": ("WebhookDiscussionCommentCreatedType",), - ".group_0581": ("WebhookDiscussionCommentDeletedType",), - ".group_0582": ( + ".group_0584": ("WebhookDiscussionClosedType",), + ".group_0585": ("WebhookDiscussionCommentCreatedType",), + ".group_0586": ("WebhookDiscussionCommentDeletedType",), + ".group_0587": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0583": ("WebhookDiscussionCreatedType",), - ".group_0584": ("WebhookDiscussionDeletedType",), - ".group_0585": ( + ".group_0588": ("WebhookDiscussionCreatedType",), + ".group_0589": ("WebhookDiscussionDeletedType",), + ".group_0590": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0586": ("WebhookDiscussionLabeledType",), - ".group_0587": ("WebhookDiscussionLockedType",), - ".group_0588": ("WebhookDiscussionPinnedType",), - ".group_0589": ("WebhookDiscussionReopenedType",), - ".group_0590": ("WebhookDiscussionTransferredType",), - ".group_0591": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0592": ("WebhookDiscussionUnansweredType",), - ".group_0593": ("WebhookDiscussionUnlabeledType",), - ".group_0594": ("WebhookDiscussionUnlockedType",), - ".group_0595": ("WebhookDiscussionUnpinnedType",), - ".group_0596": ("WebhookForkType",), - ".group_0597": ( + ".group_0591": ("WebhookDiscussionLabeledType",), + ".group_0592": ("WebhookDiscussionLockedType",), + ".group_0593": ("WebhookDiscussionPinnedType",), + ".group_0594": ("WebhookDiscussionReopenedType",), + ".group_0595": ("WebhookDiscussionTransferredType",), + ".group_0596": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0597": ("WebhookDiscussionUnansweredType",), + ".group_0598": ("WebhookDiscussionUnlabeledType",), + ".group_0599": ("WebhookDiscussionUnlockedType",), + ".group_0600": ("WebhookDiscussionUnpinnedType",), + ".group_0601": ("WebhookForkType",), + ".group_0602": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0598": ( + ".group_0603": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0599": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0600": ( + ".group_0604": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0605": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0601": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0602": ( + ".group_0606": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0607": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0603": ("WebhookInstallationCreatedType",), - ".group_0604": ("WebhookInstallationDeletedType",), - ".group_0605": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0606": ( + ".group_0608": ("WebhookInstallationCreatedType",), + ".group_0609": ("WebhookInstallationDeletedType",), + ".group_0610": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0611": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0607": ( + ".group_0612": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0608": ("WebhookInstallationSuspendType",), - ".group_0609": ( + ".group_0613": ("WebhookInstallationSuspendType",), + ".group_0614": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0610": ("WebhookInstallationUnsuspendType",), - ".group_0611": ("WebhookIssueCommentCreatedType",), - ".group_0612": ( + ".group_0615": ("WebhookInstallationUnsuspendType",), + ".group_0616": ("WebhookIssueCommentCreatedType",), + ".group_0617": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0613": ( + ".group_0618": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0614": ( + ".group_0619": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0615": ( + ".group_0620": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0616": ( + ".group_0621": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0617": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0618": ( + ".group_0622": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0623": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0619": ( + ".group_0624": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0620": ( + ".group_0625": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0621": ( + ".group_0626": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -11442,43 +11501,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0622": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0623": ( + ".group_0627": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0628": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0624": ("WebhookIssueCommentDeletedType",), - ".group_0625": ( + ".group_0629": ("WebhookIssueCommentDeletedType",), + ".group_0630": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0626": ( + ".group_0631": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0627": ( + ".group_0632": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0628": ( + ".group_0633": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0629": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0630": ( + ".group_0634": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0635": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0631": ( + ".group_0636": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0632": ( + ".group_0637": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0633": ( + ".group_0638": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -11488,43 +11547,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0634": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0635": ( + ".group_0639": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0640": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0636": ("WebhookIssueCommentEditedType",), - ".group_0637": ( + ".group_0641": ("WebhookIssueCommentEditedType",), + ".group_0642": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0638": ( + ".group_0643": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0639": ( + ".group_0644": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0640": ( + ".group_0645": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0641": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0642": ( + ".group_0646": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0647": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0643": ( + ".group_0648": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0644": ( + ".group_0649": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0645": ( + ".group_0650": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -11534,13 +11593,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0646": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0647": ( + ".group_0651": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0652": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0648": ("WebhookIssuesAssignedType",), - ".group_0649": ("WebhookIssuesClosedType",), - ".group_0650": ( + ".group_0653": ("WebhookIssuesAssignedType",), + ".group_0654": ("WebhookIssuesClosedType",), + ".group_0655": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -11548,7 +11607,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0651": ( + ".group_0656": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -11556,22 +11615,22 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0652": ( + ".group_0657": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0653": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0654": ( + ".group_0658": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0659": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0655": ( + ".group_0660": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0656": ( + ".group_0661": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0657": ( + ".group_0662": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -11581,10 +11640,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0658": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0659": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0660": ("WebhookIssuesDeletedType",), - ".group_0661": ( + ".group_0663": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0664": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0665": ("WebhookIssuesDeletedType",), + ".group_0666": ( "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", @@ -11599,8 +11658,8 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0662": ("WebhookIssuesDemilestonedType",), - ".group_0663": ( + ".group_0667": ("WebhookIssuesDemilestonedType",), + ".group_0668": ( "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", @@ -11615,13 +11674,13 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0664": ( + ".group_0669": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", "WebhookIssuesEditedPropChangesPropTitleType", ), - ".group_0665": ( + ".group_0670": ( "WebhookIssuesEditedPropIssueType", "WebhookIssuesEditedPropIssuePropAssigneeType", "WebhookIssuesEditedPropIssuePropAssigneesItemsType", @@ -11636,8 +11695,8 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0666": ("WebhookIssuesLabeledType",), - ".group_0667": ( + ".group_0671": ("WebhookIssuesLabeledType",), + ".group_0672": ( "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", @@ -11652,8 +11711,8 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0668": ("WebhookIssuesLockedType",), - ".group_0669": ( + ".group_0673": ("WebhookIssuesLockedType",), + ".group_0674": ( "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", "WebhookIssuesLockedPropIssuePropAssigneesItemsType", @@ -11668,8 +11727,8 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0670": ("WebhookIssuesMilestonedType",), - ".group_0671": ( + ".group_0675": ("WebhookIssuesMilestonedType",), + ".group_0676": ( "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", @@ -11684,8 +11743,8 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0672": ("WebhookIssuesOpenedType",), - ".group_0673": ( + ".group_0677": ("WebhookIssuesOpenedType",), + ".group_0678": ( "WebhookIssuesOpenedPropChangesType", "WebhookIssuesOpenedPropChangesPropOldRepositoryType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", @@ -11693,7 +11752,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0674": ( + ".group_0679": ( "WebhookIssuesOpenedPropChangesPropOldIssueType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", @@ -11708,7 +11767,7 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", ), - ".group_0675": ( + ".group_0680": ( "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", @@ -11723,9 +11782,9 @@ "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropIssuePropUserType", ), - ".group_0676": ("WebhookIssuesPinnedType",), - ".group_0677": ("WebhookIssuesReopenedType",), - ".group_0678": ( + ".group_0681": ("WebhookIssuesPinnedType",), + ".group_0682": ("WebhookIssuesReopenedType",), + ".group_0683": ( "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", @@ -11740,8 +11799,8 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0679": ("WebhookIssuesTransferredType",), - ".group_0680": ( + ".group_0684": ("WebhookIssuesTransferredType",), + ".group_0685": ( "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewRepositoryType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", @@ -11749,7 +11808,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0681": ( + ".group_0686": ( "WebhookIssuesTransferredPropChangesPropNewIssueType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", @@ -11764,11 +11823,11 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", ), - ".group_0682": ("WebhookIssuesTypedType",), - ".group_0683": ("WebhookIssuesUnassignedType",), - ".group_0684": ("WebhookIssuesUnlabeledType",), - ".group_0685": ("WebhookIssuesUnlockedType",), - ".group_0686": ( + ".group_0687": ("WebhookIssuesTypedType",), + ".group_0688": ("WebhookIssuesUnassignedType",), + ".group_0689": ("WebhookIssuesUnlabeledType",), + ".group_0690": ("WebhookIssuesUnlockedType",), + ".group_0691": ( "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", @@ -11783,104 +11842,104 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0687": ("WebhookIssuesUnpinnedType",), - ".group_0688": ("WebhookIssuesUntypedType",), - ".group_0689": ("WebhookLabelCreatedType",), - ".group_0690": ("WebhookLabelDeletedType",), - ".group_0691": ( + ".group_0692": ("WebhookIssuesUnpinnedType",), + ".group_0693": ("WebhookIssuesUntypedType",), + ".group_0694": ("WebhookLabelCreatedType",), + ".group_0695": ("WebhookLabelDeletedType",), + ".group_0696": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0692": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0693": ( + ".group_0697": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0698": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0694": ( + ".group_0699": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0695": ( + ".group_0700": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0696": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0697": ( + ".group_0701": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0702": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0698": ( + ".group_0703": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0699": ("WebhookMemberRemovedType",), - ".group_0700": ( + ".group_0704": ("WebhookMemberRemovedType",), + ".group_0705": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0701": ( + ".group_0706": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0702": ("WebhookMergeGroupChecksRequestedType",), - ".group_0703": ("WebhookMergeGroupDestroyedType",), - ".group_0704": ( + ".group_0707": ("WebhookMergeGroupChecksRequestedType",), + ".group_0708": ("WebhookMergeGroupDestroyedType",), + ".group_0709": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0705": ("WebhookMilestoneClosedType",), - ".group_0706": ("WebhookMilestoneCreatedType",), - ".group_0707": ("WebhookMilestoneDeletedType",), - ".group_0708": ( + ".group_0710": ("WebhookMilestoneClosedType",), + ".group_0711": ("WebhookMilestoneCreatedType",), + ".group_0712": ("WebhookMilestoneDeletedType",), + ".group_0713": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0709": ("WebhookMilestoneOpenedType",), - ".group_0710": ("WebhookOrgBlockBlockedType",), - ".group_0711": ("WebhookOrgBlockUnblockedType",), - ".group_0712": ("WebhookOrganizationDeletedType",), - ".group_0713": ("WebhookOrganizationMemberAddedType",), - ".group_0714": ( + ".group_0714": ("WebhookMilestoneOpenedType",), + ".group_0715": ("WebhookOrgBlockBlockedType",), + ".group_0716": ("WebhookOrgBlockUnblockedType",), + ".group_0717": ("WebhookOrganizationDeletedType",), + ".group_0718": ("WebhookOrganizationMemberAddedType",), + ".group_0719": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0715": ("WebhookOrganizationMemberRemovedType",), - ".group_0716": ( + ".group_0720": ("WebhookOrganizationMemberRemovedType",), + ".group_0721": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0717": ( + ".group_0722": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0718": ("WebhookPackagePublishedType",), - ".group_0719": ( + ".group_0723": ("WebhookPackagePublishedType",), + ".group_0724": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0720": ( + ".group_0725": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -11912,13 +11971,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0721": ("WebhookPackageUpdatedType",), - ".group_0722": ( + ".group_0726": ("WebhookPackageUpdatedType",), + ".group_0727": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0723": ( + ".group_0728": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -11927,75 +11986,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0724": ( + ".group_0729": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0725": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0726": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0727": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0728": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0729": ("WebhookPingType",), - ".group_0730": ( + ".group_0730": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0731": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0732": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0733": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0734": ("WebhookPingType",), + ".group_0735": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0731": ("WebhookPingFormEncodedType",), - ".group_0732": ( + ".group_0736": ("WebhookPingFormEncodedType",), + ".group_0737": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0733": ("WebhookProjectCardCreatedType",), - ".group_0734": ( + ".group_0738": ("WebhookProjectCardCreatedType",), + ".group_0739": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0735": ( + ".group_0740": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0736": ( + ".group_0741": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0737": ( + ".group_0742": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0738": ( + ".group_0743": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0739": ("WebhookProjectClosedType",), - ".group_0740": ("WebhookProjectColumnCreatedType",), - ".group_0741": ("WebhookProjectColumnDeletedType",), - ".group_0742": ( + ".group_0744": ("WebhookProjectClosedType",), + ".group_0745": ("WebhookProjectColumnCreatedType",), + ".group_0746": ("WebhookProjectColumnDeletedType",), + ".group_0747": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0743": ("WebhookProjectColumnMovedType",), - ".group_0744": ("WebhookProjectCreatedType",), - ".group_0745": ("WebhookProjectDeletedType",), - ".group_0746": ( + ".group_0748": ("WebhookProjectColumnMovedType",), + ".group_0749": ("WebhookProjectCreatedType",), + ".group_0750": ("WebhookProjectDeletedType",), + ".group_0751": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0747": ("WebhookProjectReopenedType",), - ".group_0748": ("WebhookProjectsV2ProjectClosedType",), - ".group_0749": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0750": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0751": ( + ".group_0752": ("WebhookProjectReopenedType",), + ".group_0753": ("WebhookProjectsV2ProjectClosedType",), + ".group_0754": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0755": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0756": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -12003,15 +12062,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0752": ("WebhookProjectsV2ItemArchivedType",), - ".group_0753": ( + ".group_0757": ("WebhookProjectsV2ItemArchivedType",), + ".group_0758": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0754": ("WebhookProjectsV2ItemCreatedType",), - ".group_0755": ("WebhookProjectsV2ItemDeletedType",), - ".group_0756": ( + ".group_0759": ("WebhookProjectsV2ItemCreatedType",), + ".group_0760": ("WebhookProjectsV2ItemDeletedType",), + ".group_0761": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", @@ -12020,16 +12079,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0757": ( + ".group_0762": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0758": ("WebhookProjectsV2ItemRestoredType",), - ".group_0759": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0760": ("WebhookProjectsV2StatusUpdateCreatedType",), - ".group_0761": ("WebhookProjectsV2StatusUpdateDeletedType",), - ".group_0762": ( + ".group_0763": ("WebhookProjectsV2ItemRestoredType",), + ".group_0764": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0765": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0766": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0767": ( "WebhookProjectsV2StatusUpdateEditedType", "WebhookProjectsV2StatusUpdateEditedPropChangesType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", @@ -12037,8 +12096,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ), - ".group_0763": ("WebhookPublicType",), - ".group_0764": ( + ".group_0768": ("WebhookPublicType",), + ".group_0769": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -12077,7 +12136,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0765": ( + ".group_0770": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -12116,7 +12175,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0766": ( + ".group_0771": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -12155,10 +12214,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0767": ("WebhookPullRequestClosedType",), - ".group_0768": ("WebhookPullRequestConvertedToDraftType",), - ".group_0769": ("WebhookPullRequestDemilestonedType",), - ".group_0770": ( + ".group_0772": ("WebhookPullRequestClosedType",), + ".group_0773": ("WebhookPullRequestConvertedToDraftType",), + ".group_0774": ("WebhookPullRequestDemilestonedType",), + ".group_0775": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -12197,7 +12256,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0771": ( + ".group_0776": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -12206,7 +12265,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0772": ( + ".group_0777": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -12245,7 +12304,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0773": ( + ".group_0778": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -12284,7 +12343,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0774": ( + ".group_0779": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -12323,11 +12382,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0775": ("WebhookPullRequestMilestonedType",), - ".group_0776": ("WebhookPullRequestOpenedType",), - ".group_0777": ("WebhookPullRequestReadyForReviewType",), - ".group_0778": ("WebhookPullRequestReopenedType",), - ".group_0779": ( + ".group_0780": ("WebhookPullRequestMilestonedType",), + ".group_0781": ("WebhookPullRequestOpenedType",), + ".group_0782": ("WebhookPullRequestReadyForReviewType",), + ".group_0783": ("WebhookPullRequestReopenedType",), + ".group_0784": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -12372,7 +12431,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0780": ( + ".group_0785": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -12410,7 +12469,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0781": ( + ".group_0786": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -12448,7 +12507,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0782": ( + ".group_0787": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -12491,7 +12550,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0783": ( + ".group_0788": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -12531,7 +12590,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0784": ( + ".group_0789": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -12571,7 +12630,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0785": ( + ".group_0790": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -12612,7 +12671,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0786": ( + ".group_0791": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -12652,7 +12711,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0787": ( + ".group_0792": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -12693,7 +12752,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0788": ( + ".group_0793": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -12731,7 +12790,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0789": ( + ".group_0794": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -12777,7 +12836,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0790": ( + ".group_0795": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -12823,7 +12882,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0791": ( + ".group_0796": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -12862,7 +12921,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0792": ( + ".group_0797": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -12901,7 +12960,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0793": ( + ".group_0798": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -12940,7 +12999,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0794": ( + ".group_0799": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -12979,7 +13038,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0795": ( + ".group_0800": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -12994,13 +13053,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0796": ("WebhookRegistryPackagePublishedType",), - ".group_0797": ( + ".group_0801": ("WebhookRegistryPackagePublishedType",), + ".group_0802": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0798": ( + ".group_0803": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -13031,13 +13090,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0799": ("WebhookRegistryPackageUpdatedType",), - ".group_0800": ( + ".group_0804": ("WebhookRegistryPackageUpdatedType",), + ".group_0805": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0801": ( + ".group_0806": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -13046,9 +13105,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0802": ("WebhookReleaseCreatedType",), - ".group_0803": ("WebhookReleaseDeletedType",), - ".group_0804": ( + ".group_0807": ("WebhookReleaseCreatedType",), + ".group_0808": ("WebhookReleaseDeletedType",), + ".group_0809": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", @@ -13056,7 +13115,7 @@ "WebhookReleaseEditedPropChangesPropTagNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0805": ( + ".group_0810": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -13064,19 +13123,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0806": ("WebhookReleasePublishedType",), - ".group_0807": ("WebhookReleaseReleasedType",), - ".group_0808": ("WebhookReleaseUnpublishedType",), - ".group_0809": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0810": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0811": ("WebhookRepositoryArchivedType",), - ".group_0812": ("WebhookRepositoryCreatedType",), - ".group_0813": ("WebhookRepositoryDeletedType",), - ".group_0814": ( + ".group_0811": ("WebhookReleasePublishedType",), + ".group_0812": ("WebhookReleaseReleasedType",), + ".group_0813": ("WebhookReleaseUnpublishedType",), + ".group_0814": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0815": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0816": ("WebhookRepositoryArchivedType",), + ".group_0817": ("WebhookRepositoryCreatedType",), + ".group_0818": ("WebhookRepositoryDeletedType",), + ".group_0819": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0815": ( + ".group_0820": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -13084,25 +13143,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0816": ("WebhookRepositoryImportType",), - ".group_0817": ("WebhookRepositoryPrivatizedType",), - ".group_0818": ("WebhookRepositoryPublicizedType",), - ".group_0819": ( + ".group_0821": ("WebhookRepositoryImportType",), + ".group_0822": ("WebhookRepositoryPrivatizedType",), + ".group_0823": ("WebhookRepositoryPublicizedType",), + ".group_0824": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0820": ("WebhookRepositoryRulesetCreatedType",), - ".group_0821": ("WebhookRepositoryRulesetDeletedType",), - ".group_0822": ("WebhookRepositoryRulesetEditedType",), - ".group_0823": ( + ".group_0825": ("WebhookRepositoryRulesetCreatedType",), + ".group_0826": ("WebhookRepositoryRulesetDeletedType",), + ".group_0827": ("WebhookRepositoryRulesetEditedType",), + ".group_0828": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0824": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0825": ( + ".group_0829": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0830": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -13110,15 +13169,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0826": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0827": ( + ".group_0831": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0832": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0828": ( + ".group_0833": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -13126,47 +13185,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0829": ("WebhookRepositoryUnarchivedType",), - ".group_0830": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0831": ( + ".group_0834": ("WebhookRepositoryUnarchivedType",), + ".group_0835": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0836": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0832": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0833": ( + ".group_0837": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0838": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0834": ("WebhookSecretScanningAlertCreatedType",), - ".group_0835": ( - "WebhookSecretScanningAlertLocationCreatedType", - "SecretScanningLocationType", - "SecretScanningLocationCommitType", - "SecretScanningLocationWikiCommitType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestReviewCommentType", - ), - ".group_0836": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0837": ("WebhookSecretScanningAlertPubliclyLeakedType",), - ".group_0838": ("WebhookSecretScanningAlertReopenedType",), - ".group_0839": ("WebhookSecretScanningAlertResolvedType",), - ".group_0840": ("WebhookSecretScanningAlertValidatedType",), - ".group_0841": ("WebhookSecretScanningScanCompletedType",), - ".group_0842": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0843": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0844": ("WebhookSecurityAdvisoryWithdrawnType",), - ".group_0845": ( + ".group_0839": ("WebhookSecretScanningAlertCreatedType",), + ".group_0840": ("WebhookSecretScanningAlertLocationCreatedType",), + ".group_0841": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0842": ("WebhookSecretScanningAlertPubliclyLeakedType",), + ".group_0843": ("WebhookSecretScanningAlertReopenedType",), + ".group_0844": ("WebhookSecretScanningAlertResolvedType",), + ".group_0845": ("WebhookSecretScanningAlertValidatedType",), + ".group_0846": ("WebhookSecretScanningScanCompletedType",), + ".group_0847": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0848": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0849": ("WebhookSecurityAdvisoryWithdrawnType",), + ".group_0850": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", @@ -13176,22 +13219,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0846": ("WebhookSecurityAndAnalysisType",), - ".group_0847": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0848": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0849": ("WebhookSponsorshipCancelledType",), - ".group_0850": ("WebhookSponsorshipCreatedType",), - ".group_0851": ( + ".group_0851": ("WebhookSecurityAndAnalysisType",), + ".group_0852": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0853": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0854": ("WebhookSponsorshipCancelledType",), + ".group_0855": ("WebhookSponsorshipCreatedType",), + ".group_0856": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0852": ("WebhookSponsorshipPendingCancellationType",), - ".group_0853": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0854": ("WebhookSponsorshipTierChangedType",), - ".group_0855": ("WebhookStarCreatedType",), - ".group_0856": ("WebhookStarDeletedType",), - ".group_0857": ( + ".group_0857": ("WebhookSponsorshipPendingCancellationType",), + ".group_0858": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0859": ("WebhookSponsorshipTierChangedType",), + ".group_0860": ("WebhookStarCreatedType",), + ".group_0861": ("WebhookStarDeletedType",), + ".group_0862": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -13205,16 +13248,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0858": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0859": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0860": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0861": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0862": ("WebhookSubIssuesParentIssueAddedType",), - ".group_0863": ("WebhookSubIssuesParentIssueRemovedType",), - ".group_0864": ("WebhookSubIssuesSubIssueAddedType",), - ".group_0865": ("WebhookSubIssuesSubIssueRemovedType",), - ".group_0866": ("WebhookTeamAddType",), - ".group_0867": ( + ".group_0863": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0864": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0865": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0866": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0867": ("WebhookSubIssuesParentIssueAddedType",), + ".group_0868": ("WebhookSubIssuesParentIssueRemovedType",), + ".group_0869": ("WebhookSubIssuesSubIssueAddedType",), + ".group_0870": ("WebhookSubIssuesSubIssueRemovedType",), + ".group_0871": ("WebhookTeamAddType",), + ".group_0872": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -13222,7 +13265,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0868": ( + ".group_0873": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -13230,7 +13273,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0869": ( + ".group_0874": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -13238,7 +13281,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0870": ( + ".group_0875": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -13254,7 +13297,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0871": ( + ".group_0876": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -13262,48 +13305,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0872": ("WebhookWatchStartedType",), - ".group_0873": ( + ".group_0877": ("WebhookWatchStartedType",), + ".group_0878": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0874": ( + ".group_0879": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0875": ( + ".group_0880": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0876": ( + ".group_0881": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0877": ( + ".group_0882": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0878": ( + ".group_0883": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0879": ( + ".group_0884": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0880": ( + ".group_0885": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0881": ( + ".group_0886": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0882": ( + ".group_0887": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -13322,7 +13365,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0883": ( + ".group_0888": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -13341,7 +13384,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0884": ( + ".group_0889": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -13360,377 +13403,390 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0885": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0886": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0887": ("AppHookConfigPatchBodyType",), - ".group_0888": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0889": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0890": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0891": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0892": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0893": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0894": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0895": ("CredentialsRevokePostBodyType",), - ".group_0896": ("EmojisGetResponse200Type",), - ".group_0897": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",), - ".group_0898": ( + ".group_0890": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0891": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0892": ("AppHookConfigPatchBodyType",), + ".group_0893": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0894": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0895": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0896": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0897": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0898": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0899": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0900": ("CredentialsRevokePostBodyType",), + ".group_0901": ("EmojisGetResponse200Type",), + ".group_0902": ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",), + ".group_0903": ( "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", ), - ".group_0899": ( + ".group_0904": ( "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", ), - ".group_0900": ( + ".group_0905": ( "EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type", ), - ".group_0901": ( + ".group_0906": ( "EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type", ), - ".group_0902": ( + ".group_0907": ( "EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type", ), - ".group_0903": ( + ".group_0908": ( "EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType", ), - ".group_0904": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), - ".group_0905": ( + ".group_0909": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), + ".group_0910": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type", ), - ".group_0906": ( + ".group_0911": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType", ), - ".group_0907": ( + ".group_0912": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", "RunnerGroupsEnterpriseType", ), - ".group_0908": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), - ".group_0909": ( + ".group_0913": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), + ".group_0914": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType", ), - ".group_0910": ( + ".group_0915": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", ), - ".group_0911": ( + ".group_0916": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", ), - ".group_0912": ( + ".group_0917": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0913": ( + ".group_0918": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType", ), - ".group_0914": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), - ".group_0915": ( + ".group_0919": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), + ".group_0920": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType", ), - ".group_0916": ( + ".group_0921": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type", ), - ".group_0917": ( + ".group_0922": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type", ), - ".group_0918": ( + ".group_0923": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType", ), - ".group_0919": ( + ".group_0924": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType", ), - ".group_0920": ( + ".group_0925": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type", ), - ".group_0921": ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",), - ".group_0922": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",), - ".group_0923": ( + ".group_0926": ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",), + ".group_0927": ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",), + ".group_0928": ( "EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type", ), - ".group_0924": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), - ".group_0925": ( + ".group_0929": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), + ".group_0930": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0926": ( + ".group_0931": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0927": ( + ".group_0932": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0928": ( + ".group_0933": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0929": ( + ".group_0934": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0930": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), - ".group_0931": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), - ".group_0932": ( + ".group_0935": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), + ".group_0936": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), + ".group_0937": ( + "EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type", + ), + ".group_0938": ( "EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type", ), - ".group_0933": ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",), - ".group_0934": ( + ".group_0939": ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",), + ".group_0940": ( "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", ), - ".group_0935": ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",), - ".group_0936": ("EnterprisesEnterpriseRulesetsPostBodyType",), - ".group_0937": ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",), - ".group_0938": ( + ".group_0941": ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",), + ".group_0942": ("EnterprisesEnterpriseRulesetsPostBodyType",), + ".group_0943": ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",), + ".group_0944": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", ), - ".group_0939": ( + ".group_0945": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", ), - ".group_0940": ( + ".group_0946": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", ), - ".group_0941": ( + ".group_0947": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", ), - ".group_0942": ( + ".group_0948": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0943": ( + ".group_0949": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0944": ( + ".group_0950": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0945": ("GistsGistIdCommentsPostBodyType",), - ".group_0946": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0947": ("GistsGistIdStarGetResponse404Type",), - ".group_0948": ("InstallationRepositoriesGetResponse200Type",), - ".group_0949": ("MarkdownPostBodyType",), - ".group_0950": ("NotificationsPutBodyType",), - ".group_0951": ("NotificationsPutResponse202Type",), - ".group_0952": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0953": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), - ".group_0954": ("OrgsOrgPatchBodyType",), - ".group_0955": ( + ".group_0951": ("GistsGistIdCommentsPostBodyType",), + ".group_0952": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0953": ("GistsGistIdStarGetResponse404Type",), + ".group_0954": ("InstallationRepositoriesGetResponse200Type",), + ".group_0955": ("MarkdownPostBodyType",), + ".group_0956": ("NotificationsPutBodyType",), + ".group_0957": ("NotificationsPutResponse202Type",), + ".group_0958": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0959": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), + ".group_0960": ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",), + ".group_0961": ( + "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType", + ), + ".group_0962": ("OrgsOrgPatchBodyType",), + ".group_0963": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0956": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), - ".group_0957": ( + ".group_0964": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), + ".group_0965": ( "OrgsOrgActionsHostedRunnersPostBodyType", "OrgsOrgActionsHostedRunnersPostBodyPropImageType", ), - ".group_0958": ( + ".group_0966": ( "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type", ), - ".group_0959": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), - ".group_0960": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), - ".group_0961": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), - ".group_0962": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), - ".group_0963": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0964": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0965": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0966": ( + ".group_0967": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), + ".group_0968": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), + ".group_0969": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), + ".group_0970": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), + ".group_0971": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0972": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0973": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0974": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0967": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0968": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0969": ( + ".group_0975": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0976": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0977": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type", ), - ".group_0970": ( + ".group_0978": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0971": ( + ".group_0979": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0972": ( + ".group_0980": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0973": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0974": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0975": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0976": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0977": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0978": ( + ".group_0981": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0982": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0983": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0984": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0985": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0986": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0979": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0980": ( + ".group_0987": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0988": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0981": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0982": ( + ".group_0989": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0990": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0983": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0984": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0985": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0986": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0987": ( + ".group_0991": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0992": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0993": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0994": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0995": ("OrgsOrgAttestationsBulkListPostBodyType",), + ".group_0996": ( + "OrgsOrgAttestationsBulkListPostResponse200Type", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", + ), + ".group_0997": ( "OrgsOrgAttestationsSubjectDigestGetResponse200Type", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0988": ( + ".group_0998": ( "OrgsOrgCampaignsPostBodyType", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", ), - ".group_0989": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), - ".group_0990": ( + ".group_0999": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), + ".group_1000": ( "OrgsOrgCodeSecurityConfigurationsPostBodyType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0991": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), - ".group_0992": ( + ".group_1001": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_1002": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0993": ( + ".group_1003": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0994": ( + ".group_1004": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0995": ( + ".group_1005": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0996": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0997": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0998": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0999": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_1000": ( + ".group_1006": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_1007": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_1008": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_1009": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_1010": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_1001": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_1002": ( + ".group_1011": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_1012": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1003": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1004": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), - ".group_1005": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_1006": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_1007": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_1008": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_1009": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_1010": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_1011": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_1012": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_1013": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), - ".group_1014": ( + ".group_1013": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1014": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), + ".group_1015": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_1016": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_1017": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_1018": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_1019": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_1020": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_1021": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_1022": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_1023": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), + ".group_1024": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_1015": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_1016": ( + ".group_1025": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_1026": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1017": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_1018": ( + ".group_1027": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_1028": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_1019": ( + ".group_1029": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_1020": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_1021": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_1022": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_1023": ("OrgsOrgInvitationsPostBodyType",), - ".group_1024": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_1025": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_1026": ("OrgsOrgMigrationsPostBodyType",), - ".group_1027": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_1028": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_1029": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_1030": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_1031": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_1032": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_1033": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_1034": ( + ".group_1030": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_1031": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_1032": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_1033": ("OrgsOrgInvitationsPostBodyType",), + ".group_1034": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_1035": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_1036": ("OrgsOrgMigrationsPostBodyType",), + ".group_1037": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_1038": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_1039": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_1040": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_1041": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_1042": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_1043": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_1044": ( "OrgsOrgPrivateRegistriesGetResponse200Type", "OrgPrivateRegistryConfigurationType", ), - ".group_1035": ("OrgsOrgPrivateRegistriesPostBodyType",), - ".group_1036": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), - ".group_1037": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), - ".group_1038": ("OrgsOrgProjectsPostBodyType",), - ".group_1039": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_1040": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_1041": ( + ".group_1045": ("OrgsOrgPrivateRegistriesPostBodyType",), + ".group_1046": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), + ".group_1047": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), + ".group_1048": ("OrgsOrgProjectsPostBodyType",), + ".group_1049": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_1050": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_1051": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_1042": ("OrgsOrgRulesetsPostBodyType",), - ".group_1043": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_1044": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",), - ".group_1045": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), - ".group_1046": ( + ".group_1052": ("OrgsOrgRulesetsPostBodyType",), + ".group_1053": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_1054": ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",), + ".group_1055": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), + ".group_1056": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType", ), - ".group_1047": ("OrgsOrgTeamsPostBodyType",), - ".group_1048": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_1049": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_1050": ( + ".group_1057": ("OrgsOrgTeamsPostBodyType",), + ".group_1058": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_1059": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_1060": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_1051": ( + ".group_1061": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_1052": ( + ".group_1062": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1053": ( + ".group_1063": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1054": ( + ".group_1064": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_1055": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), - ".group_1056": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_1057": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_1058": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_1059": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_1060": ( + ".group_1065": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), + ".group_1066": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_1067": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_1068": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_1069": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_1070": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1061": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_1062": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_1063": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_1064": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_1065": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_1066": ( + ".group_1071": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_1072": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_1073": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_1074": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_1075": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_1076": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_1067": ( + ".group_1077": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_1068": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_1069": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_1070": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_1071": ( + ".group_1078": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_1079": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_1080": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_1081": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_1072": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_1073": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_1074": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_1075": ("ProjectsProjectIdPatchBodyType",), - ".group_1076": ("ProjectsProjectIdPatchResponse403Type",), - ".group_1077": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_1078": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_1079": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_1080": ( + ".group_1082": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_1083": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_1084": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_1085": ("ProjectsProjectIdPatchBodyType",), + ".group_1086": ("ProjectsProjectIdPatchResponse403Type",), + ".group_1087": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_1088": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_1089": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_1090": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -13741,61 +13797,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_1081": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_1082": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_1083": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_1084": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_1085": ( + ".group_1091": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_1092": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_1093": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_1094": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_1095": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_1086": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_1087": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_1088": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_1089": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_1090": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_1091": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_1092": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_1093": ( + ".group_1096": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_1097": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_1098": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_1099": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_1100": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_1101": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_1102": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_1103": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_1094": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_1095": ( + ".group_1104": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_1105": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_1096": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_1097": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_1098": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_1099": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_1100": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_1101": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_1102": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_1103": ( + ".group_1106": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_1107": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_1108": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_1109": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_1110": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_1111": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_1112": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_1113": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_1104": ( + ".group_1114": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_1105": ( + ".group_1115": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_1106": ( + ".group_1116": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_1107": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_1108": ( + ".group_1117": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_1118": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_1109": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_1110": ( + ".group_1119": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_1120": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -13804,386 +13860,388 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_1111": ( + ".group_1121": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_1112": ( + ".group_1122": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_1113": ( + ".group_1123": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_1114": ( + ".group_1124": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_1115": ( + ".group_1125": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_1116": ( + ".group_1126": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType", ), - ".group_1117": ( + ".group_1127": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType", ), - ".group_1118": ( + ".group_1128": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType", ), - ".group_1119": ( + ".group_1129": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_1120": ( + ".group_1130": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_1121": ( + ".group_1131": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_1122": ( + ".group_1132": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType", ), - ".group_1123": ( + ".group_1133": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType", ), - ".group_1124": ( + ".group_1134": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType", ), - ".group_1125": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_1126": ( + ".group_1135": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_1136": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType", ), - ".group_1127": ( + ".group_1137": ( "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type", ), - ".group_1128": ( + ".group_1138": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_1129": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_1130": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_1131": ( + ".group_1139": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_1140": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_1141": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_1132": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_1133": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_1134": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_1135": ( + ".group_1142": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_1143": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_1144": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_1145": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_1136": ( + ".group_1146": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_1137": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_1138": ( + ".group_1147": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_1148": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_1139": ( + ".group_1149": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_1140": ( + ".group_1150": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_1141": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_1142": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_1143": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_1144": ( + ".group_1151": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_1152": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_1153": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1154": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_1145": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_1146": ( + ".group_1155": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1156": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_1147": ( + ".group_1157": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_1148": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_1149": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_1150": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1151": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1152": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1153": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1154": ( + ".group_1158": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1159": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1160": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1161": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1162": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1163": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1164": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1155": ( + ".group_1165": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1156": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1157": ( + ".group_1166": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1167": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1158": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1159": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1160": ( + ".group_1168": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1169": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1170": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1161": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1162": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1163": ( + ".group_1171": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1172": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1173": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType", ), - ".group_1164": ( + ".group_1174": ( "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type", ), - ".group_1165": ( + ".group_1175": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1166": ( + ".group_1176": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1167": ( + ".group_1177": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1168": ( + ".group_1178": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1169": ( + ".group_1179": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1170": ( + ".group_1180": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1171": ( + ".group_1181": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1172": ( + ".group_1182": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1173": ( + ".group_1183": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1174": ( + ".group_1184": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1175": ("ReposOwnerRepoForksPostBodyType",), - ".group_1176": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1177": ( + ".group_1185": ("ReposOwnerRepoForksPostBodyType",), + ".group_1186": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1187": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1178": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1179": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1180": ( + ".group_1188": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1189": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1190": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1181": ( + ".group_1191": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1182": ( + ".group_1192": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1183": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1184": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1185": ("ReposOwnerRepoImportPutBodyType",), - ".group_1186": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1187": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1188": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1189": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1190": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1191": ( + ".group_1193": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1194": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1195": ("ReposOwnerRepoImportPutBodyType",), + ".group_1196": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1197": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1198": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1199": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1200": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1201": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1192": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1193": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1194": ( + ".group_1202": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1203": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1204": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1195": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1196": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1197": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1198": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1199": ( + ".group_1205": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1206": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1207": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1208": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1209": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1200": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1201": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1202": ( + ".group_1210": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1211": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1212": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1203": ( + ".group_1213": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1204": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1205": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1206": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), - ".group_1207": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), - ".group_1208": ( + ".group_1214": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1215": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1216": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), + ".group_1217": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), + ".group_1218": ( "ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType", ), - ".group_1209": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1210": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1211": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1212": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1213": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1214": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1215": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1216": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1217": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1218": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1219": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1220": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1221": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1222": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1223": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1224": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1225": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1226": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1227": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1228": ( + ".group_1219": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1220": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1221": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1222": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1223": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1224": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1225": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1226": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1227": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1228": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1229": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1230": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1231": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1232": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1233": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1234": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1235": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1236": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1237": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1238": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1229": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1230": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1231": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1232": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1233": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1234": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1235": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1236": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1237": ( + ".group_1239": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1240": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1241": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1242": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1243": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1244": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1245": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1246": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1247": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1238": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1239": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1240": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1241": ( + ".group_1248": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1249": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1250": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1251": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1242": ( + ".group_1252": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1243": ( + ".group_1253": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1244": ( + ".group_1254": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1245": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1246": ( + ".group_1255": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1256": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1247": ( + ".group_1257": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1248": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1249": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1250": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1251": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1252": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1253": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1254": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1255": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1256": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1257": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1258": ( + ".group_1258": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1259": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1260": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1261": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1262": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1263": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1264": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1265": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1266": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1267": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1268": ( "ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType", ), - ".group_1259": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1260": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1261": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1262": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1263": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1264": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1265": ( + ".group_1269": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1270": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1271": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1272": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1273": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1274": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1275": ( "ScimV2OrganizationsOrgUsersPostBodyType", "ScimV2OrganizationsOrgUsersPostBodyPropNameType", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ), - ".group_1266": ( + ".group_1276": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ), - ".group_1267": ( + ".group_1277": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", ), - ".group_1268": ("TeamsTeamIdPatchBodyType",), - ".group_1269": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1270": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1271": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1272": ( + ".group_1278": ("TeamsTeamIdPatchBodyType",), + ".group_1279": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1280": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1281": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1282": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1273": ( + ".group_1283": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1274": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1275": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1276": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1277": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1278": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1279": ( + ".group_1284": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1285": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1286": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1287": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1288": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1289": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1280": ("UserPatchBodyType",), - ".group_1281": ("UserCodespacesGetResponse200Type",), - ".group_1282": ("UserCodespacesPostBodyOneof0Type",), - ".group_1283": ( + ".group_1290": ("UserPatchBodyType",), + ".group_1291": ("UserCodespacesGetResponse200Type",), + ".group_1292": ("UserCodespacesPostBodyOneof0Type",), + ".group_1293": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1284": ( + ".group_1294": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1285": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1286": ( + ".group_1295": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1296": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1287": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1288": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1289": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1290": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1291": ("UserEmailVisibilityPatchBodyType",), - ".group_1292": ("UserEmailsPostBodyOneof0Type",), - ".group_1293": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1294": ("UserGpgKeysPostBodyType",), - ".group_1295": ("UserInstallationsGetResponse200Type",), - ".group_1296": ( + ".group_1297": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1298": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1299": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1300": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1301": ("UserEmailVisibilityPatchBodyType",), + ".group_1302": ("UserEmailsPostBodyOneof0Type",), + ".group_1303": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1304": ("UserGpgKeysPostBodyType",), + ".group_1305": ("UserInstallationsGetResponse200Type",), + ".group_1306": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1297": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1298": ("UserKeysPostBodyType",), - ".group_1299": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1300": ("UserMigrationsPostBodyType",), - ".group_1301": ("UserProjectsPostBodyType",), - ".group_1302": ("UserReposPostBodyType",), - ".group_1303": ("UserSocialAccountsPostBodyType",), - ".group_1304": ("UserSocialAccountsDeleteBodyType",), - ".group_1305": ("UserSshSigningKeysPostBodyType",), - ".group_1306": ( + ".group_1307": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1308": ("UserKeysPostBodyType",), + ".group_1309": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1310": ("UserMigrationsPostBodyType",), + ".group_1311": ("UserProjectsPostBodyType",), + ".group_1312": ("UserReposPostBodyType",), + ".group_1313": ("UserSocialAccountsPostBodyType",), + ".group_1314": ("UserSocialAccountsDeleteBodyType",), + ".group_1315": ("UserSshSigningKeysPostBodyType",), + ".group_1316": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",), + ".group_1317": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",), + ".group_1318": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0010.py b/githubkit/versions/ghec_v2022_11_28/types/group_0010.py index 34d9ac7cc..cd45ad29f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0010.py @@ -41,9 +41,6 @@ class actors within GitHub. permissions: IntegrationPropPermissionsType events: list[str] installations_count: NotRequired[int] - client_secret: NotRequired[str] - webhook_secret: NotRequired[Union[str, None]] - pem: NotRequired[str] __all__ = ("IntegrationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0020.py b/githubkit/versions/ghec_v2022_11_28/types/group_0020.py index b20421e03..9d10c4127 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0020.py @@ -120,6 +120,7 @@ class RepositoryType(TypedDict): master_branch: NotRequired[str] starred_at: NotRequired[str] anonymous_access_enabled: NotRequired[bool] + code_search_index_status: NotRequired[RepositoryPropCodeSearchIndexStatusType] class RepositoryPropPermissionsType(TypedDict): @@ -132,7 +133,18 @@ class RepositoryPropPermissionsType(TypedDict): maintain: NotRequired[bool] +class RepositoryPropCodeSearchIndexStatusType(TypedDict): + """RepositoryPropCodeSearchIndexStatus + + The status of the code search index for this repository + """ + + lexical_search_ok: NotRequired[bool] + lexical_commit_sha: NotRequired[str] + + __all__ = ( + "RepositoryPropCodeSearchIndexStatusType", "RepositoryPropPermissionsType", "RepositoryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0068.py b/githubkit/versions/ghec_v2022_11_28/types/group_0068.py index 714320d32..df826b244 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0068.py @@ -44,9 +44,11 @@ class EnterpriseTeamType(TypedDict): id: int name: str + description: NotRequired[str] slug: str url: str - sync_to_organizations: str + sync_to_organizations: NotRequired[str] + organization_selection_type: NotRequired[str] group_id: NotRequired[Union[str, None]] group_name: NotRequired[Union[str, None]] html_url: str diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0142.py b/githubkit/versions/ghec_v2022_11_28/types/group_0142.py index 748b01854..b50ccb144 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0142.py @@ -9,45 +9,101 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0058 import SimpleRepositoryType - - -class OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - - -__all__ = ("OrganizationSecretScanningAlertType",) +from typing_extensions import TypedDict + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +__all__ = ( + "SecretScanningLocationCommitType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationWikiCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0143.py b/githubkit/versions/ghec_v2022_11_28/types/group_0143.py index fb14d5d5d..f78b830c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0143.py @@ -9,39 +9,53 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsBillingUsageType(TypedDict): - """ActionsBillingUsage""" +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle - total_minutes_used: int - total_paid_minutes_used: int - included_minutes: int - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + issue_title_url: str -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" - ubuntu: NotRequired[int] - macos: NotRequired[int] - windows: NotRequired[int] - ubuntu_4_core: NotRequired[int] - ubuntu_8_core: NotRequired[int] - ubuntu_16_core: NotRequired[int] - ubuntu_32_core: NotRequired[int] - ubuntu_64_core: NotRequired[int] - windows_4_core: NotRequired[int] - windows_8_core: NotRequired[int] - windows_16_core: NotRequired[int] - windows_32_core: NotRequired[int] - windows_64_core: NotRequired[int] - macos_12_core: NotRequired[int] - total: NotRequired[int] +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str __all__ = ( - "ActionsBillingUsagePropMinutesUsedBreakdownType", - "ActionsBillingUsageType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationPullRequestReviewCommentType", + "SecretScanningLocationPullRequestTitleType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0144.py b/githubkit/versions/ghec_v2022_11_28/types/group_0144.py index 481d2d694..fad48635c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0144.py @@ -9,39 +9,30 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class AdvancedSecurityActiveCommittersType(TypedDict): - """AdvancedSecurityActiveCommitters""" +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody - total_advanced_security_committers: NotRequired[int] - total_count: NotRequired[int] - maximum_advanced_security_committers: NotRequired[int] - purchased_advanced_security_committers: NotRequired[int] - repositories: list[AdvancedSecurityActiveCommittersRepositoryType] + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + discussion_body_url: str -class AdvancedSecurityActiveCommittersRepositoryType(TypedDict): - """AdvancedSecurityActiveCommittersRepository""" - name: str - advanced_security_committers: int - advanced_security_committers_breakdown: list[ - AdvancedSecurityActiveCommittersUserType - ] +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ -class AdvancedSecurityActiveCommittersUserType(TypedDict): - """AdvancedSecurityActiveCommittersUser""" - - user_login: str - last_pushed_date: str - last_pushed_email: str + pull_request_comment_url: str __all__ = ( - "AdvancedSecurityActiveCommittersRepositoryType", - "AdvancedSecurityActiveCommittersType", - "AdvancedSecurityActiveCommittersUserType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationPullRequestCommentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0145.py b/githubkit/versions/ghec_v2022_11_28/types/group_0145.py index b5d2a4848..477e64764 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0145.py @@ -9,32 +9,83 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class GetAllCostCentersType(TypedDict): - """GetAllCostCenters""" - - cost_centers: NotRequired[list[GetAllCostCentersPropCostCentersItemsType]] - - -class GetAllCostCentersPropCostCentersItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItems""" - - id: str - name: str - resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] - - -class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" - - type: str - name: str +from .group_0003 import SimpleUserType +from .group_0058 import SimpleRepositoryType +from .group_0142 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0143 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0144 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -__all__ = ( - "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", - "GetAllCostCentersPropCostCentersItemsType", - "GetAllCostCentersType", -) +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + repository: NotRequired[SimpleRepositoryType] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + has_more_locations: NotRequired[bool] + + +__all__ = ("OrganizationSecretScanningAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0146.py b/githubkit/versions/ghec_v2022_11_28/types/group_0146.py index cac22c41a..fb14d5d5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0146.py @@ -9,15 +9,39 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" - - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int - - -__all__ = ("PackagesBillingUsageType",) +from typing_extensions import NotRequired, TypedDict + + +class ActionsBillingUsageType(TypedDict): + """ActionsBillingUsage""" + + total_minutes_used: int + total_paid_minutes_used: int + included_minutes: int + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType + + +class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): + """ActionsBillingUsagePropMinutesUsedBreakdown""" + + ubuntu: NotRequired[int] + macos: NotRequired[int] + windows: NotRequired[int] + ubuntu_4_core: NotRequired[int] + ubuntu_8_core: NotRequired[int] + ubuntu_16_core: NotRequired[int] + ubuntu_32_core: NotRequired[int] + ubuntu_64_core: NotRequired[int] + windows_4_core: NotRequired[int] + windows_8_core: NotRequired[int] + windows_16_core: NotRequired[int] + windows_32_core: NotRequired[int] + windows_64_core: NotRequired[int] + macos_12_core: NotRequired[int] + total: NotRequired[int] + + +__all__ = ( + "ActionsBillingUsagePropMinutesUsedBreakdownType", + "ActionsBillingUsageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0147.py b/githubkit/versions/ghec_v2022_11_28/types/group_0147.py index 15a19a09d..481d2d694 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0147.py @@ -9,15 +9,39 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" +class AdvancedSecurityActiveCommittersType(TypedDict): + """AdvancedSecurityActiveCommitters""" - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int + total_advanced_security_committers: NotRequired[int] + total_count: NotRequired[int] + maximum_advanced_security_committers: NotRequired[int] + purchased_advanced_security_committers: NotRequired[int] + repositories: list[AdvancedSecurityActiveCommittersRepositoryType] -__all__ = ("CombinedBillingUsageType",) +class AdvancedSecurityActiveCommittersRepositoryType(TypedDict): + """AdvancedSecurityActiveCommittersRepository""" + + name: str + advanced_security_committers: int + advanced_security_committers_breakdown: list[ + AdvancedSecurityActiveCommittersUserType + ] + + +class AdvancedSecurityActiveCommittersUserType(TypedDict): + """AdvancedSecurityActiveCommittersUser""" + + user_login: str + last_pushed_date: str + last_pushed_email: str + + +__all__ = ( + "AdvancedSecurityActiveCommittersRepositoryType", + "AdvancedSecurityActiveCommittersType", + "AdvancedSecurityActiveCommittersUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0148.py b/githubkit/versions/ghec_v2022_11_28/types/group_0148.py index 8b794ad2d..b5d2a4848 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0148.py @@ -12,29 +12,29 @@ from typing_extensions import NotRequired, TypedDict -class BillingUsageReportType(TypedDict): - """BillingUsageReport""" +class GetAllCostCentersType(TypedDict): + """GetAllCostCenters""" - usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] + cost_centers: NotRequired[list[GetAllCostCentersPropCostCentersItemsType]] -class BillingUsageReportPropUsageItemsItemsType(TypedDict): - """BillingUsageReportPropUsageItemsItems""" +class GetAllCostCentersPropCostCentersItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItems""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - organization_name: str - repository_name: NotRequired[str] + id: str + name: str + resources: list[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] + + +class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + + type: str + name: str __all__ = ( - "BillingUsageReportPropUsageItemsItemsType", - "BillingUsageReportType", + "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", + "GetAllCostCentersPropCostCentersItemsType", + "GetAllCostCentersType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py index 1bd13ab39..cac22c41a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py @@ -9,35 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" -class MilestoneType(TypedDict): - """Milestone + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int - A collection of related issues and pull requests. - """ - url: str - html_url: str - labels_url: str - id: int - node_id: str - number: int - state: Literal["open", "closed"] - title: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - open_issues: int - closed_issues: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - due_on: Union[datetime, None] - - -__all__ = ("MilestoneType",) +__all__ = ("PackagesBillingUsageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0150.py b/githubkit/versions/ghec_v2022_11_28/types/group_0150.py index a99164b42..15a19a09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0150.py @@ -9,32 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class IssueTypeType(TypedDict): - """Issue Type - - The type of issue. - """ - - id: int - node_id: str - name: str - description: Union[str, None] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - is_enabled: NotRequired[bool] - - -__all__ = ("IssueTypeType",) +from typing_extensions import TypedDict + + +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" + + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int + + +__all__ = ("CombinedBillingUsageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0151.py b/githubkit/versions/ghec_v2022_11_28/types/group_0151.py index 8a6080a74..8b794ad2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0151.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReactionRollupType(TypedDict): - """Reaction Rollup""" +class BillingUsageReportType(TypedDict): + """BillingUsageReport""" - url: str - total_count: int - plus_one: int - minus_one: int - laugh: int - confused: int - heart: int - hooray: int - eyes: int - rocket: int + usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] -__all__ = ("ReactionRollupType",) +class BillingUsageReportPropUsageItemsItemsType(TypedDict): + """BillingUsageReportPropUsageItemsItems""" + + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + organization_name: str + repository_name: NotRequired[str] + + +__all__ = ( + "BillingUsageReportPropUsageItemsItemsType", + "BillingUsageReportType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py index bc0721074..1bd13ab39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py @@ -11,105 +11,33 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0149 import MilestoneType -from .group_0150 import IssueTypeType -from .group_0151 import ReactionRollupType -class IssueType(TypedDict): - """Issue +class MilestoneType(TypedDict): + """Milestone - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. + A collection of related issues and pull requests. """ - id: int - node_id: str url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str html_url: str + labels_url: str + id: int + node_id: str number: int - state: str - state_reason: NotRequired[ - Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] - ] + state: Literal["open", "closed"] title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] + description: Union[str, None] + creator: Union[None, SimpleUserType] + open_issues: int + closed_issues: int created_at: datetime updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - sub_issues_summary: NotRequired[SubIssuesSummaryType] - - -class SubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssuePropLabelsItemsOneof1Type(TypedDict): - """IssuePropLabelsItemsOneof1""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - default: NotRequired[bool] - - -class IssuePropPullRequestType(TypedDict): - """IssuePropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] + closed_at: Union[datetime, None] + due_on: Union[datetime, None] -__all__ = ( - "IssuePropLabelsItemsOneof1Type", - "IssuePropPullRequestType", - "IssueType", - "SubIssuesSummaryType", -) +__all__ = ("MilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0153.py b/githubkit/versions/ghec_v2022_11_28/types/group_0153.py index 7fc856237..a99164b42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0153.py @@ -13,40 +13,28 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0151 import ReactionRollupType +class IssueTypeType(TypedDict): + """Issue Type -class IssueCommentType(TypedDict): - """Issue Comment - - Comments provide a way for people to collaborate on an issue. + The type of issue. """ id: int node_id: str - url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + name: str + description: Union[str, None] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + is_enabled: NotRequired[bool] -__all__ = ("IssueCommentType",) +__all__ = ("IssueTypeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0154.py b/githubkit/versions/ghec_v2022_11_28/types/group_0154.py index b70006f6e..8a6080a74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0154.py @@ -9,76 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0152 import IssueType -from .group_0153 import IssueCommentType +class ReactionRollupType(TypedDict): + """Reaction Rollup""" -class EventPropPayloadType(TypedDict): - """EventPropPayload""" - - action: NotRequired[str] - issue: NotRequired[IssueType] - comment: NotRequired[IssueCommentType] - pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] - - -class EventPropPayloadPropPagesItemsType(TypedDict): - """EventPropPayloadPropPagesItems""" - - page_name: NotRequired[str] - title: NotRequired[str] - summary: NotRequired[Union[str, None]] - action: NotRequired[str] - sha: NotRequired[str] - html_url: NotRequired[str] - - -class EventType(TypedDict): - """Event - - Event - """ - - id: str - type: Union[str, None] - actor: ActorType - repo: EventPropRepoType - org: NotRequired[ActorType] - payload: EventPropPayloadType - public: bool - created_at: Union[datetime, None] - - -class ActorType(TypedDict): - """Actor - - Actor - """ - - id: int - login: str - display_login: NotRequired[str] - gravatar_id: Union[str, None] url: str - avatar_url: str - - -class EventPropRepoType(TypedDict): - """EventPropRepo""" - - id: int - name: str - url: str - - -__all__ = ( - "ActorType", - "EventPropPayloadPropPagesItemsType", - "EventPropPayloadType", - "EventPropRepoType", - "EventType", -) + total_count: int + plus_one: int + minus_one: int + laugh: int + confused: int + heart: int + hooray: int + eyes: int + rocket: int + + +__all__ = ("ReactionRollupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0155.py b/githubkit/versions/ghec_v2022_11_28/types/group_0155.py index b0afe5713..01dbb36aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0155.py @@ -9,55 +9,107 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0152 import MilestoneType +from .group_0153 import IssueTypeType +from .group_0154 import ReactionRollupType -class FeedType(TypedDict): - """Feed - Feed - """ +class IssueType(TypedDict): + """Issue - timeline_url: str - user_url: str - current_user_public_url: NotRequired[str] - current_user_url: NotRequired[str] - current_user_actor_url: NotRequired[str] - current_user_organization_url: NotRequired[str] - current_user_organization_urls: NotRequired[list[str]] - security_advisories_url: NotRequired[str] - repository_discussions_url: NotRequired[str] - repository_discussions_category_url: NotRequired[str] - links: FeedPropLinksType - - -class FeedPropLinksType(TypedDict): - """FeedPropLinks""" - - timeline: LinkWithTypeType - user: LinkWithTypeType - security_advisories: NotRequired[LinkWithTypeType] - current_user: NotRequired[LinkWithTypeType] - current_user_public: NotRequired[LinkWithTypeType] - current_user_actor: NotRequired[LinkWithTypeType] - current_user_organization: NotRequired[LinkWithTypeType] - current_user_organizations: NotRequired[list[LinkWithTypeType]] - repository_discussions: NotRequired[LinkWithTypeType] - repository_discussions_category: NotRequired[LinkWithTypeType] - - -class LinkWithTypeType(TypedDict): - """Link With Type - - Hypermedia Link with Type + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - href: str - type: str + id: int + node_id: str + url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] + title: str + body: NotRequired[Union[str, None]] + user: Union[None, SimpleUserType] + labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + + +class SubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssuePropLabelsItemsOneof1Type(TypedDict): + """IssuePropLabelsItemsOneof1""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + default: NotRequired[bool] + + +class IssuePropPullRequestType(TypedDict): + """IssuePropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] __all__ = ( - "FeedPropLinksType", - "FeedType", - "LinkWithTypeType", + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", + "IssueType", + "SubIssuesSummaryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0156.py b/githubkit/versions/ghec_v2022_11_28/types/group_0156.py index 0b66a8534..1da1f377a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0156.py @@ -10,47 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0154 import ReactionRollupType -class BaseGistType(TypedDict): - """Base Gist +class IssueCommentType(TypedDict): + """Issue Comment - Base Gist + Comments provide a way for people to collaborate on an issue. """ - url: str - forks_url: str - commits_url: str - id: str + id: int node_id: str - git_pull_url: str - git_push_url: str + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] html_url: str - files: BaseGistPropFilesType - public: bool + user: Union[None, SimpleUserType] created_at: datetime updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -BaseGistPropFilesType: TypeAlias = dict[str, Any] -"""BaseGistPropFiles -""" - - -__all__ = ( - "BaseGistPropFilesType", - "BaseGistType", -) + issue_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("IssueCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0157.py b/githubkit/versions/ghec_v2022_11_28/types/group_0157.py index 7969063ff..047bfc55b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0157.py @@ -10,70 +10,75 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0155 import IssueType +from .group_0156 import IssueCommentType -class GistHistoryType(TypedDict): - """Gist History +class EventPropPayloadType(TypedDict): + """EventPropPayload""" - Gist History - """ - - user: NotRequired[Union[None, SimpleUserType]] - version: NotRequired[str] - committed_at: NotRequired[datetime] - change_status: NotRequired[GistHistoryPropChangeStatusType] - url: NotRequired[str] + action: NotRequired[str] + issue: NotRequired[IssueType] + comment: NotRequired[IssueCommentType] + pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] -class GistHistoryPropChangeStatusType(TypedDict): - """GistHistoryPropChangeStatus""" +class EventPropPayloadPropPagesItemsType(TypedDict): + """EventPropPayloadPropPagesItems""" - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] + page_name: NotRequired[str] + title: NotRequired[str] + summary: NotRequired[Union[str, None]] + action: NotRequired[str] + sha: NotRequired[str] + html_url: NotRequired[str] -class GistSimplePropForkOfType(TypedDict): - """Gist +class EventType(TypedDict): + """Event - Gist + Event """ - url: str - forks_url: str - commits_url: str id: str - node_id: str - git_pull_url: str - git_push_url: str - html_url: str - files: GistSimplePropForkOfPropFilesType + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType public: bool - created_at: datetime - updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[Union[None, SimpleUserType]] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropForkOfPropFiles -""" + created_at: Union[datetime, None] + + +class ActorType(TypedDict): + """Actor + + Actor + """ + + id: int + login: str + display_login: NotRequired[str] + gravatar_id: Union[str, None] + url: str + avatar_url: str + + +class EventPropRepoType(TypedDict): + """EventPropRepo""" + + id: int + name: str + url: str __all__ = ( - "GistHistoryPropChangeStatusType", - "GistHistoryType", - "GistSimplePropForkOfPropFilesType", - "GistSimplePropForkOfType", + "ActorType", + "EventPropPayloadPropPagesItemsType", + "EventPropPayloadType", + "EventPropRepoType", + "EventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0158.py b/githubkit/versions/ghec_v2022_11_28/types/group_0158.py index 15e657baf..b0afe5713 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0158.py @@ -9,120 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0157 import GistHistoryType, GistSimplePropForkOfType +class FeedType(TypedDict): + """Feed -class GistSimpleType(TypedDict): - """Gist Simple - - Gist Simple + Feed """ - forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] - history: NotRequired[Union[list[GistHistoryType], None]] - fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] - url: NotRequired[str] - forks_url: NotRequired[str] - commits_url: NotRequired[str] - id: NotRequired[str] - node_id: NotRequired[str] - git_pull_url: NotRequired[str] - git_push_url: NotRequired[str] - html_url: NotRequired[str] - files: NotRequired[GistSimplePropFilesType] - public: NotRequired[bool] - created_at: NotRequired[str] - updated_at: NotRequired[str] - description: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_enabled: NotRequired[bool] - user: NotRequired[Union[str, None]] - comments_url: NotRequired[str] - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - - -GistSimplePropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropFiles -""" - - -class GistSimplePropForksItemsType(TypedDict): - """GistSimplePropForksItems""" - - id: NotRequired[str] - url: NotRequired[str] - user: NotRequired[PublicUserType] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -class PublicUserType(TypedDict): - """Public User - - Public User + timeline_url: str + user_url: str + current_user_public_url: NotRequired[str] + current_user_url: NotRequired[str] + current_user_actor_url: NotRequired[str] + current_user_organization_url: NotRequired[str] + current_user_organization_urls: NotRequired[list[str]] + security_advisories_url: NotRequired[str] + repository_discussions_url: NotRequired[str] + repository_discussions_category_url: NotRequired[str] + links: FeedPropLinksType + + +class FeedPropLinksType(TypedDict): + """FeedPropLinks""" + + timeline: LinkWithTypeType + user: LinkWithTypeType + security_advisories: NotRequired[LinkWithTypeType] + current_user: NotRequired[LinkWithTypeType] + current_user_public: NotRequired[LinkWithTypeType] + current_user_actor: NotRequired[LinkWithTypeType] + current_user_organization: NotRequired[LinkWithTypeType] + current_user_organizations: NotRequired[list[LinkWithTypeType]] + repository_discussions: NotRequired[LinkWithTypeType] + repository_discussions_category: NotRequired[LinkWithTypeType] + + +class LinkWithTypeType(TypedDict): + """Link With Type + + Hypermedia Link with Type """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str + href: str type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int - created_at: datetime - updated_at: datetime - plan: NotRequired[PublicUserPropPlanType] - private_gists: NotRequired[int] - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - disk_usage: NotRequired[int] - collaborators: NotRequired[int] - - -class PublicUserPropPlanType(TypedDict): - """PublicUserPropPlan""" - - collaborators: int - name: str - space: int - private_repos: int __all__ = ( - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "GistSimpleType", - "PublicUserPropPlanType", - "PublicUserType", + "FeedPropLinksType", + "FeedType", + "LinkWithTypeType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0159.py b/githubkit/versions/ghec_v2022_11_28/types/group_0159.py index d69692063..0b66a8534 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0159.py @@ -10,35 +10,47 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -class GistCommentType(TypedDict): - """Gist Comment +class BaseGistType(TypedDict): + """Base Gist - A comment made to a gist. + Base Gist """ - id: int - node_id: str url: str - body: str - user: Union[None, SimpleUserType] + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: BaseGistPropFilesType + public: bool created_at: datetime updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -__all__ = ("GistCommentType",) + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + forks: NotRequired[list[Any]] + history: NotRequired[list[Any]] + + +BaseGistPropFilesType: TypeAlias = dict[str, Any] +"""BaseGistPropFiles +""" + + +__all__ = ( + "BaseGistPropFilesType", + "BaseGistType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0160.py b/githubkit/versions/ghec_v2022_11_28/types/group_0160.py index a6cb34469..7969063ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0160.py @@ -10,34 +10,70 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -class GistCommitType(TypedDict): - """Gist Commit +class GistHistoryType(TypedDict): + """Gist History - Gist Commit + Gist History """ - url: str - version: str - user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime + user: NotRequired[Union[None, SimpleUserType]] + version: NotRequired[str] + committed_at: NotRequired[datetime] + change_status: NotRequired[GistHistoryPropChangeStatusType] + url: NotRequired[str] -class GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" +class GistHistoryPropChangeStatusType(TypedDict): + """GistHistoryPropChangeStatus""" total: NotRequired[int] additions: NotRequired[int] deletions: NotRequired[int] +class GistSimplePropForkOfType(TypedDict): + """Gist + + Gist + """ + + url: str + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: GistSimplePropForkOfPropFilesType + public: bool + created_at: datetime + updated_at: datetime + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[Union[None, SimpleUserType]] + truncated: NotRequired[bool] + forks: NotRequired[list[Any]] + history: NotRequired[list[Any]] + + +GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropForkOfPropFiles +""" + + __all__ = ( - "GistCommitPropChangeStatusType", - "GistCommitType", + "GistHistoryPropChangeStatusType", + "GistHistoryType", + "GistSimplePropForkOfPropFilesType", + "GistSimplePropForkOfType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0161.py b/githubkit/versions/ghec_v2022_11_28/types/group_0161.py index 69bf98302..beafdf422 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0161.py @@ -9,17 +9,120 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0160 import GistHistoryType, GistSimplePropForkOfType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template +class GistSimpleType(TypedDict): + """Gist Simple + + Gist Simple """ + forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] + history: NotRequired[Union[list[GistHistoryType], None]] + fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] + url: NotRequired[str] + forks_url: NotRequired[str] + commits_url: NotRequired[str] + id: NotRequired[str] + node_id: NotRequired[str] + git_pull_url: NotRequired[str] + git_push_url: NotRequired[str] + html_url: NotRequired[str] + files: NotRequired[GistSimplePropFilesType] + public: NotRequired[bool] + created_at: NotRequired[str] + updated_at: NotRequired[str] + description: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_enabled: NotRequired[bool] + user: NotRequired[Union[str, None]] + comments_url: NotRequired[str] + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + + +GistSimplePropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropFiles +""" + + +class GistSimplePropForksItemsType(TypedDict): + """GistSimplePropForksItems""" + + id: NotRequired[str] + url: NotRequired[str] + user: NotRequired[PublicUserType] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class PublicUserType(TypedDict): + """Public User + + Public User + """ + + login: str + id: int + user_view_type: NotRequired[str] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int + created_at: datetime + updated_at: datetime + plan: NotRequired[PublicUserPropPlanType] + private_gists: NotRequired[int] + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + disk_usage: NotRequired[int] + collaborators: NotRequired[int] + + +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" + + collaborators: int name: str - source: str + space: int + private_repos: int -__all__ = ("GitignoreTemplateType",) +__all__ = ( + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "GistSimpleType", + "PublicUserPropPlanType", + "PublicUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0162.py b/githubkit/versions/ghec_v2022_11_28/types/group_0162.py index f471d8c73..d69692063 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0162.py @@ -9,29 +9,36 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class LicenseType(TypedDict): - """License - License +class GistCommentType(TypedDict): + """Gist Comment + + A comment made to a gist. """ - key: str - name: str - spdx_id: Union[str, None] - url: Union[str, None] + id: int node_id: str - html_url: str - description: str - implementation: str - permissions: list[str] - conditions: list[str] - limitations: list[str] + url: str body: str - featured: bool - - -__all__ = ("LicenseType",) + user: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +__all__ = ("GistCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0163.py b/githubkit/versions/ghec_v2022_11_28/types/group_0163.py index 59d9a8af7..a6cb34469 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0163.py @@ -9,29 +9,35 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistCommitType(TypedDict): + """Gist Commit + + Gist Commit """ url: str - accounts_url: str - id: int - number: int - name: str - description: str - monthly_price_in_cents: int - yearly_price_in_cents: int - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - has_free_trial: bool - unit_name: Union[str, None] - state: str - bullets: list[str] - - -__all__ = ("MarketplaceListingPlanType",) + version: str + user: Union[None, SimpleUserType] + change_status: GistCommitPropChangeStatusType + committed_at: datetime + + +class GistCommitPropChangeStatusType(TypedDict): + """GistCommitPropChangeStatus""" + + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] + + +__all__ = ( + "GistCommitPropChangeStatusType", + "GistCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0164.py b/githubkit/versions/ghec_v2022_11_28/types/group_0164.py index 6ef787e10..69bf98302 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0164.py @@ -9,31 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0165 import ( - MarketplacePurchasePropMarketplacePendingChangeType, - MarketplacePurchasePropMarketplacePurchaseType, -) +class GitignoreTemplateType(TypedDict): + """Gitignore Template -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase - - Marketplace Purchase + Gitignore Template """ - url: str - type: str - id: int - login: str - organization_billing_email: NotRequired[str] - email: NotRequired[Union[str, None]] - marketplace_pending_change: NotRequired[ - Union[MarketplacePurchasePropMarketplacePendingChangeType, None] - ] - marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType + name: str + source: str -__all__ = ("MarketplacePurchaseType",) +__all__ = ("GitignoreTemplateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0165.py b/githubkit/versions/ghec_v2022_11_28/types/group_0165.py index 51f282fb3..f471d8c73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0165.py @@ -10,35 +10,28 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0163 import MarketplaceListingPlanType +class LicenseType(TypedDict): + """License -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" + License + """ - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] + key: str + name: str + spdx_id: Union[str, None] + url: Union[str, None] + node_id: str + html_url: str + description: str + implementation: str + permissions: list[str] + conditions: list[str] + limitations: list[str] + body: str + featured: bool -class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: NotRequired[str] - next_billing_date: NotRequired[Union[str, None]] - is_installed: NotRequired[bool] - unit_count: NotRequired[Union[int, None]] - on_free_trial: NotRequired[bool] - free_trial_ends_on: NotRequired[Union[str, None]] - updated_at: NotRequired[str] - plan: NotRequired[MarketplaceListingPlanType] - - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChangeType", - "MarketplacePurchasePropMarketplacePurchaseType", -) +__all__ = ("LicenseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0166.py b/githubkit/versions/ghec_v2022_11_28/types/group_0166.py index d0e33aad3..59d9a8af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0166.py @@ -9,75 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class ApiOverviewType(TypedDict): - """Api Overview +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan - Api Overview + Marketplace Listing Plan """ - verifiable_password_authentication: bool - ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] - ssh_keys: NotRequired[list[str]] - hooks: NotRequired[list[str]] - github_enterprise_importer: NotRequired[list[str]] - web: NotRequired[list[str]] - api: NotRequired[list[str]] - git: NotRequired[list[str]] - packages: NotRequired[list[str]] - pages: NotRequired[list[str]] - importer: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_macos: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - dependabot: NotRequired[list[str]] - copilot: NotRequired[list[str]] - domains: NotRequired[ApiOverviewPropDomainsType] - - -class ApiOverviewPropSshKeyFingerprintsType(TypedDict): - """ApiOverviewPropSshKeyFingerprints""" - - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] - - -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" - - website: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - copilot: NotRequired[list[str]] - packages: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] - artifact_attestations: NotRequired[ - ApiOverviewPropDomainsPropArtifactAttestationsType - ] - - -class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): - """ApiOverviewPropDomainsPropActionsInbound""" - - full_domains: NotRequired[list[str]] - wildcard_domains: NotRequired[list[str]] - - -class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: NotRequired[str] - services: NotRequired[list[str]] - - -__all__ = ( - "ApiOverviewPropDomainsPropActionsInboundType", - "ApiOverviewPropDomainsPropArtifactAttestationsType", - "ApiOverviewPropDomainsType", - "ApiOverviewPropSshKeyFingerprintsType", - "ApiOverviewType", -) + url: str + accounts_url: str + id: int + number: int + name: str + description: str + monthly_price_in_cents: int + yearly_price_in_cents: int + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + has_free_trial: bool + unit_name: Union[str, None] + state: str + bullets: list[str] + + +__all__ = ("MarketplaceListingPlanType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0167.py b/githubkit/versions/ghec_v2022_11_28/types/group_0167.py index 51d9bdcb4..3f44ccf0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0167.py @@ -9,92 +9,31 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict - -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" - - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - SecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_ai_detection: NotRequired[ - SecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_validity_checks: NotRequired[ - SecurityAndAnalysisPropSecretScanningValidityChecksType - ] - - -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropCodeSecurityType(TypedDict): - """SecurityAndAnalysisPropCodeSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] +from .group_0168 import ( + MarketplacePurchasePropMarketplacePendingChangeType, + MarketplacePurchasePropMarketplacePurchaseType, +) -class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): - """SecurityAndAnalysisPropDependabotSecurityUpdates +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase - Enable or disable Dependabot security updates for the repository. + Marketplace Purchase """ - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningType(TypedDict): - """SecurityAndAnalysisPropSecretScanning""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningAiDetection""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningValidityChecksType(TypedDict): - """SecurityAndAnalysisPropSecretScanningValidityChecks""" - - status: NotRequired[Literal["enabled", "disabled"]] + url: str + type: str + id: int + login: str + organization_billing_email: NotRequired[str] + email: NotRequired[Union[str, None]] + marketplace_pending_change: NotRequired[ + Union[MarketplacePurchasePropMarketplacePendingChangeType, None] + ] + marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType -__all__ = ( - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropCodeSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningAiDetectionType", - "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisPropSecretScanningValidityChecksType", - "SecurityAndAnalysisType", -) +__all__ = ("MarketplacePurchaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0168.py b/githubkit/versions/ghec_v2022_11_28/types/group_0168.py index b04959b53..be58d3c34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0168.py @@ -9,145 +9,36 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0167 import SecurityAndAnalysisType +from .group_0166 import MarketplaceListingPlanType -class MinimalRepositoryType(TypedDict): - """Minimal Repository +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" - Minimal Repository - """ + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: NotRequired[str] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: NotRequired[str] - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: NotRequired[str] - mirror_url: NotRequired[Union[str, None]] - hooks_url: str - svn_url: NotRequired[str] - homepage: NotRequired[Union[str, None]] - language: NotRequired[Union[str, None]] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - has_discussions: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[Union[datetime, None]] - created_at: NotRequired[Union[datetime, None]] - updated_at: NotRequired[Union[datetime, None]] - permissions: NotRequired[MinimalRepositoryPropPermissionsType] - role_name: NotRequired[str] - temp_clone_token: NotRequired[Union[str, None]] - delete_branch_on_merge: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - code_of_conduct: NotRequired[CodeOfConductType] - license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] - forks: NotRequired[int] - open_issues: NotRequired[int] - watchers: NotRequired[int] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] +class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" -class CodeOfConductType(TypedDict): - """Code Of Conduct - - Code Of Conduct - """ - - key: str - name: str - url: str - body: NotRequired[str] - html_url: Union[str, None] - - -class MinimalRepositoryPropPermissionsType(TypedDict): - """MinimalRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] - - -class MinimalRepositoryPropLicenseType(TypedDict): - """MinimalRepositoryPropLicense""" - - key: NotRequired[str] - name: NotRequired[str] - spdx_id: NotRequired[str] - url: NotRequired[str] - node_id: NotRequired[str] + billing_cycle: NotRequired[str] + next_billing_date: NotRequired[Union[str, None]] + is_installed: NotRequired[bool] + unit_count: NotRequired[Union[int, None]] + on_free_trial: NotRequired[bool] + free_trial_ends_on: NotRequired[Union[str, None]] + updated_at: NotRequired[str] + plan: NotRequired[MarketplaceListingPlanType] __all__ = ( - "CodeOfConductType", - "MinimalRepositoryPropLicenseType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0169.py b/githubkit/versions/ghec_v2022_11_28/types/group_0169.py index 257e10e5c..d0e33aad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0169.py @@ -9,39 +9,75 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0168 import MinimalRepositoryType +class ApiOverviewType(TypedDict): + """Api Overview -class ThreadType(TypedDict): - """Thread - - Thread + Api Overview """ - id: str - repository: MinimalRepositoryType - subject: ThreadPropSubjectType - reason: str - unread: bool - updated_at: str - last_read_at: Union[str, None] - url: str - subscription_url: str + verifiable_password_authentication: bool + ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] + ssh_keys: NotRequired[list[str]] + hooks: NotRequired[list[str]] + github_enterprise_importer: NotRequired[list[str]] + web: NotRequired[list[str]] + api: NotRequired[list[str]] + git: NotRequired[list[str]] + packages: NotRequired[list[str]] + pages: NotRequired[list[str]] + importer: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_macos: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + dependabot: NotRequired[list[str]] + copilot: NotRequired[list[str]] + domains: NotRequired[ApiOverviewPropDomainsType] + + +class ApiOverviewPropSshKeyFingerprintsType(TypedDict): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: NotRequired[str] + sha256_dsa: NotRequired[str] + sha256_ecdsa: NotRequired[str] + sha256_ed25519: NotRequired[str] + + +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" + + website: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + copilot: NotRequired[list[str]] + packages: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] + artifact_attestations: NotRequired[ + ApiOverviewPropDomainsPropArtifactAttestationsType + ] + + +class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): + """ApiOverviewPropDomainsPropActionsInbound""" + + full_domains: NotRequired[list[str]] + wildcard_domains: NotRequired[list[str]] -class ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" +class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): + """ApiOverviewPropDomainsPropArtifactAttestations""" - title: str - url: str - latest_comment_url: str - type: str + trust_domain: NotRequired[str] + services: NotRequired[list[str]] __all__ = ( - "ThreadPropSubjectType", - "ThreadType", + "ApiOverviewPropDomainsPropActionsInboundType", + "ApiOverviewPropDomainsPropArtifactAttestationsType", + "ApiOverviewPropDomainsType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0170.py b/githubkit/versions/ghec_v2022_11_28/types/group_0170.py index f0966921a..51d9bdcb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0170.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0170.py @@ -9,24 +9,92 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ThreadSubscriptionType(TypedDict): - """Thread Subscription +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" - Thread Subscription + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_ai_detection: NotRequired[ + SecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_validity_checks: NotRequired[ + SecurityAndAnalysisPropSecretScanningValidityChecksType + ] + + +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropCodeSecurityType(TypedDict): + """SecurityAndAnalysisPropCodeSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, None] - url: str - thread_url: NotRequired[str] - repository_url: NotRequired[str] + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningType(TypedDict): + """SecurityAndAnalysisPropSecretScanning""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningAiDetection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningValidityChecksType(TypedDict): + """SecurityAndAnalysisPropSecretScanningValidityChecks""" + + status: NotRequired[Literal["enabled", "disabled"]] -__all__ = ("ThreadSubscriptionType",) +__all__ = ( + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropCodeSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningAiDetectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisPropSecretScanningValidityChecksType", + "SecurityAndAnalysisType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0171.py b/githubkit/versions/ghec_v2022_11_28/types/group_0171.py index 7ed63b48e..1a23220a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0171.py @@ -10,26 +10,155 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType +from .group_0170 import SecurityAndAnalysisType -class OrganizationCustomRepositoryRoleType(TypedDict): - """Organization Custom Repository Role +class MinimalRepositoryType(TypedDict): + """Minimal Repository - Custom repository roles created by organization owners + Minimal Repository """ id: int + node_id: str name: str - description: NotRequired[Union[str, None]] - base_role: Literal["read", "triage", "write", "maintain"] - permissions: list[str] - organization: SimpleUserType - created_at: datetime - updated_at: datetime + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[MinimalRepositoryPropCustomPropertiesType] -__all__ = ("OrganizationCustomRepositoryRoleType",) +class CodeOfConductType(TypedDict): + """Code Of Conduct + + Code Of Conduct + """ + + key: str + name: str + url: str + body: NotRequired[str] + html_url: Union[str, None] + + +class MinimalRepositoryPropPermissionsType(TypedDict): + """MinimalRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] + + +class MinimalRepositoryPropLicenseType(TypedDict): + """MinimalRepositoryPropLicense""" + + key: NotRequired[str] + name: NotRequired[str] + spdx_id: NotRequired[str] + url: NotRequired[str] + node_id: NotRequired[str] + + +MinimalRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""MinimalRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +__all__ = ( + "CodeOfConductType", + "MinimalRepositoryPropCustomPropertiesType", + "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0172.py b/githubkit/versions/ghec_v2022_11_28/types/group_0172.py index 8318560d5..dfa7ca782 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0172.py @@ -9,97 +9,39 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0171 import MinimalRepositoryType -class OrganizationFullType(TypedDict): - """Organization Full - Prevents users in the organization from using insecure methods of two-factor - authentication to fulfill a two-factor requirement. - Removes non-compliant outside collaborators from the organization and its - repositories. +class ThreadType(TypedDict): + """Thread - GitHub currently defines SMS as an insecure method of two-factor authentication. - - If your users are managed by the enterprise this policy will not affect them. - The first admin account of the enterprise will still be affected. + Thread """ - login: str - id: int - node_id: str + id: str + repository: MinimalRepositoryType + subject: ThreadPropSubjectType + reason: str + unread: bool + updated_at: str + last_read_at: Union[str, None] url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[OrganizationFullPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_validity_checks_enabled: NotRequired[bool] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] - deploy_keys_enabled_for_repositories: NotRequired[bool] + subscription_url: str -class OrganizationFullPropPlanType(TypedDict): - """OrganizationFullPropPlan""" +class ThreadPropSubjectType(TypedDict): + """ThreadPropSubject""" - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + title: str + url: str + latest_comment_url: str + type: str __all__ = ( - "OrganizationFullPropPlanType", - "OrganizationFullType", + "ThreadPropSubjectType", + "ThreadType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0173.py b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py index f8ed08e06..f0966921a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py @@ -9,16 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization +class ThreadSubscriptionType(TypedDict): + """Thread Subscription - Actions OIDC Subject customization + Thread Subscription """ - include_claim_keys: list[str] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] + url: str + thread_url: NotRequired[str] + repository_url: NotRequired[str] -__all__ = ("OidcCustomSubType",) +__all__ = ("ThreadSubscriptionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0174.py b/githubkit/versions/ghec_v2022_11_28/types/group_0174.py index f02f87f3d..7ed63b48e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0174.py @@ -9,17 +9,27 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ActionsOrganizationPermissionsType(TypedDict): - """ActionsOrganizationPermissions""" - enabled_repositories: Literal["all", "none", "selected"] - selected_repositories_url: NotRequired[str] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] +class OrganizationCustomRepositoryRoleType(TypedDict): + """Organization Custom Repository Role + Custom repository roles created by organization owners + """ -__all__ = ("ActionsOrganizationPermissionsType",) + id: int + name: str + description: NotRequired[Union[str, None]] + base_role: Literal["read", "triage", "write", "maintain"] + permissions: list[str] + organization: SimpleUserType + created_at: datetime + updated_at: datetime + + +__all__ = ("OrganizationCustomRepositoryRoleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0175.py b/githubkit/versions/ghec_v2022_11_28/types/group_0175.py index f67033a97..5ea9719ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0175.py @@ -9,21 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0058 import SimpleRepositoryType -class ActionsPublicKeyType(TypedDict): - """ActionsPublicKey - The public key used for setting Actions Secrets. +class DependabotRepositoryAccessDetailsType(TypedDict): + """Dependabot Repository Access Details + + Information about repositories that Dependabot is able to access in an + organization """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + default_level: NotRequired[Union[None, Literal["public", "internal"]]] + accessible_repositories: NotRequired[list[Union[None, SimpleRepositoryType]]] -__all__ = ("ActionsPublicKeyType",) +__all__ = ("DependabotRepositoryAccessDetailsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0176.py b/githubkit/versions/ghec_v2022_11_28/types/group_0176.py index 372c2c1e1..18d7defaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0176.py @@ -10,84 +10,105 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0053 import BypassResponseType +class OrganizationFullType(TypedDict): + """Organization Full -class SecretScanningBypassRequestType(TypedDict): - """Secret scanning bypass request + Prevents users in the organization from using insecure methods of two-factor + authentication to fulfill a two-factor requirement. + Removes non-compliant outside collaborators from the organization and its + repositories. - A bypass request made by a user asking to be exempted from push protection in - this repository. - """ - - id: NotRequired[int] - number: NotRequired[int] - repository: NotRequired[SecretScanningBypassRequestPropRepositoryType] - organization: NotRequired[SecretScanningBypassRequestPropOrganizationType] - requester: NotRequired[SecretScanningBypassRequestPropRequesterType] - request_type: NotRequired[str] - data: NotRequired[Union[list[SecretScanningBypassRequestPropDataItemsType], None]] - resource_identifier: NotRequired[str] - status: NotRequired[ - Literal[ - "pending", "denied", "approved", "cancelled", "completed", "expired", "open" - ] - ] - requester_comment: NotRequired[Union[str, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[BypassResponseType], None]] - url: NotRequired[str] - html_url: NotRequired[str] - - -class SecretScanningBypassRequestPropRepositoryType(TypedDict): - """SecretScanningBypassRequestPropRepository - - The repository the bypass request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - full_name: NotRequired[str] - - -class SecretScanningBypassRequestPropOrganizationType(TypedDict): - """SecretScanningBypassRequestPropOrganization - - The organization associated with the repository the bypass request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - - -class SecretScanningBypassRequestPropRequesterType(TypedDict): - """SecretScanningBypassRequestPropRequester + GitHub currently defines SMS as an insecure method of two-factor authentication. - The user who requested the bypass. + If your users are managed by the enterprise this policy will not affect them. + The first admin account of the enterprise will still be affected. """ - actor_id: NotRequired[int] - actor_name: NotRequired[str] - - -class SecretScanningBypassRequestPropDataItemsType(TypedDict): - """SecretScanningBypassRequestPropDataItems""" - - secret_type: NotRequired[str] - bypass_reason: NotRequired[Literal["used_in_tests", "false_positive", "fix_later"]] - path: NotRequired[str] - branch: NotRequired[str] + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[OrganizationFullPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + default_repository_branch: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_delete_repositories: NotRequired[bool] + members_can_change_repo_visibility: NotRequired[bool] + members_can_invite_outside_collaborators: NotRequired[bool] + members_can_delete_issues: NotRequired[bool] + display_commenter_full_name_setting_enabled: NotRequired[bool] + readers_can_create_discussions: NotRequired[bool] + members_can_create_teams: NotRequired[bool] + members_can_view_dependency_insights: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_validity_checks_enabled: NotRequired[bool] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +class OrganizationFullPropPlanType(TypedDict): + """OrganizationFullPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] __all__ = ( - "SecretScanningBypassRequestPropDataItemsType", - "SecretScanningBypassRequestPropOrganizationType", - "SecretScanningBypassRequestPropRepositoryType", - "SecretScanningBypassRequestPropRequesterType", - "SecretScanningBypassRequestType", + "OrganizationFullPropPlanType", + "OrganizationFullType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0177.py b/githubkit/versions/ghec_v2022_11_28/types/group_0177.py index fdddd0ca1..f8ed08e06 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0177.py @@ -9,44 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0067 import TeamType +class OidcCustomSubType(TypedDict): + """Actions OIDC Subject customization -class CampaignSummaryType(TypedDict): - """Campaign summary - - The campaign metadata and alert stats. + Actions OIDC Subject customization """ - number: int - created_at: datetime - updated_at: datetime - name: NotRequired[str] - description: str - managers: list[SimpleUserType] - team_managers: NotRequired[list[TeamType]] - published_at: NotRequired[datetime] - ends_at: datetime - closed_at: NotRequired[Union[datetime, None]] - state: Literal["open", "closed"] - contact_link: Union[str, None] - alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] - - -class CampaignSummaryPropAlertStatsType(TypedDict): - """CampaignSummaryPropAlertStats""" - - open_count: int - closed_count: int - in_progress_count: int - - -__all__ = ( - "CampaignSummaryPropAlertStatsType", - "CampaignSummaryType", -) + include_claim_keys: list[str] + + +__all__ = ("OidcCustomSubType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0178.py b/githubkit/versions/ghec_v2022_11_28/types/group_0178.py index febb2d4f6..f02f87f3d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0178.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CodespaceMachineType(TypedDict): - """Codespace machine +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" - A description of the machine powering a codespace. - """ + enabled_repositories: Literal["all", "none", "selected"] + selected_repositories_url: NotRequired[str] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - name: str - display_name: str - operating_system: str - storage_in_bytes: int - memory_in_bytes: int - cpus: int - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] - -__all__ = ("CodespaceMachineType",) +__all__ = ("ActionsOrganizationPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0179.py b/githubkit/versions/ghec_v2022_11_28/types/group_0179.py index f0759c134..f67033a97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0179.py @@ -9,94 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0168 import MinimalRepositoryType -from .group_0178 import CodespaceMachineType +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey -class CodespaceType(TypedDict): - """Codespace - - A codespace. + The public key used for setting Actions Secrets. """ - id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: MinimalRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespacePropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - last_known_stop_notice: NotRequired[Union[str, None]] - - -class CodespacePropGitStatusType(TypedDict): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespacePropRuntimeConstraintsType(TypedDict): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ( - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", - "CodespaceType", -) +__all__ = ("ActionsPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0180.py b/githubkit/versions/ghec_v2022_11_28/types/group_0180.py index 3f68d2a84..372c2c1e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0180.py @@ -9,21 +9,85 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0053 import BypassResponseType -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey - The public key used for setting Codespaces secrets. +class SecretScanningBypassRequestType(TypedDict): + """Secret scanning bypass request + + A bypass request made by a user asking to be exempted from push protection in + this repository. """ - key_id: str - key: str id: NotRequired[int] + number: NotRequired[int] + repository: NotRequired[SecretScanningBypassRequestPropRepositoryType] + organization: NotRequired[SecretScanningBypassRequestPropOrganizationType] + requester: NotRequired[SecretScanningBypassRequestPropRequesterType] + request_type: NotRequired[str] + data: NotRequired[Union[list[SecretScanningBypassRequestPropDataItemsType], None]] + resource_identifier: NotRequired[str] + status: NotRequired[ + Literal[ + "pending", "denied", "approved", "cancelled", "completed", "expired", "open" + ] + ] + requester_comment: NotRequired[Union[str, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[BypassResponseType], None]] url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + html_url: NotRequired[str] + + +class SecretScanningBypassRequestPropRepositoryType(TypedDict): + """SecretScanningBypassRequestPropRepository + + The repository the bypass request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + full_name: NotRequired[str] + + +class SecretScanningBypassRequestPropOrganizationType(TypedDict): + """SecretScanningBypassRequestPropOrganization + + The organization associated with the repository the bypass request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + + +class SecretScanningBypassRequestPropRequesterType(TypedDict): + """SecretScanningBypassRequestPropRequester + + The user who requested the bypass. + """ + + actor_id: NotRequired[int] + actor_name: NotRequired[str] + + +class SecretScanningBypassRequestPropDataItemsType(TypedDict): + """SecretScanningBypassRequestPropDataItems""" + + secret_type: NotRequired[str] + bypass_reason: NotRequired[Literal["used_in_tests", "false_positive", "fix_later"]] + path: NotRequired[str] + branch: NotRequired[str] -__all__ = ("CodespacesPublicKeyType",) +__all__ = ( + "SecretScanningBypassRequestPropDataItemsType", + "SecretScanningBypassRequestPropOrganizationType", + "SecretScanningBypassRequestPropRepositoryType", + "SecretScanningBypassRequestPropRequesterType", + "SecretScanningBypassRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0181.py b/githubkit/versions/ghec_v2022_11_28/types/group_0181.py index 3446a1559..fdddd0ca1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0181.py @@ -9,43 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0067 import TeamType -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. - """ +class CampaignSummaryType(TypedDict): + """Campaign summary - seat_breakdown: CopilotOrganizationSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] - plan_type: NotRequired[Literal["business", "enterprise"]] + The campaign metadata and alert stats. + """ + number: int + created_at: datetime + updated_at: datetime + name: NotRequired[str] + description: str + managers: list[SimpleUserType] + team_managers: NotRequired[list[TeamType]] + published_at: NotRequired[datetime] + ends_at: datetime + closed_at: NotRequired[Union[datetime, None]] + state: Literal["open", "closed"] + contact_link: Union[str, None] + alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] -class CopilotOrganizationSeatBreakdownType(TypedDict): - """Copilot Seat Breakdown - The breakdown of Copilot Business seats for the organization. - """ +class CampaignSummaryPropAlertStatsType(TypedDict): + """CampaignSummaryPropAlertStats""" - total: NotRequired[int] - added_this_cycle: NotRequired[int] - pending_cancellation: NotRequired[int] - pending_invitation: NotRequired[int] - active_this_cycle: NotRequired[int] - inactive_this_cycle: NotRequired[int] + open_count: int + closed_count: int + in_progress_count: int __all__ = ( - "CopilotOrganizationDetailsType", - "CopilotOrganizationSeatBreakdownType", + "CampaignSummaryPropAlertStatsType", + "CampaignSummaryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0182.py b/githubkit/versions/ghec_v2022_11_28/types/group_0182.py index 3bc77b79e..febb2d4f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0182.py @@ -9,29 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class CredentialAuthorizationType(TypedDict): - """Credential Authorization +class CodespaceMachineType(TypedDict): + """Codespace machine - Credential Authorization + A description of the machine powering a codespace. """ - login: str - credential_id: int - credential_type: str - token_last_eight: NotRequired[str] - credential_authorized_at: datetime - scopes: NotRequired[list[str]] - fingerprint: NotRequired[str] - credential_accessed_at: Union[datetime, None] - authorized_credential_id: Union[int, None] - authorized_credential_title: NotRequired[Union[str, None]] - authorized_credential_note: NotRequired[Union[str, None]] - authorized_credential_expires_at: NotRequired[Union[datetime, None]] - - -__all__ = ("CredentialAuthorizationType",) + name: str + display_name: str + operating_system: str + storage_in_bytes: int + memory_in_bytes: int + cpus: int + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] + + +__all__ = ("CodespaceMachineType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0183.py b/githubkit/versions/ghec_v2022_11_28/types/group_0183.py index a553134b2..15af240d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0183.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0183.py @@ -9,17 +9,94 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0171 import MinimalRepositoryType +from .group_0182 import CodespaceMachineType -class OrganizationCustomRepositoryRoleCreateSchemaType(TypedDict): - """OrganizationCustomRepositoryRoleCreateSchema""" +class CodespaceType(TypedDict): + """Codespace + + A codespace. + """ + + id: int name: str - description: NotRequired[Union[str, None]] - base_role: Literal["read", "triage", "write", "maintain"] - permissions: list[str] + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: MinimalRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] + created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] + url: str + git_status: CodespacePropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + last_known_stop_notice: NotRequired[Union[str, None]] + + +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespacePropRuntimeConstraintsType(TypedDict): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] -__all__ = ("OrganizationCustomRepositoryRoleCreateSchemaType",) +__all__ = ( + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", + "CodespaceType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0184.py b/githubkit/versions/ghec_v2022_11_28/types/group_0184.py index 2e4c217fa..3f68d2a84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0184.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrganizationCustomRepositoryRoleUpdateSchemaType(TypedDict): - """OrganizationCustomRepositoryRoleUpdateSchema""" +class CodespacesPublicKeyType(TypedDict): + """CodespacesPublicKey - name: NotRequired[str] - description: NotRequired[Union[str, None]] - base_role: NotRequired[Literal["read", "triage", "write", "maintain"]] - permissions: NotRequired[list[str]] + The public key used for setting Codespaces secrets. + """ + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ("OrganizationCustomRepositoryRoleUpdateSchemaType",) + +__all__ = ("CodespacesPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0185.py b/githubkit/versions/ghec_v2022_11_28/types/group_0185.py index fb3981a7a..3446a1559 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0185.py @@ -9,17 +9,43 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class DependabotPublicKeyType(TypedDict): - """DependabotPublicKey +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Organization Details - The public key used for setting Dependabot Secrets. + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. """ - key_id: str - key: str + seat_breakdown: CopilotOrganizationSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] + plan_type: NotRequired[Literal["business", "enterprise"]] -__all__ = ("DependabotPublicKeyType",) +class CopilotOrganizationSeatBreakdownType(TypedDict): + """Copilot Seat Breakdown + + The breakdown of Copilot Business seats for the organization. + """ + + total: NotRequired[int] + added_this_cycle: NotRequired[int] + pending_cancellation: NotRequired[int] + pending_invitation: NotRequired[int] + active_this_cycle: NotRequired[int] + inactive_this_cycle: NotRequired[int] + + +__all__ = ( + "CopilotOrganizationDetailsType", + "CopilotOrganizationSeatBreakdownType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0186.py b/githubkit/versions/ghec_v2022_11_28/types/group_0186.py index a950e80f0..3bc77b79e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0186.py @@ -10,83 +10,28 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0053 import BypassResponseType +class CredentialAuthorizationType(TypedDict): + """Credential Authorization -class SecretScanningDismissalRequestType(TypedDict): - """Secret scanning alert dismissal request - - A dismissal request made by a user asking to close a secret scanning alert in - this repository. - """ - - id: NotRequired[int] - number: NotRequired[int] - repository: NotRequired[SecretScanningDismissalRequestPropRepositoryType] - organization: NotRequired[SecretScanningDismissalRequestPropOrganizationType] - requester: NotRequired[SecretScanningDismissalRequestPropRequesterType] - request_type: NotRequired[str] - data: NotRequired[ - Union[list[SecretScanningDismissalRequestPropDataItemsType], None] - ] - resource_identifier: NotRequired[str] - status: NotRequired[ - Literal["pending", "denied", "approved", "cancelled", "expired"] - ] - requester_comment: NotRequired[Union[str, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[BypassResponseType], None]] - url: NotRequired[str] - html_url: NotRequired[str] - - -class SecretScanningDismissalRequestPropRepositoryType(TypedDict): - """SecretScanningDismissalRequestPropRepository - - The repository the dismissal request is for. - """ - - id: NotRequired[int] - name: NotRequired[str] - full_name: NotRequired[str] - - -class SecretScanningDismissalRequestPropOrganizationType(TypedDict): - """SecretScanningDismissalRequestPropOrganization - - The organization associated with the repository the dismissal request is for. + Credential Authorization """ - id: NotRequired[int] - name: NotRequired[str] - - -class SecretScanningDismissalRequestPropRequesterType(TypedDict): - """SecretScanningDismissalRequestPropRequester - - The user who requested the dismissal. - """ - - actor_id: NotRequired[int] - actor_name: NotRequired[str] - - -class SecretScanningDismissalRequestPropDataItemsType(TypedDict): - """SecretScanningDismissalRequestPropDataItems""" - - secret_type: NotRequired[str] - alert_number: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] - - -__all__ = ( - "SecretScanningDismissalRequestPropDataItemsType", - "SecretScanningDismissalRequestPropOrganizationType", - "SecretScanningDismissalRequestPropRepositoryType", - "SecretScanningDismissalRequestPropRequesterType", - "SecretScanningDismissalRequestType", -) + login: str + credential_id: int + credential_type: str + token_last_eight: NotRequired[str] + credential_authorized_at: datetime + scopes: NotRequired[list[str]] + fingerprint: NotRequired[str] + credential_accessed_at: Union[datetime, None] + authorized_credential_id: Union[int, None] + authorized_credential_title: NotRequired[Union[str, None]] + authorized_credential_note: NotRequired[Union[str, None]] + authorized_credential_expires_at: NotRequired[Union[datetime, None]] + + +__all__ = ("CredentialAuthorizationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0187.py b/githubkit/versions/ghec_v2022_11_28/types/group_0187.py index f894bcd72..a553134b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0187.py @@ -9,31 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0168 import MinimalRepositoryType +class OrganizationCustomRepositoryRoleCreateSchemaType(TypedDict): + """OrganizationCustomRepositoryRoleCreateSchema""" -class PackageType(TypedDict): - """Package + name: str + description: NotRequired[Union[str, None]] + base_role: Literal["read", "triage", "write", "maintain"] + permissions: list[str] - A software package - """ - id: int - name: str - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - url: str - html_url: str - version_count: int - visibility: Literal["private", "public"] - owner: NotRequired[Union[None, SimpleUserType]] - repository: NotRequired[Union[None, MinimalRepositoryType]] - created_at: datetime - updated_at: datetime - - -__all__ = ("PackageType",) +__all__ = ("OrganizationCustomRepositoryRoleCreateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0188.py b/githubkit/versions/ghec_v2022_11_28/types/group_0188.py index cc9b10e07..2e4c217fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0188.py @@ -9,40 +9,17 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ExternalGroupType(TypedDict): - """ExternalGroup +class OrganizationCustomRepositoryRoleUpdateSchemaType(TypedDict): + """OrganizationCustomRepositoryRoleUpdateSchema""" - Information about an external group's usage and its members - """ + name: NotRequired[str] + description: NotRequired[Union[str, None]] + base_role: NotRequired[Literal["read", "triage", "write", "maintain"]] + permissions: NotRequired[list[str]] - group_id: int - group_name: str - updated_at: NotRequired[str] - teams: list[ExternalGroupPropTeamsItemsType] - members: list[ExternalGroupPropMembersItemsType] - -class ExternalGroupPropTeamsItemsType(TypedDict): - """ExternalGroupPropTeamsItems""" - - team_id: int - team_name: str - - -class ExternalGroupPropMembersItemsType(TypedDict): - """ExternalGroupPropMembersItems""" - - member_id: int - member_login: str - member_name: str - member_email: str - - -__all__ = ( - "ExternalGroupPropMembersItemsType", - "ExternalGroupPropTeamsItemsType", - "ExternalGroupType", -) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0189.py b/githubkit/versions/ghec_v2022_11_28/types/group_0189.py index 31dfd9dfc..fb3981a7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0189.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ExternalGroupsType(TypedDict): - """ExternalGroups +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey - A list of external groups available to be connected to a team + The public key used for setting Dependabot Secrets. """ - groups: NotRequired[list[ExternalGroupsPropGroupsItemsType]] + key_id: str + key: str -class ExternalGroupsPropGroupsItemsType(TypedDict): - """ExternalGroupsPropGroupsItems""" - - group_id: int - group_name: str - updated_at: str - - -__all__ = ( - "ExternalGroupsPropGroupsItemsType", - "ExternalGroupsType", -) +__all__ = ("DependabotPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0190.py b/githubkit/versions/ghec_v2022_11_28/types/group_0190.py index 23c54a38b..a950e80f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0190.py @@ -9,30 +9,84 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0053 import BypassResponseType -class OrganizationInvitationType(TypedDict): - """Organization Invitation +class SecretScanningDismissalRequestType(TypedDict): + """Secret scanning alert dismissal request - Organization Invitation + A dismissal request made by a user asking to close a secret scanning alert in + this repository. """ - id: int - login: Union[str, None] - email: Union[str, None] - role: str - created_at: str - failed_at: NotRequired[Union[str, None]] - failed_reason: NotRequired[Union[str, None]] - inviter: SimpleUserType - team_count: int - node_id: str - invitation_teams_url: str - invitation_source: NotRequired[str] - - -__all__ = ("OrganizationInvitationType",) + id: NotRequired[int] + number: NotRequired[int] + repository: NotRequired[SecretScanningDismissalRequestPropRepositoryType] + organization: NotRequired[SecretScanningDismissalRequestPropOrganizationType] + requester: NotRequired[SecretScanningDismissalRequestPropRequesterType] + request_type: NotRequired[str] + data: NotRequired[ + Union[list[SecretScanningDismissalRequestPropDataItemsType], None] + ] + resource_identifier: NotRequired[str] + status: NotRequired[ + Literal["pending", "denied", "approved", "cancelled", "expired"] + ] + requester_comment: NotRequired[Union[str, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[BypassResponseType], None]] + url: NotRequired[str] + html_url: NotRequired[str] + + +class SecretScanningDismissalRequestPropRepositoryType(TypedDict): + """SecretScanningDismissalRequestPropRepository + + The repository the dismissal request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + full_name: NotRequired[str] + + +class SecretScanningDismissalRequestPropOrganizationType(TypedDict): + """SecretScanningDismissalRequestPropOrganization + + The organization associated with the repository the dismissal request is for. + """ + + id: NotRequired[int] + name: NotRequired[str] + + +class SecretScanningDismissalRequestPropRequesterType(TypedDict): + """SecretScanningDismissalRequestPropRequester + + The user who requested the dismissal. + """ + + actor_id: NotRequired[int] + actor_name: NotRequired[str] + + +class SecretScanningDismissalRequestPropDataItemsType(TypedDict): + """SecretScanningDismissalRequestPropDataItems""" + + secret_type: NotRequired[str] + alert_number: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] + + +__all__ = ( + "SecretScanningDismissalRequestPropDataItemsType", + "SecretScanningDismissalRequestPropOrganizationType", + "SecretScanningDismissalRequestPropRepositoryType", + "SecretScanningDismissalRequestPropRequesterType", + "SecretScanningDismissalRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0191.py b/githubkit/versions/ghec_v2022_11_28/types/group_0191.py index 1613d4046..a88760fe0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0191.py @@ -9,17 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0171 import MinimalRepositoryType -class RepositoryFineGrainedPermissionType(TypedDict): - """Repository Fine-Grained Permission - A fine-grained permission that protects repository resources. +class PackageType(TypedDict): + """Package + + A software package """ + id: int name: str - description: str - - -__all__ = ("RepositoryFineGrainedPermissionType",) + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + url: str + html_url: str + version_count: int + visibility: Literal["private", "public"] + owner: NotRequired[Union[None, SimpleUserType]] + repository: NotRequired[Union[None, MinimalRepositoryType]] + created_at: datetime + updated_at: datetime + + +__all__ = ("PackageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0192.py b/githubkit/versions/ghec_v2022_11_28/types/group_0192.py index dd28f2299..cc9b10e07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0192.py @@ -9,39 +9,40 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class OrgHookType(TypedDict): - """Org Hook +class ExternalGroupType(TypedDict): + """ExternalGroup - Org Hook + Information about an external group's usage and its members """ - id: int - url: str - ping_url: str - deliveries_url: NotRequired[str] - name: str - events: list[str] - active: bool - config: OrgHookPropConfigType - updated_at: datetime - created_at: datetime - type: str + group_id: int + group_name: str + updated_at: NotRequired[str] + teams: list[ExternalGroupPropTeamsItemsType] + members: list[ExternalGroupPropMembersItemsType] -class OrgHookPropConfigType(TypedDict): - """OrgHookPropConfig""" +class ExternalGroupPropTeamsItemsType(TypedDict): + """ExternalGroupPropTeamsItems""" - url: NotRequired[str] - insecure_ssl: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] + team_id: int + team_name: str + + +class ExternalGroupPropMembersItemsType(TypedDict): + """ExternalGroupPropMembersItems""" + + member_id: int + member_login: str + member_name: str + member_email: str __all__ = ( - "OrgHookPropConfigType", - "OrgHookType", + "ExternalGroupPropMembersItemsType", + "ExternalGroupPropTeamsItemsType", + "ExternalGroupType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0193.py b/githubkit/versions/ghec_v2022_11_28/types/group_0193.py index eecf40a48..31dfd9dfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0193.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0193.py @@ -9,19 +9,27 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ApiInsightsRouteStatsItemsType(TypedDict): - """ApiInsightsRouteStatsItems""" +class ExternalGroupsType(TypedDict): + """ExternalGroups - http_method: NotRequired[str] - api_route: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] + A list of external groups available to be connected to a team + """ + groups: NotRequired[list[ExternalGroupsPropGroupsItemsType]] -__all__ = ("ApiInsightsRouteStatsItemsType",) + +class ExternalGroupsPropGroupsItemsType(TypedDict): + """ExternalGroupsPropGroupsItems""" + + group_id: int + group_name: str + updated_at: str + + +__all__ = ( + "ExternalGroupsPropGroupsItemsType", + "ExternalGroupsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0194.py b/githubkit/versions/ghec_v2022_11_28/types/group_0194.py index a652aaeff..23c54a38b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0194.py @@ -12,17 +12,27 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ApiInsightsSubjectStatsItemsType(TypedDict): - """ApiInsightsSubjectStatsItems""" - subject_type: NotRequired[str] - subject_name: NotRequired[str] - subject_id: NotRequired[int] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] +class OrganizationInvitationType(TypedDict): + """Organization Invitation + Organization Invitation + """ -__all__ = ("ApiInsightsSubjectStatsItemsType",) + id: int + login: Union[str, None] + email: Union[str, None] + role: str + created_at: str + failed_at: NotRequired[Union[str, None]] + failed_reason: NotRequired[Union[str, None]] + inviter: SimpleUserType + team_count: int + node_id: str + invitation_teams_url: str + invitation_source: NotRequired[str] + + +__all__ = ("OrganizationInvitationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0195.py b/githubkit/versions/ghec_v2022_11_28/types/group_0195.py index efa213a4a..1613d4046 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0195.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ApiInsightsSummaryStatsType(TypedDict): - """Summary Stats +class RepositoryFineGrainedPermissionType(TypedDict): + """Repository Fine-Grained Permission - API Insights usage summary stats for an organization + A fine-grained permission that protects repository resources. """ - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] + name: str + description: str -__all__ = ("ApiInsightsSummaryStatsType",) +__all__ = ("RepositoryFineGrainedPermissionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0196.py b/githubkit/versions/ghec_v2022_11_28/types/group_0196.py index b1ac3a080..dd28f2299 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0196.py @@ -9,15 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ApiInsightsTimeStatsItemsType(TypedDict): - """ApiInsightsTimeStatsItems""" +class OrgHookType(TypedDict): + """Org Hook - timestamp: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] + Org Hook + """ + id: int + url: str + ping_url: str + deliveries_url: NotRequired[str] + name: str + events: list[str] + active: bool + config: OrgHookPropConfigType + updated_at: datetime + created_at: datetime + type: str -__all__ = ("ApiInsightsTimeStatsItemsType",) + +class OrgHookPropConfigType(TypedDict): + """OrgHookPropConfig""" + + url: NotRequired[str] + insecure_ssl: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + + +__all__ = ( + "OrgHookPropConfigType", + "OrgHookType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0197.py b/githubkit/versions/ghec_v2022_11_28/types/group_0197.py index 810ca5b00..eecf40a48 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0197.py @@ -13,18 +13,15 @@ from typing_extensions import NotRequired, TypedDict -class ApiInsightsUserStatsItemsType(TypedDict): - """ApiInsightsUserStatsItems""" - - actor_type: NotRequired[str] - actor_name: NotRequired[str] - actor_id: NotRequired[int] - integration_id: NotRequired[Union[int, None]] - oauth_application_id: NotRequired[Union[int, None]] +class ApiInsightsRouteStatsItemsType(TypedDict): + """ApiInsightsRouteStatsItems""" + + http_method: NotRequired[str] + api_route: NotRequired[str] total_request_count: NotRequired[int] rate_limited_request_count: NotRequired[int] last_rate_limited_timestamp: NotRequired[Union[str, None]] last_request_timestamp: NotRequired[str] -__all__ = ("ApiInsightsUserStatsItemsType",) +__all__ = ("ApiInsightsRouteStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0198.py b/githubkit/versions/ghec_v2022_11_28/types/group_0198.py index 86b7b0b1e..a652aaeff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0198.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class InteractionLimitResponseType(TypedDict): - """Interaction Limits +class ApiInsightsSubjectStatsItemsType(TypedDict): + """ApiInsightsSubjectStatsItems""" - Interaction limit settings. - """ + subject_type: NotRequired[str] + subject_name: NotRequired[str] + subject_id: NotRequired[int] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime - -__all__ = ("InteractionLimitResponseType",) +__all__ = ("ApiInsightsSubjectStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0199.py b/githubkit/versions/ghec_v2022_11_28/types/group_0199.py index 7711ae8ae..efa213a4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0199.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class InteractionLimitType(TypedDict): - """Interaction Restrictions +class ApiInsightsSummaryStatsType(TypedDict): + """Summary Stats - Limit interactions to a specific type of user for a specified duration + API Insights usage summary stats for an organization """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - expiry: NotRequired[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] -__all__ = ("InteractionLimitType",) +__all__ = ("ApiInsightsSummaryStatsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0200.py b/githubkit/versions/ghec_v2022_11_28/types/group_0200.py index 2d5d28056..b1ac3a080 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0200.py @@ -9,24 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrganizationCreateIssueTypeType(TypedDict): - """OrganizationCreateIssueType""" +class ApiInsightsTimeStatsItemsType(TypedDict): + """ApiInsightsTimeStatsItems""" - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] + timestamp: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] -__all__ = ("OrganizationCreateIssueTypeType",) +__all__ = ("ApiInsightsTimeStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0201.py b/githubkit/versions/ghec_v2022_11_28/types/group_0201.py index e6f7b909d..810ca5b00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0201.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrganizationUpdateIssueTypeType(TypedDict): - """OrganizationUpdateIssueType""" +class ApiInsightsUserStatsItemsType(TypedDict): + """ApiInsightsUserStatsItems""" - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] + actor_type: NotRequired[str] + actor_name: NotRequired[str] + actor_id: NotRequired[int] + integration_id: NotRequired[Union[int, None]] + oauth_application_id: NotRequired[Union[int, None]] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] -__all__ = ("OrganizationUpdateIssueTypeType",) +__all__ = ("ApiInsightsUserStatsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0202.py b/githubkit/versions/ghec_v2022_11_28/types/group_0202.py index f9aad3ba7..86b7b0b1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0202.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0036 import OrganizationSimpleType +class InteractionLimitResponseType(TypedDict): + """Interaction Limits -class OrgMembershipType(TypedDict): - """Org Membership - - Org Membership + Interaction limit settings. """ - url: str - state: Literal["active", "pending"] - role: Literal["admin", "member", "billing_manager"] - organization_url: str - organization: OrganizationSimpleType - user: Union[None, SimpleUserType] - permissions: NotRequired[OrgMembershipPropPermissionsType] - - -class OrgMembershipPropPermissionsType(TypedDict): - """OrgMembershipPropPermissions""" - - can_create_repository: bool + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime -__all__ = ( - "OrgMembershipPropPermissionsType", - "OrgMembershipType", -) +__all__ = ("InteractionLimitResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0203.py b/githubkit/versions/ghec_v2022_11_28/types/group_0203.py index b0bdc2624..7711ae8ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0203.py @@ -9,38 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType +class InteractionLimitType(TypedDict): + """Interaction Restrictions -class MigrationType(TypedDict): - """Migration - - A migration. + Limit interactions to a specific type of user for a specified duration """ - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: list[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[list[str]] - - -__all__ = ("MigrationType",) + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] + + +__all__ = ("InteractionLimitType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0204.py b/githubkit/versions/ghec_v2022_11_28/types/group_0204.py index 0c71e9bd1..2d5d28056 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0204.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0204.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrganizationFineGrainedPermissionType(TypedDict): - """Organization Fine-Grained Permission - - A fine-grained permission that protects organization resources. - """ +class OrganizationCreateIssueTypeType(TypedDict): + """OrganizationCreateIssueType""" name: str - description: str - - -__all__ = ("OrganizationFineGrainedPermissionType",) + is_enabled: bool + description: NotRequired[Union[str, None]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] + + +__all__ = ("OrganizationCreateIssueTypeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0205.py b/githubkit/versions/ghec_v2022_11_28/types/group_0205.py index fb3b706a0..e6f7b909d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0205.py @@ -9,42 +9,24 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class OrganizationUpdateIssueTypeType(TypedDict): + """OrganizationUpdateIssueType""" -class OrganizationRoleType(TypedDict): - """Organization Role - - Organization roles - """ - - id: int name: str + is_enabled: bool description: NotRequired[Union[str, None]] - base_role: NotRequired[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] - source: NotRequired[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] ] - permissions: list[str] - organization: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - - -class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: NotRequired[int] - roles: NotRequired[list[OrganizationRoleType]] -__all__ = ( - "OrganizationRoleType", - "OrgsOrgOrganizationRolesGetResponse200Type", -) +__all__ = ("OrganizationUpdateIssueTypeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0206.py b/githubkit/versions/ghec_v2022_11_28/types/group_0206.py index c9e591941..f9aad3ba7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0206.py @@ -9,17 +9,35 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0036 import OrganizationSimpleType -class OrganizationCustomOrganizationRoleCreateSchemaType(TypedDict): - """OrganizationCustomOrganizationRoleCreateSchema""" - name: str - description: NotRequired[str] - permissions: list[str] - base_role: NotRequired[Literal["read", "triage", "write", "maintain", "admin"]] +class OrgMembershipType(TypedDict): + """Org Membership + Org Membership + """ -__all__ = ("OrganizationCustomOrganizationRoleCreateSchemaType",) + url: str + state: Literal["active", "pending"] + role: Literal["admin", "member", "billing_manager"] + organization_url: str + organization: OrganizationSimpleType + user: Union[None, SimpleUserType] + permissions: NotRequired[OrgMembershipPropPermissionsType] + + +class OrgMembershipPropPermissionsType(TypedDict): + """OrgMembershipPropPermissions""" + + can_create_repository: bool + + +__all__ = ( + "OrgMembershipPropPermissionsType", + "OrgMembershipType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0207.py b/githubkit/versions/ghec_v2022_11_28/types/group_0207.py index e77a4f03f..b0bdc2624 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0207.py @@ -9,19 +9,38 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class OrganizationCustomOrganizationRoleUpdateSchemaType(TypedDict): - """OrganizationCustomOrganizationRoleUpdateSchema""" - - name: NotRequired[str] - description: NotRequired[str] - permissions: NotRequired[list[str]] - base_role: NotRequired[ - Literal["none", "read", "triage", "write", "maintain", "admin"] - ] - - -__all__ = ("OrganizationCustomOrganizationRoleUpdateSchemaType",) +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType + + +class MigrationType(TypedDict): + """Migration + + A migration. + """ + + id: int + owner: Union[None, SimpleUserType] + guid: str + state: str + lock_repositories: bool + exclude_metadata: bool + exclude_git_data: bool + exclude_attachments: bool + exclude_releases: bool + exclude_owner_projects: bool + org_metadata_only: bool + repositories: list[RepositoryType] + url: str + created_at: datetime + updated_at: datetime + node_id: str + archive_url: NotRequired[str] + exclude: NotRequired[list[str]] + + +__all__ = ("MigrationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0208.py b/githubkit/versions/ghec_v2022_11_28/types/group_0208.py index df4260bbb..0c71e9bd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0208.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0208.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0066 import TeamSimpleType +class OrganizationFineGrainedPermissionType(TypedDict): + """Organization Fine-Grained Permission -class TeamRoleAssignmentType(TypedDict): - """A Role Assignment for a Team - - The Relationship a Team has with a role. + A fine-grained permission that protects organization resources. """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - id: int - node_id: str name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamRoleAssignmentPropPermissionsType(TypedDict): - """TeamRoleAssignmentPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamRoleAssignmentPropPermissionsType", - "TeamRoleAssignmentType", -) + description: str + + +__all__ = ("OrganizationFineGrainedPermissionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0209.py b/githubkit/versions/ghec_v2022_11_28/types/group_0209.py index 38814e2b2..fb3b706a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0209.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0209.py @@ -9,42 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0066 import TeamSimpleType +from .group_0003 import SimpleUserType -class UserRoleAssignmentType(TypedDict): - """A Role Assignment for a User +class OrganizationRoleType(TypedDict): + """Organization Role - The Relationship a User has with a role. + Organization roles """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - inherited_from: NotRequired[list[TeamSimpleType]] - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - starred_at: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("UserRoleAssignmentType",) + name: str + description: NotRequired[Union[str, None]] + base_role: NotRequired[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] + source: NotRequired[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] + ] + permissions: list[str] + organization: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + + +class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): + """OrgsOrgOrganizationRolesGetResponse200""" + + total_count: NotRequired[int] + roles: NotRequired[list[OrganizationRoleType]] + + +__all__ = ( + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0210.py b/githubkit/versions/ghec_v2022_11_28/types/group_0210.py index 9b4b7ff6c..c9e591941 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0210.py @@ -9,53 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class PackageVersionType(TypedDict): - """Package Version +class OrganizationCustomOrganizationRoleCreateSchemaType(TypedDict): + """OrganizationCustomOrganizationRoleCreateSchema""" - A version of a software package - """ - - id: int name: str - url: str - package_html_url: str - html_url: NotRequired[str] - license_: NotRequired[str] description: NotRequired[str] - created_at: datetime - updated_at: datetime - deleted_at: NotRequired[datetime] - metadata: NotRequired[PackageVersionPropMetadataType] - - -class PackageVersionPropMetadataType(TypedDict): - """Package Version Metadata""" - - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - container: NotRequired[PackageVersionPropMetadataPropContainerType] - docker: NotRequired[PackageVersionPropMetadataPropDockerType] - - -class PackageVersionPropMetadataPropContainerType(TypedDict): - """Container Metadata""" - - tags: list[str] - - -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" - - tag: NotRequired[list[str]] + permissions: list[str] + base_role: NotRequired[Literal["read", "triage", "write", "maintain", "admin"]] -__all__ = ( - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", - "PackageVersionPropMetadataType", - "PackageVersionType", -) +__all__ = ("OrganizationCustomOrganizationRoleCreateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0211.py b/githubkit/versions/ghec_v2022_11_28/types/group_0211.py index 4979cd78c..e77a4f03f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0211.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0211.py @@ -9,75 +9,19 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class OrganizationCustomOrganizationRoleUpdateSchemaType(TypedDict): + """OrganizationCustomOrganizationRoleUpdateSchema""" -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request - - Minimal representation of an organization programmatic access grant request for - enumerations - """ - - id: int - reason: Union[str, None] - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType + name: NotRequired[str] + description: NotRequired[str] + permissions: NotRequired[list[str]] + base_role: NotRequired[ + Literal["none", "read", "triage", "write", "maintain", "admin"] ] - other: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType - ] - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization -""" - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository -""" - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther -""" -__all__ = ( - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", - "OrganizationProgrammaticAccessGrantRequestType", -) +__all__ = ("OrganizationCustomOrganizationRoleUpdateSchemaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0212.py b/githubkit/versions/ghec_v2022_11_28/types/group_0212.py index 54bd740d2..df4260bbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0212.py @@ -9,72 +9,46 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0066 import TeamSimpleType -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team - Minimal representation of an organization programmatic access grant for - enumerations + The Relationship a Team has with a role. """ + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] id: int - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] + node_id: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] + url: str + html_url: str + members_url: str repositories_url: str - permissions: OrganizationProgrammaticAccessGrantPropPermissionsType - access_granted_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + parent: Union[None, TeamSimpleType] -class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissions +class TeamRoleAssignmentPropPermissionsType(TypedDict): + """TeamRoleAssignmentPropPermissions""" - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType - ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] - - -OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization -""" - - -OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository -""" - - -OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther -""" + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantType", + "TeamRoleAssignmentPropPermissionsType", + "TeamRoleAssignmentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0213.py b/githubkit/versions/ghec_v2022_11_28/types/group_0213.py index d9d5c738f..38814e2b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0213.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0213.py @@ -9,24 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0066 import TeamSimpleType -class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): - """Organization private registry - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository"] - username: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] - created_at: datetime - updated_at: datetime +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User + The Relationship a User has with a role. + """ -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] + inherited_from: NotRequired[list[TeamSimpleType]] + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("UserRoleAssignmentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0214.py b/githubkit/versions/ghec_v2022_11_28/types/group_0214.py index 9f42888f5..9b4b7ff6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0214.py @@ -10,33 +10,52 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class PackageVersionType(TypedDict): + """Package Version -class ProjectType(TypedDict): - """Project - - Projects are a way to organize columns and cards of work. + A version of a software package """ - owner_url: str - url: str - html_url: str - columns_url: str id: int - node_id: str name: str - body: Union[str, None] - number: int - state: str - creator: Union[None, SimpleUserType] + url: str + package_html_url: str + html_url: NotRequired[str] + license_: NotRequired[str] + description: NotRequired[str] created_at: datetime updated_at: datetime - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + deleted_at: NotRequired[datetime] + metadata: NotRequired[PackageVersionPropMetadataType] + + +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" + + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] + + +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + + tags: list[str] + + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[list[str]] -__all__ = ("ProjectType",) +__all__ = ( + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", + "PackageVersionPropMetadataType", + "PackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0215.py b/githubkit/versions/ghec_v2022_11_28/types/group_0215.py index c3784542a..4979cd78c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0215.py @@ -9,18 +9,75 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class CustomPropertyValueType(TypedDict): - """Custom Property Value - Custom property name and associated value +class OrganizationProgrammaticAccessGrantRequestType(TypedDict): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations + """ + + id: int + reason: Union[str, None] + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. """ - property_name: str - value: Union[str, list[str], None] + organization: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType + ] + other: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType + ] + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther +""" -__all__ = ("CustomPropertyValueType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0216.py b/githubkit/versions/ghec_v2022_11_28/types/group_0216.py index 5ced4c8f0..54bd740d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0216.py @@ -9,21 +9,72 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0215 import CustomPropertyValueType +from .group_0003 import SimpleUserType -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant - List of custom property values for a repository + Minimal representation of an organization programmatic access grant for + enumerations """ - repository_id: int - repository_name: str - repository_full_name: str - properties: list[CustomPropertyValueType] + id: int + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantPropPermissionsType + access_granted_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] -__all__ = ("OrgRepoCustomPropertyValuesType",) +class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + ] + other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther +""" + + +__all__ = ( + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantPropPermissionsType", + "OrganizationProgrammaticAccessGrantType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0217.py b/githubkit/versions/ghec_v2022_11_28/types/group_0217.py index cac6eb986..a3a79cbc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0217.py @@ -9,20 +9,24 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple +class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): + """Organization private registry - Code of Conduct Simple + Private registry configuration for an organization """ - url: str - key: str name: str - html_url: Union[str, None] + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] + username: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] + created_at: datetime + updated_at: datetime -__all__ = ("CodeOfConductSimpleType",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0218.py b/githubkit/versions/ghec_v2022_11_28/types/group_0218.py index 2b06b88c9..9f42888f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0218.py @@ -10,150 +10,33 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType -from .group_0020 import RepositoryType -from .group_0167 import SecurityAndAnalysisType -from .group_0217 import CodeOfConductSimpleType -class FullRepositoryType(TypedDict): - """Full Repository +class ProjectType(TypedDict): + """Project - Full Repository + Projects are a way to organize columns and cards of work. """ + owner_url: str + url: str + html_url: str + columns_url: str id: int node_id: str name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: NotRequired[bool] - has_discussions: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: datetime + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] created_at: datetime updated_at: datetime - permissions: NotRequired[FullRepositoryPropPermissionsType] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[Union[None, RepositoryType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: int - network_count: int - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - parent: NotRequired[RepositoryType] - source: NotRequired[RepositoryType] - forks: int - master_branch: NotRequired[str] - open_issues: int - watchers: int - anonymous_access_enabled: NotRequired[bool] - code_of_conduct: NotRequired[CodeOfConductSimpleType] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] - - -class FullRepositoryPropPermissionsType(TypedDict): - """FullRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""FullRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ( - "FullRepositoryPropCustomPropertiesType", - "FullRepositoryPropPermissionsType", - "FullRepositoryType", -) +__all__ = ("ProjectType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0219.py b/githubkit/versions/ghec_v2022_11_28/types/group_0219.py index 74f027a0f..c3784542a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0219.py @@ -9,25 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" +class CustomPropertyValueType(TypedDict): + """Custom Property Value - id: NotRequired[int] - actor_id: NotRequired[int] - actor_name: NotRequired[str] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] + Custom property name and associated value + """ + property_name: str + value: Union[str, list[str], None] -__all__ = ("RuleSuitesItemsType",) + +__all__ = ("CustomPropertyValueType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0220.py b/githubkit/versions/ghec_v2022_11_28/types/group_0220.py index edb6fa30e..766c77b9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0220.py @@ -9,51 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0219 import CustomPropertyValueType -class RuleSuiteType(TypedDict): - """Rule Suite - Response - """ - - id: NotRequired[int] - actor_id: NotRequired[Union[int, None]] - actor_name: NotRequired[Union[str, None]] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] - rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] - - -class RuleSuitePropRuleEvaluationsItemsType(TypedDict): - """RuleSuitePropRuleEvaluationsItems""" +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values - rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] - enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] - result: NotRequired[Literal["pass", "fail"]] - rule_type: NotRequired[str] - details: NotRequired[Union[str, None]] - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + List of custom property values for a repository + """ - type: NotRequired[str] - id: NotRequired[Union[int, None]] - name: NotRequired[Union[str, None]] + repository_id: int + repository_name: str + repository_full_name: str + properties: list[CustomPropertyValueType] -__all__ = ( - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuiteType", -) +__all__ = ("OrgRepoCustomPropertyValuesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0221.py b/githubkit/versions/ghec_v2022_11_28/types/group_0221.py index ef2fcae57..cac6eb986 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0221.py @@ -9,32 +9,20 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit - - A credit given to a user for a repository security advisory. + Code of Conduct Simple """ - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - state: Literal["accepted", "declined", "pending"] - - -__all__ = ("RepositoryAdvisoryCreditType",) + url: str + key: str + name: str + html_url: Union[str, None] + + +__all__ = ("CodeOfConductSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0222.py b/githubkit/versions/ghec_v2022_11_28/types/group_0222.py index 4dc673b96..3debf6bad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0222.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0222.py @@ -10,141 +10,150 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0001 import CvssSeveritiesType from .group_0003 import SimpleUserType -from .group_0067 import TeamType -from .group_0221 import RepositoryAdvisoryCreditType +from .group_0019 import LicenseSimpleType +from .group_0020 import RepositoryType +from .group_0170 import SecurityAndAnalysisType +from .group_0221 import CodeOfConductSimpleType -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory +class FullRepositoryType(TypedDict): + """Full Repository - A repository security advisory. + Full Repository """ - ghsa_id: str - cve_id: Union[str, None] - url: str + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool html_url: str - summary: str description: Union[str, None] - severity: Union[None, Literal["critical", "high", "medium", "low"]] - author: None - publisher: None - identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] - state: Literal["published", "closed", "withdrawn", "draft", "triage"] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - published_at: Union[datetime, None] - closed_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - submission: Union[RepositoryAdvisoryPropSubmissionType, None] - vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] - cvss: Union[RepositoryAdvisoryPropCvssType, None] - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] - cwe_ids: Union[list[str], None] - credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] - credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] - collaborating_users: Union[list[SimpleUserType], None] - collaborating_teams: Union[list[TeamType], None] - private_fork: None - - -class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] - value: str - - -class RepositoryAdvisoryPropSubmissionType(TypedDict): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool - - -class RepositoryAdvisoryPropCvssType(TypedDict): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] - score: Union[float, None] - - -class RepositoryAdvisoryPropCwesItemsType(TypedDict): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class RepositoryAdvisoryPropCreditsItemsType(TypedDict): - """RepositoryAdvisoryPropCreditsItems""" - - login: NotRequired[str] - type: NotRequired[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] - - -class RepositoryAdvisoryVulnerabilityType(TypedDict): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - patched_versions: Union[str, None] - vulnerable_functions: Union[list[str], None] - - -class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: NotRequired[bool] + has_discussions: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: datetime + created_at: datetime + updated_at: datetime + permissions: NotRequired[FullRepositoryPropPermissionsType] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[Union[None, RepositoryType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - name: Union[str, None] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: int + network_count: int + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + parent: NotRequired[RepositoryType] + source: NotRequired[RepositoryType] + forks: int + master_branch: NotRequired[str] + open_issues: int + watchers: int + anonymous_access_enabled: NotRequired[bool] + code_of_conduct: NotRequired[CodeOfConductSimpleType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] + + +class FullRepositoryPropPermissionsType(TypedDict): + """FullRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""FullRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" __all__ = ( - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryType", - "RepositoryAdvisoryVulnerabilityPropPackageType", - "RepositoryAdvisoryVulnerabilityType", + "FullRepositoryPropCustomPropertiesType", + "FullRepositoryPropPermissionsType", + "FullRepositoryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0223.py b/githubkit/versions/ghec_v2022_11_28/types/group_0223.py index dcb7aa8bd..74f027a0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0223.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class GroupMappingType(TypedDict): - """GroupMapping +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" - External Groups to be mapped to a team for membership - """ + id: NotRequired[int] + actor_id: NotRequired[int] + actor_name: NotRequired[str] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] - groups: NotRequired[list[GroupMappingPropGroupsItemsType]] - -class GroupMappingPropGroupsItemsType(TypedDict): - """GroupMappingPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - status: NotRequired[str] - synced_at: NotRequired[Union[str, None]] - - -__all__ = ( - "GroupMappingPropGroupsItemsType", - "GroupMappingType", -) +__all__ = ("RuleSuitesItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0224.py b/githubkit/versions/ghec_v2022_11_28/types/group_0224.py index 5653a1d61..edb6fa30e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0224.py @@ -13,107 +13,47 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0066 import TeamSimpleType +class RuleSuiteType(TypedDict): + """Rule Suite -class TeamFullType(TypedDict): - """Full Team - - Groups of organization members that gives permissions on specified repositories. + Response """ - id: int - node_id: str - url: str - html_url: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: str - members_url: str - repositories_url: str - parent: NotRequired[Union[None, TeamSimpleType]] - members_count: int - repos_count: int - created_at: datetime - updated_at: datetime - organization: TeamOrganizationType - ldap_dn: NotRequired[str] - - -class TeamOrganizationType(TypedDict): - """Team Organization - - Team Organization - """ + id: NotRequired[int] + actor_id: NotRequired[Union[int, None]] + actor_name: NotRequired[Union[str, None]] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] + rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] + + +class RuleSuitePropRuleEvaluationsItemsType(TypedDict): + """RuleSuitePropRuleEvaluationsItems""" + + rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] + enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] + result: NotRequired[Literal["pass", "fail"]] + rule_type: NotRequired[str] + details: NotRequired[Union[str, None]] + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] + type: NotRequired[str] + id: NotRequired[Union[int, None]] name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - created_at: datetime - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[TeamOrganizationPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - updated_at: datetime - archived_at: Union[datetime, None] - - -class TeamOrganizationPropPlanType(TypedDict): - """TeamOrganizationPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] __all__ = ( - "TeamFullType", - "TeamOrganizationPropPlanType", - "TeamOrganizationType", + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuiteType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0225.py b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py index 73feabb1f..ef2fcae57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py @@ -9,39 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0151 import ReactionRollupType -class TeamDiscussionType(TypedDict): - """Team Discussion +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit - A team discussion is a persistent record of a free-form conversation within a - team. + A credit given to a user for a repository security advisory. """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str - node_id: str - number: int - pinned: bool - private: bool - team_url: str - title: str - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TeamDiscussionType",) + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + state: Literal["accepted", "declined", "pending"] + + +__all__ = ("RepositoryAdvisoryCreditType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0226.py b/githubkit/versions/ghec_v2022_11_28/types/group_0226.py index 5452e8a81..7f2248d38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0226.py @@ -10,32 +10,141 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0001 import CvssSeveritiesType from .group_0003 import SimpleUserType -from .group_0151 import ReactionRollupType +from .group_0067 import TeamType +from .group_0225 import RepositoryAdvisoryCreditType -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory - A reply to a discussion within a team. + A repository security advisory. """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - created_at: datetime - last_edited_at: Union[datetime, None] - discussion_url: str - html_url: str - node_id: str - number: int - updated_at: datetime + ghsa_id: str + cve_id: Union[str, None] url: str - reactions: NotRequired[ReactionRollupType] + html_url: str + summary: str + description: Union[str, None] + severity: Union[None, Literal["critical", "high", "medium", "low"]] + author: None + publisher: None + identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] + state: Literal["published", "closed", "withdrawn", "draft", "triage"] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + published_at: Union[datetime, None] + closed_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + submission: Union[RepositoryAdvisoryPropSubmissionType, None] + vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] + cvss: Union[RepositoryAdvisoryPropCvssType, None] + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] + cwe_ids: Union[list[str], None] + credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] + credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] + collaborating_users: Union[list[SimpleUserType], None] + collaborating_teams: Union[list[TeamType], None] + private_fork: None + + +class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class RepositoryAdvisoryPropSubmissionType(TypedDict): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool + + +class RepositoryAdvisoryPropCvssType(TypedDict): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class RepositoryAdvisoryPropCwesItemsType(TypedDict): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class RepositoryAdvisoryPropCreditsItemsType(TypedDict): + """RepositoryAdvisoryPropCreditsItems""" + + login: NotRequired[str] + type: NotRequired[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[list[str], None] + + +class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: Union[str, None] -__all__ = ("TeamDiscussionCommentType",) +__all__ = ( + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryType", + "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryAdvisoryVulnerabilityType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0227.py b/githubkit/versions/ghec_v2022_11_28/types/group_0227.py index 29fb93bc6..dcb7aa8bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0227.py @@ -9,27 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class GroupMappingType(TypedDict): + """GroupMapping -class ReactionType(TypedDict): - """Reaction - - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + External Groups to be mapped to a team for membership """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - created_at: datetime + groups: NotRequired[list[GroupMappingPropGroupsItemsType]] + + +class GroupMappingPropGroupsItemsType(TypedDict): + """GroupMappingPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + status: NotRequired[str] + synced_at: NotRequired[Union[str, None]] -__all__ = ("ReactionType",) +__all__ = ( + "GroupMappingPropGroupsItemsType", + "GroupMappingType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0228.py b/githubkit/versions/ghec_v2022_11_28/types/group_0228.py index 201ca0a17..5653a1d61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0228.py @@ -9,19 +9,111 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0066 import TeamSimpleType -class TeamMembershipType(TypedDict): - """Team Membership - Team Membership +class TeamFullType(TypedDict): + """Full Team + + Groups of organization members that gives permissions on specified repositories. + """ + + id: int + node_id: str + url: str + html_url: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[Literal["closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: str + members_url: str + repositories_url: str + parent: NotRequired[Union[None, TeamSimpleType]] + members_count: int + repos_count: int + created_at: datetime + updated_at: datetime + organization: TeamOrganizationType + ldap_dn: NotRequired[str] + + +class TeamOrganizationType(TypedDict): + """Team Organization + + Team Organization """ + login: str + id: int + node_id: str url: str - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + created_at: datetime + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[TeamOrganizationPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + updated_at: datetime + archived_at: Union[datetime, None] + + +class TeamOrganizationPropPlanType(TypedDict): + """TeamOrganizationPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] -__all__ = ("TeamMembershipType",) +__all__ = ( + "TeamFullType", + "TeamOrganizationPropPlanType", + "TeamOrganizationType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0229.py b/githubkit/versions/ghec_v2022_11_28/types/group_0229.py index eac617342..8145adbcf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0229.py @@ -9,45 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0154 import ReactionRollupType -class TeamProjectType(TypedDict): - """Team Project +class TeamDiscussionType(TypedDict): + """Team Discussion - A team's access to a project. + A team discussion is a persistent record of a free-form conversation within a + team. """ - owner_url: str - url: str + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + comments_count: int + comments_url: str + created_at: datetime + last_edited_at: Union[datetime, None] html_url: str - columns_url: str - id: int node_id: str - name: str - body: Union[str, None] number: int - state: str - creator: SimpleUserType - created_at: str - updated_at: str - organization_permission: NotRequired[str] - private: NotRequired[bool] - permissions: TeamProjectPropPermissionsType - - -class TeamProjectPropPermissionsType(TypedDict): - """TeamProjectPropPermissions""" - - read: bool - write: bool - admin: bool + pinned: bool + private: bool + team_url: str + title: str + updated_at: datetime + url: str + reactions: NotRequired[ReactionRollupType] -__all__ = ( - "TeamProjectPropPermissionsType", - "TeamProjectType", -) +__all__ = ("TeamDiscussionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0230.py b/githubkit/versions/ghec_v2022_11_28/types/group_0230.py index d648ae260..6850ee03d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0230.py @@ -14,117 +14,28 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +from .group_0154 import ReactionRollupType -class TeamRepositoryType(TypedDict): - """Team Repository +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment - A team's access to a repository. + A reply to a discussion within a team. """ - id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[TeamRepositoryPropPermissionsType] - role_name: NotRequired[str] - owner: Union[None, SimpleUserType] - private: bool + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + created_at: datetime + last_edited_at: Union[datetime, None] + discussion_url: str html_url: str - description: Union[str, None] - fork: bool + node_id: str + number: int + updated_at: datetime url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - - -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + reactions: NotRequired[ReactionRollupType] -__all__ = ( - "TeamRepositoryPropPermissionsType", - "TeamRepositoryType", -) +__all__ = ("TeamDiscussionCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0231.py b/githubkit/versions/ghec_v2022_11_28/types/group_0231.py index fdc7baddd..29fb93bc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0231.py @@ -10,31 +10,26 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -class ProjectCardType(TypedDict): - """Project Card +class ReactionType(TypedDict): + """Reaction - Project cards represent a scope of work. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - url: str id: int node_id: str - note: Union[str, None] - creator: Union[None, SimpleUserType] + user: Union[None, SimpleUserType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] created_at: datetime - updated_at: datetime - archived: NotRequired[bool] - column_name: NotRequired[str] - project_id: NotRequired[str] - column_url: str - content_url: NotRequired[str] - project_url: str -__all__ = ("ProjectCardType",) +__all__ = ("ReactionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0232.py b/githubkit/versions/ghec_v2022_11_28/types/group_0232.py index d23a9ab67..201ca0a17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0232.py @@ -9,24 +9,19 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict -class ProjectColumnType(TypedDict): - """Project Column +class TeamMembershipType(TypedDict): + """Team Membership - Project columns contain cards of work. + Team Membership """ url: str - project_url: str - cards_url: str - id: int - node_id: str - name: str - created_at: datetime - updated_at: datetime + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ("ProjectColumnType",) +__all__ = ("TeamMembershipType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0233.py b/githubkit/versions/ghec_v2022_11_28/types/group_0233.py index 45af07517..eac617342 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0233.py @@ -10,19 +10,44 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission +class TeamProjectType(TypedDict): + """Team Project - Project Collaborator Permission + A team's access to a project. """ - permission: str - user: Union[None, SimpleUserType] - - -__all__ = ("ProjectCollaboratorPermissionType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: SimpleUserType + created_at: str + updated_at: str + organization_permission: NotRequired[str] + private: NotRequired[bool] + permissions: TeamProjectPropPermissionsType + + +class TeamProjectPropPermissionsType(TypedDict): + """TeamProjectPropPermissions""" + + read: bool + write: bool + admin: bool + + +__all__ = ( + "TeamProjectPropPermissionsType", + "TeamProjectType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0234.py b/githubkit/versions/ghec_v2022_11_28/types/group_0234.py index 7564a62f1..d648ae260 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0234.py @@ -9,16 +9,122 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class RateLimitType(TypedDict): - """Rate Limit""" - limit: int - remaining: int - reset: int - used: int +class TeamRepositoryType(TypedDict): + """Team Repository + A team's access to a repository. + """ -__all__ = ("RateLimitType",) + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + + +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +__all__ = ( + "TeamRepositoryPropPermissionsType", + "TeamRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0235.py b/githubkit/versions/ghec_v2022_11_28/types/group_0235.py index 18ebf5e53..fdc7baddd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0235.py @@ -9,20 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0234 import RateLimitType -from .group_0236 import RateLimitOverviewPropResourcesType +from .group_0003 import SimpleUserType -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview +class ProjectCardType(TypedDict): + """Project Card - Rate Limit Overview + Project cards represent a scope of work. """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType - - -__all__ = ("RateLimitOverviewType",) + url: str + id: int + node_id: str + note: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + archived: NotRequired[bool] + column_name: NotRequired[str] + project_id: NotRequired[str] + column_url: str + content_url: NotRequired[str] + project_url: str + + +__all__ = ("ProjectCardType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0236.py b/githubkit/versions/ghec_v2022_11_28/types/group_0236.py index bec5bc882..d23a9ab67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0236.py @@ -9,25 +9,24 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -from .group_0234 import RateLimitType +class ProjectColumnType(TypedDict): + """Project Column -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" + Project columns contain cards of work. + """ - core: RateLimitType - graphql: NotRequired[RateLimitType] - search: RateLimitType - code_search: NotRequired[RateLimitType] - source_import: NotRequired[RateLimitType] - integration_manifest: NotRequired[RateLimitType] - code_scanning_upload: NotRequired[RateLimitType] - actions_runner_registration: NotRequired[RateLimitType] - scim: NotRequired[RateLimitType] - dependency_snapshots: NotRequired[RateLimitType] - code_scanning_autofix: NotRequired[RateLimitType] + url: str + project_url: str + cards_url: str + id: int + node_id: str + name: str + created_at: datetime + updated_at: datetime -__all__ = ("RateLimitOverviewPropResourcesType",) +__all__ = ("ProjectColumnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0237.py b/githubkit/versions/ghec_v2022_11_28/types/group_0237.py index 02e909e24..45af07517 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0237.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ArtifactType(TypedDict): - """Artifact - An artifact +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission + + Project Collaborator Permission """ - id: int - node_id: str - name: str - size_in_bytes: int - url: str - archive_download_url: str - expired: bool - created_at: Union[datetime, None] - expires_at: Union[datetime, None] - updated_at: Union[datetime, None] - digest: NotRequired[Union[str, None]] - workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] - - -class ArtifactPropWorkflowRunType(TypedDict): - """ArtifactPropWorkflowRun""" - - id: NotRequired[int] - repository_id: NotRequired[int] - head_repository_id: NotRequired[int] - head_branch: NotRequired[str] - head_sha: NotRequired[str] - - -__all__ = ( - "ArtifactPropWorkflowRunType", - "ArtifactType", -) + permission: str + user: Union[None, SimpleUserType] + + +__all__ = ("ProjectCollaboratorPermissionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0238.py b/githubkit/versions/ghec_v2022_11_28/types/group_0238.py index 88facf6b2..7564a62f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0238.py @@ -9,33 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsCacheListType(TypedDict): - """Repository actions caches +class RateLimitType(TypedDict): + """Rate Limit""" - Repository actions caches - """ + limit: int + remaining: int + reset: int + used: int - total_count: int - actions_caches: list[ActionsCacheListPropActionsCachesItemsType] - -class ActionsCacheListPropActionsCachesItemsType(TypedDict): - """ActionsCacheListPropActionsCachesItems""" - - id: NotRequired[int] - ref: NotRequired[str] - key: NotRequired[str] - version: NotRequired[str] - last_accessed_at: NotRequired[datetime] - created_at: NotRequired[datetime] - size_in_bytes: NotRequired[int] - - -__all__ = ( - "ActionsCacheListPropActionsCachesItemsType", - "ActionsCacheListType", -) +__all__ = ("RateLimitType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0239.py b/githubkit/versions/ghec_v2022_11_28/types/group_0239.py index 1d359461a..1bdcd05ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0239.py @@ -9,67 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0238 import RateLimitType +from .group_0240 import RateLimitOverviewPropResourcesType -class JobType(TypedDict): - """Job - Information of a job execution in a workflow run - """ - - id: int - run_id: int - run_url: str - run_attempt: NotRequired[int] - node_id: str - head_sha: str - url: str - html_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - created_at: datetime - started_at: datetime - completed_at: Union[datetime, None] - name: str - steps: NotRequired[list[JobPropStepsItemsType]] - check_run_url: str - labels: list[str] - runner_id: Union[int, None] - runner_name: Union[str, None] - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - workflow_name: Union[str, None] - head_branch: Union[str, None] +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + Rate Limit Overview + """ -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] - conclusion: Union[str, None] - name: str - number: int - started_at: NotRequired[Union[datetime, None]] - completed_at: NotRequired[Union[datetime, None]] + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType -__all__ = ( - "JobPropStepsItemsType", - "JobType", -) +__all__ = ("RateLimitOverviewType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0240.py b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py index faacb2b0b..7b82dd425 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py @@ -11,15 +11,23 @@ from typing_extensions import NotRequired, TypedDict +from .group_0238 import RateLimitType -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" - use_default: bool - include_claim_keys: NotRequired[list[str]] + core: RateLimitType + graphql: NotRequired[RateLimitType] + search: RateLimitType + code_search: NotRequired[RateLimitType] + source_import: NotRequired[RateLimitType] + integration_manifest: NotRequired[RateLimitType] + code_scanning_upload: NotRequired[RateLimitType] + actions_runner_registration: NotRequired[RateLimitType] + scim: NotRequired[RateLimitType] + dependency_snapshots: NotRequired[RateLimitType] + code_scanning_autofix: NotRequired[RateLimitType] -__all__ = ("OidcCustomSubRepoType",) +__all__ = ("RateLimitOverviewPropResourcesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0241.py b/githubkit/versions/ghec_v2022_11_28/types/group_0241.py index 7d6ae5032..02e909e24 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0241.py @@ -10,18 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ActionsSecretType(TypedDict): - """Actions Secret +class ArtifactType(TypedDict): + """Artifact - Set secrets for GitHub Actions. + An artifact """ + id: int + node_id: str name: str - created_at: datetime - updated_at: datetime - - -__all__ = ("ActionsSecretType",) + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + digest: NotRequired[Union[str, None]] + workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] + + +class ArtifactPropWorkflowRunType(TypedDict): + """ArtifactPropWorkflowRun""" + + id: NotRequired[int] + repository_id: NotRequired[int] + head_repository_id: NotRequired[int] + head_branch: NotRequired[str] + head_sha: NotRequired[str] + + +__all__ = ( + "ArtifactPropWorkflowRunType", + "ArtifactType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0242.py b/githubkit/versions/ghec_v2022_11_28/types/group_0242.py index eb13c7e2f..88facf6b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0242.py @@ -10,16 +10,32 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsVariableType(TypedDict): - """Actions Variable""" +class ActionsCacheListType(TypedDict): + """Repository actions caches - name: str - value: str - created_at: datetime - updated_at: datetime + Repository actions caches + """ + total_count: int + actions_caches: list[ActionsCacheListPropActionsCachesItemsType] -__all__ = ("ActionsVariableType",) + +class ActionsCacheListPropActionsCachesItemsType(TypedDict): + """ActionsCacheListPropActionsCachesItems""" + + id: NotRequired[int] + ref: NotRequired[str] + key: NotRequired[str] + version: NotRequired[str] + last_accessed_at: NotRequired[datetime] + created_at: NotRequired[datetime] + size_in_bytes: NotRequired[int] + + +__all__ = ( + "ActionsCacheListPropActionsCachesItemsType", + "ActionsCacheListType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0243.py b/githubkit/versions/ghec_v2022_11_28/types/group_0243.py index eb7ddcbc1..1d359461a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0243.py @@ -9,16 +9,67 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" +class JobType(TypedDict): + """Job - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Information of a job execution in a workflow run + """ + id: int + run_id: int + run_url: str + run_attempt: NotRequired[int] + node_id: str + head_sha: str + url: str + html_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + created_at: datetime + started_at: datetime + completed_at: Union[datetime, None] + name: str + steps: NotRequired[list[JobPropStepsItemsType]] + check_run_url: str + labels: list[str] + runner_id: Union[int, None] + runner_name: Union[str, None] + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + workflow_name: Union[str, None] + head_branch: Union[str, None] -__all__ = ("ActionsRepositoryPermissionsType",) + +class JobPropStepsItemsType(TypedDict): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] + conclusion: Union[str, None] + name: str + number: int + started_at: NotRequired[Union[datetime, None]] + completed_at: NotRequired[Union[datetime, None]] + + +__all__ = ( + "JobPropStepsItemsType", + "JobType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0244.py b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py index d7d171918..faacb2b0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository - access_level: Literal["none", "user", "organization", "enterprise"] + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ActionsWorkflowAccessToRepositoryType",) + +__all__ = ("OidcCustomSubRepoType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0245.py b/githubkit/versions/ghec_v2022_11_28/types/group_0245.py index 7879ad294..7d6ae5032 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0245.py @@ -9,55 +9,19 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class ActionsSecretType(TypedDict): + """Actions Secret - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType + Set secrets for GitHub Actions. + """ - -class PullRequestMinimalPropHeadType(TypedDict): - """PullRequestMinimalPropHead""" - - ref: str - sha: str - repo: PullRequestMinimalPropHeadPropRepoType - - -class PullRequestMinimalPropHeadPropRepoType(TypedDict): - """PullRequestMinimalPropHeadPropRepo""" - - id: int - url: str - name: str - - -class PullRequestMinimalPropBaseType(TypedDict): - """PullRequestMinimalPropBase""" - - ref: str - sha: str - repo: PullRequestMinimalPropBasePropRepoType - - -class PullRequestMinimalPropBasePropRepoType(TypedDict): - """PullRequestMinimalPropBasePropRepo""" - - id: int - url: str name: str + created_at: datetime + updated_at: datetime -__all__ = ( - "PullRequestMinimalPropBasePropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalType", -) +__all__ = ("ActionsSecretType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0246.py b/githubkit/versions/ghec_v2022_11_28/types/group_0246.py index d8e989649..eb13c7e2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0246.py @@ -10,46 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import Union from typing_extensions import TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit - - A commit. - """ - - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] - - -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer - """ +class ActionsVariableType(TypedDict): + """Actions Variable""" name: str - email: str + value: str + created_at: datetime + updated_at: datetime -__all__ = ( - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", - "SimpleCommitType", -) +__all__ = ("ActionsVariableType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0247.py b/githubkit/versions/ghec_v2022_11_28/types/group_0247.py index b584eaff3..eb7ddcbc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0247.py @@ -9,72 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0168 import MinimalRepositoryType -from .group_0245 import PullRequestMinimalType -from .group_0246 import SimpleCommitType +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" -class WorkflowRunType(TypedDict): - """Workflow Run + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - An invocation of a workflow - """ - id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int - url: str - html_url: str - pull_requests: Union[list[PullRequestMinimalType], None] - created_at: datetime - updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str - sha: str - ref: NotRequired[str] - - -__all__ = ( - "ReferencedWorkflowType", - "WorkflowRunType", -) +__all__ = ("ActionsRepositoryPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0248.py b/githubkit/versions/ghec_v2022_11_28/types/group_0248.py index 8003cc5ba..d7d171918 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0248.py @@ -9,38 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" -class EnvironmentApprovalsType(TypedDict): - """Environment Approval + access_level: Literal["none", "user", "organization", "enterprise"] - An entry in the reviews log for environment deployments - """ - environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str - - -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -__all__ = ( - "EnvironmentApprovalsPropEnvironmentsItemsType", - "EnvironmentApprovalsType", -) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0249.py b/githubkit/versions/ghec_v2022_11_28/types/group_0249.py index 909bb75c8..7879ad294 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0249.py @@ -12,11 +12,52 @@ from typing_extensions import TypedDict -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" - environment_name: str - comment: str + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType -__all__ = ("ReviewCustomGatesCommentRequiredType",) +class PullRequestMinimalPropHeadType(TypedDict): + """PullRequestMinimalPropHead""" + + ref: str + sha: str + repo: PullRequestMinimalPropHeadPropRepoType + + +class PullRequestMinimalPropHeadPropRepoType(TypedDict): + """PullRequestMinimalPropHeadPropRepo""" + + id: int + url: str + name: str + + +class PullRequestMinimalPropBaseType(TypedDict): + """PullRequestMinimalPropBase""" + + ref: str + sha: str + repo: PullRequestMinimalPropBasePropRepoType + + +class PullRequestMinimalPropBasePropRepoType(TypedDict): + """PullRequestMinimalPropBasePropRepo""" + + id: int + url: str + name: str + + +__all__ = ( + "PullRequestMinimalPropBasePropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0250.py b/githubkit/versions/ghec_v2022_11_28/types/group_0250.py index 75b0bb6f6..d8e989649 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0250.py @@ -9,16 +9,47 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict -class ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" +class SimpleCommitType(TypedDict): + """Simple Commit - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] + A commit. + """ + id: str + tree_id: str + message: str + timestamp: datetime + author: Union[SimpleCommitPropAuthorType, None] + committer: Union[SimpleCommitPropCommitterType, None] -__all__ = ("ReviewCustomGatesStateRequiredType",) + +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor + + Information about the Git author + """ + + name: str + email: str + + +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str + email: str + + +__all__ = ( + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", + "SimpleCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0251.py b/githubkit/versions/ghec_v2022_11_28/types/group_0251.py index a112bb8a6..fdccde61a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0251.py @@ -10,45 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0067 import TeamType +from .group_0171 import MinimalRepositoryType +from .group_0249 import PullRequestMinimalType +from .group_0250 import SimpleCommitType -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" +class WorkflowRunType(TypedDict): + """Workflow Run - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] - - -class PendingDeploymentType(TypedDict): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass + An invocation of a workflow """ - environment: PendingDeploymentPropEnvironmentType - wait_timer: int - wait_timer_started_at: Union[datetime, None] - current_user_can_approve: bool - reviewers: list[PendingDeploymentPropReviewersItemsType] - - -class PendingDeploymentPropEnvironmentType(TypedDict): - """PendingDeploymentPropEnvironment""" + id: int + name: NotRequired[Union[str, None]] + node_id: str + check_suite_id: NotRequired[int] + check_suite_node_id: NotRequired[str] + head_branch: Union[str, None] + head_sha: str + path: str + run_number: int + run_attempt: NotRequired[int] + referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] + event: str + status: Union[str, None] + conclusion: Union[str, None] + workflow_id: int + url: str + html_url: str + pull_requests: Union[list[PullRequestMinimalType], None] + created_at: datetime + updated_at: datetime + actor: NotRequired[SimpleUserType] + triggering_actor: NotRequired[SimpleUserType] + run_started_at: NotRequired[datetime] + jobs_url: str + logs_url: str + check_suite_url: str + artifacts_url: str + cancel_url: str + rerun_url: str + previous_attempt_url: NotRequired[Union[str, None]] + workflow_url: str + head_commit: Union[None, SimpleCommitType] + repository: MinimalRepositoryType + head_repository: MinimalRepositoryType + head_repository_id: NotRequired[int] + display_title: str + + +class ReferencedWorkflowType(TypedDict): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] + path: str + sha: str + ref: NotRequired[str] __all__ = ( - "PendingDeploymentPropEnvironmentType", - "PendingDeploymentPropReviewersItemsType", - "PendingDeploymentType", + "ReferencedWorkflowType", + "WorkflowRunType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0252.py b/githubkit/versions/ghec_v2022_11_28/types/group_0252.py index 92437789e..8003cc5ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0252.py @@ -10,45 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -class DeploymentType(TypedDict): - """Deployment +class EnvironmentApprovalsType(TypedDict): + """Environment Approval - A request for a specific ref(branch,sha,tag) to be deployed + An entry in the reviews log for environment deployments """ - url: str - id: int - node_id: str - sha: str - ref: str - task: str - payload: Union[DeploymentPropPayloadOneof0Type, str] - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""DeploymentPropPayloadOneof0 -""" + environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] + state: Literal["approved", "rejected", "pending"] + user: SimpleUserType + comment: str + + +class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] __all__ = ( - "DeploymentPropPayloadOneof0Type", - "DeploymentType", + "EnvironmentApprovalsPropEnvironmentsItemsType", + "EnvironmentApprovalsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0253.py b/githubkit/versions/ghec_v2022_11_28/types/group_0253.py index f9d6d4cf5..909bb75c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0253.py @@ -9,85 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WorkflowRunUsageType(TypedDict): - """Workflow Run Usage +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" - Workflow Run Usage - """ + environment_name: str + comment: str - billable: WorkflowRunUsagePropBillableType - run_duration_ms: NotRequired[int] - -class WorkflowRunUsagePropBillableType(TypedDict): - """WorkflowRunUsagePropBillable""" - - ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] - - -class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropMacosType(TypedDict): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int - duration_ms: int - - -__all__ = ( - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsageType", -) +__all__ = ("ReviewCustomGatesCommentRequiredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0254.py b/githubkit/versions/ghec_v2022_11_28/types/group_0254.py index 6cefd47bb..75b0bb6f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0254.py @@ -9,48 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WorkflowUsageType(TypedDict): - """Workflow Usage +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" - Workflow Usage - """ + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] - billable: WorkflowUsagePropBillableType - -class WorkflowUsagePropBillableType(TypedDict): - """WorkflowUsagePropBillable""" - - ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] - - -class WorkflowUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: NotRequired[int] - - -__all__ = ( - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropWindowsType", - "WorkflowUsagePropBillableType", - "WorkflowUsageType", -) +__all__ = ("ReviewCustomGatesStateRequiredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0255.py b/githubkit/versions/ghec_v2022_11_28/types/group_0255.py index 1deac10b0..a112bb8a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0255.py @@ -11,32 +11,44 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0067 import TeamType -class ActivityType(TypedDict): - """Activity +class PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" - Activity + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] + + +class PendingDeploymentType(TypedDict): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - id: int - node_id: str - before: str - after: str - ref: str - timestamp: datetime - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] - actor: Union[None, SimpleUserType] - - -__all__ = ("ActivityType",) + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: list[PendingDeploymentPropReviewersItemsType] + + +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + + +__all__ = ( + "PendingDeploymentPropEnvironmentType", + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0256.py b/githubkit/versions/ghec_v2022_11_28/types/group_0256.py index 8b6890539..92437789e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0256.py @@ -9,19 +9,46 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class AutolinkType(TypedDict): - """Autolink reference - An autolink reference. +class DeploymentType(TypedDict): + """Deployment + + A request for a specific ref(branch,sha,tag) to be deployed """ + url: str id: int - key_prefix: str - url_template: str - is_alphanumeric: bool + node_id: str + sha: str + ref: str + task: str + payload: Union[DeploymentPropPayloadOneof0Type, str] + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""DeploymentPropPayloadOneof0 +""" -__all__ = ("AutolinkType",) +__all__ = ( + "DeploymentPropPayloadOneof0Type", + "DeploymentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0257.py b/githubkit/versions/ghec_v2022_11_28/types/group_0257.py index deb29de44..f9d6d4cf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0257.py @@ -9,17 +9,85 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Dependabot security updates +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage - Check Dependabot security updates + Workflow Run Usage """ - enabled: bool - paused: bool + billable: WorkflowRunUsagePropBillableType + run_duration_ms: NotRequired[int] -__all__ = ("CheckAutomatedSecurityFixesType",) +class WorkflowRunUsagePropBillableType(TypedDict): + """WorkflowRunUsagePropBillable""" + + ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] + + +class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropMacosType(TypedDict): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int + duration_ms: int + + +__all__ = ( + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0258.py b/githubkit/versions/ghec_v2022_11_28/types/group_0258.py index 1ee62092a..6cefd47bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0258.py @@ -11,29 +11,46 @@ from typing_extensions import NotRequired, TypedDict -from .group_0259 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, -) - -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review +class WorkflowUsageType(TypedDict): + """Workflow Usage - Protected Branch Pull Request Review + Workflow Usage """ - url: NotRequired[str] - dismissal_restrictions: NotRequired[ - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType - ] - dismiss_stale_reviews: bool - require_code_owner_reviews: bool - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] + billable: WorkflowUsagePropBillableType + + +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" + + ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] + + +class WorkflowUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: NotRequired[int] -__all__ = ("ProtectedBranchPullRequestReviewType",) +class WorkflowUsagePropBillablePropMacosType(TypedDict): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropWindowsType(TypedDict): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: NotRequired[int] + + +__all__ = ( + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropWindowsType", + "WorkflowUsagePropBillableType", + "WorkflowUsageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0259.py b/githubkit/versions/ghec_v2022_11_28/types/group_0259.py index 5b27aa63e..1deac10b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0259.py @@ -9,37 +9,34 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0067 import TeamType -class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class ActivityType(TypedDict): + """Activity - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] - url: NotRequired[str] - users_url: NotRequired[str] - teams_url: NotRequired[str] - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + Activity """ - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] - - -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", -) + id: int + node_id: str + before: str + after: str + ref: str + timestamp: datetime + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] + actor: Union[None, SimpleUserType] + + +__all__ = ("ActivityType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0260.py b/githubkit/versions/ghec_v2022_11_28/types/group_0260.py index f6fd03a7a..8b6890539 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0260.py @@ -9,128 +9,19 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BranchRestrictionPolicyType(TypedDict): - """Branch Restriction Policy +class AutolinkType(TypedDict): + """Autolink reference - Branch Restriction Policy + An autolink reference. """ - url: str - users_url: str - teams_url: str - apps_url: str - users: list[BranchRestrictionPolicyPropUsersItemsType] - teams: list[BranchRestrictionPolicyPropTeamsItemsType] - apps: list[BranchRestrictionPolicyPropAppsItemsType] + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -class BranchRestrictionPolicyPropUsersItemsType(TypedDict): - """BranchRestrictionPolicyPropUsersItems""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): - """BranchRestrictionPolicyPropTeamsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - name: NotRequired[str] - slug: NotRequired[str] - description: NotRequired[Union[str, None]] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: NotRequired[str] - members_url: NotRequired[str] - repositories_url: NotRequired[str] - parent: NotRequired[Union[str, None]] - - -class BranchRestrictionPolicyPropAppsItemsType(TypedDict): - """BranchRestrictionPolicyPropAppsItems""" - - id: NotRequired[int] - slug: NotRequired[str] - node_id: NotRequired[str] - owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] - name: NotRequired[str] - client_id: NotRequired[str] - description: NotRequired[str] - external_url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] - events: NotRequired[list[str]] - - -class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - hooks_url: NotRequired[str] - issues_url: NotRequired[str] - members_url: NotRequired[str] - public_members_url: NotRequired[str] - avatar_url: NotRequired[str] - description: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] - - -__all__ = ( - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyType", -) +__all__ = ("AutolinkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0261.py b/githubkit/versions/ghec_v2022_11_28/types/group_0261.py index aaa8228b1..deb29de44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0261.py @@ -9,138 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0258 import ProtectedBranchPullRequestReviewType -from .group_0260 import BranchRestrictionPolicyType +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Dependabot security updates -class BranchProtectionType(TypedDict): - """Branch Protection - - Branch Protection - """ - - url: NotRequired[str] - enabled: NotRequired[bool] - required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] - enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] - required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] - allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] - block_creations: NotRequired[BranchProtectionPropBlockCreationsType] - required_conversation_resolution: NotRequired[ - BranchProtectionPropRequiredConversationResolutionType - ] - name: NotRequired[str] - protection_url: NotRequired[str] - required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] - lock_branch: NotRequired[BranchProtectionPropLockBranchType] - allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] - - -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced + Check Dependabot security updates """ - url: str enabled: bool + paused: bool -class BranchProtectionPropRequiredLinearHistoryType(TypedDict): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForcePushesType(TypedDict): - """BranchProtectionPropAllowForcePushes""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowDeletionsType(TypedDict): - """BranchProtectionPropAllowDeletions""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropBlockCreationsType(TypedDict): - """BranchProtectionPropBlockCreations""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredConversationResolutionType(TypedDict): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredSignaturesType(TypedDict): - """BranchProtectionPropRequiredSignatures""" - - url: str - enabled: bool - - -class BranchProtectionPropLockBranchType(TypedDict): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForkSyncingType(TypedDict): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckType(TypedDict): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: NotRequired[str] - enforcement_level: NotRequired[str] - contexts: list[str] - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] - contexts_url: NotRequired[str] - strict: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str - app_id: Union[int, None] - - -__all__ = ( - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowForkSyncingType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", - "ProtectedBranchRequiredStatusCheckType", -) +__all__ = ("CheckAutomatedSecurityFixesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0262.py b/githubkit/versions/ghec_v2022_11_28/types/group_0262.py index a787fa15e..9581f1050 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0262.py @@ -11,30 +11,29 @@ from typing_extensions import NotRequired, TypedDict -from .group_0261 import BranchProtectionType +from .group_0263 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, +) -class ShortBranchType(TypedDict): - """Short Branch +class ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review - Short Branch + Protected Branch Pull Request Review """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[str] - - -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" + url: NotRequired[str] + dismissal_restrictions: NotRequired[ + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType + ] + dismiss_stale_reviews: bool + require_code_owner_reviews: bool + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] - sha: str - url: str - -__all__ = ( - "ShortBranchPropCommitType", - "ShortBranchType", -) +__all__ = ("ProtectedBranchPullRequestReviewType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0263.py b/githubkit/versions/ghec_v2022_11_28/types/group_0263.py index 7c317075a..5b27aa63e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0263.py @@ -9,19 +9,37 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0067 import TeamType -class GitUserType(TypedDict): - """Git User - Metaproperties for Git author/committer information. +class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] + url: NotRequired[str] + users_url: NotRequired[str] + teams_url: NotRequired[str] + + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[datetime] + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] -__all__ = ("GitUserType",) +__all__ = ( + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0264.py b/githubkit/versions/ghec_v2022_11_28/types/group_0264.py index 54e368f8f..f6fd03a7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0264.py @@ -10,17 +10,127 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class VerificationType(TypedDict): - """Verification""" +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] - verified_at: Union[str, None] + Branch Restriction Policy + """ + url: str + users_url: str + teams_url: str + apps_url: str + users: list[BranchRestrictionPolicyPropUsersItemsType] + teams: list[BranchRestrictionPolicyPropTeamsItemsType] + apps: list[BranchRestrictionPolicyPropAppsItemsType] -__all__ = ("VerificationType",) + +class BranchRestrictionPolicyPropUsersItemsType(TypedDict): + """BranchRestrictionPolicyPropUsersItems""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] + + +class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): + """BranchRestrictionPolicyPropTeamsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + name: NotRequired[str] + slug: NotRequired[str] + description: NotRequired[Union[str, None]] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: NotRequired[str] + members_url: NotRequired[str] + repositories_url: NotRequired[str] + parent: NotRequired[Union[str, None]] + + +class BranchRestrictionPolicyPropAppsItemsType(TypedDict): + """BranchRestrictionPolicyPropAppsItems""" + + id: NotRequired[int] + slug: NotRequired[str] + node_id: NotRequired[str] + owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] + name: NotRequired[str] + client_id: NotRequired[str] + description: NotRequired[str] + external_url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] + events: NotRequired[list[str]] + + +class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + hooks_url: NotRequired[str] + issues_url: NotRequired[str] + members_url: NotRequired[str] + public_members_url: NotRequired[str] + avatar_url: NotRequired[str] + description: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] + + +class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: NotRequired[str] + contents: NotRequired[str] + issues: NotRequired[str] + single_file: NotRequired[str] + + +__all__ = ( + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0265.py b/githubkit/versions/ghec_v2022_11_28/types/group_0265.py index bb2e4713b..040824af0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0265.py @@ -9,29 +9,138 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0262 import ProtectedBranchPullRequestReviewType +from .group_0264 import BranchRestrictionPolicyType -class DiffEntryType(TypedDict): - """Diff Entry - Diff Entry +class BranchProtectionType(TypedDict): + """Branch Protection + + Branch Protection """ - sha: Union[str, None] - filename: str - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + url: NotRequired[str] + enabled: NotRequired[bool] + required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] + enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] + required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] + allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] + block_creations: NotRequired[BranchProtectionPropBlockCreationsType] + required_conversation_resolution: NotRequired[ + BranchProtectionPropRequiredConversationResolutionType ] - additions: int - deletions: int - changes: int - blob_url: Union[str, None] - raw_url: Union[str, None] - contents_url: str - patch: NotRequired[str] - previous_filename: NotRequired[str] + name: NotRequired[str] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + + +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str + enabled: bool + + +class BranchProtectionPropRequiredLinearHistoryType(TypedDict): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForcePushesType(TypedDict): + """BranchProtectionPropAllowForcePushes""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowDeletionsType(TypedDict): + """BranchProtectionPropAllowDeletions""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropBlockCreationsType(TypedDict): + """BranchProtectionPropBlockCreations""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredConversationResolutionType(TypedDict): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredSignaturesType(TypedDict): + """BranchProtectionPropRequiredSignatures""" + + url: str + enabled: bool + + +class BranchProtectionPropLockBranchType(TypedDict): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForkSyncingType(TypedDict): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckType(TypedDict): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: NotRequired[str] + enforcement_level: NotRequired[str] + contexts: list[str] + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] + contexts_url: NotRequired[str] + strict: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str + app_id: Union[int, None] -__all__ = ("DiffEntryType",) +__all__ = ( + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowForkSyncingType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", + "ProtectedBranchRequiredStatusCheckType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0266.py b/githubkit/versions/ghec_v2022_11_28/types/group_0266.py index b11605c96..c483a6a68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0266.py @@ -9,59 +9,32 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0265 import DiffEntryType -from .group_0267 import CommitPropCommitType +from .group_0265 import BranchProtectionType -class CommitType(TypedDict): - """Commit +class ShortBranchType(TypedDict): + """Short Branch - Commit + Short Branch """ - url: str - sha: str - node_id: str - html_url: str - comments_url: str - commit: CommitPropCommitType - author: Union[SimpleUserType, EmptyObjectType, None] - committer: Union[SimpleUserType, EmptyObjectType, None] - parents: list[CommitPropParentsItemsType] - stats: NotRequired[CommitPropStatsType] - files: NotRequired[list[DiffEntryType]] - + name: str + commit: ShortBranchPropCommitType + protected: bool + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] -class EmptyObjectType(TypedDict): - """Empty Object - - An object without any properties. - """ - -class CommitPropParentsItemsType(TypedDict): - """CommitPropParentsItems""" +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" sha: str url: str - html_url: NotRequired[str] - - -class CommitPropStatsType(TypedDict): - """CommitPropStats""" - - additions: NotRequired[int] - deletions: NotRequired[int] - total: NotRequired[int] __all__ = ( - "CommitPropParentsItemsType", - "CommitPropStatsType", - "CommitType", - "EmptyObjectType", + "ShortBranchPropCommitType", + "ShortBranchType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0267.py b/githubkit/versions/ghec_v2022_11_28/types/group_0267.py index cd22f156e..7c317075a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0267.py @@ -9,33 +9,19 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0263 import GitUserType -from .group_0264 import VerificationType +class GitUserType(TypedDict): + """Git User -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" + Metaproperties for Git author/committer information. + """ - url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] -class CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitPropCommitPropTreeType", - "CommitPropCommitType", -) +__all__ = ("GitUserType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0268.py b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py index 3c5d8eb66..54e368f8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py @@ -9,36 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0261 import BranchProtectionType -from .group_0266 import CommitType +class VerificationType(TypedDict): + """Verification""" -class BranchWithProtectionType(TypedDict): - """Branch With Protection + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] + verified_at: Union[str, None] - Branch With Protection - """ - name: str - commit: CommitType - links: BranchWithProtectionPropLinksType - protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] - - -class BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" - - html: str - self_: str - - -__all__ = ( - "BranchWithProtectionPropLinksType", - "BranchWithProtectionType", -) +__all__ = ("VerificationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0269.py b/githubkit/versions/ghec_v2022_11_28/types/group_0269.py index c3154e6d0..bb2e4713b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0269.py @@ -9,133 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0260 import BranchRestrictionPolicyType -from .group_0270 import ProtectedBranchPropRequiredPullRequestReviewsType +class DiffEntryType(TypedDict): + """Diff Entry -class ProtectedBranchType(TypedDict): - """Protected Branch - - Branch protections protect branches + Diff Entry """ - url: str - required_status_checks: NotRequired[StatusCheckPolicyType] - required_pull_request_reviews: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsType - ] - required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] - enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] - required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] - allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_conversation_resolution: NotRequired[ - ProtectedBranchPropRequiredConversationResolutionType + sha: Union[str, None] + filename: str + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" ] - block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] - lock_branch: NotRequired[ProtectedBranchPropLockBranchType] - allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] - - -class ProtectedBranchPropRequiredSignaturesType(TypedDict): - """ProtectedBranchPropRequiredSignatures""" - - url: str - enabled: bool - - -class ProtectedBranchPropEnforceAdminsType(TypedDict): - """ProtectedBranchPropEnforceAdmins""" - - url: str - enabled: bool - - -class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool - - -class ProtectedBranchPropAllowForcePushesType(TypedDict): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool - - -class ProtectedBranchPropAllowDeletionsType(TypedDict): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool - - -class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class ProtectedBranchPropBlockCreationsType(TypedDict): - """ProtectedBranchPropBlockCreations""" - - enabled: bool - - -class ProtectedBranchPropLockBranchType(TypedDict): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchPropAllowForkSyncingType(TypedDict): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class StatusCheckPolicyType(TypedDict): - """Status Check Policy - - Status Check Policy - """ - - url: str - strict: bool - contexts: list[str] - checks: list[StatusCheckPolicyPropChecksItemsType] - contexts_url: str - - -class StatusCheckPolicyPropChecksItemsType(TypedDict): - """StatusCheckPolicyPropChecksItems""" - - context: str - app_id: Union[int, None] + additions: int + deletions: int + changes: int + blob_url: Union[str, None] + raw_url: Union[str, None] + contents_url: str + patch: NotRequired[str] + previous_filename: NotRequired[str] -__all__ = ( - "ProtectedBranchPropAllowDeletionsType", - "ProtectedBranchPropAllowForcePushesType", - "ProtectedBranchPropAllowForkSyncingType", - "ProtectedBranchPropBlockCreationsType", - "ProtectedBranchPropEnforceAdminsType", - "ProtectedBranchPropLockBranchType", - "ProtectedBranchPropRequiredConversationResolutionType", - "ProtectedBranchPropRequiredLinearHistoryType", - "ProtectedBranchPropRequiredSignaturesType", - "ProtectedBranchType", - "StatusCheckPolicyPropChecksItemsType", - "StatusCheckPolicyType", -) +__all__ = ("DiffEntryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0270.py b/githubkit/versions/ghec_v2022_11_28/types/group_0270.py index 27bfe0a93..ed2477a3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0270.py @@ -9,28 +9,59 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0271 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, -) +from .group_0003 import SimpleUserType +from .group_0269 import DiffEntryType +from .group_0271 import CommitPropCommitType + +class CommitType(TypedDict): + """Commit -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + Commit + """ url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) + sha: str + node_id: str + html_url: str + comments_url: str + commit: CommitPropCommitType + author: Union[SimpleUserType, EmptyObjectType, None] + committer: Union[SimpleUserType, EmptyObjectType, None] + parents: list[CommitPropParentsItemsType] + stats: NotRequired[CommitPropStatsType] + files: NotRequired[list[DiffEntryType]] + + +class EmptyObjectType(TypedDict): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItemsType(TypedDict): + """CommitPropParentsItems""" + + sha: str + url: str + html_url: NotRequired[str] + + +class CommitPropStatsType(TypedDict): + """CommitPropStats""" + + additions: NotRequired[int] + deletions: NotRequired[int] + total: NotRequired[int] + + +__all__ = ( + "CommitPropParentsItemsType", + "CommitPropStatsType", + "CommitType", + "EmptyObjectType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0271.py b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py index 1a8bb1361..f5376b2a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py @@ -12,35 +12,30 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0067 import TeamType +from .group_0267 import GitUserType +from .group_0268 import VerificationType -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" url: str - users_url: str - teams_url: str - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + sha: str + url: str __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "CommitPropCommitPropTreeType", + "CommitPropCommitType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0272.py b/githubkit/versions/ghec_v2022_11_28/types/group_0272.py index daf967d0f..73759f49a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0272.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0272.py @@ -9,34 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType +from .group_0265 import BranchProtectionType +from .group_0270 import CommitType -class DeploymentSimpleType(TypedDict): - """Deployment +class BranchWithProtectionType(TypedDict): + """Branch With Protection - A deployment created as the result of an Actions check run from a workflow that - references an environment + Branch With Protection """ - url: str - id: int - node_id: str - task: str - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentSimpleType",) + name: str + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] + required_approving_review_count: NotRequired[int] + + +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" + + html: str + self_: str + + +__all__ = ( + "BranchWithProtectionPropLinksType", + "BranchWithProtectionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0273.py b/githubkit/versions/ghec_v2022_11_28/types/group_0273.py index 503fc54a0..248055b83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0273.py @@ -9,71 +9,133 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType -from .group_0245 import PullRequestMinimalType -from .group_0272 import DeploymentSimpleType +from .group_0264 import BranchRestrictionPolicyType +from .group_0274 import ProtectedBranchPropRequiredPullRequestReviewsType -class CheckRunType(TypedDict): - """CheckRun +class ProtectedBranchType(TypedDict): + """Protected Branch - A check performed on the code of a given code change + Branch protections protect branches """ - id: int - head_sha: str - node_id: str - external_id: Union[str, None] url: str - html_url: Union[str, None] - details_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" + required_status_checks: NotRequired[StatusCheckPolicyType] + required_pull_request_reviews: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsType ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], + required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] + enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] + required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] + allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_conversation_resolution: NotRequired[ + ProtectedBranchPropRequiredConversationResolutionType ] - started_at: Union[datetime, None] - completed_at: Union[datetime, None] - output: CheckRunPropOutputType - name: str - check_suite: Union[CheckRunPropCheckSuiteType, None] - app: Union[None, IntegrationType, None] - pull_requests: list[PullRequestMinimalType] - deployment: NotRequired[DeploymentSimpleType] + block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] + lock_branch: NotRequired[ProtectedBranchPropLockBranchType] + allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] -class CheckRunPropOutputType(TypedDict): - """CheckRunPropOutput""" +class ProtectedBranchPropRequiredSignaturesType(TypedDict): + """ProtectedBranchPropRequiredSignatures""" - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str + url: str + enabled: bool + + +class ProtectedBranchPropEnforceAdminsType(TypedDict): + """ProtectedBranchPropEnforceAdmins""" + + url: str + enabled: bool + + +class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool + + +class ProtectedBranchPropAllowForcePushesType(TypedDict): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool + + +class ProtectedBranchPropAllowDeletionsType(TypedDict): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool + + +class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class ProtectedBranchPropBlockCreationsType(TypedDict): + """ProtectedBranchPropBlockCreations""" + + enabled: bool + + +class ProtectedBranchPropLockBranchType(TypedDict): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchPropAllowForkSyncingType(TypedDict): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class StatusCheckPolicyType(TypedDict): + """Status Check Policy + + Status Check Policy + """ + + url: str + strict: bool + contexts: list[str] + checks: list[StatusCheckPolicyPropChecksItemsType] + contexts_url: str -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" - id: int + context: str + app_id: Union[int, None] __all__ = ( - "CheckRunPropCheckSuiteType", - "CheckRunPropOutputType", - "CheckRunType", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowForkSyncingType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchType", + "StatusCheckPolicyPropChecksItemsType", + "StatusCheckPolicyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0274.py b/githubkit/versions/ghec_v2022_11_28/types/group_0274.py index 82fbb570d..a99b43417 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0274.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0275 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, +) -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation - """ +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str + url: str + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + dismissal_restrictions: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] -__all__ = ("CheckAnnotationType",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0275.py b/githubkit/versions/ghec_v2022_11_28/types/group_0275.py index de9dd5062..1a8bb1361 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0275.py @@ -9,69 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0168 import MinimalRepositoryType -from .group_0245 import PullRequestMinimalType -from .group_0246 import SimpleCommitType +from .group_0067 import TeamType -class CheckSuiteType(TypedDict): - """CheckSuite +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - A suite of checks performed on the code of a given code change - """ + url: str + users_url: str + teams_url: str + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] - id: int - node_id: str - head_branch: Union[str, None] - head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] - url: Union[str, None] - before: Union[str, None] - after: Union[str, None] - pull_requests: Union[list[PullRequestMinimalType], None] - app: Union[None, IntegrationType, None] - repository: MinimalRepositoryType - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - head_commit: SimpleCommitType - latest_check_runs_count: int - check_runs_url: str - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - - total_count: int - check_suites: list[CheckSuiteType] + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0276.py b/githubkit/versions/ghec_v2022_11_28/types/group_0276.py index 1d755adfc..daf967d0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0276.py @@ -9,38 +9,34 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0168 import MinimalRepositoryType +from .group_0010 import IntegrationType -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference +class DeploymentSimpleType(TypedDict): + """Deployment - Check suite configuration preferences for a repository. + A deployment created as the result of an Actions check run from a workflow that + references an environment """ - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType - - -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: NotRequired[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] - ] - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferenceType", -) + url: str + id: int + node_id: str + task: str + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0277.py b/githubkit/versions/ghec_v2022_11_28/types/group_0277.py index f0055e813..04b50fe53 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0277.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0277.py @@ -13,33 +13,67 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0055 import CodeScanningAlertRuleSummaryType -from .group_0056 import CodeScanningAnalysisToolType -from .group_0057 import CodeScanningAlertInstanceType +from .group_0010 import IntegrationType +from .group_0249 import PullRequestMinimalType +from .group_0276 import DeploymentSimpleType -class CodeScanningAlertItemsType(TypedDict): - """CodeScanningAlertItems""" +class CheckRunType(TypedDict): + """CheckRun - number: int - created_at: datetime - updated_at: NotRequired[datetime] + A check performed on the code of a given code change + """ + + id: int + head_sha: str + node_id: str + external_id: Union[str, None] url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + html_url: Union[str, None] + details_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + started_at: Union[datetime, None] + completed_at: Union[datetime, None] + output: CheckRunPropOutputType + name: str + check_suite: Union[CheckRunPropCheckSuiteType, None] + app: Union[None, IntegrationType, None] + pull_requests: list[PullRequestMinimalType] + deployment: NotRequired[DeploymentSimpleType] + + +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" + + title: Union[str, None] + summary: Union[str, None] + text: Union[str, None] + annotations_count: int + annotations_url: str + + +class CheckRunPropCheckSuiteType(TypedDict): + """CheckRunPropCheckSuite""" + + id: int -__all__ = ("CodeScanningAlertItemsType",) +__all__ = ( + "CheckRunPropCheckSuiteType", + "CheckRunPropOutputType", + "CheckRunType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0278.py b/githubkit/versions/ghec_v2022_11_28/types/group_0278.py index 98505e50c..82fbb570d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0278.py @@ -9,55 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0056 import CodeScanningAnalysisToolType -from .group_0057 import CodeScanningAlertInstanceType - - -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] - - -class CodeScanningAlertRuleType(TypedDict): - """CodeScanningAlertRule""" - - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - - -__all__ = ( - "CodeScanningAlertRuleType", - "CodeScanningAlertType", -) +from typing import Union +from typing_extensions import TypedDict + + +class CheckAnnotationType(TypedDict): + """Check Annotation + + Check Annotation + """ + + path: str + start_line: int + end_line: int + start_column: Union[int, None] + end_column: Union[int, None] + annotation_level: Union[str, None] + title: Union[str, None] + message: Union[str, None] + raw_details: Union[str, None] + blob_href: str + + +__all__ = ("CheckAnnotationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0279.py b/githubkit/versions/ghec_v2022_11_28/types/group_0279.py index 1a155e137..5d85dced3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0279.py @@ -11,15 +11,67 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0171 import MinimalRepositoryType +from .group_0249 import PullRequestMinimalType +from .group_0250 import SimpleCommitType -class CodeScanningAutofixType(TypedDict): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] - description: Union[str, None] - started_at: datetime +class CheckSuiteType(TypedDict): + """CheckSuite + A suite of checks performed on the code of a given code change + """ -__all__ = ("CodeScanningAutofixType",) + id: int + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] + url: Union[str, None] + before: Union[str, None] + after: Union[str, None] + pull_requests: Union[list[PullRequestMinimalType], None] + app: Union[None, IntegrationType, None] + repository: MinimalRepositoryType + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + head_commit: SimpleCommitType + latest_check_runs_count: int + check_runs_url: str + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int + check_suites: list[CheckSuiteType] + + +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0280.py b/githubkit/versions/ghec_v2022_11_28/types/group_0280.py index 8ec0e8374..9a361b119 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0280.py @@ -11,15 +11,36 @@ from typing_extensions import NotRequired, TypedDict +from .group_0171 import MinimalRepositoryType -class CodeScanningAutofixCommitsType(TypedDict): - """CodeScanningAutofixCommits - Commit an autofix for a code scanning alert +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference + + Check suite configuration preferences for a repository. """ - target_ref: NotRequired[str] - message: NotRequired[str] + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType + + +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] + ] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool -__all__ = ("CodeScanningAutofixCommitsType",) +__all__ = ( + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferenceType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0281.py b/githubkit/versions/ghec_v2022_11_28/types/group_0281.py index 2cbf6f579..f0055e813 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0281.py @@ -9,14 +9,37 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class CodeScanningAutofixCommitsResponseType(TypedDict): - """CodeScanningAutofixCommitsResponse""" - - target_ref: NotRequired[str] - sha: NotRequired[str] - - -__all__ = ("CodeScanningAutofixCommitsResponseType",) +from .group_0003 import SimpleUserType +from .group_0055 import CodeScanningAlertRuleSummaryType +from .group_0056 import CodeScanningAnalysisToolType +from .group_0057 import CodeScanningAlertInstanceType + + +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0282.py b/githubkit/versions/ghec_v2022_11_28/types/group_0282.py index e46da541c..98505e50c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0282.py @@ -10,29 +10,54 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType from .group_0056 import CodeScanningAnalysisToolType +from .group_0057 import CodeScanningAlertInstanceType -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" - ref: str - commit_sha: str - analysis_key: str - environment: str - category: NotRequired[str] - error: str + number: int created_at: datetime - results_count: int - rules_count: int - id: int + updated_at: NotRequired[datetime] url: str - sarif_id: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType tool: CodeScanningAnalysisToolType - deletable: bool - warning: str - - -__all__ = ("CodeScanningAnalysisType",) + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertRuleType", + "CodeScanningAlertType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0283.py b/githubkit/versions/ghec_v2022_11_28/types/group_0283.py index a217f8af1..1a155e137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0283.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0283.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion +class CodeScanningAutofixType(TypedDict): + """CodeScanningAutofix""" - Successful deletion of a code scanning analysis - """ + status: Literal["pending", "error", "success", "outdated"] + description: Union[str, None] + started_at: datetime - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] - -__all__ = ("CodeScanningAnalysisDeletionType",) +__all__ = ("CodeScanningAutofixType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0284.py b/githubkit/versions/ghec_v2022_11_28/types/group_0284.py index 279371ebd..8ec0e8374 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0284.py @@ -9,29 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class CodeScanningAutofixCommitsType(TypedDict): + """CodeScanningAutofixCommits -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database - - A CodeQL database. + Commit an autofix for a code scanning alert """ - id: int - name: str - language: str - uploader: SimpleUserType - content_type: str - size: int - created_at: datetime - updated_at: datetime - url: str - commit_oid: NotRequired[Union[str, None]] + target_ref: NotRequired[str] + message: NotRequired[str] -__all__ = ("CodeScanningCodeqlDatabaseType",) +__all__ = ("CodeScanningAutofixCommitsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0285.py b/githubkit/versions/ghec_v2022_11_28/types/group_0285.py index 86f33d140..2cbf6f579 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0285.py @@ -9,23 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier +class CodeScanningAutofixCommitsResponseType(TypedDict): + """CodeScanningAutofixCommitsResponse""" - Repository Identifier - """ + target_ref: NotRequired[str] + sha: NotRequired[str] - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] - -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +__all__ = ("CodeScanningAutofixCommitsResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0286.py b/githubkit/versions/ghec_v2022_11_28/types/group_0286.py index 948980157..e46da541c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0286.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0285 import CodeScanningVariantAnalysisRepositoryType +from .group_0056 import CodeScanningAnalysisToolType -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" - repository_count: int - repositories: list[CodeScanningVariantAnalysisRepositoryType] + ref: str + commit_sha: str + analysis_key: str + environment: str + category: NotRequired[str] + error: str + created_at: datetime + results_count: int + rules_count: int + id: int + url: str + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) +__all__ = ("CodeScanningAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0287.py b/githubkit/versions/ghec_v2022_11_28/types/group_0287.py index ee00c16e3..a217f8af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0287.py @@ -9,43 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0058 import SimpleRepositoryType -from .group_0288 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -from .group_0289 import CodeScanningVariantAnalysisPropSkippedRepositoriesType +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Successful deletion of a code scanning analysis """ - id: int - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] + + +__all__ = ("CodeScanningAnalysisDeletionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0288.py b/githubkit/versions/ghec_v2022_11_28/types/group_0288.py index a76281896..279371ebd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0288.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0285 import CodeScanningVariantAnalysisRepositoryType +from .group_0003 import SimpleUserType -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database - repository: CodeScanningVariantAnalysisRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - result_count: NotRequired[int] - artifact_size_in_bytes: NotRequired[int] - failure_message: NotRequired[str] + A CodeQL database. + """ + id: int + name: str + language: str + uploader: SimpleUserType + content_type: str + size: int + created_at: datetime + updated_at: datetime + url: str + commit_oid: NotRequired[Union[str, None]] -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) + +__all__ = ("CodeScanningCodeqlDatabaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0289.py b/githubkit/versions/ghec_v2022_11_28/types/group_0289.py index 02a8d7138..86f33d140 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0289.py @@ -9,36 +9,23 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -from .group_0286 import CodeScanningVariantAnalysisSkippedRepoGroupType +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories - - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Repository Identifier """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - not_found_repos: ( - CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType - ) - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( - TypedDict -): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int - repository_full_names: list[str] + id: int + name: str + full_name: str + private: bool + stargazers_count: int + updated_at: Union[datetime, None] -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", - "CodeScanningVariantAnalysisPropSkippedRepositoriesType", -) +__all__ = ("CodeScanningVariantAnalysisRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0290.py b/githubkit/versions/ghec_v2022_11_28/types/group_0290.py index a154d760e..bd268b1c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0290.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0058 import SimpleRepositoryType +from .group_0289 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - repository: SimpleRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - artifact_size_in_bytes: NotRequired[int] - result_count: NotRequired[int] - failure_message: NotRequired[str] - database_commit_sha: NotRequired[str] - source_location_prefix: NotRequired[str] - artifact_url: NotRequired[str] + repository_count: int + repositories: list[CodeScanningVariantAnalysisRepositoryType] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0291.py b/githubkit/versions/ghec_v2022_11_28/types/group_0291.py index 6a3c39b96..4f8142ea5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0291.py @@ -13,36 +13,39 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0058 import SimpleRepositoryType +from .group_0292 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +from .group_0293 import CodeScanningVariantAnalysisPropSkippedRepositoriesType -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack_url: str + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + completed_at: NotRequired[Union[datetime, None]] + status: Literal["in_progress", "succeeded", "failed", "cancelled"] + actions_workflow_run_id: NotRequired[int] + failure_reason: NotRequired[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] + scanned_repositories: NotRequired[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] + ] + skipped_repositories: NotRequired[ + CodeScanningVariantAnalysisPropSkippedRepositoriesType ] - runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] -__all__ = ("CodeScanningDefaultSetupType",) +__all__ = ("CodeScanningVariantAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0292.py b/githubkit/versions/ghec_v2022_11_28/types/group_0292.py index 8e432c42b..984a7c5f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0292.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0289 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningDefaultSetupUpdateType(TypedDict): - """CodeScanningDefaultSetupUpdate - - Configuration for code scanning default setup. - """ - - state: NotRequired[Literal["configured", "not-configured"]] - runner_type: NotRequired[Literal["standard", "labeled"]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] + +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + + repository: CodeScanningVariantAnalysisRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] + result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] + failure_message: NotRequired[str] -__all__ = ("CodeScanningDefaultSetupUpdateType",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0293.py b/githubkit/versions/ghec_v2022_11_28/types/group_0293.py index f363fa4b1..718caa87f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0293.py @@ -9,19 +9,36 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0290 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. +class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): + """CodeScanningVariantAnalysisPropSkippedRepositories + + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - run_id: NotRequired[int] - run_url: NotRequired[str] + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + not_found_repos: ( + CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType + ) + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( + TypedDict +): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int + repository_full_names: list[str] -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", + "CodeScanningVariantAnalysisPropSkippedRepositoriesType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0294.py b/githubkit/versions/ghec_v2022_11_28/types/group_0294.py index 5a45d64e1..a154d760e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0294.py @@ -9,14 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0058 import SimpleRepositoryType -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - id: NotRequired[str] - url: NotRequired[str] +class CodeScanningVariantAnalysisRepoTaskType(TypedDict): + """CodeScanningVariantAnalysisRepoTask""" + repository: SimpleRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] + artifact_size_in_bytes: NotRequired[int] + result_count: NotRequired[int] + failure_message: NotRequired[str] + database_commit_sha: NotRequired[str] + source_location_prefix: NotRequired[str] + artifact_url: NotRequired[str] -__all__ = ("CodeScanningSarifsReceiptType",) + +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0295.py b/githubkit/versions/ghec_v2022_11_28/types/group_0295.py index 3b46d219b..481da9df9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0295.py @@ -9,16 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" - - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[list[str], None]] - - -__all__ = ("CodeScanningSarifsStatusType",) +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup + + Configuration for code scanning default setup. + """ + + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0296.py b/githubkit/versions/ghec_v2022_11_28/types/group_0296.py index 68e642ba4..69c76e214 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0296.py @@ -9,31 +9,36 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0060 import CodeSecurityConfigurationType +class CodeScanningDefaultSetupUpdateType(TypedDict): + """CodeScanningDefaultSetupUpdate -class CodeSecurityConfigurationForRepositoryType(TypedDict): - """CodeSecurityConfigurationForRepository - - Code security configuration associated with a repository and attachment status + Configuration for code scanning default setup. """ - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", + state: NotRequired[Literal["configured", "not-configured"]] + runner_type: NotRequired[Literal["standard", "labeled"]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] ] ] - configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("CodeSecurityConfigurationForRepositoryType",) +__all__ = ("CodeScanningDefaultSetupUpdateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0297.py b/githubkit/versions/ghec_v2022_11_28/types/group_0297.py index 4480d357f..f363fa4b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0297.py @@ -9,32 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse - A list of errors found in a repo's CODEOWNERS file + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - errors: list[CodeownersErrorsPropErrorsItemsType] + run_id: NotRequired[int] + run_url: NotRequired[str] -class CodeownersErrorsPropErrorsItemsType(TypedDict): - """CodeownersErrorsPropErrorsItems""" - - line: int - column: int - source: NotRequired[str] - kind: str - suggestion: NotRequired[Union[str, None]] - message: str - path: str - - -__all__ = ( - "CodeownersErrorsPropErrorsItemsType", - "CodeownersErrorsType", -) +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0298.py b/githubkit/versions/ghec_v2022_11_28/types/group_0298.py index e1c93e03b..5a45d64e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0298.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" - Permission check result for a given devcontainer config. - """ + id: NotRequired[str] + url: NotRequired[str] - accepted: bool - -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) +__all__ = ("CodeScanningSarifsReceiptType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0299.py b/githubkit/versions/ghec_v2022_11_28/types/group_0299.py index a532fd3fa..3b46d219b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0299.py @@ -9,30 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0168 import MinimalRepositoryType +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" -class RepositoryInvitationType(TypedDict): - """Repository Invitation + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[list[str], None]] - Repository invitations let you manage who you collaborate with. - """ - id: int - repository: MinimalRepositoryType - invitee: Union[None, SimpleUserType] - inviter: Union[None, SimpleUserType] - permissions: Literal["read", "write", "admin", "triage", "maintain"] - created_at: datetime - expired: NotRequired[bool] - url: str - html_url: str - node_id: str - - -__all__ = ("RepositoryInvitationType",) +__all__ = ("CodeScanningSarifsStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0300.py b/githubkit/versions/ghec_v2022_11_28/types/group_0300.py index 10af54a9e..68e642ba4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0300.py @@ -9,64 +9,31 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0060 import CodeSecurityConfigurationType -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission - - Repository Collaborator Permission - """ - - permission: str - role_name: str - user: Union[None, CollaboratorType] +class CodeSecurityConfigurationForRepositoryType(TypedDict): + """CodeSecurityConfigurationForRepository -class CollaboratorType(TypedDict): - """Collaborator - - Collaborator + Code security configuration associated with a repository and attachment status """ - login: str - id: int - email: NotRequired[Union[str, None]] - name: NotRequired[Union[str, None]] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - permissions: NotRequired[CollaboratorPropPermissionsType] - role_name: str - user_view_type: NotRequired[str] - - -class CollaboratorPropPermissionsType(TypedDict): - """CollaboratorPropPermissions""" - - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - admin: bool - - -__all__ = ( - "CollaboratorPropPermissionsType", - "CollaboratorType", - "RepositoryCollaboratorPermissionType", -) + status: NotRequired[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] + configuration: NotRequired[CodeSecurityConfigurationType] + + +__all__ = ("CodeSecurityConfigurationForRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0301.py b/githubkit/versions/ghec_v2022_11_28/types/group_0301.py index 808364910..4480d357f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0301.py @@ -9,58 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0151 import ReactionRollupType +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors -class CommitCommentType(TypedDict): - """Commit Comment - - Commit Comment + A list of errors found in a repo's CODEOWNERS file """ - html_url: str - url: str - id: int - node_id: str - body: str - path: Union[str, None] - position: Union[int, None] - line: Union[int, None] - commit_id: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - + errors: list[CodeownersErrorsPropErrorsItemsType] -class TimelineCommitCommentedEventType(TypedDict): - """Timeline Commit Commented Event - Timeline Commit Commented Event - """ +class CodeownersErrorsPropErrorsItemsType(TypedDict): + """CodeownersErrorsPropErrorsItems""" - event: NotRequired[Literal["commit_commented"]] - node_id: NotRequired[str] - commit_id: NotRequired[str] - comments: NotRequired[list[CommitCommentType]] + line: int + column: int + source: NotRequired[str] + kind: str + suggestion: NotRequired[Union[str, None]] + message: str + path: str __all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", + "CodeownersErrorsPropErrorsItemsType", + "CodeownersErrorsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0302.py b/githubkit/versions/ghec_v2022_11_28/types/group_0302.py index 997250710..e1c93e03b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0302.py @@ -12,25 +12,13 @@ from typing_extensions import TypedDict -class BranchShortType(TypedDict): - """Branch Short +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check - Branch Short + Permission check result for a given devcontainer config. """ - name: str - commit: BranchShortPropCommitType - protected: bool + accepted: bool -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" - - sha: str - url: str - - -__all__ = ( - "BranchShortPropCommitType", - "BranchShortType", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0303.py b/githubkit/versions/ghec_v2022_11_28/types/group_0303.py index 064aa0ae7..7cab32a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0303.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0171 import MinimalRepositoryType -class LinkType(TypedDict): - """Link - Hypermedia Link +class RepositoryInvitationType(TypedDict): + """Repository Invitation + + Repository invitations let you manage who you collaborate with. """ - href: str + id: int + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] + created_at: datetime + expired: NotRequired[bool] + url: str + html_url: str + node_id: str -__all__ = ("LinkType",) +__all__ = ("RepositoryInvitationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0304.py b/githubkit/versions/ghec_v2022_11_28/types/group_0304.py index ac1473211..10af54a9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0304.py @@ -9,22 +9,64 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission -class AutoMergeType(TypedDict): - """Auto merge + Repository Collaborator Permission + """ + + permission: str + role_name: str + user: Union[None, CollaboratorType] + + +class CollaboratorType(TypedDict): + """Collaborator - The status of auto merging a pull request. + Collaborator """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + login: str + id: int + email: NotRequired[Union[str, None]] + name: NotRequired[Union[str, None]] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + permissions: NotRequired[CollaboratorPropPermissionsType] + role_name: str + user_view_type: NotRequired[str] + + +class CollaboratorPropPermissionsType(TypedDict): + """CollaboratorPropPermissions""" + + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + admin: bool -__all__ = ("AutoMergeType",) +__all__ = ( + "CollaboratorPropPermissionsType", + "CollaboratorType", + "RepositoryCollaboratorPermissionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0305.py b/githubkit/versions/ghec_v2022_11_28/types/group_0305.py index 52a66347a..822860e84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0305.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0305.py @@ -14,52 +14,27 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0067 import TeamType -from .group_0149 import MilestoneType -from .group_0304 import AutoMergeType -from .group_0306 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -from .group_0307 import PullRequestSimplePropLinksType +from .group_0154 import ReactionRollupType -class PullRequestSimpleType(TypedDict): - """Pull Request Simple +class CommitCommentType(TypedDict): + """Commit Comment - Pull Request Simple + Commit Comment """ + html_url: str url: str id: int node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: str - locked: bool - title: str + body: str + path: Union[str, None] + position: Union[int, None] + line: Union[int, None] + commit_id: str user: Union[None, SimpleUserType] - body: Union[str, None] - labels: list[PullRequestSimplePropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] created_at: datetime updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamType], None]] - head: PullRequestSimplePropHeadType - base: PullRequestSimplePropBaseType - links: PullRequestSimplePropLinksType author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -70,23 +45,22 @@ class PullRequestSimpleType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] + reactions: NotRequired[ReactionRollupType] -class PullRequestSimplePropLabelsItemsType(TypedDict): - """PullRequestSimplePropLabelsItems""" +class TimelineCommitCommentedEventType(TypedDict): + """Timeline Commit Commented Event - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + Timeline Commit Commented Event + """ + + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[list[CommitCommentType]] __all__ = ( - "PullRequestSimplePropLabelsItemsType", - "PullRequestSimpleType", + "CommitCommentType", + "TimelineCommitCommentedEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0306.py b/githubkit/versions/ghec_v2022_11_28/types/group_0306.py index 1c03aef11..997250710 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0306.py @@ -9,34 +9,28 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType +class BranchShortType(TypedDict): + """Branch Short -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" + Branch Short + """ - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + name: str + commit: BranchShortPropCommitType + protected: bool -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" - label: str - ref: str - repo: RepositoryType sha: str - user: Union[None, SimpleUserType] + url: str __all__ = ( - "PullRequestSimplePropBaseType", - "PullRequestSimplePropHeadType", + "BranchShortPropCommitType", + "BranchShortType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0307.py b/githubkit/versions/ghec_v2022_11_28/types/group_0307.py index 63dc0aafb..064aa0ae7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0307.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0307.py @@ -11,20 +11,14 @@ from typing_extensions import TypedDict -from .group_0303 import LinkType +class LinkType(TypedDict): + """Link -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" + Hypermedia Link + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + href: str -__all__ = ("PullRequestSimplePropLinksType",) +__all__ = ("LinkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0308.py b/githubkit/versions/ghec_v2022_11_28/types/group_0308.py index e6916e78e..ac1473211 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0308.py @@ -9,45 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0168 import MinimalRepositoryType +from .group_0003 import SimpleUserType -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status +class AutoMergeType(TypedDict): + """Auto merge - Combined Commit Status + The status of auto merging a pull request. """ - state: str - statuses: list[SimpleCommitStatusType] - sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str - url: str - - -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" - - description: Union[str, None] - id: int - node_id: str - state: str - context: str - target_url: Union[str, None] - required: NotRequired[Union[bool, None]] - avatar_url: Union[str, None] - url: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", -) + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] + + +__all__ = ("AutoMergeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0309.py b/githubkit/versions/ghec_v2022_11_28/types/group_0309.py index 13b770a02..118d153dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0309.py @@ -9,29 +9,84 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0067 import TeamType +from .group_0152 import MilestoneType +from .group_0308 import AutoMergeType +from .group_0310 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +from .group_0311 import PullRequestSimplePropLinksType -class StatusType(TypedDict): - """Status +class PullRequestSimpleType(TypedDict): + """Pull Request Simple - The status of a commit. + Pull Request Simple """ url: str - avatar_url: Union[str, None] id: int node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int state: str + locked: bool + title: str + user: Union[None, SimpleUserType] + body: Union[str, None] + labels: list[PullRequestSimplePropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamType], None]] + head: PullRequestSimplePropHeadType + base: PullRequestSimplePropBaseType + links: PullRequestSimplePropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + + +class PullRequestSimplePropLabelsItemsType(TypedDict): + """PullRequestSimplePropLabelsItems""" + + id: int + node_id: str + url: str + name: str description: Union[str, None] - target_url: Union[str, None] - context: str - created_at: str - updated_at: str - creator: Union[None, SimpleUserType] + color: str + default: bool -__all__ = ("StatusType",) +__all__ = ( + "PullRequestSimplePropLabelsItemsType", + "PullRequestSimpleType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0310.py b/githubkit/versions/ghec_v2022_11_28/types/group_0310.py index c1874b34e..1c03aef11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0310.py @@ -9,49 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0019 import LicenseSimpleType -from .group_0217 import CodeOfConductSimpleType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" - code_of_conduct: Union[None, CodeOfConductSimpleType] - code_of_conduct_file: Union[None, CommunityHealthFileType] - license_: Union[None, LicenseSimpleType] - contributing: Union[None, CommunityHealthFileType] - readme: Union[None, CommunityHealthFileType] - issue_template: Union[None, CommunityHealthFileType] - pull_request_template: Union[None, CommunityHealthFileType] + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] + sha: str + user: Union[None, SimpleUserType] -class CommunityHealthFileType(TypedDict): - """Community Health File""" +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" - url: str - html_url: str - - -class CommunityProfileType(TypedDict): - """Community Profile - - Community Profile - """ - - health_percentage: int - description: Union[str, None] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + label: str + ref: str + repo: RepositoryType + sha: str + user: Union[None, SimpleUserType] __all__ = ( - "CommunityHealthFileType", - "CommunityProfilePropFilesType", - "CommunityProfileType", + "PullRequestSimplePropBaseType", + "PullRequestSimplePropHeadType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0311.py b/githubkit/versions/ghec_v2022_11_28/types/group_0311.py index 292dced15..3aee86cf6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0311.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0265 import DiffEntryType -from .group_0266 import CommitType +from .group_0307 import LinkType -class CommitComparisonType(TypedDict): - """Commit Comparison +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" - Commit Comparison - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - url: str - html_url: str - permalink_url: str - diff_url: str - patch_url: str - base_commit: CommitType - merge_base_commit: CommitType - status: Literal["diverged", "ahead", "behind", "identical"] - ahead_by: int - behind_by: int - total_commits: int - commits: list[CommitType] - files: NotRequired[list[DiffEntryType]] - -__all__ = ("CommitComparisonType",) +__all__ = ("PullRequestSimplePropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0312.py b/githubkit/versions/ghec_v2022_11_28/types/group_0312.py index 3c6f67fc5..313c637ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0312.py @@ -9,65 +9,45 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0171 import MinimalRepositoryType -class ContentTreeType(TypedDict): - """Content Tree - Content Tree +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status + + Combined Commit Status """ - type: str - size: int - name: str - path: str + state: str + statuses: list[SimpleCommitStatusType] sha: str - content: NotRequired[str] + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - entries: NotRequired[list[ContentTreePropEntriesItemsType]] - encoding: NotRequired[str] - links: ContentTreePropLinksType - - -class ContentTreePropLinksType(TypedDict): - """ContentTreePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str -class ContentTreePropEntriesItemsType(TypedDict): - """ContentTreePropEntriesItems""" +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - type: str - size: int - name: str - path: str - sha: str + description: Union[str, None] + id: int + node_id: str + state: str + context: str + target_url: Union[str, None] + required: NotRequired[Union[bool, None]] + avatar_url: Union[str, None] url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentTreePropEntriesItemsPropLinksType - - -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str + created_at: datetime + updated_at: datetime __all__ = ( - "ContentTreePropEntriesItemsPropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropLinksType", - "ContentTreeType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0313.py b/githubkit/versions/ghec_v2022_11_28/types/group_0313.py index 74ee6a6e4..13b770a02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0313.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType - - -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" +class StatusType(TypedDict): + """Status - git: Union[str, None] - html: Union[str, None] - self_: str + The status of a commit. + """ - -__all__ = ( - "ContentDirectoryItemsPropLinksType", - "ContentDirectoryItemsType", -) + url: str + avatar_url: Union[str, None] + id: int + node_id: str + state: str + description: Union[str, None] + target_url: Union[str, None] + context: str + created_at: str + updated_at: str + creator: Union[None, SimpleUserType] + + +__all__ = ("StatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0314.py b/githubkit/versions/ghec_v2022_11_28/types/group_0314.py index 2ad4b4ca8..e497adf6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0314.py @@ -9,41 +9,49 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0019 import LicenseSimpleType +from .group_0221 import CodeOfConductSimpleType -class ContentFileType(TypedDict): - """Content File - Content File - """ +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimpleType] + code_of_conduct_file: Union[None, CommunityHealthFileType] + license_: Union[None, LicenseSimpleType] + contributing: Union[None, CommunityHealthFileType] + readme: Union[None, CommunityHealthFileType] + issue_template: Union[None, CommunityHealthFileType] + pull_request_template: Union[None, CommunityHealthFileType] + + +class CommunityHealthFileType(TypedDict): + """Community Health File""" - type: Literal["file"] - encoding: str - size: int - name: str - path: str - content: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentFilePropLinksType - target: NotRequired[str] - submodule_git_url: NotRequired[str] + html_url: str + +class CommunityProfileType(TypedDict): + """Community Profile -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" + Community Profile + """ - git: Union[str, None] - html: Union[str, None] - self_: str + health_percentage: int + description: Union[str, None] + documentation: Union[str, None] + files: CommunityProfilePropFilesType + updated_at: Union[datetime, None] + content_reports_enabled: NotRequired[bool] __all__ = ( - "ContentFilePropLinksType", - "ContentFileType", + "CommunityHealthFileType", + "CommunityProfilePropFilesType", + "CommunityProfileType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0315.py b/githubkit/versions/ghec_v2022_11_28/types/group_0315.py index 0998eda68..b4932df02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0315.py @@ -9,38 +9,32 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0269 import DiffEntryType +from .group_0270 import CommitType -class ContentSymlinkType(TypedDict): - """Symlink Content - An object describing a symlink +class CommitComparisonType(TypedDict): + """Commit Comparison + + Commit Comparison """ - type: Literal["symlink"] - target: str - size: int - name: str - path: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSymlinkPropLinksType - - -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentSymlinkPropLinksType", - "ContentSymlinkType", -) + html_url: str + permalink_url: str + diff_url: str + patch_url: str + base_commit: CommitType + merge_base_commit: CommitType + status: Literal["diverged", "ahead", "behind", "identical"] + ahead_by: int + behind_by: int + total_commits: int + commits: list[CommitType] + files: NotRequired[list[DiffEntryType]] + + +__all__ = ("CommitComparisonType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0316.py b/githubkit/versions/ghec_v2022_11_28/types/group_0316.py index b80d6984e..3c6f67fc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0316.py @@ -9,31 +9,56 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ContentSubmoduleType(TypedDict): - """Submodule Content +class ContentTreeType(TypedDict): + """Content Tree - An object describing a submodule + Content Tree """ - type: Literal["submodule"] - submodule_git_url: str + type: str size: int name: str path: str sha: str + content: NotRequired[str] url: str git_url: Union[str, None] html_url: Union[str, None] download_url: Union[str, None] - links: ContentSubmodulePropLinksType + entries: NotRequired[list[ContentTreePropEntriesItemsType]] + encoding: NotRequired[str] + links: ContentTreePropLinksType -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" +class ContentTreePropLinksType(TypedDict): + """ContentTreePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +class ContentTreePropEntriesItemsType(TypedDict): + """ContentTreePropEntriesItems""" + + type: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentTreePropEntriesItemsPropLinksType + + +class ContentTreePropEntriesItemsPropLinksType(TypedDict): + """ContentTreePropEntriesItemsPropLinks""" git: Union[str, None] html: Union[str, None] @@ -41,6 +66,8 @@ class ContentSubmodulePropLinksType(TypedDict): __all__ = ( - "ContentSubmodulePropLinksType", - "ContentSubmoduleType", + "ContentTreePropEntriesItemsPropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropLinksType", + "ContentTreeType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0317.py b/githubkit/versions/ghec_v2022_11_28/types/group_0317.py index 78a4cf43d..74ee6a6e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0317.py @@ -9,107 +9,35 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class FileCommitType(TypedDict): - """File Commit +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" - File Commit - """ + type: Literal["dir", "file", "submodule", "symlink"] + size: int + name: str + path: str + content: NotRequired[str] + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentDirectoryItemsPropLinksType - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" -class FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" - - name: NotRequired[str] - path: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - html_url: NotRequired[str] - git_url: NotRequired[str] - download_url: NotRequired[str] - type: NotRequired[str] - links: NotRequired[FileCommitPropContentPropLinksType] - - -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" - - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] - - -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" - - sha: NotRequired[str] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - author: NotRequired[FileCommitPropCommitPropAuthorType] - committer: NotRequired[FileCommitPropCommitPropCommitterType] - message: NotRequired[str] - tree: NotRequired[FileCommitPropCommitPropTreeType] - parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] - verification: NotRequired[FileCommitPropCommitPropVerificationType] - - -class FileCommitPropCommitPropAuthorType(TypedDict): - """FileCommitPropCommitPropAuthor""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropCommitterType(TypedDict): - """FileCommitPropCommitPropCommitter""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropTreeType(TypedDict): - """FileCommitPropCommitPropTree""" - - url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropParentsItemsType(TypedDict): - """FileCommitPropCommitPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropVerificationType(TypedDict): - """FileCommitPropCommitPropVerification""" - - verified: NotRequired[bool] - reason: NotRequired[str] - signature: NotRequired[Union[str, None]] - payload: NotRequired[Union[str, None]] - verified_at: NotRequired[Union[str, None]] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropVerificationType", - "FileCommitPropCommitType", - "FileCommitPropContentPropLinksType", - "FileCommitPropContentType", - "FileCommitType", + "ContentDirectoryItemsPropLinksType", + "ContentDirectoryItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0318.py b/githubkit/versions/ghec_v2022_11_28/types/group_0318.py index 82a56dc68..2ad4b4ca8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0318.py @@ -9,53 +9,41 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class RepositoryRuleViolationErrorType(TypedDict): - """RepositoryRuleViolationError +class ContentFileType(TypedDict): + """Content File - Repository rule violation was detected + Content File """ - message: NotRequired[str] - documentation_url: NotRequired[str] - status: NotRequired[str] - metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] + type: Literal["file"] + encoding: str + size: int + name: str + path: str + content: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] -class RepositoryRuleViolationErrorPropMetadataType(TypedDict): - """RepositoryRuleViolationErrorPropMetadata""" +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" - secret_scanning: NotRequired[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningType - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" - - bypass_placeholders: NotRequired[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType - ] - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( - TypedDict -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: NotRequired[str] - token_type: NotRequired[str] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", - "RepositoryRuleViolationErrorPropMetadataType", - "RepositoryRuleViolationErrorType", + "ContentFilePropLinksType", + "ContentFileType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0319.py b/githubkit/versions/ghec_v2022_11_28/types/group_0319.py index 0bcf70515..0998eda68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0319.py @@ -9,38 +9,38 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class ContributorType(TypedDict): - """Contributor +class ContentSymlinkType(TypedDict): + """Symlink Content - Contributor + An object describing a symlink """ - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[Union[str, None]] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: str - site_admin: NotRequired[bool] - contributions: int - email: NotRequired[str] - name: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("ContributorType",) + type: Literal["symlink"] + target: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSymlinkPropLinksType + + +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentSymlinkPropLinksType", + "ContentSymlinkType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0320.py b/githubkit/versions/ghec_v2022_11_28/types/group_0320.py index 91a7ab5fd..b80d6984e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0320.py @@ -9,42 +9,38 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0071 import DependabotAlertSecurityVulnerabilityType -from .group_0072 import DependabotAlertSecurityAdvisoryType -from .group_0321 import DependabotAlertPropDependencyType +class ContentSubmoduleType(TypedDict): + """Submodule Content -class DependabotAlertType(TypedDict): - """DependabotAlert - - A Dependabot alert. + An object describing a submodule """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType + type: Literal["submodule"] + submodule_git_url: str + size: int + name: str + path: str + sha: str url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("DependabotAlertType",) + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSubmodulePropLinksType + + +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentSubmodulePropLinksType", + "ContentSubmoduleType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0321.py b/githubkit/versions/ghec_v2022_11_28/types/group_0321.py index ae7c9243e..78a4cf43d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0321.py @@ -9,22 +9,107 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0070 import DependabotAlertPackageType +class FileCommitType(TypedDict): + """File Commit -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + File Commit """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] - relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] + content: Union[FileCommitPropContentType, None] + commit: FileCommitPropCommitType + + +class FileCommitPropContentType(TypedDict): + """FileCommitPropContent""" + + name: NotRequired[str] + path: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] + html_url: NotRequired[str] + git_url: NotRequired[str] + download_url: NotRequired[str] + type: NotRequired[str] + links: NotRequired[FileCommitPropContentPropLinksType] + + +class FileCommitPropContentPropLinksType(TypedDict): + """FileCommitPropContentPropLinks""" + + self_: NotRequired[str] + git: NotRequired[str] + html: NotRequired[str] + + +class FileCommitPropCommitType(TypedDict): + """FileCommitPropCommit""" + + sha: NotRequired[str] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + author: NotRequired[FileCommitPropCommitPropAuthorType] + committer: NotRequired[FileCommitPropCommitPropCommitterType] + message: NotRequired[str] + tree: NotRequired[FileCommitPropCommitPropTreeType] + parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] + verification: NotRequired[FileCommitPropCommitPropVerificationType] + + +class FileCommitPropCommitPropAuthorType(TypedDict): + """FileCommitPropCommitPropAuthor""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropCommitterType(TypedDict): + """FileCommitPropCommitPropCommitter""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropTreeType(TypedDict): + """FileCommitPropCommitPropTree""" + + url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropParentsItemsType(TypedDict): + """FileCommitPropCommitPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropVerificationType(TypedDict): + """FileCommitPropCommitPropVerification""" + + verified: NotRequired[bool] + reason: NotRequired[str] + signature: NotRequired[Union[str, None]] + payload: NotRequired[Union[str, None]] + verified_at: NotRequired[Union[str, None]] -__all__ = ("DependabotAlertPropDependencyType",) +__all__ = ( + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropVerificationType", + "FileCommitPropCommitType", + "FileCommitPropContentPropLinksType", + "FileCommitPropContentType", + "FileCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0322.py b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py index b061be26e..82a56dc68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py @@ -9,35 +9,53 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class DependencyGraphDiffItemsType(TypedDict): - """DependencyGraphDiffItems""" +class RepositoryRuleViolationErrorType(TypedDict): + """RepositoryRuleViolationError - change_type: Literal["added", "removed"] - manifest: str - ecosystem: str - name: str - version: str - package_url: Union[str, None] - license_: Union[str, None] - source_repository_url: Union[str, None] - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] - scope: Literal["unknown", "runtime", "development"] + Repository rule violation was detected + """ + message: NotRequired[str] + documentation_url: NotRequired[str] + status: NotRequired[str] + metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] -class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - severity: str - advisory_ghsa_id: str - advisory_summary: str - advisory_url: str +class RepositoryRuleViolationErrorPropMetadataType(TypedDict): + """RepositoryRuleViolationErrorPropMetadata""" + + secret_scanning: NotRequired[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningType + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + + bypass_placeholders: NotRequired[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType + ] + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( + TypedDict +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: NotRequired[str] + token_type: NotRequired[str] __all__ = ( - "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", - "DependencyGraphDiffItemsType", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", + "RepositoryRuleViolationErrorPropMetadataType", + "RepositoryRuleViolationErrorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0323.py b/githubkit/versions/ghec_v2022_11_28/types/group_0323.py index 489a3ce99..0bcf70515 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0323.py @@ -9,81 +9,38 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM +class ContributorType(TypedDict): + """Contributor - A schema for the SPDX JSON format returned by the Dependency Graph. + Contributor """ - sbom: DependencyGraphSpdxSbomPropSbomType - - -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str - spdx_version: str - comment: NotRequired[str] - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType - name: str - data_license: str - document_namespace: str - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] - relationships: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str - creators: list[str] - - -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - - relationship_type: NotRequired[str] - spdx_element_id: NotRequired[str] - related_spdx_element: NotRequired[str] - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: NotRequired[str] + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[Union[str, None]] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: str + site_admin: NotRequired[bool] + contributions: int + email: NotRequired[str] name: NotRequired[str] - version_info: NotRequired[str] - download_location: NotRequired[str] - files_analyzed: NotRequired[bool] - license_concluded: NotRequired[str] - license_declared: NotRequired[str] - supplier: NotRequired[str] - copyright_text: NotRequired[str] - external_refs: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( - TypedDict -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - - reference_category: str - reference_locator: str - reference_type: str + user_view_type: NotRequired[str] -__all__ = ( - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomType", -) +__all__ = ("ContributorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0324.py b/githubkit/versions/ghec_v2022_11_28/types/group_0324.py index 75968e9b1..f12e37ab5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0324.py @@ -9,15 +9,42 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias - -MetadataType: TypeAlias = dict[str, Any] -"""metadata - -User-defined metadata to store domain-specific information limited to 8 keys -with scalar values. -""" - - -__all__ = ("MetadataType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0071 import DependabotAlertSecurityVulnerabilityType +from .group_0072 import DependabotAlertSecurityAdvisoryType +from .group_0325 import DependabotAlertPropDependencyType + + +class DependabotAlertType(TypedDict): + """DependabotAlert + + A Dependabot alert. + """ + + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType + url: str + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + + +__all__ = ("DependabotAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0325.py b/githubkit/versions/ghec_v2022_11_28/types/group_0325.py index e65876b62..ae7c9243e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0325.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0324 import MetadataType +from .group_0070 import DependabotAlertPackageType -class DependencyType(TypedDict): - """Dependency""" +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[list[str]] + Details for the vulnerable dependency. + """ + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] -__all__ = ("DependencyType",) + +__all__ = ("DependabotAlertPropDependencyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0326.py b/githubkit/versions/ghec_v2022_11_28/types/group_0326.py index a7d8a166e..b061be26e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0326.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0324 import MetadataType +class DependencyGraphDiffItemsType(TypedDict): + """DependencyGraphDiffItems""" -class ManifestType(TypedDict): - """Manifest""" - + change_type: Literal["added", "removed"] + manifest: str + ecosystem: str name: str - file: NotRequired[ManifestPropFileType] - metadata: NotRequired[MetadataType] - resolved: NotRequired[ManifestPropResolvedType] - - -class ManifestPropFileType(TypedDict): - """ManifestPropFile""" + version: str + package_url: Union[str, None] + license_: Union[str, None] + source_repository_url: Union[str, None] + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] + scope: Literal["unknown", "runtime", "development"] - source_location: NotRequired[str] +class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" -ManifestPropResolvedType: TypeAlias = dict[str, Any] -"""ManifestPropResolved - -A collection of resolved package dependencies. -""" + severity: str + advisory_ghsa_id: str + advisory_summary: str + advisory_url: str __all__ = ( - "ManifestPropFileType", - "ManifestPropResolvedType", - "ManifestType", + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "DependencyGraphDiffItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0327.py b/githubkit/versions/ghec_v2022_11_28/types/group_0327.py index 935bfd988..489a3ce99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0327.py @@ -9,59 +9,81 @@ from __future__ import annotations -from datetime import datetime -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0324 import MetadataType +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM -class SnapshotType(TypedDict): - """snapshot - - Create a new snapshot of a repository's dependencies. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType - metadata: NotRequired[MetadataType] - manifests: NotRequired[SnapshotPropManifestsType] - scanned: datetime + sbom: DependencyGraphSpdxSbomPropSbomType -class SnapshotPropJobType(TypedDict): - """SnapshotPropJob""" +class DependencyGraphSpdxSbomPropSbomType(TypedDict): + """DependencyGraphSpdxSbomPropSbom""" - id: str - correlator: str - html_url: NotRequired[str] + spdxid: str + spdx_version: str + comment: NotRequired[str] + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType + name: str + data_license: str + document_namespace: str + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] + relationships: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] + ] -class SnapshotPropDetectorType(TypedDict): - """SnapshotPropDetector +class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - A description of the detector used. - """ + created: str + creators: list[str] - name: str - version: str - url: str +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" -SnapshotPropManifestsType: TypeAlias = dict[str, Any] -"""SnapshotPropManifests + relationship_type: NotRequired[str] + spdx_element_id: NotRequired[str] + related_spdx_element: NotRequired[str] -A collection of package manifests, which are a collection of related -dependencies declared in a file or representing a logical group of dependencies. -""" + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: NotRequired[str] + name: NotRequired[str] + version_info: NotRequired[str] + download_location: NotRequired[str] + files_analyzed: NotRequired[bool] + license_concluded: NotRequired[str] + license_declared: NotRequired[str] + supplier: NotRequired[str] + copyright_text: NotRequired[str] + external_refs: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] + ] + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( + TypedDict +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" + + reference_category: str + reference_locator: str + reference_type: str __all__ = ( - "SnapshotPropDetectorType", - "SnapshotPropJobType", - "SnapshotPropManifestsType", - "SnapshotType", + "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", + "DependencyGraphSpdxSbomPropSbomType", + "DependencyGraphSpdxSbomType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0328.py b/githubkit/versions/ghec_v2022_11_28/types/group_0328.py index 8e3d71848..75968e9b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0328.py @@ -9,37 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType - - -class DeploymentStatusType(TypedDict): - """Deployment Status - - The status of a deployment. - """ - - url: str - id: int - node_id: str - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] - creator: Union[None, SimpleUserType] - description: str - environment: NotRequired[str] - target_url: str - created_at: datetime - updated_at: datetime - deployment_url: str - repository_url: str - environment_url: NotRequired[str] - log_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentStatusType",) +from typing import Any +from typing_extensions import TypeAlias + +MetadataType: TypeAlias = dict[str, Any] +"""metadata + +User-defined metadata to store domain-specific information limited to 8 keys +with scalar values. +""" + + +__all__ = ("MetadataType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0329.py b/githubkit/versions/ghec_v2022_11_28/types/group_0329.py index 2b9241c94..9e655a353 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0329.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0328 import MetadataType -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ +class DependencyType(TypedDict): + """Dependency""" - protected_branches: bool - custom_branch_policies: bool + package_url: NotRequired[str] + metadata: NotRequired[MetadataType] + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[list[str]] -__all__ = ("DeploymentBranchPolicySettingsType",) +__all__ = ("DependencyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0330.py b/githubkit/versions/ghec_v2022_11_28/types/group_0330.py index 092343af9..00f0a989b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0330.py @@ -9,68 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0329 import DeploymentBranchPolicySettingsType -from .group_0331 import EnvironmentPropProtectionRulesItemsAnyof1Type +from .group_0328 import MetadataType -class EnvironmentType(TypedDict): - """Environment +class ManifestType(TypedDict): + """Manifest""" - Details of a deployment environment - """ - - id: int - node_id: str name: str - url: str - html_url: str - created_at: datetime - updated_at: datetime - protection_rules: NotRequired[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0Type, - EnvironmentPropProtectionRulesItemsAnyof1Type, - EnvironmentPropProtectionRulesItemsAnyof2Type, - ] - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] - - -class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof0""" + file: NotRequired[ManifestPropFileType] + metadata: NotRequired[MetadataType] + resolved: NotRequired[ManifestPropResolvedType] - id: int - node_id: str - type: str - wait_timer: NotRequired[int] +class ManifestPropFileType(TypedDict): + """ManifestPropFile""" -class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof2""" + source_location: NotRequired[str] - id: int - node_id: str - type: str +ManifestPropResolvedType: TypeAlias = dict[str, Any] +"""ManifestPropResolved -class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: NotRequired[int] - environments: NotRequired[list[EnvironmentType]] +A collection of resolved package dependencies. +""" __all__ = ( - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "EnvironmentType", - "ReposOwnerRepoEnvironmentsGetResponse200Type", + "ManifestPropFileType", + "ManifestPropResolvedType", + "ManifestType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0331.py b/githubkit/versions/ghec_v2022_11_28/types/group_0331.py index 2e37066f8..aa62f07f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0331.py @@ -9,21 +9,59 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0332 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +from .group_0328 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class SnapshotType(TypedDict): + """snapshot - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] + Create a new snapshot of a repository's dependencies. + """ + version: int + job: SnapshotPropJobType + sha: str + ref: str + detector: SnapshotPropDetectorType + metadata: NotRequired[MetadataType] + manifests: NotRequired[SnapshotPropManifestsType] + scanned: datetime -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) + +class SnapshotPropJobType(TypedDict): + """SnapshotPropJob""" + + id: str + correlator: str + html_url: NotRequired[str] + + +class SnapshotPropDetectorType(TypedDict): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str + version: str + url: str + + +SnapshotPropManifestsType: TypeAlias = dict[str, Any] +"""SnapshotPropManifests + +A collection of package manifests, which are a collection of related +dependencies declared in a file or representing a logical group of dependencies. +""" + + +__all__ = ( + "SnapshotPropDetectorType", + "SnapshotPropJobType", + "SnapshotPropManifestsType", + "SnapshotType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0332.py b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py index a78f5c8c6..8e3d71848 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py @@ -9,18 +9,37 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0067 import TeamType - - -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] - - -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) +from .group_0010 import IntegrationType + + +class DeploymentStatusType(TypedDict): + """Deployment Status + + The status of a deployment. + """ + + url: str + id: int + node_id: str + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] + creator: Union[None, SimpleUserType] + description: str + environment: NotRequired[str] + target_url: str + created_at: datetime + updated_at: datetime + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py index 35c7c1f2a..2b9241c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py @@ -9,15 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings - name: str - type: NotRequired[Literal["branch", "tag"]] + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ + protected_branches: bool + custom_branch_policies: bool -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) + +__all__ = ("DeploymentBranchPolicySettingsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0334.py b/githubkit/versions/ghec_v2022_11_28/types/group_0334.py index 784015c57..dcaafaeef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0334.py @@ -9,13 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0333 import DeploymentBranchPolicySettingsType +from .group_0335 import EnvironmentPropProtectionRulesItemsAnyof1Type -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" +class EnvironmentType(TypedDict): + """Environment + + Details of a deployment environment + """ + + id: int + node_id: str name: str + url: str + html_url: str + created_at: datetime + updated_at: datetime + protection_rules: NotRequired[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0Type, + EnvironmentPropProtectionRulesItemsAnyof1Type, + EnvironmentPropProtectionRulesItemsAnyof2Type, + ] + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] + + +class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int + node_id: str + type: str + wait_timer: NotRequired[int] + + +class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int + node_id: str + type: str + + +class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: NotRequired[int] + environments: NotRequired[list[EnvironmentType]] -__all__ = ("DeploymentBranchPolicyNamePatternType",) +__all__ = ( + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "EnvironmentType", + "ReposOwnerRepoEnvironmentsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0335.py b/githubkit/versions/ghec_v2022_11_28/types/group_0335.py index 55685e749..721408e3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0335.py @@ -9,19 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0336 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. - """ +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" id: int - slug: str - integration_url: str node_id: str + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ("CustomDeploymentRuleAppType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0336.py b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py index 2d5c6ac9f..a78f5c8c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py @@ -9,37 +9,18 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0335 import CustomDeploymentRuleAppType +from .group_0003 import SimpleUserType +from .group_0067 import TeamType -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - Deployment protection rule - """ + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] - id: int - node_id: str - enabled: bool - app: CustomDeploymentRuleAppType - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: NotRequired[int] - custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] - - -__all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0337.py b/githubkit/versions/ghec_v2022_11_28/types/group_0337.py index deb8a4c9a..35c7c1f2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0337.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ShortBlobType(TypedDict): - """Short Blob +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - Short Blob - """ + name: str + type: NotRequired[Literal["branch", "tag"]] - url: str - sha: str - -__all__ = ("ShortBlobType",) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0338.py b/githubkit/versions/ghec_v2022_11_28/types/group_0338.py index 7145ff7f3..784015c57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0338.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BlobType(TypedDict): - """Blob +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" - Blob - """ + name: str - content: str - encoding: str - url: str - sha: str - size: Union[int, None] - node_id: str - highlighted_content: NotRequired[str] - -__all__ = ("BlobType",) +__all__ = ("DeploymentBranchPolicyNamePatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0339.py b/githubkit/versions/ghec_v2022_11_28/types/group_0339.py index cb7d784df..55685e749 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0339.py @@ -9,81 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import TypedDict -class GitCommitType(TypedDict): - """Git Commit +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app - Low-level Git commit operations within a repository + A GitHub App that is providing a custom deployment protection rule. """ - sha: str + id: int + slug: str + integration_url: str node_id: str - url: str - author: GitCommitPropAuthorType - committer: GitCommitPropCommitterType - message: str - tree: GitCommitPropTreeType - parents: list[GitCommitPropParentsItemsType] - verification: GitCommitPropVerificationType - html_url: str -class GitCommitPropAuthorType(TypedDict): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropCommitterType(TypedDict): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropTreeType(TypedDict): - """GitCommitPropTree""" - - sha: str - url: str - - -class GitCommitPropParentsItemsType(TypedDict): - """GitCommitPropParentsItems""" - - sha: str - url: str - html_url: str - - -class GitCommitPropVerificationType(TypedDict): - """GitCommitPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: Union[str, None] - - -__all__ = ( - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropParentsItemsType", - "GitCommitPropTreeType", - "GitCommitPropVerificationType", - "GitCommitType", -) +__all__ = ("CustomDeploymentRuleAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0340.py b/githubkit/versions/ghec_v2022_11_28/types/group_0340.py index 5f8d78e7c..0557550d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0340.py @@ -9,30 +9,37 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0339 import CustomDeploymentRuleAppType -class GitRefType(TypedDict): - """Git Reference - Git references within a repository +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule + + Deployment protection rule """ - ref: str + id: int node_id: str - url: str - object_: GitRefPropObjectType + enabled: bool + app: CustomDeploymentRuleAppType + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - type: str - sha: str - url: str + total_count: NotRequired[int] + custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] __all__ = ( - "GitRefPropObjectType", - "GitRefType", + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0341.py b/githubkit/versions/ghec_v2022_11_28/types/group_0341.py index 753c6e70d..deb8a4c9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0341.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0264 import VerificationType +class ShortBlobType(TypedDict): + """Short Blob -class GitTagType(TypedDict): - """Git Tag - - Metadata for a Git tag + Short Blob """ - node_id: str - tag: str - sha: str url: str - message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] - - -class GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" - - date: str - email: str - name: str - - -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" - sha: str - type: str - url: str -__all__ = ( - "GitTagPropObjectType", - "GitTagPropTaggerType", - "GitTagType", -) +__all__ = ("ShortBlobType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0342.py b/githubkit/versions/ghec_v2022_11_28/types/group_0342.py index 6559266ff..7145ff7f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0342.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0342.py @@ -9,33 +9,23 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class GitTreeType(TypedDict): - """Git Tree +class BlobType(TypedDict): + """Blob - The hierarchy between files in a Git repository. + Blob """ + content: str + encoding: str + url: str sha: str - url: NotRequired[str] - truncated: bool - tree: list[GitTreePropTreeItemsType] + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" - - path: str - mode: str - type: str - sha: str - size: NotRequired[int] - url: NotRequired[str] - - -__all__ = ( - "GitTreePropTreeItemsType", - "GitTreeType", -) +__all__ = ("BlobType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0343.py b/githubkit/versions/ghec_v2022_11_28/types/group_0343.py index 2763aab9e..cb7d784df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0343.py @@ -9,16 +9,81 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import TypedDict -class HookResponseType(TypedDict): - """Hook Response""" +class GitCommitType(TypedDict): + """Git Commit - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] + Low-level Git commit operations within a repository + """ + sha: str + node_id: str + url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType + message: str + tree: GitCommitPropTreeType + parents: list[GitCommitPropParentsItemsType] + verification: GitCommitPropVerificationType + html_url: str -__all__ = ("HookResponseType",) + +class GitCommitPropAuthorType(TypedDict): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str + url: str + + +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" + + sha: str + url: str + html_url: str + + +class GitCommitPropVerificationType(TypedDict): + """GitCommitPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] + + +__all__ = ( + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropParentsItemsType", + "GitCommitPropTreeType", + "GitCommitPropVerificationType", + "GitCommitType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0344.py b/githubkit/versions/ghec_v2022_11_28/types/group_0344.py index 0031e71fd..5f8d78e7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0344.py @@ -9,32 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0011 import WebhookConfigType -from .group_0343 import HookResponseType +class GitRefType(TypedDict): + """Git Reference -class HookType(TypedDict): - """Webhook - - Webhooks for repositories. + Git references within a repository """ + ref: str + node_id: str + url: str + object_: GitRefPropObjectType + + +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" + type: str - id: int - name: str - active: bool - events: list[str] - config: WebhookConfigType - updated_at: datetime - created_at: datetime + sha: str url: str - test_url: str - ping_url: str - deliveries_url: NotRequired[str] - last_response: HookResponseType -__all__ = ("HookType",) +__all__ = ( + "GitRefPropObjectType", + "GitRefType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0345.py b/githubkit/versions/ghec_v2022_11_28/types/group_0345.py index 991490339..d2f42a898 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0345.py @@ -9,67 +9,45 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0268 import VerificationType -class ImportType(TypedDict): - """Import - A repository import from an external source. +class GitTagType(TypedDict): + """Git Tag + + Metadata for a Git tag """ - vcs: Union[str, None] - use_lfs: NotRequired[bool] - vcs_url: str - svc_root: NotRequired[str] - tfvc_project: NotRequired[str] - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] - status_text: NotRequired[Union[str, None]] - failed_step: NotRequired[Union[str, None]] - error_message: NotRequired[Union[str, None]] - import_percent: NotRequired[Union[int, None]] - commit_count: NotRequired[Union[int, None]] - push_percent: NotRequired[Union[int, None]] - has_large_files: NotRequired[bool] - large_files_size: NotRequired[int] - large_files_count: NotRequired[int] - project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] - message: NotRequired[str] - authors_count: NotRequired[Union[int, None]] + node_id: str + tag: str + sha: str url: str - html_url: str - authors_url: str - repository_url: str - svn_root: NotRequired[str] + message: str + tagger: GitTagPropTaggerType + object_: GitTagPropObjectType + verification: NotRequired[VerificationType] + + +class GitTagPropTaggerType(TypedDict): + """GitTagPropTagger""" + date: str + email: str + name: str -class ImportPropProjectChoicesItemsType(TypedDict): - """ImportPropProjectChoicesItems""" - vcs: NotRequired[str] - tfvc_project: NotRequired[str] - human_name: NotRequired[str] +class GitTagPropObjectType(TypedDict): + """GitTagPropObject""" + + sha: str + type: str + url: str __all__ = ( - "ImportPropProjectChoicesItemsType", - "ImportType", + "GitTagPropObjectType", + "GitTagPropTaggerType", + "GitTagType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0346.py b/githubkit/versions/ghec_v2022_11_28/types/group_0346.py index a760ba55a..6559266ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0346.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class PorterAuthorType(TypedDict): - """Porter Author +class GitTreeType(TypedDict): + """Git Tree - Porter Author + The hierarchy between files in a Git repository. """ - id: int - remote_id: str - remote_name: str - email: str - name: str - url: str - import_url: str + sha: str + url: NotRequired[str] + truncated: bool + tree: list[GitTreePropTreeItemsType] -__all__ = ("PorterAuthorType",) +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" + + path: str + mode: str + type: str + sha: str + size: NotRequired[int] + url: NotRequired[str] + + +__all__ = ( + "GitTreePropTreeItemsType", + "GitTreeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0347.py b/githubkit/versions/ghec_v2022_11_28/types/group_0347.py index ae1425148..2763aab9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0347.py @@ -9,19 +9,16 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class PorterLargeFileType(TypedDict): - """Porter Large File +class HookResponseType(TypedDict): + """Hook Response""" - Porter Large File - """ + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - ref_name: str - path: str - oid: str - size: int - -__all__ = ("PorterLargeFileType",) +__all__ = ("HookResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0348.py b/githubkit/versions/ghec_v2022_11_28/types/group_0348.py index 8ab0eaf24..65083e2ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0348.py @@ -10,113 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0067 import TeamType -from .group_0152 import IssueType +from .group_0011 import WebhookConfigType +from .group_0347 import HookResponseType -class IssueEventType(TypedDict): - """Issue Event +class HookType(TypedDict): + """Webhook - Issue Event + Webhooks for repositories. """ + type: str id: int - node_id: str - url: str - actor: Union[None, SimpleUserType] - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] + name: str + active: bool + events: list[str] + config: WebhookConfigType + updated_at: datetime created_at: datetime - issue: NotRequired[Union[None, IssueType]] - label: NotRequired[IssueEventLabelType] - assignee: NotRequired[Union[None, SimpleUserType]] - assigner: NotRequired[Union[None, SimpleUserType]] - review_requester: NotRequired[Union[None, SimpleUserType]] - requested_reviewer: NotRequired[Union[None, SimpleUserType]] - requested_team: NotRequired[TeamType] - dismissed_review: NotRequired[IssueEventDismissedReviewType] - milestone: NotRequired[IssueEventMilestoneType] - project_card: NotRequired[IssueEventProjectCardType] - rename: NotRequired[IssueEventRenameType] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - lock_reason: NotRequired[Union[str, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -class IssueEventLabelType(TypedDict): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] - color: Union[str, None] - - -class IssueEventDismissedReviewType(TypedDict): - """Issue Event Dismissed Review""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[Union[str, None]] - - -class IssueEventMilestoneType(TypedDict): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str - - -class IssueEventProjectCardType(TypedDict): - """Issue Event Project Card - - Issue Event Project Card - """ - url: str - id: int - project_url: str - project_id: int - column_name: str - previous_column_name: NotRequired[str] - - -class IssueEventRenameType(TypedDict): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str - to: str + test_url: str + ping_url: str + deliveries_url: NotRequired[str] + last_response: HookResponseType -__all__ = ( - "IssueEventDismissedReviewType", - "IssueEventLabelType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", - "IssueEventType", -) +__all__ = ("HookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0349.py b/githubkit/versions/ghec_v2022_11_28/types/group_0349.py index e030b2d8c..991490339 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0349.py @@ -10,38 +10,66 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class ImportType(TypedDict): + """Import -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event - - Labeled Issue Event + A repository import from an external source. """ - id: int - node_id: str + vcs: Union[str, None] + use_lfs: NotRequired[bool] + vcs_url: str + svc_root: NotRequired[str] + tfvc_project: NotRequired[str] + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] + status_text: NotRequired[Union[str, None]] + failed_step: NotRequired[Union[str, None]] + error_message: NotRequired[Union[str, None]] + import_percent: NotRequired[Union[int, None]] + commit_count: NotRequired[Union[int, None]] + push_percent: NotRequired[Union[int, None]] + has_large_files: NotRequired[bool] + large_files_size: NotRequired[int] + large_files_count: NotRequired[int] + project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] + message: NotRequired[str] + authors_count: NotRequired[Union[int, None]] url: str - actor: SimpleUserType - event: Literal["labeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: LabeledIssueEventPropLabelType + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] -class LabeledIssueEventPropLabelType(TypedDict): - """LabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" - name: str - color: str + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] __all__ = ( - "LabeledIssueEventPropLabelType", - "LabeledIssueEventType", + "ImportPropProjectChoicesItemsType", + "ImportType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0350.py b/githubkit/versions/ghec_v2022_11_28/types/group_0350.py index 94fd5f2f1..a760ba55a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0350.py @@ -9,39 +9,22 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class PorterAuthorType(TypedDict): + """Porter Author -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event - - Unlabeled Issue Event + Porter Author """ id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["unlabeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: UnlabeledIssueEventPropLabelType - - -class UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" - + remote_id: str + remote_name: str + email: str name: str - color: str + url: str + import_url: str -__all__ = ( - "UnlabeledIssueEventPropLabelType", - "UnlabeledIssueEventType", -) +__all__ = ("PorterAuthorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0351.py b/githubkit/versions/ghec_v2022_11_28/types/group_0351.py index 735f4766c..ae1425148 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0351.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event - - Assigned Issue Event + Porter Large File """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + ref_name: str + path: str + oid: str + size: int -__all__ = ("AssignedIssueEventType",) +__all__ = ("PorterLargeFileType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0352.py b/githubkit/versions/ghec_v2022_11_28/types/group_0352.py index cee4c2513..1028151b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0352.py @@ -9,30 +9,114 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0067 import TeamType +from .group_0155 import IssueType -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event +class IssueEventType(TypedDict): + """Issue Event - Unassigned Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType + actor: Union[None, SimpleUserType] event: str commit_id: Union[str, None] commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + created_at: datetime + issue: NotRequired[Union[None, IssueType]] + label: NotRequired[IssueEventLabelType] + assignee: NotRequired[Union[None, SimpleUserType]] + assigner: NotRequired[Union[None, SimpleUserType]] + review_requester: NotRequired[Union[None, SimpleUserType]] + requested_reviewer: NotRequired[Union[None, SimpleUserType]] + requested_team: NotRequired[TeamType] + dismissed_review: NotRequired[IssueEventDismissedReviewType] + milestone: NotRequired[IssueEventMilestoneType] + project_card: NotRequired[IssueEventProjectCardType] + rename: NotRequired[IssueEventRenameType] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + lock_reason: NotRequired[Union[str, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -__all__ = ("UnassignedIssueEventType",) +class IssueEventLabelType(TypedDict): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] + color: Union[str, None] + + +class IssueEventDismissedReviewType(TypedDict): + """Issue Event Dismissed Review""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[Union[str, None]] + + +class IssueEventMilestoneType(TypedDict): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str + + +class IssueEventProjectCardType(TypedDict): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str + id: int + project_url: str + project_id: int + column_name: str + previous_column_name: NotRequired[str] + + +class IssueEventRenameType(TypedDict): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str + to: str + + +__all__ = ( + "IssueEventDismissedReviewType", + "IssueEventLabelType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", + "IssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0353.py b/githubkit/versions/ghec_v2022_11_28/types/group_0353.py index 2b6b9a914..e030b2d8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0353.py @@ -16,31 +16,32 @@ from .group_0010 import IntegrationType -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Milestoned Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["milestoned"] + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType + label: LabeledIssueEventPropLabelType -class MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" - title: str + name: str + color: str __all__ = ( - "MilestonedIssueEventPropMilestoneType", - "MilestonedIssueEventType", + "LabeledIssueEventPropLabelType", + "LabeledIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0354.py b/githubkit/versions/ghec_v2022_11_28/types/group_0354.py index dfaf3aff4..94fd5f2f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0354.py @@ -16,31 +16,32 @@ from .group_0010 import IntegrationType -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Demilestoned Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["demilestoned"] + event: Literal["unlabeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - milestone: DemilestonedIssueEventPropMilestoneType + label: UnlabeledIssueEventPropLabelType -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" - title: str + name: str + color: str __all__ = ( - "DemilestonedIssueEventPropMilestoneType", - "DemilestonedIssueEventType", + "UnlabeledIssueEventPropLabelType", + "UnlabeledIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0355.py b/githubkit/versions/ghec_v2022_11_28/types/group_0355.py index 6d9cdf5e9..735f4766c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0355.py @@ -9,39 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Renamed Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["renamed"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" - - from_: str - to: str - - -__all__ = ( - "RenamedIssueEventPropRenameType", - "RenamedIssueEventType", -) +__all__ = ("AssignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0356.py b/githubkit/versions/ghec_v2022_11_28/types/group_0356.py index 99c62d0f5..cee4c2513 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0356.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0067 import TeamType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Review Requested Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + assignee: SimpleUserType + assigner: SimpleUserType -__all__ = ("ReviewRequestedIssueEventType",) +__all__ = ("UnassignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0357.py b/githubkit/versions/ghec_v2022_11_28/types/group_0357.py index 97d6c7404..2b6b9a914 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0357.py @@ -10,31 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0067 import TeamType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Review Request Removed Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + milestone: MilestonedIssueEventPropMilestoneType -__all__ = ("ReviewRequestRemovedIssueEventType",) +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" + + title: str + + +__all__ = ( + "MilestonedIssueEventPropMilestoneType", + "MilestonedIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0358.py b/githubkit/versions/ghec_v2022_11_28/types/group_0358.py index 160c5a57c..dfaf3aff4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0358.py @@ -10,40 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Review Dismissed Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + milestone: DemilestonedIssueEventPropMilestoneType -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] + title: str __all__ = ( - "ReviewDismissedIssueEventPropDismissedReviewType", - "ReviewDismissedIssueEventType", + "DemilestonedIssueEventPropMilestoneType", + "DemilestonedIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0359.py b/githubkit/versions/ghec_v2022_11_28/types/group_0359.py index 1c8f2b944..6d9cdf5e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0359.py @@ -16,22 +16,32 @@ from .group_0010 import IntegrationType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Locked Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + event: Literal["renamed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - lock_reason: Union[str, None] + rename: RenamedIssueEventPropRenameType -__all__ = ("LockedIssueEventType",) +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" + + from_: str + to: str + + +__all__ = ( + "RenamedIssueEventPropRenameType", + "RenamedIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0360.py b/githubkit/versions/ghec_v2022_11_28/types/group_0360.py index c1191415d..99c62d0f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0360.py @@ -14,38 +14,27 @@ from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0067 import TeamType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Added to Project Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["review_requested"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "AddedToProjectIssueEventPropProjectCardType", - "AddedToProjectIssueEventType", -) +__all__ = ("ReviewRequestedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0361.py b/githubkit/versions/ghec_v2022_11_28/types/group_0361.py index c8c8ecbcf..97d6c7404 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0361.py @@ -14,38 +14,27 @@ from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0067 import TeamType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Moved Column in Project Issue Event + Review Request Removed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["review_request_removed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "MovedColumnInProjectIssueEventPropProjectCardType", - "MovedColumnInProjectIssueEventType", -) +__all__ = ("ReviewRequestRemovedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0362.py b/githubkit/versions/ghec_v2022_11_28/types/group_0362.py index 8616df3d4..160c5a57c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0362.py @@ -16,36 +16,34 @@ from .group_0010 import IntegrationType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Removed from Project Issue Event + Review Dismissed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + event: Literal["review_dismissed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[str] __all__ = ( - "RemovedFromProjectIssueEventPropProjectCardType", - "RemovedFromProjectIssueEventType", + "ReviewDismissedIssueEventPropDismissedReviewType", + "ReviewDismissedIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0363.py b/githubkit/versions/ghec_v2022_11_28/types/group_0363.py index 03ad239c9..1c8f2b944 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0363.py @@ -10,42 +10,28 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class LockedIssueEventType(TypedDict): + """Locked Issue Event - Converted Note to Issue Issue Event + Locked Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["locked"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[IntegrationType, None] - project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] + performed_via_github_app: Union[None, IntegrationType, None] + lock_reason: Union[str, None] -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "ConvertedNoteToIssueIssueEventPropProjectCardType", - "ConvertedNoteToIssueIssueEventType", -) +__all__ = ("LockedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0364.py b/githubkit/versions/ghec_v2022_11_28/types/group_0364.py index 04782c1ab..c1191415d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0364.py @@ -9,46 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0151 import ReactionRollupType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event - Timeline Comment Event + Added to Project Issue Event """ - event: Literal["commented"] - actor: SimpleUserType id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: SimpleUserType - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TimelineCommentEventType",) + actor: SimpleUserType + event: Literal["added_to_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + + +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "AddedToProjectIssueEventPropProjectCardType", + "AddedToProjectIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0365.py b/githubkit/versions/ghec_v2022_11_28/types/group_0365.py index 2e27d4013..c8c8ecbcf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0365.py @@ -9,25 +9,43 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0366 import TimelineCrossReferencedEventPropSourceType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - Timeline Cross Referenced Event + Moved Column in Project Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType - - -__all__ = ("TimelineCrossReferencedEventType",) + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["moved_columns_in_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + + +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "MovedColumnInProjectIssueEventPropProjectCardType", + "MovedColumnInProjectIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0366.py b/githubkit/versions/ghec_v2022_11_28/types/group_0366.py index c00928c14..8616df3d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0366.py @@ -9,16 +9,43 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0152 import IssueType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - type: NotRequired[str] - issue: NotRequired[IssueType] + Removed from Project Issue Event + """ + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["removed_from_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] -__all__ = ("TimelineCrossReferencedEventPropSourceType",) + +class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "RemovedFromProjectIssueEventPropProjectCardType", + "RemovedFromProjectIssueEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0367.py b/githubkit/versions/ghec_v2022_11_28/types/group_0367.py index 11c95229f..03ad239c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0367.py @@ -9,82 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCommittedEventType(TypedDict): - """Timeline Committed Event - Timeline Committed Event - """ - - event: NotRequired[Literal["committed"]] - sha: str - node_id: str - url: str - author: TimelineCommittedEventPropAuthorType - committer: TimelineCommittedEventPropCommitterType - message: str - tree: TimelineCommittedEventPropTreeType - parents: list[TimelineCommittedEventPropParentsItemsType] - verification: TimelineCommittedEventPropVerificationType - html_url: str - - -class TimelineCommittedEventPropAuthorType(TypedDict): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - -class TimelineCommittedEventPropCommitterType(TypedDict): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user + Converted Note to Issue Issue Event """ - date: datetime - email: str - name: str - - -class TimelineCommittedEventPropTreeType(TypedDict): - """TimelineCommittedEventPropTree""" - - sha: str + id: int + node_id: str url: str + actor: SimpleUserType + event: Literal["converted_note_to_issue"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[IntegrationType, None] + project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] -class TimelineCommittedEventPropParentsItemsType(TypedDict): - """TimelineCommittedEventPropParentsItems""" +class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - sha: str + id: int url: str - html_url: str - - -class TimelineCommittedEventPropVerificationType(TypedDict): - """TimelineCommittedEventPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: Union[str, None] + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropVerificationType", - "TimelineCommittedEventType", + "ConvertedNoteToIssueIssueEventPropProjectCardType", + "ConvertedNoteToIssueIssueEventType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0368.py b/githubkit/versions/ghec_v2022_11_28/types/group_0368.py index 19ca5be38..1fd1ec3c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0368.py @@ -14,27 +14,29 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0154 import ReactionRollupType -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event - Timeline Reviewed Event + Timeline Comment Event """ - event: Literal["reviewed"] + event: Literal["commented"] + actor: SimpleUserType id: int node_id: str - user: SimpleUserType - body: Union[str, None] - state: str + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] html_url: str - pull_request_url: str - links: TimelineReviewedEventPropLinksType - submitted_at: NotRequired[datetime] - commit_id: str - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] + user: SimpleUserType + created_at: datetime + updated_at: datetime + issue_url: str author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -45,30 +47,8 @@ class TimelineReviewedEventType(TypedDict): "NONE", "OWNER", ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] -class TimelineReviewedEventPropLinksType(TypedDict): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtmlType - pull_request: TimelineReviewedEventPropLinksPropPullRequestType - - -class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str - - -class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str - - -__all__ = ( - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventType", -) +__all__ = ("TimelineCommentEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0369.py b/githubkit/versions/ghec_v2022_11_28/types/group_0369.py index 5636ea263..e023b2637 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0369.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0369.py @@ -10,102 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0151 import ReactionRollupType +from .group_0370 import TimelineCrossReferencedEventPropSourceType -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Cross Referenced Event """ - url: str - pull_request_review_id: Union[int, None] - id: int - node_id: str - diff_hunk: str - path: str - position: NotRequired[int] - original_position: NotRequired[int] - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: SimpleUserType - body: str + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] created_at: datetime updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: PullRequestReviewCommentPropLinksType - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - reactions: NotRequired[ReactionRollupType] - body_html: NotRequired[str] - body_text: NotRequired[str] + source: TimelineCrossReferencedEventPropSourceType -class PullRequestReviewCommentPropLinksType(TypedDict): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelfType - html: PullRequestReviewCommentPropLinksPropHtmlType - pull_request: PullRequestReviewCommentPropLinksPropPullRequestType - - -class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str - - -class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str - - -class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str - - -class TimelineLineCommentedEventType(TypedDict): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ - - event: NotRequired[Literal["line_commented"]] - node_id: NotRequired[str] - comments: NotRequired[list[PullRequestReviewCommentType]] - - -__all__ = ( - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentType", - "TimelineLineCommentedEventType", -) +__all__ = ("TimelineCrossReferencedEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0370.py b/githubkit/versions/ghec_v2022_11_28/types/group_0370.py index 3baa7987b..a48628326 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0370.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +from .group_0155 import IssueType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - Timeline Assigned Issue Event - """ + type: NotRequired[str] + issue: NotRequired[IssueType] - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["assigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - -__all__ = ("TimelineAssignedIssueEventType",) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0371.py b/githubkit/versions/ghec_v2022_11_28/types/group_0371.py index 7d37c3f07..11c95229f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0371.py @@ -9,29 +9,82 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event - - Timeline Unassigned Issue Event + Timeline Committed Event """ - id: int + event: NotRequired[Literal["committed"]] + sha: str node_id: str url: str - actor: SimpleUserType - event: Literal["unassigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: list[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType + html_url: str + + +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + + sha: str + url: str + + +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + + sha: str + url: str + html_url: str + + +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] -__all__ = ("TimelineUnassignedIssueEventType",) +__all__ = ( + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropVerificationType", + "TimelineCommittedEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0372.py b/githubkit/versions/ghec_v2022_11_28/types/group_0372.py index 4978c8454..19ca5be38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0372.py @@ -9,29 +9,66 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event - State Change Issue Event + Timeline Reviewed Event """ + event: Literal["reviewed"] id: int node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - state_reason: NotRequired[Union[str, None]] + user: SimpleUserType + body: Union[str, None] + state: str + html_url: str + pull_request_url: str + links: TimelineReviewedEventPropLinksType + submitted_at: NotRequired[datetime] + commit_id: str + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] -__all__ = ("StateChangeIssueEventType",) +class TimelineReviewedEventPropLinksType(TypedDict): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtmlType + pull_request: TimelineReviewedEventPropLinksPropPullRequestType + + +class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str + + +class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0373.py b/githubkit/versions/ghec_v2022_11_28/types/group_0373.py index b320cbbd3..87afc0435 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0373.py @@ -9,26 +9,103 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0154 import ReactionRollupType -class DeployKeyType(TypedDict): - """Deploy Key - An SSH key granting access to a single repository. +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ - id: int - key: str url: str - title: str - verified: bool - created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] - enabled: NotRequired[bool] + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str + + +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[list[PullRequestReviewCommentType]] -__all__ = ("DeployKeyType",) +__all__ = ( + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentType", + "TimelineLineCommentedEventType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0374.py b/githubkit/versions/ghec_v2022_11_28/types/group_0374.py index bc5f5cd8b..3baa7987b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0374.py @@ -9,14 +9,29 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Literal, Union +from typing_extensions import TypedDict -LanguageType: TypeAlias = dict[str, Any] -"""Language +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -Language -""" + +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event + """ + + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["assigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ("LanguageType",) +__all__ = ("TimelineAssignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0375.py b/githubkit/versions/ghec_v2022_11_28/types/group_0375.py index 2913097c9..7d37c3f07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0375.py @@ -9,42 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict -from .group_0019 import LicenseSimpleType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class LicenseContentType(TypedDict): - """License Content +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event - License Content + Timeline Unassigned Issue Event """ - name: str - path: str - sha: str - size: int + id: int + node_id: str url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "LicenseContentPropLinksType", - "LicenseContentType", -) +__all__ = ("TimelineUnassignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0376.py b/githubkit/versions/ghec_v2022_11_28/types/group_0376.py index ef4f49c12..4978c8454 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0376.py @@ -9,19 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class MergedUpstreamType(TypedDict): - """Merged upstream - Results of a successful merge upstream request +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event + + State Change Issue Event """ - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] + id: int + node_id: str + url: str + actor: SimpleUserType + event: str + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + state_reason: NotRequired[Union[str, None]] -__all__ = ("MergedUpstreamType",) +__all__ = ("StateChangeIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0377.py b/githubkit/versions/ghec_v2022_11_28/types/group_0377.py index 121c3bad8..b320cbbd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0377.py @@ -9,64 +9,26 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class PageType(TypedDict): - """GitHub Pages +class DeployKeyType(TypedDict): + """Deploy Key - The configuration for GitHub Pages for a repository. + An SSH key granting access to a single repository. """ + id: int + key: str url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[str, None]] + enabled: NotRequired[bool] -class PagesSourceHashType(TypedDict): - """Pages Source Hash""" - - branch: str - path: str - - -class PagesHttpsCertificateType(TypedDict): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] - description: str - domains: list[str] - expires_at: NotRequired[date] - - -__all__ = ( - "PageType", - "PagesHttpsCertificateType", - "PagesSourceHashType", -) +__all__ = ("DeployKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0378.py b/githubkit/versions/ghec_v2022_11_28/types/group_0378.py index 83899a24e..bc5f5cd8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0378.py @@ -9,36 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import TypeAlias -from .group_0003 import SimpleUserType +LanguageType: TypeAlias = dict[str, Any] +"""Language - -class PageBuildType(TypedDict): - """Page Build - - Page Build - """ - - url: str - status: str - error: PageBuildPropErrorType - pusher: Union[None, SimpleUserType] - commit: str - duration: int - created_at: datetime - updated_at: datetime - - -class PageBuildPropErrorType(TypedDict): - """PageBuildPropError""" - - message: Union[str, None] +Language +""" -__all__ = ( - "PageBuildPropErrorType", - "PageBuildType", -) +__all__ = ("LanguageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0379.py b/githubkit/versions/ghec_v2022_11_28/types/group_0379.py index d7001e4a1..2913097c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0379.py @@ -9,17 +9,42 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict +from .group_0019 import LicenseSimpleType -class PageBuildStatusType(TypedDict): - """Page Build Status - Page Build Status +class LicenseContentType(TypedDict): + """License Content + + License Content """ + name: str + path: str + sha: str + size: int url: str - status: str + html_url: Union[str, None] + git_url: Union[str, None] + download_url: Union[str, None] + type: str + content: str + encoding: str + links: LicenseContentPropLinksType + license_: Union[None, LicenseSimpleType] + + +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str -__all__ = ("PageBuildStatusType",) +__all__ = ( + "LicenseContentPropLinksType", + "LicenseContentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0380.py b/githubkit/versions/ghec_v2022_11_28/types/group_0380.py index d3e0b1eca..ef4f49c12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0380.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class PageDeploymentType(TypedDict): - """GitHub Pages +class MergedUpstreamType(TypedDict): + """Merged upstream - The GitHub Pages deployment status. + Results of a successful merge upstream request """ - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] + message: NotRequired[str] + merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] + base_branch: NotRequired[str] -__all__ = ("PageDeploymentType",) +__all__ = ("MergedUpstreamType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0381.py b/githubkit/versions/ghec_v2022_11_28/types/group_0381.py index 2bf2ddbc1..121c3bad8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0381.py @@ -9,28 +9,64 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class PagesDeploymentStatusType(TypedDict): - """GitHub Pages deployment status""" - - status: NotRequired[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] +class PageType(TypedDict): + """GitHub Pages + + The configuration for GitHub Pages for a repository. + """ + + url: str + status: Union[None, Literal["built", "building", "errored"]] + cname: Union[str, None] + protected_domain_state: NotRequired[ + Union[None, Literal["pending", "verified", "unverified"]] + ] + pending_domain_unverified_at: NotRequired[Union[datetime, None]] + custom_404: bool + html_url: NotRequired[str] + build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] + source: NotRequired[PagesSourceHashType] + public: bool + https_certificate: NotRequired[PagesHttpsCertificateType] + https_enforced: NotRequired[bool] + + +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", ] + description: str + domains: list[str] + expires_at: NotRequired[date] -__all__ = ("PagesDeploymentStatusType",) +__all__ = ( + "PageType", + "PagesHttpsCertificateType", + "PagesSourceHashType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0382.py b/githubkit/versions/ghec_v2022_11_28/types/group_0382.py index 5546e6ba9..83899a24e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0382.py @@ -9,88 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status - Pages Health Check Status - """ - - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] +class PageBuildType(TypedDict): + """Page Build + Page Build + """ -class PagesHealthCheckPropDomainType(TypedDict): - """PagesHealthCheckPropDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + url: str + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int + created_at: datetime + updated_at: datetime -class PagesHealthCheckPropAltDomainType(TypedDict): - """PagesHealthCheckPropAltDomain""" +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + message: Union[str, None] __all__ = ( - "PagesHealthCheckPropAltDomainType", - "PagesHealthCheckPropDomainType", - "PagesHealthCheckType", + "PageBuildPropErrorType", + "PageBuildType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0383.py b/githubkit/versions/ghec_v2022_11_28/types/group_0383.py index 18fd4dcb0..d7001e4a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0383.py @@ -9,85 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0066 import TeamSimpleType -from .group_0149 import MilestoneType -from .group_0304 import AutoMergeType -from .group_0384 import PullRequestPropLabelsItemsType -from .group_0385 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0386 import PullRequestPropLinksType +class PageBuildStatusType(TypedDict): + """Page Build Status -class PullRequestType(TypedDict): - """Pull Request - - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build Status """ url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int + status: str -__all__ = ("PullRequestType",) +__all__ = ("PageBuildStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0384.py b/githubkit/versions/ghec_v2022_11_28/types/group_0384.py index 8c969ec82..d3e0b1eca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0384.py @@ -10,19 +10,19 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" +class PageDeploymentType(TypedDict): + """GitHub Pages - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + The GitHub Pages deployment status. + """ + id: Union[int, str] + status_url: str + page_url: str + preview_url: NotRequired[str] -__all__ = ("PullRequestPropLabelsItemsType",) + +__all__ = ("PageDeploymentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0385.py b/githubkit/versions/ghec_v2022_11_28/types/group_0385.py index cd3535f15..2bf2ddbc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0385.py @@ -9,34 +9,28 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict - -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType - - -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] - - -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - - label: str - ref: str - repo: RepositoryType - sha: str - user: SimpleUserType - - -__all__ = ( - "PullRequestPropBaseType", - "PullRequestPropHeadType", -) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class PagesDeploymentStatusType(TypedDict): + """GitHub Pages deployment status""" + + status: NotRequired[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] + + +__all__ = ("PagesDeploymentStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0386.py b/githubkit/versions/ghec_v2022_11_28/types/group_0386.py index 78319f21d..5546e6ba9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0386.py @@ -9,22 +9,88 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0303 import LinkType +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" + Pages Health Check Status + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] -__all__ = ("PullRequestPropLinksType",) +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +__all__ = ( + "PagesHealthCheckPropAltDomainType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0387.py b/githubkit/versions/ghec_v2022_11_28/types/group_0387.py index 211278b38..958add9b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0387.py @@ -9,18 +9,85 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0066 import TeamSimpleType +from .group_0152 import MilestoneType +from .group_0308 import AutoMergeType +from .group_0388 import PullRequestPropLabelsItemsType +from .group_0389 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0390 import PullRequestPropLinksType -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result - Pull Request Merge Result +class PullRequestType(TypedDict): + """Pull Request + + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ - sha: str + url: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] merged: bool - message: str + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int -__all__ = ("PullRequestMergeResultType",) +__all__ = ("PullRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0388.py b/githubkit/versions/ghec_v2022_11_28/types/group_0388.py index f945d0b32..8c969ec82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0388.py @@ -9,20 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0067 import TeamType +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool - Pull Request Review Request - """ - users: list[SimpleUserType] - teams: list[TeamType] - - -__all__ = ("PullRequestReviewRequestType",) +__all__ = ("PullRequestPropLabelsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0389.py b/githubkit/versions/ghec_v2022_11_28/types/group_0389.py index d7cb39fb2..cd3535f15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0389.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0389.py @@ -9,65 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class PullRequestReviewType(TypedDict): - """Pull Request Review +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" - Pull Request Reviews are reviews on pull requests. - """ - - id: int - node_id: str + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] + sha: str user: Union[None, SimpleUserType] - body: str - state: str - html_url: str - pull_request_url: str - links: PullRequestReviewPropLinksType - submitted_at: NotRequired[datetime] - commit_id: Union[str, None] - body_html: NotRequired[str] - body_text: NotRequired[str] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -class PullRequestReviewPropLinksType(TypedDict): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtmlType - pull_request: PullRequestReviewPropLinksPropPullRequestType - - -class PullRequestReviewPropLinksPropHtmlType(TypedDict): - """PullRequestReviewPropLinksPropHtml""" - - href: str -class PullRequestReviewPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewPropLinksPropPullRequest""" +class PullRequestPropBaseType(TypedDict): + """PullRequestPropBase""" - href: str + label: str + ref: str + repo: RepositoryType + sha: str + user: SimpleUserType __all__ = ( - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", - "PullRequestReviewPropLinksType", - "PullRequestReviewType", + "PullRequestPropBaseType", + "PullRequestPropHeadType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0390.py b/githubkit/versions/ghec_v2022_11_28/types/group_0390.py index 512df5d75..331caec5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0390.py @@ -9,58 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0151 import ReactionRollupType -from .group_0391 import ReviewCommentPropLinksType +from .group_0307 import LinkType -class ReviewCommentType(TypedDict): - """Legacy Review Comment +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" - Legacy Review Comment - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - url: str - pull_request_review_id: Union[int, None] - id: int - node_id: str - diff_hunk: str - path: str - position: Union[int, None] - original_position: int - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: Union[None, SimpleUserType] - body: str - created_at: datetime - updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: ReviewCommentPropLinksType - body_text: NotRequired[str] - body_html: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - side: NotRequired[Literal["LEFT", "RIGHT"]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - -__all__ = ("ReviewCommentType",) +__all__ = ("PullRequestPropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0391.py b/githubkit/versions/ghec_v2022_11_28/types/group_0391.py index e45e87a33..211278b38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0391.py @@ -11,15 +11,16 @@ from typing_extensions import TypedDict -from .group_0303 import LinkType +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" + Pull Request Merge Result + """ - self_: LinkType - html: LinkType - pull_request: LinkType + sha: str + merged: bool + message: str -__all__ = ("ReviewCommentPropLinksType",) +__all__ = ("PullRequestMergeResultType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0392.py b/githubkit/versions/ghec_v2022_11_28/types/group_0392.py index 133f124c3..f945d0b32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0392.py @@ -9,32 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType +from .group_0067 import TeamType -class ReleaseAssetType(TypedDict): - """Release Asset +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request - Data related to a release. + Pull Request Review Request """ - url: str - browser_download_url: str - id: int - node_id: str - name: str - label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - download_count: int - created_at: datetime - updated_at: datetime - uploader: Union[None, SimpleUserType] - - -__all__ = ("ReleaseAssetType",) + users: list[SimpleUserType] + teams: list[TeamType] + + +__all__ = ("PullRequestReviewRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0393.py b/githubkit/versions/ghec_v2022_11_28/types/group_0393.py index 7a07b0b2d..d7cb39fb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0393.py @@ -10,43 +10,64 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0151 import ReactionRollupType -from .group_0392 import ReleaseAssetType -class ReleaseType(TypedDict): - """Release +class PullRequestReviewType(TypedDict): + """Pull Request Review - A release. + Pull Request Reviews are reviews on pull requests. """ - url: str - html_url: str - assets_url: str - upload_url: str - tarball_url: Union[str, None] - zipball_url: Union[str, None] id: int node_id: str - tag_name: str - target_commitish: str - name: Union[str, None] - body: NotRequired[Union[str, None]] - draft: bool - prerelease: bool - created_at: datetime - published_at: Union[datetime, None] - author: SimpleUserType - assets: list[ReleaseAssetType] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - mentions_count: NotRequired[int] - discussion_url: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("ReleaseType",) + user: Union[None, SimpleUserType] + body: str + state: str + html_url: str + pull_request_url: str + links: PullRequestReviewPropLinksType + submitted_at: NotRequired[datetime] + commit_id: Union[str, None] + body_html: NotRequired[str] + body_text: NotRequired[str] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +class PullRequestReviewPropLinksType(TypedDict): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtmlType + pull_request: PullRequestReviewPropLinksPropPullRequestType + + +class PullRequestReviewPropLinksPropHtmlType(TypedDict): + """PullRequestReviewPropLinksPropHtml""" + + href: str + + +class PullRequestReviewPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "PullRequestReviewPropLinksPropHtmlType", + "PullRequestReviewPropLinksPropPullRequestType", + "PullRequestReviewPropLinksType", + "PullRequestReviewType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0394.py b/githubkit/versions/ghec_v2022_11_28/types/group_0394.py index 8cbfbc707..223cafc67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0394.py @@ -9,17 +9,58 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0154 import ReactionRollupType +from .group_0395 import ReviewCommentPropLinksType -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content - Generated name and body describing a release +class ReviewCommentType(TypedDict): + """Legacy Review Comment + + Legacy Review Comment """ - name: str + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: Union[int, None] + original_position: int + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: Union[None, SimpleUserType] body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: ReviewCommentPropLinksType + body_text: NotRequired[str] + body_html: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + side: NotRequired[Literal["LEFT", "RIGHT"]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] -__all__ = ("ReleaseNotesContentType",) +__all__ = ("ReviewCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py index a7e58a24b..8c51e4796 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0307 import LinkType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + self_: LinkType + html: LinkType + pull_request: LinkType -__all__ = ("RepositoryRuleRulesetInfoType",) +__all__ = ("ReviewCommentPropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py index 0f564cd7d..ed9a33bfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py @@ -9,17 +9,33 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReleaseAssetType(TypedDict): + """Release Asset + Data related to a release. + """ -__all__ = ("RepositoryRuleDetailedOneof0Type",) + url: str + browser_download_url: str + id: int + node_id: str + name: str + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + digest: Union[str, None] + download_count: int + created_at: datetime + updated_at: datetime + uploader: Union[None, SimpleUserType] + + +__all__ = ("ReleaseAssetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py index e340f365e..c2740ef7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py @@ -9,20 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0097 import RepositoryRuleUpdatePropParametersType - - -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" - - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] - - -__all__ = ("RepositoryRuleDetailedOneof1Type",) +from .group_0003 import SimpleUserType +from .group_0154 import ReactionRollupType +from .group_0396 import ReleaseAssetType + + +class ReleaseType(TypedDict): + """Release + + A release. + """ + + url: str + html_url: str + assets_url: str + upload_url: str + tarball_url: Union[str, None] + zipball_url: Union[str, None] + id: int + node_id: str + tag_name: str + target_commitish: str + name: Union[str, None] + body: NotRequired[Union[str, None]] + draft: bool + prerelease: bool + created_at: datetime + published_at: Union[datetime, None] + author: SimpleUserType + assets: list[ReleaseAssetType] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + mentions_count: NotRequired[int] + discussion_url: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("ReleaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py index 273dd677c..8cbfbc707 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content - type: Literal["deletion"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + Generated name and body describing a release + """ + name: str + body: str -__all__ = ("RepositoryRuleDetailedOneof2Type",) + +__all__ = ("ReleaseNotesContentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py index 8886199f4..a7e58a24b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py @@ -13,13 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof3Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py index 52a2af9a3..0f564cd7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0100 import RepositoryRuleMergeQueuePropParametersType +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof4Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py index 618b39e3c..e340f365e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0102 import RepositoryRuleRequiredDeploymentsPropParametersType +from .group_0097 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" +class RepositoryRuleDetailedOneof1Type(TypedDict): + """RepositoryRuleDetailedOneof1""" - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py index c30b2990f..273dd677c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" - type: Literal["required_signatures"] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py index 5ab4f82a9..8886199f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0105 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" - - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py index 4b32edde1..52a2af9a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0107 import RepositoryRuleRequiredStatusChecksPropParametersType +from .group_0100 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof4Type(TypedDict): + """RepositoryRuleDetailedOneof4""" - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py index d5be14715..618b39e3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0102 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" + + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py index a24dd6431..c30b2990f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0109 import RepositoryRuleCommitMessagePatternPropParametersType +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py index 1a18c70c2..5ab4f82a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0111 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0105 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py index 3a9967008..4b32edde1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0113 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0107 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py index 8a600df8a..d5be14715 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0115 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" - - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py index 5b2820a7f..a24dd6431 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0117 import RepositoryRuleTagNamePatternPropParametersType +from .group_0109 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof10Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py index b04b4bcda..1a18c70c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0119 import RepositoryRuleFilePathRestrictionPropParametersType +from .group_0111 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof11Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py index d93dbde64..3a9967008 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0121 import RepositoryRuleMaxFilePathLengthPropParametersType +from .group_0113 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleDetailedOneof16Type(TypedDict): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof16Type",) +__all__ = ("RepositoryRuleDetailedOneof12Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py index 5e857c50b..8a600df8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0123 import RepositoryRuleFileExtensionRestrictionPropParametersType +from .group_0115 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleDetailedOneof17Type(TypedDict): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof17Type",) +__all__ = ("RepositoryRuleDetailedOneof13Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py index 3601b68f4..5b2820a7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0125 import RepositoryRuleMaxFileSizePropParametersType +from .group_0117 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleDetailedOneof18Type(TypedDict): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof18Type",) +__all__ = ("RepositoryRuleDetailedOneof14Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py index 2a7c1d41f..b04b4bcda 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0128 import RepositoryRuleWorkflowsPropParametersType +from .group_0119 import RepositoryRuleFilePathRestrictionPropParametersType -class RepositoryRuleDetailedOneof19Type(TypedDict): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof19Type",) +__all__ = ("RepositoryRuleDetailedOneof15Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py index 6f5a08087..d93dbde64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0130 import RepositoryRuleCodeScanningPropParametersType +from .group_0121 import RepositoryRuleMaxFilePathLengthPropParametersType -class RepositoryRuleDetailedOneof20Type(TypedDict): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof16Type(TypedDict): + """RepositoryRuleDetailedOneof16""" - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof20Type",) +__all__ = ("RepositoryRuleDetailedOneof16Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py index 31aba8fbb..5e857c50b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py @@ -9,43 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType - - -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertType",) +from .group_0123 import RepositoryRuleFileExtensionRestrictionPropParametersType + + +class RepositoryRuleDetailedOneof17Type(TypedDict): + """RepositoryRuleDetailedOneof17""" + + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] + + +__all__ = ("RepositoryRuleDetailedOneof17Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py index a7d6503ef..3601b68f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py @@ -9,17 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0125 import RepositoryRuleMaxFileSizePropParametersType -class SecretScanningPushProtectionBypassType(TypedDict): - """SecretScanningPushProtectionBypass""" - reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] - expire_at: NotRequired[Union[datetime, None]] - token_type: NotRequired[str] +class RepositoryRuleDetailedOneof18Type(TypedDict): + """RepositoryRuleDetailedOneof18""" + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningPushProtectionBypassType",) + +__all__ = ("RepositoryRuleDetailedOneof18Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py index c28f498af..2a7c1d41f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py @@ -9,47 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0128 import RepositoryRuleWorkflowsPropParametersType -class SecretScanningScanHistoryType(TypedDict): - """SecretScanningScanHistory""" - incremental_scans: NotRequired[list[SecretScanningScanType]] - pattern_update_scans: NotRequired[list[SecretScanningScanType]] - backfill_scans: NotRequired[list[SecretScanningScanType]] - custom_pattern_backfill_scans: NotRequired[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] - ] +class RepositoryRuleDetailedOneof19Type(TypedDict): + """RepositoryRuleDetailedOneof19""" + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class SecretScanningScanType(TypedDict): - """SecretScanningScan - Information on a single scan performed by secret scanning on the repository - """ - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] - - -__all__ = ( - "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", - "SecretScanningScanHistoryType", - "SecretScanningScanType", -) +__all__ = ("RepositoryRuleDetailedOneof19Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py index 3fadc1994..6f5a08087 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0130 import RepositoryRuleCodeScanningPropParametersType -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] +class RepositoryRuleDetailedOneof20Type(TypedDict): + """RepositoryRuleDetailedOneof20""" + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) + +__all__ = ("RepositoryRuleDetailedOneof20Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py index 3bd956c2f..4471efd52 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py @@ -9,80 +9,81 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" - - summary: str - description: str - cve_id: NotRequired[Union[str, None]] - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +from .group_0003 import SimpleUserType +from .group_0142 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0143 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0144 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryCreatePropCreditsItems""" +class SecretScanningAlertType(TypedDict): + """SecretScanningAlert""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] ] - name: NotRequired[Union[str, None]] + has_more_locations: NotRequired[bool] -__all__ = ( - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreateType", -) +__all__ = ("SecretScanningAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py index 23f5f5af0..27b619be3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py @@ -12,58 +12,64 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0142 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0143 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0144 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" - summary: str - description: str - vulnerabilities: NotRequired[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] ] - cwe_ids: NotRequired[Union[list[str], None]] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] ] - name: NotRequired[Union[str, None]] -__all__ = ( - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", - "PrivateVulnerabilityReportCreateType", -) +__all__ = ("SecretScanningLocationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py index 689cbef7f..a7d6503ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py @@ -9,84 +9,17 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" +class SecretScanningPushProtectionBypassType(TypedDict): + """SecretScanningPushProtectionBypass""" - summary: NotRequired[str] - description: NotRequired[str] - cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - state: NotRequired[Literal["published", "closed", "draft"]] - collaborating_users: NotRequired[Union[list[str], None]] - collaborating_teams: NotRequired[Union[list[str], None]] + reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] + expire_at: NotRequired[Union[datetime, None]] + token_type: NotRequired[str] -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdateType", -) +__all__ = ("SecretScanningPushProtectionBypassType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py index ca2546e70..c28f498af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py @@ -11,19 +11,45 @@ from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class SecretScanningScanHistoryType(TypedDict): + """SecretScanningScanHistory""" -class StargazerType(TypedDict): - """Stargazer + incremental_scans: NotRequired[list[SecretScanningScanType]] + pattern_update_scans: NotRequired[list[SecretScanningScanType]] + backfill_scans: NotRequired[list[SecretScanningScanType]] + custom_pattern_backfill_scans: NotRequired[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] + ] - Stargazer + +class SecretScanningScanType(TypedDict): + """SecretScanningScan + + Information on a single scan performed by secret scanning on the repository """ - starred_at: datetime - user: Union[None, SimpleUserType] + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] + + +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" + + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] -__all__ = ("StargazerType",) +__all__ = ( + "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", + "SecretScanningScanHistoryType", + "SecretScanningScanType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py index c3c8c7e64..3fadc1994 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CommitActivityType(TypedDict): - """Commit Activity +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - Commit Activity - """ + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] - days: list[int] - total: int - week: int - -__all__ = ("CommitActivityType",) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py index 0c764aa8c..3bd956c2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py @@ -9,33 +9,80 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" -class ContributorActivityType(TypedDict): - """Contributor Activity + summary: str + description: str + cve_id: NotRequired[Union[str, None]] + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] + + +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] - Contributor Activity - """ - author: Union[None, SimpleUserType] - total: int - weeks: list[ContributorActivityPropWeeksItemsType] +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] -class ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] __all__ = ( - "ContributorActivityPropWeeksItemsType", - "ContributorActivityType", + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreateType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py index 4bde16f66..23f5f5af0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py @@ -9,14 +9,61 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" - all_: list[int] - owner: list[int] + summary: str + description: str + vulnerabilities: NotRequired[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] + ] + cwe_ids: NotRequired[Union[list[str], None]] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] -__all__ = ("ParticipationStatsType",) +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreateType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py index 00a60951a..689cbef7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py @@ -9,23 +9,84 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class RepositorySubscriptionType(TypedDict): - """Repository Invitation +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - Repository invitations let you manage who you collaborate with. + summary: NotRequired[str] + description: NotRequired[str] + cve_id: NotRequired[Union[str, None]] + vulnerabilities: NotRequired[ + list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] + ] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + state: NotRequired[Literal["published", "closed", "draft"]] + collaborating_users: NotRequired[Union[list[str], None]] + collaborating_teams: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("RepositorySubscriptionType",) +__all__ = ( + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdateType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py index 8a231b6fb..ca2546e70 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py @@ -9,30 +9,21 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class TagType(TypedDict): - """Tag - Tag - """ - - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str +class StargazerType(TypedDict): + """Stargazer + Stargazer + """ -class TagPropCommitType(TypedDict): - """TagPropCommit""" - - sha: str - url: str + starred_at: datetime + user: Union[None, SimpleUserType] -__all__ = ( - "TagPropCommitType", - "TagType", -) +__all__ = ("StargazerType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py index a09ecf462..c3c8c7e64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class TagProtectionType(TypedDict): - """Tag protection +class CommitActivityType(TypedDict): + """Commit Activity - Tag protection + Commit Activity """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: str + days: list[int] + total: int + week: int -__all__ = ("TagProtectionType",) +__all__ = ("CommitActivityType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py index 69365fe85..0c764aa8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py @@ -9,16 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class TopicType(TypedDict): - """Topic - A topic aggregates entities that are related to a subject. +class ContributorActivityType(TypedDict): + """Contributor Activity + + Contributor Activity """ - names: list[str] + author: Union[None, SimpleUserType] + total: int + weeks: list[ContributorActivityPropWeeksItemsType] + + +class ContributorActivityPropWeeksItemsType(TypedDict): + """ContributorActivityPropWeeksItems""" + + w: NotRequired[int] + a: NotRequired[int] + d: NotRequired[int] + c: NotRequired[int] -__all__ = ("TopicType",) +__all__ = ( + "ContributorActivityPropWeeksItemsType", + "ContributorActivityType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py index 2412270d8..4bde16f66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py @@ -9,16 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class TrafficType(TypedDict): - """Traffic""" +class ParticipationStatsType(TypedDict): + """Participation Stats""" - timestamp: datetime - uniques: int - count: int + all_: list[int] + owner: list[int] -__all__ = ("TrafficType",) +__all__ = ("ParticipationStatsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py index feab63e88..00a60951a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py @@ -9,20 +9,23 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -from .group_0432 import TrafficType +class RepositorySubscriptionType(TypedDict): + """Repository Invitation -class CloneTrafficType(TypedDict): - """Clone Traffic - - Clone Traffic + Repository invitations let you manage who you collaborate with. """ - count: int - uniques: int - clones: list[TrafficType] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("CloneTrafficType",) +__all__ = ("RepositorySubscriptionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py index 8ae9ebc92..8a231b6fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py @@ -12,16 +12,27 @@ from typing_extensions import TypedDict -class ContentTrafficType(TypedDict): - """Content Traffic +class TagType(TypedDict): + """Tag - Content Traffic + Tag """ - path: str - title: str - count: int - uniques: int + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str -__all__ = ("ContentTrafficType",) +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str + + +__all__ = ( + "TagPropCommitType", + "TagType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py index d7d63281a..a09ecf462 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReferrerTrafficType(TypedDict): - """Referrer Traffic +class TagProtectionType(TypedDict): + """Tag protection - Referrer Traffic + Tag protection """ - referrer: str - count: int - uniques: int + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -__all__ = ("ReferrerTrafficType",) +__all__ = ("TagProtectionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py index d506c74c8..69365fe85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py @@ -11,18 +11,14 @@ from typing_extensions import TypedDict -from .group_0432 import TrafficType +class TopicType(TypedDict): + """Topic -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic + A topic aggregates entities that are related to a subject. """ - count: int - uniques: int - views: list[TrafficType] + names: list[str] -__all__ = ("ViewTrafficType",) +__all__ = ("TopicType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py index a4530cd7b..2412270d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py @@ -9,33 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class GroupResponseType(TypedDict): - """GroupResponse""" +class TrafficType(TypedDict): + """Traffic""" - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] - external_id: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - members: NotRequired[list[GroupResponsePropMembersItemsType]] + timestamp: datetime + uniques: int + count: int -class GroupResponsePropMembersItemsType(TypedDict): - """GroupResponsePropMembersItems""" - - value: str - ref: str - display: NotRequired[str] - - -__all__ = ( - "GroupResponsePropMembersItemsType", - "GroupResponseType", -) +__all__ = ("TrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py index 49cdae3aa..dd8c693a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0437 import TrafficType -class MetaType(TypedDict): - """Meta - The metadata associated with the creation/updates to the user. +class CloneTrafficType(TypedDict): + """Clone Traffic + + Clone Traffic """ - resource_type: Literal["User", "Group"] - created: NotRequired[str] - last_modified: NotRequired[str] - location: NotRequired[str] + count: int + uniques: int + clones: list[TrafficType] -__all__ = ("MetaType",) +__all__ = ("CloneTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py index 0695a574e..8ae9ebc92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py @@ -9,48 +9,19 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0438 import MetaType +class ContentTrafficType(TypedDict): + """Content Traffic -class ScimEnterpriseGroupResponseType(TypedDict): - """ScimEnterpriseGroupResponse""" + Content Traffic + """ - schemas: list[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] - external_id: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - members: NotRequired[list[ScimEnterpriseGroupResponseMergedMembersType]] - id: NotRequired[str] - meta: NotRequired[MetaType] + path: str + title: str + count: int + uniques: int -class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): - """ScimEnterpriseGroupResponseMergedMembers""" - - value: str - ref: str - display: NotRequired[str] - - -class ScimEnterpriseGroupListType(TypedDict): - """ScimEnterpriseGroupList""" - - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] - total_results: int - resources: list[ScimEnterpriseGroupResponseType] - start_index: int - items_per_page: int - - -__all__ = ( - "ScimEnterpriseGroupListType", - "ScimEnterpriseGroupResponseMergedMembersType", - "ScimEnterpriseGroupResponseType", -) +__all__ = ("ContentTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py index b150f740b..d7d63281a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py @@ -9,28 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0438 import MetaType +class ReferrerTrafficType(TypedDict): + """Referrer Traffic -class ScimEnterpriseGroupResponseAllof1Type(TypedDict): - """ScimEnterpriseGroupResponseAllof1""" + Referrer Traffic + """ - id: NotRequired[str] - members: NotRequired[list[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] - meta: NotRequired[MetaType] + referrer: str + count: int + uniques: int -class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): - """ScimEnterpriseGroupResponseAllof1PropMembersItems""" - - value: NotRequired[str] - ref: NotRequired[str] - display: NotRequired[str] - - -__all__ = ( - "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", - "ScimEnterpriseGroupResponseAllof1Type", -) +__all__ = ("ReferrerTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py index 5d3f1069e..92dbf455c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0437 import TrafficType -class GroupType(TypedDict): - """Group""" - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] - external_id: str - display_name: str - members: list[GroupPropMembersItemsType] +class ViewTrafficType(TypedDict): + """View Traffic + View Traffic + """ -class GroupPropMembersItemsType(TypedDict): - """GroupPropMembersItems""" + count: int + uniques: int + views: list[TrafficType] - value: str - display_name: str - -__all__ = ( - "GroupPropMembersItemsType", - "GroupType", -) +__all__ = ("ViewTrafficType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py index a81bf3fd2..a4530cd7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py @@ -9,26 +9,33 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class PatchSchemaType(TypedDict): - """PatchSchema""" +class GroupResponseType(TypedDict): + """GroupResponse""" - operations: list[PatchSchemaPropOperationsItemsType] - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] + external_id: NotRequired[Union[str, None]] + display_name: NotRequired[Union[str, None]] + members: NotRequired[list[GroupResponsePropMembersItemsType]] -class PatchSchemaPropOperationsItemsType(TypedDict): - """PatchSchemaPropOperationsItems""" +class GroupResponsePropMembersItemsType(TypedDict): + """GroupResponsePropMembersItems""" - op: Literal["add", "replace", "remove"] - path: NotRequired[str] - value: NotRequired[str] + value: str + ref: str + display: NotRequired[str] __all__ = ( - "PatchSchemaPropOperationsItemsType", - "PatchSchemaType", + "GroupResponsePropMembersItemsType", + "GroupResponseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py index 96b042860..49cdae3aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py @@ -9,27 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserNameResponseType(TypedDict): - """UserNameResponse""" +class MetaType(TypedDict): + """Meta - formatted: NotRequired[str] - family_name: NotRequired[str] - given_name: NotRequired[str] - middle_name: NotRequired[str] + The metadata associated with the creation/updates to the user. + """ + resource_type: Literal["User", "Group"] + created: NotRequired[str] + last_modified: NotRequired[str] + location: NotRequired[str] -class UserEmailsResponseItemsType(TypedDict): - """UserEmailsResponseItems""" - value: str - type: NotRequired[str] - primary: NotRequired[bool] - - -__all__ = ( - "UserEmailsResponseItemsType", - "UserNameResponseType", -) +__all__ = ("MetaType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py index dd4ea445a..f6a00c2f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py @@ -9,28 +9,48 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0443 import MetaType -class UserRoleItemsType(TypedDict): - """UserRoleItems""" - display: NotRequired[str] - type: NotRequired[str] - value: Literal[ - "user", - "27d9891d-2c17-4f45-a262-781a0e55c80a", - "guest_collaborator", - "1ebc4a02-e56c-43a6-92a5-02ee09b90824", - "enterprise_owner", - "981df190-8801-4618-a08a-d91f6206c954", - "ba4987ab-a1c3-412a-b58c-360fc407cb10", - "billing_manager", - "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", - "e6be2762-e4ad-4108-b72d-1bbe884a0f91", +class ScimEnterpriseGroupResponseType(TypedDict): + """ScimEnterpriseGroupResponse""" + + schemas: list[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] ] - primary: NotRequired[bool] + external_id: NotRequired[Union[str, None]] + display_name: NotRequired[Union[str, None]] + members: NotRequired[list[ScimEnterpriseGroupResponseMergedMembersType]] + id: NotRequired[str] + meta: NotRequired[MetaType] + + +class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): + """ScimEnterpriseGroupResponseMergedMembers""" + + value: str + ref: str + display: NotRequired[str] + + +class ScimEnterpriseGroupListType(TypedDict): + """ScimEnterpriseGroupList""" + + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] + total_results: int + resources: list[ScimEnterpriseGroupResponseType] + start_index: int + items_per_page: int -__all__ = ("UserRoleItemsType",) +__all__ = ( + "ScimEnterpriseGroupListType", + "ScimEnterpriseGroupResponseMergedMembersType", + "ScimEnterpriseGroupResponseType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py index f9196bb80..738f22e8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py @@ -9,24 +9,28 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0443 import UserEmailsResponseItemsType, UserNameResponseType -from .group_0444 import UserRoleItemsType +from .group_0443 import MetaType -class UserResponseType(TypedDict): - """UserResponse""" +class ScimEnterpriseGroupResponseAllof1Type(TypedDict): + """ScimEnterpriseGroupResponseAllof1""" - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: NotRequired[Union[str, None]] - active: bool - user_name: NotRequired[str] - name: NotRequired[UserNameResponseType] - display_name: NotRequired[Union[str, None]] - emails: list[UserEmailsResponseItemsType] - roles: NotRequired[list[UserRoleItemsType]] + id: NotRequired[str] + members: NotRequired[list[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] + meta: NotRequired[MetaType] -__all__ = ("UserResponseType",) +class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" + + value: NotRequired[str] + ref: NotRequired[str] + display: NotRequired[str] + + +__all__ = ( + "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", + "ScimEnterpriseGroupResponseAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py index bca88d559..5d3f1069e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py @@ -9,42 +9,27 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0438 import MetaType -from .group_0443 import UserEmailsResponseItemsType, UserNameResponseType -from .group_0444 import UserRoleItemsType -from .group_0448 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +class GroupType(TypedDict): + """Group""" -class ScimEnterpriseUserResponseType(TypedDict): - """ScimEnterpriseUserResponse""" + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] + external_id: str + display_name: str + members: list[GroupPropMembersItemsType] - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: NotRequired[Union[str, None]] - active: bool - user_name: NotRequired[str] - name: NotRequired[UserNameResponseType] - display_name: NotRequired[Union[str, None]] - emails: list[UserEmailsResponseItemsType] - roles: NotRequired[list[UserRoleItemsType]] - id: str - groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] - meta: MetaType +class GroupPropMembersItemsType(TypedDict): + """GroupPropMembersItems""" -class ScimEnterpriseUserListType(TypedDict): - """ScimEnterpriseUserList""" - - schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] - total_results: int - resources: list[ScimEnterpriseUserResponseType] - start_index: int - items_per_page: int + value: str + display_name: str __all__ = ( - "ScimEnterpriseUserListType", - "ScimEnterpriseUserResponseType", + "GroupPropMembersItemsType", + "GroupType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py index 7c6036e3c..a81bf3fd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py @@ -9,18 +9,26 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0438 import MetaType -from .group_0448 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +class PatchSchemaType(TypedDict): + """PatchSchema""" -class ScimEnterpriseUserResponseAllof1Type(TypedDict): - """ScimEnterpriseUserResponseAllof1""" + operations: list[PatchSchemaPropOperationsItemsType] + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] - id: str - groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] - meta: MetaType +class PatchSchemaPropOperationsItemsType(TypedDict): + """PatchSchemaPropOperationsItems""" -__all__ = ("ScimEnterpriseUserResponseAllof1Type",) + op: Literal["add", "replace", "remove"] + path: NotRequired[str] + value: NotRequired[str] + + +__all__ = ( + "PatchSchemaPropOperationsItemsType", + "PatchSchemaType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py index 69b2ab7f3..96b042860 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py @@ -12,12 +12,24 @@ from typing_extensions import NotRequired, TypedDict -class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" +class UserNameResponseType(TypedDict): + """UserNameResponse""" - value: NotRequired[str] - ref: NotRequired[str] - display: NotRequired[str] + formatted: NotRequired[str] + family_name: NotRequired[str] + given_name: NotRequired[str] + middle_name: NotRequired[str] -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) +class UserEmailsResponseItemsType(TypedDict): + """UserEmailsResponseItems""" + + value: str + type: NotRequired[str] + primary: NotRequired[bool] + + +__all__ = ( + "UserEmailsResponseItemsType", + "UserNameResponseType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py b/githubkit/versions/ghec_v2022_11_28/types/group_0449.py index ff27a613c..dd4ea445a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0449.py @@ -12,41 +12,25 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0444 import UserRoleItemsType - -class UserType(TypedDict): - """User""" - - schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: str - active: bool - user_name: str - name: NotRequired[UserNameType] - display_name: str - emails: list[UserEmailsItemsType] - roles: NotRequired[list[UserRoleItemsType]] - - -class UserNameType(TypedDict): - """UserName""" - - formatted: NotRequired[str] - family_name: str - given_name: str - middle_name: NotRequired[str] - - -class UserEmailsItemsType(TypedDict): - """UserEmailsItems""" - - value: str - type: str - primary: bool - - -__all__ = ( - "UserEmailsItemsType", - "UserNameType", - "UserType", -) +class UserRoleItemsType(TypedDict): + """UserRoleItems""" + + display: NotRequired[str] + type: NotRequired[str] + value: Literal[ + "user", + "27d9891d-2c17-4f45-a262-781a0e55c80a", + "guest_collaborator", + "1ebc4a02-e56c-43a6-92a5-02ee09b90824", + "enterprise_owner", + "981df190-8801-4618-a08a-d91f6206c954", + "ba4987ab-a1c3-412a-b58c-360fc407cb10", + "billing_manager", + "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", + "e6be2762-e4ad-4108-b72d-1bbe884a0f91", + ] + primary: NotRequired[bool] + + +__all__ = ("UserRoleItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py index 83d9c05bb..25928915a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py @@ -9,112 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0448 import UserEmailsResponseItemsType, UserNameResponseType +from .group_0449 import UserRoleItemsType -class ScimUserListType(TypedDict): - """SCIM User List - SCIM User List - """ +class UserResponseType(TypedDict): + """UserResponse""" - schemas: list[str] - total_results: int - items_per_page: int - start_index: int - resources: list[ScimUserType] - - -class ScimUserType(TypedDict): - """SCIM /Users - - SCIM /Users provisioning endpoints - """ - - schemas: list[str] - id: str + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] external_id: NotRequired[Union[str, None]] - user_name: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - name: NotRequired[ScimUserPropNameType] - emails: list[ScimUserPropEmailsItemsType] active: bool - meta: ScimUserPropMetaType - organization_id: NotRequired[int] - operations: NotRequired[list[ScimUserPropOperationsItemsType]] - groups: NotRequired[list[ScimUserPropGroupsItemsType]] - roles: NotRequired[list[ScimUserPropRolesItemsType]] - - -class ScimUserPropNameType(TypedDict): - """ScimUserPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: NotRequired[Union[str, None]] - family_name: NotRequired[Union[str, None]] - formatted: NotRequired[Union[str, None]] - - -class ScimUserPropEmailsItemsType(TypedDict): - """ScimUserPropEmailsItems""" - - value: str - primary: NotRequired[bool] - type: NotRequired[str] - - -class ScimUserPropMetaType(TypedDict): - """ScimUserPropMeta""" - - resource_type: NotRequired[str] - created: NotRequired[datetime] - last_modified: NotRequired[datetime] - location: NotRequired[str] - - -class ScimUserPropGroupsItemsType(TypedDict): - """ScimUserPropGroupsItems""" - - value: NotRequired[str] - display: NotRequired[str] - - -class ScimUserPropRolesItemsType(TypedDict): - """ScimUserPropRolesItems""" - - value: NotRequired[str] - primary: NotRequired[bool] - type: NotRequired[str] - display: NotRequired[str] - - -class ScimUserPropOperationsItemsType(TypedDict): - """ScimUserPropOperationsItems""" - - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[str, ScimUserPropOperationsItemsPropValueOneof1Type, list[Any]] - ] - - -class ScimUserPropOperationsItemsPropValueOneof1Type(TypedDict): - """ScimUserPropOperationsItemsPropValueOneof1""" + user_name: NotRequired[str] + name: NotRequired[UserNameResponseType] + display_name: NotRequired[Union[str, None]] + emails: list[UserEmailsResponseItemsType] + roles: NotRequired[list[UserRoleItemsType]] -__all__ = ( - "ScimUserListType", - "ScimUserPropEmailsItemsType", - "ScimUserPropGroupsItemsType", - "ScimUserPropMetaType", - "ScimUserPropNameType", - "ScimUserPropOperationsItemsPropValueOneof1Type", - "ScimUserPropOperationsItemsType", - "ScimUserPropRolesItemsType", - "ScimUserType", -) +__all__ = ("UserResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py index e1d436bf1..cee914c0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py @@ -9,28 +9,42 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0443 import MetaType +from .group_0448 import UserEmailsResponseItemsType, UserNameResponseType +from .group_0449 import UserRoleItemsType +from .group_0453 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] +class ScimEnterpriseUserResponseType(TypedDict): + """ScimEnterpriseUserResponse""" + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: NotRequired[Union[str, None]] + active: bool + user_name: NotRequired[str] + name: NotRequired[UserNameResponseType] + display_name: NotRequired[Union[str, None]] + emails: list[UserEmailsResponseItemsType] + roles: NotRequired[list[UserRoleItemsType]] + id: str + groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] + meta: MetaType -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - text: NotRequired[str] - indices: NotRequired[list[int]] +class ScimEnterpriseUserListType(TypedDict): + """ScimEnterpriseUserList""" + + schemas: list[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] + total_results: int + resources: list[ScimEnterpriseUserResponseType] + start_index: int + items_per_page: int __all__ = ( - "SearchResultTextMatchesItemsPropMatchesItemsType", - "SearchResultTextMatchesItemsType", + "ScimEnterpriseUserListType", + "ScimEnterpriseUserResponseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py index d0d44072c..9fa677e6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py @@ -9,44 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0168 import MinimalRepositoryType -from .group_0451 import SearchResultTextMatchesItemsType +from .group_0443 import MetaType +from .group_0453 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class CodeSearchResultItemType(TypedDict): - """Code Search Result Item +class ScimEnterpriseUserResponseAllof1Type(TypedDict): + """ScimEnterpriseUserResponseAllof1""" - Code Search Result Item - """ + id: str + groups: NotRequired[list[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] + meta: MetaType - name: str - path: str - sha: str - url: str - git_url: str - html_url: str - repository: MinimalRepositoryType - score: float - file_size: NotRequired[int] - language: NotRequired[Union[str, None]] - last_modified_at: NotRequired[datetime] - line_numbers: NotRequired[list[str]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - -class SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CodeSearchResultItemType] - - -__all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", -) +__all__ = ("ScimEnterpriseUserResponseAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py index aa263e4da..69b2ab7f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py @@ -9,54 +9,15 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0168 import MinimalRepositoryType -from .group_0263 import GitUserType -from .group_0451 import SearchResultTextMatchesItemsType -from .group_0454 import CommitSearchResultItemPropCommitType +class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item + value: NotRequired[str] + ref: NotRequired[str] + display: NotRequired[str] - Commit Search Result Item - """ - url: str - sha: str - html_url: str - comments_url: str - commit: CommitSearchResultItemPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, GitUserType] - parents: list[CommitSearchResultItemPropParentsItemsType] - repository: MinimalRepositoryType - score: float - node_id: str - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - - -class CommitSearchResultItemPropParentsItemsType(TypedDict): - """CommitSearchResultItemPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class SearchCommitsGetResponse200Type(TypedDict): - """SearchCommitsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CommitSearchResultItemType] - - -__all__ = ( - "CommitSearchResultItemPropParentsItemsType", - "CommitSearchResultItemType", - "SearchCommitsGetResponse200Type", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py index 548602998..fe8dbf824 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py @@ -9,43 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0263 import GitUserType -from .group_0264 import VerificationType +from .group_0449 import UserRoleItemsType -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" +class UserType(TypedDict): + """User""" - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] + schemas: list[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: str + active: bool + user_name: str + name: NotRequired[UserNameType] + display_name: str + emails: list[UserEmailsItemsType] + roles: NotRequired[list[UserRoleItemsType]] -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" +class UserNameType(TypedDict): + """UserName""" - name: str - email: str - date: datetime + formatted: NotRequired[str] + family_name: str + given_name: str + middle_name: NotRequired[str] -class CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" +class UserEmailsItemsType(TypedDict): + """UserEmailsItems""" - sha: str - url: str + value: str + type: str + primary: bool __all__ = ( - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", - "CommitSearchResultItemPropCommitType", + "UserEmailsItemsType", + "UserNameType", + "UserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py index 7c01790c9..83d9c05bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py @@ -10,114 +10,111 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Any, Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0149 import MilestoneType -from .group_0150 import IssueTypeType -from .group_0151 import ReactionRollupType -from .group_0451 import SearchResultTextMatchesItemsType +class ScimUserListType(TypedDict): + """SCIM User List -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item + SCIM User List + """ + + schemas: list[str] + total_results: int + items_per_page: int + start_index: int + resources: list[ScimUserType] + + +class ScimUserType(TypedDict): + """SCIM /Users - Issue Search Result Item + SCIM /Users provisioning endpoints """ - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - id: int - node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[list[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: list[IssueSearchResultItemPropLabelsItemsType] - sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] + schemas: list[str] + id: str + external_id: NotRequired[Union[str, None]] + user_name: NotRequired[Union[str, None]] + display_name: NotRequired[Union[str, None]] + name: NotRequired[ScimUserPropNameType] + emails: list[ScimUserPropEmailsItemsType] + active: bool + meta: ScimUserPropMetaType + organization_id: NotRequired[int] + operations: NotRequired[list[ScimUserPropOperationsItemsType]] + groups: NotRequired[list[ScimUserPropGroupsItemsType]] + roles: NotRequired[list[ScimUserPropRolesItemsType]] + + +class ScimUserPropNameType(TypedDict): + """ScimUserPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + formatted: NotRequired[Union[str, None]] -class IssueSearchResultItemPropLabelsItemsType(TypedDict): - """IssueSearchResultItemPropLabelsItems""" +class ScimUserPropEmailsItemsType(TypedDict): + """ScimUserPropEmailsItems""" - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - color: NotRequired[str] - default: NotRequired[bool] - description: NotRequired[Union[str, None]] + value: str + primary: NotRequired[bool] + type: NotRequired[str] -class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class ScimUserPropMetaType(TypedDict): + """ScimUserPropMeta""" - total: int - completed: int - percent_completed: int + resource_type: NotRequired[str] + created: NotRequired[datetime] + last_modified: NotRequired[datetime] + location: NotRequired[str] -class IssueSearchResultItemPropPullRequestType(TypedDict): - """IssueSearchResultItemPropPullRequest""" +class ScimUserPropGroupsItemsType(TypedDict): + """ScimUserPropGroupsItems""" - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] + value: NotRequired[str] + display: NotRequired[str] -class SearchIssuesGetResponse200Type(TypedDict): - """SearchIssuesGetResponse200""" +class ScimUserPropRolesItemsType(TypedDict): + """ScimUserPropRolesItems""" + + value: NotRequired[str] + primary: NotRequired[bool] + type: NotRequired[str] + display: NotRequired[str] + + +class ScimUserPropOperationsItemsType(TypedDict): + """ScimUserPropOperationsItems""" + + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[str, ScimUserPropOperationsItemsPropValueOneof1Type, list[Any]] + ] + - total_count: int - incomplete_results: bool - items: list[IssueSearchResultItemType] +class ScimUserPropOperationsItemsPropValueOneof1Type(TypedDict): + """ScimUserPropOperationsItemsPropValueOneof1""" __all__ = ( - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "IssueSearchResultItemPropSubIssuesSummaryType", - "IssueSearchResultItemType", - "SearchIssuesGetResponse200Type", + "ScimUserListType", + "ScimUserPropEmailsItemsType", + "ScimUserPropGroupsItemsType", + "ScimUserPropMetaType", + "ScimUserPropNameType", + "ScimUserPropOperationsItemsPropValueOneof1Type", + "ScimUserPropOperationsItemsType", + "ScimUserPropRolesItemsType", + "ScimUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py index b65b41b43..e1d436bf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py @@ -12,35 +12,25 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0451 import SearchResultTextMatchesItemsType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] - Label Search Result Item - """ - id: int - node_id: str - url: str - name: str - color: str - default: bool - description: Union[str, None] - score: float - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -class SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[LabelSearchResultItemType] + text: NotRequired[str] + indices: NotRequired[list[int]] __all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", + "SearchResultTextMatchesItemsPropMatchesItemsType", + "SearchResultTextMatchesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py index 80afd1b3a..e72bf241c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py @@ -13,128 +13,40 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType -from .group_0451 import SearchResultTextMatchesItemsType +from .group_0171 import MinimalRepositoryType +from .group_0456 import SearchResultTextMatchesItemsType -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - Repo Search Result Item + Code Search Result Item """ - id: int - node_id: str name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool + path: str + sha: str url: str - created_at: datetime - updated_at: datetime - pushed_at: datetime - homepage: Union[str, None] - size: int - stargazers_count: int - watchers_count: int - language: Union[str, None] - forks_count: int - open_issues_count: int - master_branch: NotRequired[str] - default_branch: str - score: float - forks_url: str - keys_url: str - collaborators_url: str - teams_url: str - hooks_url: str - issue_events_url: str - events_url: str - assignees_url: str - branches_url: str - tags_url: str - blobs_url: str - git_tags_url: str - git_refs_url: str - trees_url: str - statuses_url: str - languages_url: str - stargazers_url: str - contributors_url: str - subscribers_url: str - subscription_url: str - commits_url: str - git_commits_url: str - comments_url: str - issue_comment_url: str - contents_url: str - compare_url: str - merges_url: str - archive_url: str - downloads_url: str - issues_url: str - pulls_url: str - milestones_url: str - notifications_url: str - labels_url: str - releases_url: str - deployments_url: str git_url: str - ssh_url: str - clone_url: str - svn_url: str - forks: int - open_issues: int - watchers: int - topics: NotRequired[list[str]] - mirror_url: Union[str, None] - has_issues: bool - has_projects: bool - has_pages: bool - has_wiki: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - license_: Union[None, LicenseSimpleType] - permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + html_url: str + repository: MinimalRepositoryType + score: float + file_size: NotRequired[int] + language: NotRequired[Union[str, None]] + last_modified_at: NotRequired[datetime] + line_numbers: NotRequired[list[str]] text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - is_template: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class RepoSearchResultItemPropPermissionsType(TypedDict): - """RepoSearchResultItemPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool -class SearchRepositoriesGetResponse200Type(TypedDict): - """SearchRepositoriesGetResponse200""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" total_count: int incomplete_results: bool - items: list[RepoSearchResultItemType] + items: list[CodeSearchResultItemType] __all__ = ( - "RepoSearchResultItemPropPermissionsType", - "RepoSearchResultItemType", - "SearchRepositoriesGetResponse200Type", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py index 240769abe..6451f5784 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py @@ -9,84 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0451 import SearchResultTextMatchesItemsType +from .group_0003 import SimpleUserType +from .group_0171 import MinimalRepositoryType +from .group_0267 import GitUserType +from .group_0456 import SearchResultTextMatchesItemsType +from .group_0459 import CommitSearchResultItemPropCommitType -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item - Topic Search Result Item + Commit Search Result Item """ - name: str - display_name: Union[str, None] - short_description: Union[str, None] - description: Union[str, None] - created_by: Union[str, None] - released: Union[str, None] - created_at: datetime - updated_at: datetime - featured: bool - curated: bool + url: str + sha: str + html_url: str + comments_url: str + commit: CommitSearchResultItemPropCommitType + author: Union[None, SimpleUserType] + committer: Union[None, GitUserType] + parents: list[CommitSearchResultItemPropParentsItemsType] + repository: MinimalRepositoryType score: float - repository_count: NotRequired[Union[int, None]] - logo_url: NotRequired[Union[str, None]] + node_id: str text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] - aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] -class TopicSearchResultItemPropRelatedItemsType(TypedDict): - """TopicSearchResultItemPropRelatedItems""" +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" - topic_relation: NotRequired[ - TopicSearchResultItemPropRelatedItemsPropTopicRelationType - ] + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class TopicSearchResultItemPropAliasesItemsType(TypedDict): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropAliasesItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class SearchTopicsGetResponse200Type(TypedDict): - """SearchTopicsGetResponse200""" +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" total_count: int incomplete_results: bool - items: list[TopicSearchResultItemType] + items: list[CommitSearchResultItemType] __all__ = ( - "SearchTopicsGetResponse200Type", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemType", + "CommitSearchResultItemPropParentsItemsType", + "CommitSearchResultItemType", + "SearchCommitsGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py index d6a802dda..22a268a45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py @@ -13,61 +13,39 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0451 import SearchResultTextMatchesItemsType +from .group_0267 import GitUserType +from .group_0268 import VerificationType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - User Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType + url: str + verification: NotRequired[VerificationType] + + +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" + + name: str + email: str + date: datetime + + +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] + sha: str url: str - html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: str - score: float - following_url: str - gists_url: str - starred_url: str - events_url: str - public_repos: NotRequired[int] - public_gists: NotRequired[int] - followers: NotRequired[int] - following: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - name: NotRequired[Union[str, None]] - bio: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - site_admin: bool - hireable: NotRequired[Union[bool, None]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] - user_view_type: NotRequired[str] - - -class SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[UserSearchResultItemType] __all__ = ( - "SearchUsersGetResponse200Type", - "UserSearchResultItemType", + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", + "CommitSearchResultItemPropCommitType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py index 855325c4a..2afb7eae5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py @@ -10,71 +10,114 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0152 import MilestoneType +from .group_0153 import IssueTypeType +from .group_0154 import ReactionRollupType +from .group_0456 import SearchResultTextMatchesItemsType -class PrivateUserType(TypedDict): - """Private User - Private User +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item + + Issue Search Result Item """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str + repository_url: str + labels_url: str + comments_url: str events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int + html_url: str + id: int + node_id: str + number: int + title: str + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + assignees: NotRequired[Union[list[SimpleUserType], None]] + user: Union[None, SimpleUserType] + labels: list[IssueSearchResultItemPropLabelsItemsType] + sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] + state: str + state_reason: NotRequired[Union[str, None]] + assignee: Union[None, SimpleUserType] + milestone: Union[None, MilestoneType] + comments: int created_at: datetime updated_at: datetime - private_gists: int - total_private_repos: int - owned_private_repos: int - disk_usage: int - collaborators: int - two_factor_authentication: bool - plan: NotRequired[PrivateUserPropPlanType] - business_plus: NotRequired[bool] - ldap_dn: NotRequired[str] + closed_at: Union[datetime, None] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +class IssueSearchResultItemPropLabelsItemsType(TypedDict): + """IssueSearchResultItemPropLabelsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + color: NotRequired[str] + default: NotRequired[bool] + description: NotRequired[Union[str, None]] + + +class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssueSearchResultItemPropPullRequestType(TypedDict): + """IssueSearchResultItemPropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] -class PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" +class SearchIssuesGetResponse200Type(TypedDict): + """SearchIssuesGetResponse200""" - collaborators: int - name: str - space: int - private_repos: int + total_count: int + incomplete_results: bool + items: list[IssueSearchResultItemType] __all__ = ( - "PrivateUserPropPlanType", - "PrivateUserType", + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "IssueSearchResultItemPropSubIssuesSummaryType", + "IssueSearchResultItemType", + "SearchIssuesGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py index 6be52538b..29a1f8b73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py @@ -9,17 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0456 import SearchResultTextMatchesItemsType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item + + Label Search Result Item """ - key_id: str - key: str + id: int + node_id: str + url: str + name: str + color: str + default: bool + description: Union[str, None] + score: float + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + + +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[LabelSearchResultItemType] -__all__ = ("CodespacesUserPublicKeyType",) +__all__ = ( + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py index 2b50d37d0..c7cdc569d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py @@ -13,21 +13,128 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0456 import SearchResultTextMatchesItemsType -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item + + Repo Search Result Item """ - state: NotRequired[Union[str, None]] - completed_at: NotRequired[Union[datetime, None]] - branch: NotRequired[Union[str, None]] - sha: NotRequired[Union[str, None]] - id: NotRequired[str] - export_url: NotRequired[str] - html_url: NotRequired[Union[str, None]] + id: int + node_id: str + name: str + full_name: str + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + created_at: datetime + updated_at: datetime + pushed_at: datetime + homepage: Union[str, None] + size: int + stargazers_count: int + watchers_count: int + language: Union[str, None] + forks_count: int + open_issues_count: int + master_branch: NotRequired[str] + default_branch: str + score: float + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_url: str + events_url: str + assignees_url: str + branches_url: str + tags_url: str + blobs_url: str + git_tags_url: str + git_refs_url: str + trees_url: str + statuses_url: str + languages_url: str + stargazers_url: str + contributors_url: str + subscribers_url: str + subscription_url: str + commits_url: str + git_commits_url: str + comments_url: str + issue_comment_url: str + contents_url: str + compare_url: str + merges_url: str + archive_url: str + downloads_url: str + issues_url: str + pulls_url: str + milestones_url: str + notifications_url: str + labels_url: str + releases_url: str + deployments_url: str + git_url: str + ssh_url: str + clone_url: str + svn_url: str + forks: int + open_issues: int + watchers: int + topics: NotRequired[list[str]] + mirror_url: Union[str, None] + has_issues: bool + has_projects: bool + has_pages: bool + has_wiki: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + license_: Union[None, LicenseSimpleType] + permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class RepoSearchResultItemPropPermissionsType(TypedDict): + """RepoSearchResultItemPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[RepoSearchResultItemType] -__all__ = ("CodespaceExportDetailsType",) +__all__ = ( + "RepoSearchResultItemPropPermissionsType", + "RepoSearchResultItemType", + "SearchRepositoriesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py index f303ba3e9..f18afb362 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py @@ -10,94 +10,83 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0178 import CodespaceMachineType -from .group_0218 import FullRepositoryType +from .group_0456 import SearchResultTextMatchesItemsType -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item - A codespace. + Topic Search Result Item """ - id: int name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] + display_name: Union[str, None] + short_description: Union[str, None] + description: Union[str, None] + created_by: Union[str, None] + released: Union[str, None] created_at: datetime updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespaceWithFullRepositoryPropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[ - CodespaceWithFullRepositoryPropRuntimeConstraintsType + featured: bool + curated: bool + score: float + repository_count: NotRequired[Union[int, None]] + logo_url: NotRequired[Union[str, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] + aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] + + +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropRelatedItemsPropTopicRelationType ] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] -class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): - """CodespaceWithFullRepositoryPropGitStatus +class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - Details about the codespace's git repository. - """ + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] + + +class TopicSearchResultItemPropAliasesItemsType(TypedDict): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropAliasesItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] -class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class SearchTopicsGetResponse200Type(TypedDict): + """SearchTopicsGetResponse200""" - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + total_count: int + incomplete_results: bool + items: list[TopicSearchResultItemType] __all__ = ( - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", - "CodespaceWithFullRepositoryType", + "SearchTopicsGetResponse200Type", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py index 767832678..f9ccab193 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py @@ -9,20 +9,65 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0456 import SearchResultTextMatchesItemsType -class EmailType(TypedDict): - """Email - Email +class UserSearchResultItemType(TypedDict): + """User Search Result Item + + User Search Result Item """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + received_events_url: str + type: str + score: float + following_url: str + gists_url: str + starred_url: str + events_url: str + public_repos: NotRequired[int] + public_gists: NotRequired[int] + followers: NotRequired[int] + following: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + name: NotRequired[Union[str, None]] + bio: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + site_admin: bool + hireable: NotRequired[Union[bool, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + blog: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + suspended_at: NotRequired[Union[datetime, None]] + user_view_type: NotRequired[str] + + +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[UserSearchResultItemType] -__all__ = ("EmailType",) +__all__ = ( + "SearchUsersGetResponse200Type", + "UserSearchResultItemType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py index 324df51fb..855325c4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py @@ -10,69 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class GpgKeyType(TypedDict): - """GPG Key +class PrivateUserType(TypedDict): + """Private User - A unique encryption key + Private User """ + login: str id: int - name: NotRequired[Union[str, None]] - primary_key_id: Union[int, None] - key_id: str - public_key: str - emails: list[GpgKeyPropEmailsItemsType] - subkeys: list[GpgKeyPropSubkeysItemsType] - can_sign: bool - can_encrypt_comms: bool - can_encrypt_storage: bool - can_certify: bool + user_view_type: NotRequired[str] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int created_at: datetime - expires_at: Union[datetime, None] - revoked: bool - raw_key: Union[str, None] + updated_at: datetime + private_gists: int + total_private_repos: int + owned_private_repos: int + disk_usage: int + collaborators: int + two_factor_authentication: bool + plan: NotRequired[PrivateUserPropPlanType] + business_plus: NotRequired[bool] + ldap_dn: NotRequired[str] -class GpgKeyPropEmailsItemsType(TypedDict): - """GpgKeyPropEmailsItems""" +class PrivateUserPropPlanType(TypedDict): + """PrivateUserPropPlan""" - email: NotRequired[str] - verified: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsType(TypedDict): - """GpgKeyPropSubkeysItems""" - - id: NotRequired[int] - primary_key_id: NotRequired[int] - key_id: NotRequired[str] - public_key: NotRequired[str] - emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] - subkeys: NotRequired[list[Any]] - can_sign: NotRequired[bool] - can_encrypt_comms: NotRequired[bool] - can_encrypt_storage: NotRequired[bool] - can_certify: NotRequired[bool] - created_at: NotRequired[str] - expires_at: NotRequired[Union[str, None]] - raw_key: NotRequired[Union[str, None]] - revoked: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: NotRequired[str] - verified: NotRequired[bool] + collaborators: int + name: str + space: int + private_repos: int __all__ = ( - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyType", + "PrivateUserPropPlanType", + "PrivateUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py index 6c95fc7a9..6be52538b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py @@ -9,23 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class KeyType(TypedDict): - """Key +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey - Key + The public key used for setting user Codespaces' Secrets. """ + key_id: str key: str - id: int - url: str - title: str - created_at: datetime - verified: bool - read_only: bool -__all__ = ("KeyType",) +__all__ = ("CodespacesUserPublicKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py index 8e2f24973..2b50d37d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py @@ -13,38 +13,21 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0163 import MarketplaceListingPlanType +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase - - User Marketplace Purchase + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - billing_cycle: str - next_billing_date: Union[datetime, None] - unit_count: Union[int, None] - on_free_trial: bool - free_trial_ends_on: Union[datetime, None] - updated_at: Union[datetime, None] - account: MarketplaceAccountType - plan: MarketplaceListingPlanType - - -class MarketplaceAccountType(TypedDict): - """Marketplace Account""" - - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + state: NotRequired[Union[str, None]] + completed_at: NotRequired[Union[datetime, None]] + branch: NotRequired[Union[str, None]] + sha: NotRequired[Union[str, None]] + id: NotRequired[str] + export_url: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ( - "MarketplaceAccountType", - "UserMarketplacePurchaseType", -) +__all__ = ("CodespaceExportDetailsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py index f892fc0d3..26dba35ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py @@ -9,17 +9,95 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0182 import CodespaceMachineType +from .group_0222 import FullRepositoryType -class SocialAccountType(TypedDict): - """Social account - Social media account +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace + + A codespace. """ - provider: str + id: int + name: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: FullRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] + created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] url: str + git_status: CodespaceWithFullRepositoryPropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[ + CodespaceWithFullRepositoryPropRuntimeConstraintsType + ] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + + +class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): + """CodespaceWithFullRepositoryPropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] -__all__ = ("SocialAccountType",) +__all__ = ( + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "CodespaceWithFullRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py index a3c3f348b..767832678 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class SshSigningKeyType(TypedDict): - """SSH Signing Key +class EmailType(TypedDict): + """Email - A public SSH key used to sign Git commits + Email """ - key: str - id: int - title: str - created_at: datetime + email: str + primary: bool + verified: bool + visibility: Union[str, None] -__all__ = ("SshSigningKeyType",) +__all__ = ("EmailType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py index de982a527..324df51fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py @@ -10,19 +10,69 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +class GpgKeyType(TypedDict): + """GPG Key -class StarredRepositoryType(TypedDict): - """Starred Repository - - Starred Repository + A unique encryption key """ - starred_at: datetime - repo: RepositoryType + id: int + name: NotRequired[Union[str, None]] + primary_key_id: Union[int, None] + key_id: str + public_key: str + emails: list[GpgKeyPropEmailsItemsType] + subkeys: list[GpgKeyPropSubkeysItemsType] + can_sign: bool + can_encrypt_comms: bool + can_encrypt_storage: bool + can_certify: bool + created_at: datetime + expires_at: Union[datetime, None] + revoked: bool + raw_key: Union[str, None] + + +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsType(TypedDict): + """GpgKeyPropSubkeysItems""" + + id: NotRequired[int] + primary_key_id: NotRequired[int] + key_id: NotRequired[str] + public_key: NotRequired[str] + emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] + subkeys: NotRequired[list[Any]] + can_sign: NotRequired[bool] + can_encrypt_comms: NotRequired[bool] + can_encrypt_storage: NotRequired[bool] + can_certify: NotRequired[bool] + created_at: NotRequired[str] + expires_at: NotRequired[Union[str, None]] + raw_key: NotRequired[Union[str, None]] + revoked: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] -__all__ = ("StarredRepositoryType",) +__all__ = ( + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py index d66bf379e..6c95fc7a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py @@ -9,26 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class HovercardType(TypedDict): - """Hovercard +class KeyType(TypedDict): + """Key - Hovercard + Key """ - contexts: list[HovercardPropContextsItemsType] + key: str + id: int + url: str + title: str + created_at: datetime + verified: bool + read_only: bool -class HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" - - message: str - octicon: str - - -__all__ = ( - "HovercardPropContextsItemsType", - "HovercardType", -) +__all__ = ("KeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py index 04b787e6a..bdc039697 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py @@ -9,17 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0166 import MarketplaceListingPlanType -class KeySimpleType(TypedDict): - """Key Simple - Key Simple +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ + billing_cycle: str + next_billing_date: Union[datetime, None] + unit_count: Union[int, None] + on_free_trial: bool + free_trial_ends_on: Union[datetime, None] + updated_at: Union[datetime, None] + account: MarketplaceAccountType + plan: MarketplaceListingPlanType + + +class MarketplaceAccountType(TypedDict): + """Marketplace Account""" + + url: str id: int - key: str + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] -__all__ = ("KeySimpleType",) +__all__ = ( + "MarketplaceAccountType", + "UserMarketplacePurchaseType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py index 4f0fc4229..f892fc0d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py @@ -9,31 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BillingUsageReportUserType(TypedDict): - """BillingUsageReportUser""" +class SocialAccountType(TypedDict): + """Social account - usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] + Social media account + """ + provider: str + url: str -class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): - """BillingUsageReportUserPropUsageItemsItems""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - repository_name: NotRequired[str] - - -__all__ = ( - "BillingUsageReportUserPropUsageItemsItemsType", - "BillingUsageReportUserType", -) +__all__ = ("SocialAccountType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py index c148eac40..a3c3f348b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py @@ -10,31 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterpriseWebhooksType(TypedDict): - """Enterprise +class SshSigningKeyType(TypedDict): + """SSH Signing Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." + A public SSH key used to sign Git commits """ - description: NotRequired[Union[str, None]] - html_url: str - website_url: NotRequired[Union[str, None]] + key: str id: int - node_id: str - name: str - slug: str - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - avatar_url: str + title: str + created_at: datetime -__all__ = ("EnterpriseWebhooksType",) +__all__ = ("SshSigningKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py index 6a6fdd608..de982a527 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py @@ -9,22 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class SimpleInstallationType(TypedDict): - """Simple Installation - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- - cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- - with-github-apps)." +class StarredRepositoryType(TypedDict): + """Starred Repository + + Starred Repository """ - id: int - node_id: str + starred_at: datetime + repo: RepositoryType -__all__ = ("SimpleInstallationType",) +__all__ = ("StarredRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py index b52264ecb..d66bf379e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py @@ -9,31 +9,26 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple +class HovercardType(TypedDict): + """Hovercard - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Hovercard """ - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - - -__all__ = ("OrganizationSimpleWebhooksType",) + contexts: list[HovercardPropContextsItemsType] + + +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" + + message: str + octicon: str + + +__all__ = ( + "HovercardPropContextsItemsType", + "HovercardType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py index 5ba060a68..04b787e6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py @@ -9,281 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +class KeySimpleType(TypedDict): + """Key Simple -class RepositoryWebhooksType(TypedDict): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. + Key Simple """ id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - forks: int - permissions: NotRequired[RepositoryWebhooksPropPermissionsType] - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[ - Union[RepositoryWebhooksPropTemplateRepositoryType, None] - ] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - starred_at: NotRequired[str] - anonymous_access_enabled: NotRequired[bool] - - -class RepositoryWebhooksPropPermissionsType(TypedDict): - """RepositoryWebhooksPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - - -RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""RepositoryWebhooksPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): - """RepositoryWebhooksPropTemplateRepository""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - full_name: NotRequired[str] - owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] - private: NotRequired[bool] - html_url: NotRequired[str] - description: NotRequired[str] - fork: NotRequired[bool] - url: NotRequired[str] - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - forks_url: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - notifications_url: NotRequired[str] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - ssh_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - clone_url: NotRequired[str] - mirror_url: NotRequired[str] - hooks_url: NotRequired[str] - svn_url: NotRequired[str] - homepage: NotRequired[str] - language: NotRequired[str] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[ - RepositoryWebhooksPropTemplateRepositoryPropPermissionsType - ] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - - -class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] + key: str -__all__ = ( - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksType", -) +__all__ = ("KeySimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py index 40a2b0a13..4f0fc4229 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py @@ -9,52 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/enterprise-cloud@latest//github/administering- - a-repository/defining-the-mergeability-of-pull-requests/about-protected- - branches#about-branch-protection-settings) applied to branches that match the - name. Binary settings are boolean. Multi-level configurations are one of `off`, - `non_admins`, or `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: list[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] - lock_allows_fork_sync: NotRequired[bool] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: list[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -__all__ = ("WebhooksRuleType",) +class BillingUsageReportUserType(TypedDict): + """BillingUsageReportUser""" + + usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] + + +class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): + """BillingUsageReportUserPropUsageItemsItems""" + + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + repository_name: NotRequired[str] + + +__all__ = ( + "BillingUsageReportUserPropUsageItemsItemsType", + "BillingUsageReportUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py b/githubkit/versions/ghec_v2022_11_28/types/group_0479.py index ff46b21c5..c148eac40 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0479.py @@ -10,22 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ExemptionResponseType(TypedDict): - """Exemption response +class EnterpriseWebhooksType(TypedDict): + """Enterprise - A response to an exemption request by a delegated bypasser. + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/enterprise- + cloud@latest//admin/overview/about-enterprise-accounts)." """ - id: NotRequired[int] - reviewer_id: NotRequired[int] - reviewer_login: NotRequired[str] - status: NotRequired[Literal["approved", "rejected", "dismissed"]] - reviewer_comment: NotRequired[Union[str, None]] - created_at: NotRequired[datetime] + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] + id: int + node_id: str + name: str + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + avatar_url: str -__all__ = ("ExemptionResponseType",) +__all__ = ("EnterpriseWebhooksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py index d5dca56d6..6a6fdd608 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py @@ -9,179 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0479 import ExemptionResponseType +class SimpleInstallationType(TypedDict): + """Simple Installation -class ExemptionRequestType(TypedDict): - """Exemption Request - - A request from a user to be exempted from a set of rules. - """ - - id: NotRequired[int] - number: NotRequired[Union[int, None]] - repository_id: NotRequired[int] - requester_id: NotRequired[int] - requester_login: NotRequired[str] - request_type: NotRequired[ - Literal[ - "push_ruleset_bypass", - "secret_scanning", - "secret_scanning_closure", - "code_scanning_alert_dismissal", - ] - ] - exemption_request_data: NotRequired[ - Union[ - ExemptionRequestPushRulesetBypassType, - ExemptionRequestSecretScanningType, - DismissalRequestSecretScanningType, - DismissalRequestCodeScanningType, - ] - ] - resource_identifier: NotRequired[str] - status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] - requester_comment: NotRequired[Union[str, None]] - metadata: NotRequired[ - Union[ - ExemptionRequestSecretScanningMetadataType, - DismissalRequestSecretScanningMetadataType, - DismissalRequestCodeScanningMetadataType, - None, - ] - ] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[list[ExemptionResponseType], None]] - html_url: NotRequired[str] - - -class ExemptionRequestSecretScanningMetadataType(TypedDict): - """Secret Scanning Push Protection Exemption Request Metadata - - Metadata for a secret scanning push protection exemption request. - """ - - label: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] - - -class DismissalRequestSecretScanningMetadataType(TypedDict): - """Secret scanning alert dismissal request metadata - - Metadata for a secret scanning alert dismissal request. - """ - - alert_title: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] - - -class DismissalRequestCodeScanningMetadataType(TypedDict): - """Code scanning alert dismissal request metadata - - Metadata for a code scanning alert dismissal request. + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- + cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- + with-github-apps)." """ - alert_title: NotRequired[str] - reason: NotRequired[Literal["false positive", "won't fix", "used in tests"]] - - -class ExemptionRequestPushRulesetBypassType(TypedDict): - """Push ruleset bypass exemption request data - - Push rules that are being requested to be bypassed. - """ - - type: NotRequired[Literal["push_ruleset_bypass"]] - data: NotRequired[list[ExemptionRequestPushRulesetBypassPropDataItemsType]] - - -class ExemptionRequestPushRulesetBypassPropDataItemsType(TypedDict): - """ExemptionRequestPushRulesetBypassPropDataItems""" - - ruleset_id: NotRequired[int] - ruleset_name: NotRequired[str] - total_violations: NotRequired[int] - rule_type: NotRequired[str] - - -class DismissalRequestSecretScanningType(TypedDict): - """Secret scanning alert dismissal request data - - Secret scanning alerts that have dismissal requests. - """ - - type: NotRequired[Literal["secret_scanning_closure"]] - data: NotRequired[list[DismissalRequestSecretScanningPropDataItemsType]] - - -class DismissalRequestSecretScanningPropDataItemsType(TypedDict): - """DismissalRequestSecretScanningPropDataItems""" - - reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] - secret_type: NotRequired[str] - alert_number: NotRequired[str] - - -class DismissalRequestCodeScanningType(TypedDict): - """Code scanning alert dismissal request data - - Code scanning alerts that have dismissal requests. - """ - - type: NotRequired[Literal["code_scanning_alert_dismissal"]] - data: NotRequired[list[DismissalRequestCodeScanningPropDataItemsType]] - - -class DismissalRequestCodeScanningPropDataItemsType(TypedDict): - """DismissalRequestCodeScanningPropDataItems""" - - alert_number: NotRequired[str] - - -class ExemptionRequestSecretScanningType(TypedDict): - """Secret scanning push protection exemption request data - - Secret scanning push protections that are being requested to be bypassed. - """ - - type: NotRequired[Literal["secret_scanning"]] - data: NotRequired[list[ExemptionRequestSecretScanningPropDataItemsType]] - - -class ExemptionRequestSecretScanningPropDataItemsType(TypedDict): - """ExemptionRequestSecretScanningPropDataItems""" - - secret_type: NotRequired[str] - locations: NotRequired[ - list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType] - ] - - -class ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType(TypedDict): - """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" - - commit: NotRequired[str] - branch: NotRequired[str] - path: NotRequired[str] + id: int + node_id: str -__all__ = ( - "DismissalRequestCodeScanningMetadataType", - "DismissalRequestCodeScanningPropDataItemsType", - "DismissalRequestCodeScanningType", - "DismissalRequestSecretScanningMetadataType", - "DismissalRequestSecretScanningPropDataItemsType", - "DismissalRequestSecretScanningType", - "ExemptionRequestPushRulesetBypassPropDataItemsType", - "ExemptionRequestPushRulesetBypassType", - "ExemptionRequestSecretScanningMetadataType", - "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", - "ExemptionRequestSecretScanningPropDataItemsType", - "ExemptionRequestSecretScanningType", - "ExemptionRequestType", -) +__all__ = ("SimpleInstallationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py index 8f6cf30d1..b52264ecb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py @@ -9,52 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0010 import IntegrationType -from .group_0168 import MinimalRepositoryType -from .group_0245 import PullRequestMinimalType +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - after: NotRequired[Union[str, None]] - app: NotRequired[Union[IntegrationType, None]] - before: NotRequired[Union[str, None]] - conclusion: NotRequired[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - pull_requests: NotRequired[list[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] - updated_at: NotRequired[datetime] - url: NotRequired[str] - - -__all__ = ("SimpleCheckSuiteType",) + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + + +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py index aa90c1ce2..5ba060a68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py @@ -10,66 +10,280 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0010 import IntegrationType -from .group_0245 import PullRequestMinimalType -from .group_0272 import DeploymentSimpleType -from .group_0481 import SimpleCheckSuiteType +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun +class RepositoryWebhooksType(TypedDict): + """Repository - A check performed on the code of a given code change + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. """ - app: Union[None, IntegrationType, None] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str - html_url: str id: int - name: str node_id: str - output: CheckRunWithSimpleCheckSuitePropOutputType - pull_requests: list[PullRequestMinimalType] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "pending"] + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + forks: int + permissions: NotRequired[RepositoryWebhooksPropPermissionsType] + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[ + Union[RepositoryWebhooksPropTemplateRepositoryType, None] + ] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + starred_at: NotRequired[str] + anonymous_access_enabled: NotRequired[bool] + + +class RepositoryWebhooksPropPermissionsType(TypedDict): + """RepositoryWebhooksPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""RepositoryWebhooksPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): + """RepositoryWebhooksPropTemplateRepository""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + full_name: NotRequired[str] + owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] + private: NotRequired[bool] + html_url: NotRequired[str] + description: NotRequired[str] + fork: NotRequired[bool] + url: NotRequired[str] + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + forks_url: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + notifications_url: NotRequired[str] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + ssh_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + clone_url: NotRequired[str] + mirror_url: NotRequired[str] + hooks_url: NotRequired[str] + svn_url: NotRequired[str] + homepage: NotRequired[str] + language: NotRequired[str] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[ + RepositoryWebhooksPropTemplateRepositoryPropPermissionsType + ] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + + +class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] -class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): - """CheckRunWithSimpleCheckSuitePropOutput""" +class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - annotations_count: int - annotations_url: str - summary: Union[str, None] - text: Union[str, None] - title: Union[str, None] + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] __all__ = ( - "CheckRunWithSimpleCheckSuitePropOutputType", - "CheckRunWithSimpleCheckSuiteType", + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py index a55d555bc..40a2b0a13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py @@ -9,27 +9,52 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey +class WebhooksRuleType(TypedDict): + """branch protection rule - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/enterprise-cloud@latest//github/administering- + a-repository/defining-the-mergeability-of-pull-requests/about-protected- + branches#about-branch-protection-settings) applied to branches that match the + name. Binary settings are boolean. Multi-level configurations are one of `off`, + `non_admins`, or `everyone`. Actor and build lists are arrays of strings. """ - added_by: NotRequired[Union[str, None]] - created_at: str + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: list[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str - url: str - verified: bool - enabled: NotRequired[bool] - - -__all__ = ("WebhooksDeployKeyType",) + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] + lock_allows_fork_sync: NotRequired[bool] + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + name: str + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] + repository_id: int + require_code_owner_review: bool + require_last_push_approval: NotRequired[bool] + required_approving_review_count: int + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] + required_status_checks: list[str] + required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] + signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] + strict_required_status_checks_policy: bool + updated_at: datetime + + +__all__ = ("WebhooksRuleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py index 34eb3310b..ff46b21c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py @@ -10,22 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhooksWorkflowType(TypedDict): - """Workflow""" +class ExemptionResponseType(TypedDict): + """Exemption response - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str + A response to an exemption request by a delegated bypasser. + """ + id: NotRequired[int] + reviewer_id: NotRequired[int] + reviewer_login: NotRequired[str] + status: NotRequired[Literal["approved", "rejected", "dismissed"]] + reviewer_comment: NotRequired[Union[str, None]] + created_at: NotRequired[datetime] -__all__ = ("WebhooksWorkflowType",) + +__all__ = ("ExemptionResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py index c93e49162..2c70d14de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py @@ -9,69 +9,179 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0484 import ExemptionResponseType -class WebhooksApproverType(TypedDict): - """WebhooksApprover""" - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class ExemptionRequestType(TypedDict): + """Exemption Request + + A request from a user to be exempted from a set of rules. + """ + id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewersItemsType(TypedDict): - """WebhooksReviewersItems""" - - reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] - type: NotRequired[Literal["User"]] - - -class WebhooksReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + number: NotRequired[Union[int, None]] + repository_id: NotRequired[int] + requester_id: NotRequired[int] + requester_login: NotRequired[str] + request_type: NotRequired[ + Literal[ + "push_ruleset_bypass", + "secret_scanning", + "secret_scanning_closure", + "code_scanning_alert_dismissal", + ] + ] + exemption_request_data: NotRequired[ + Union[ + ExemptionRequestPushRulesetBypassType, + ExemptionRequestSecretScanningType, + DismissalRequestSecretScanningType, + DismissalRequestCodeScanningType, + ] + ] + resource_identifier: NotRequired[str] + status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] + requester_comment: NotRequired[Union[str, None]] + metadata: NotRequired[ + Union[ + ExemptionRequestSecretScanningMetadataType, + DismissalRequestSecretScanningMetadataType, + DismissalRequestCodeScanningMetadataType, + None, + ] + ] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[list[ExemptionResponseType], None]] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + + +class ExemptionRequestSecretScanningMetadataType(TypedDict): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] + + +class DismissalRequestSecretScanningMetadataType(TypedDict): + """Secret scanning alert dismissal request metadata + + Metadata for a secret scanning alert dismissal request. + """ + + alert_title: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] + + +class DismissalRequestCodeScanningMetadataType(TypedDict): + """Code scanning alert dismissal request metadata + + Metadata for a code scanning alert dismissal request. + """ + + alert_title: NotRequired[str] + reason: NotRequired[Literal["false positive", "won't fix", "used in tests"]] + + +class ExemptionRequestPushRulesetBypassType(TypedDict): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: NotRequired[Literal["push_ruleset_bypass"]] + data: NotRequired[list[ExemptionRequestPushRulesetBypassPropDataItemsType]] + + +class ExemptionRequestPushRulesetBypassPropDataItemsType(TypedDict): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: NotRequired[int] + ruleset_name: NotRequired[str] + total_violations: NotRequired[int] + rule_type: NotRequired[str] + + +class DismissalRequestSecretScanningType(TypedDict): + """Secret scanning alert dismissal request data + + Secret scanning alerts that have dismissal requests. + """ + + type: NotRequired[Literal["secret_scanning_closure"]] + data: NotRequired[list[DismissalRequestSecretScanningPropDataItemsType]] + + +class DismissalRequestSecretScanningPropDataItemsType(TypedDict): + """DismissalRequestSecretScanningPropDataItems""" + + reason: NotRequired[Literal["fixed_later", "false_positive", "tests", "revoked"]] + secret_type: NotRequired[str] + alert_number: NotRequired[str] + + +class DismissalRequestCodeScanningType(TypedDict): + """Code scanning alert dismissal request data + + Code scanning alerts that have dismissal requests. + """ + + type: NotRequired[Literal["code_scanning_alert_dismissal"]] + data: NotRequired[list[DismissalRequestCodeScanningPropDataItemsType]] + + +class DismissalRequestCodeScanningPropDataItemsType(TypedDict): + """DismissalRequestCodeScanningPropDataItems""" + + alert_number: NotRequired[str] + + +class ExemptionRequestSecretScanningType(TypedDict): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: NotRequired[Literal["secret_scanning"]] + data: NotRequired[list[ExemptionRequestSecretScanningPropDataItemsType]] + + +class ExemptionRequestSecretScanningPropDataItemsType(TypedDict): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: NotRequired[str] + locations: NotRequired[ + list[ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType] + ] + + +class ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType(TypedDict): + """ExemptionRequestSecretScanningPropDataItemsPropLocationsItems""" + + commit: NotRequired[str] + branch: NotRequired[str] + path: NotRequired[str] __all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsPropReviewerType", - "WebhooksReviewersItemsType", + "DismissalRequestCodeScanningMetadataType", + "DismissalRequestCodeScanningPropDataItemsType", + "DismissalRequestCodeScanningType", + "DismissalRequestSecretScanningMetadataType", + "DismissalRequestSecretScanningPropDataItemsType", + "DismissalRequestSecretScanningType", + "ExemptionRequestPushRulesetBypassPropDataItemsType", + "ExemptionRequestPushRulesetBypassType", + "ExemptionRequestSecretScanningMetadataType", + "ExemptionRequestSecretScanningPropDataItemsPropLocationsItemsType", + "ExemptionRequestSecretScanningPropDataItemsType", + "ExemptionRequestSecretScanningType", + "ExemptionRequestType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py index 167cc5522..e77eff48f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py @@ -9,20 +9,52 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: None - status: str - updated_at: str - - -__all__ = ("WebhooksWorkflowJobRunType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0010 import IntegrationType +from .group_0171 import MinimalRepositoryType +from .group_0249 import PullRequestMinimalType + + +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change + """ + + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + pull_requests: NotRequired[list[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] + url: NotRequired[str] + + +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py index da4062d95..379fdc02d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py @@ -9,35 +9,67 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0249 import PullRequestMinimalType +from .group_0276 import DeploymentSimpleType +from .group_0486 import SimpleCheckSuiteType -class WebhooksUserType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, IntegrationType, None] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhooksUserType",) + name: str + node_id: str + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: list[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] + url: str + + +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] + + +__all__ = ( + "CheckRunWithSimpleCheckSuitePropOutputType", + "CheckRunWithSimpleCheckSuiteType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py index 32906747e..a55d555bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py @@ -9,82 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: datetime - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] - - -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey + The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- + keys/deploy-keys#get-a-deploy-key) resource. + """ -class WebhooksAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + added_by: NotRequired[Union[str, None]] + created_at: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool + enabled: NotRequired[bool] -__all__ = ( - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", - "WebhooksAnswerType", -) +__all__ = ("WebhooksDeployKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py index 48f1a497e..34eb3310b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py @@ -10,155 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class DiscussionType(TypedDict): - """Discussion +class WebhooksWorkflowType(TypedDict): + """Workflow""" - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - category: DiscussionPropCategoryType - comments: int + badge_url: str created_at: datetime html_url: str id: int - locked: bool + name: str node_id: str - number: int - reactions: NotRequired[DiscussionPropReactionsType] - repository_url: str - state: Literal["open", "closed", "locked", "converting", "transferring"] - state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] - timeline_url: NotRequired[str] - title: str + path: str + state: str updated_at: datetime - user: Union[DiscussionPropUserType, None] - labels: NotRequired[list[LabelType]] - - -class LabelType(TypedDict): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int - node_id: str url: str - name: str - description: Union[str, None] - color: str - default: bool - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class DiscussionPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ( - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", - "DiscussionType", - "LabelType", -) +__all__ = ("WebhooksWorkflowType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py index 4c279958b..c93e49162 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py @@ -13,49 +13,38 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksCommentType(TypedDict): - """WebhooksComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhooksCommentPropUserType, None] - - -class WebhooksCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksCommentPropUserType(TypedDict): +class WebhooksApproverType(TypedDict): + """WebhooksApprover""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewersItemsType(TypedDict): + """WebhooksReviewersItems""" + + reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] + type: NotRequired[Literal["User"]] + + +class WebhooksReviewersItemsPropReviewerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -79,11 +68,10 @@ class WebhooksCommentPropUserType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", - "WebhooksCommentType", + "WebhooksApproverType", + "WebhooksReviewersItemsPropReviewerType", + "WebhooksReviewersItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py index 469b744f3..167cc5522 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class WebhooksLabelType(TypedDict): - """Label""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - color: str - default: bool - description: Union[str, None] + conclusion: None + created_at: str + environment: str + html_url: str id: int - name: str - node_id: str - url: str + name: None + status: str + updated_at: str -__all__ = ("WebhooksLabelType",) +__all__ = ("WebhooksWorkflowJobRunType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py index 60f7cc9c6..da4062d95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py @@ -9,17 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksRepositoriesItemsType(TypedDict): - """WebhooksRepositoriesItems""" - - full_name: str +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class WebhooksUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - name: str - node_id: str - private: bool - - -__all__ = ("WebhooksRepositoriesItemsType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhooksUserType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py index afa5d37c4..32906747e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py @@ -9,17 +9,82 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" - full_name: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: datetime + discussion_id: int + html_url: str id: int - name: str node_id: str - private: bool + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] + repository_url: str + updated_at: datetime + user: Union[WebhooksAnswerPropUserType, None] -__all__ = ("WebhooksRepositoriesAddedItemsType",) +class WebhooksAnswerPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksAnswerPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", + "WebhooksAnswerType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py index 6393790aa..48f1a497e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py @@ -13,16 +13,17 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType +class DiscussionType(TypedDict): + """Discussion -class WebhooksIssueCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. + A Discussion in a repository. """ + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -34,19 +35,84 @@ class WebhooksIssueCommentType(TypedDict): "OWNER", ] body: str + category: DiscussionPropCategoryType + comments: int created_at: datetime html_url: str id: int - issue_url: str + locked: bool node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType + number: int + reactions: NotRequired[DiscussionPropReactionsType] + repository_url: str + state: Literal["open", "closed", "locked", "converting", "transferring"] + state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] + timeline_url: NotRequired[str] + title: str updated_at: datetime + user: Union[DiscussionPropUserType, None] + labels: NotRequired[list[LabelType]] + + +class LabelType(TypedDict): + """Label + + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). + """ + + id: int + node_id: str url: str - user: Union[WebhooksIssueCommentPropUserType, None] + name: str + description: Union[str, None] + color: str + default: bool + + +class DiscussionPropAnswerChosenByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str -class WebhooksIssueCommentPropReactionsType(TypedDict): +class DiscussionPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -61,7 +127,7 @@ class WebhooksIssueCommentPropReactionsType(TypedDict): url: str -class WebhooksIssueCommentPropUserType(TypedDict): +class DiscussionPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,13 +149,16 @@ class WebhooksIssueCommentPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", - "WebhooksIssueCommentType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", + "DiscussionType", + "LabelType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py index dea7603b6..4c279958b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py @@ -9,25 +9,81 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class WebhooksCommentType(TypedDict): + """WebhooksComment""" - The changes to the comment. - """ + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int + html_url: str + id: int + node_id: str + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhooksCommentPropUserType, None] - body: NotRequired[WebhooksChangesPropBodyType] +class WebhooksCommentPropReactionsType(TypedDict): + """Reactions""" -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - from_: str + +class WebhooksCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksChangesPropBodyType", - "WebhooksChangesType", + "WebhooksCommentPropReactionsType", + "WebhooksCommentPropUserType", + "WebhooksCommentType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py index 691816f54..469b744f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py @@ -9,122 +9,11 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0150 import IssueTypeType - -class WebhooksIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] - assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): +class WebhooksLabelType(TypedDict): """Label""" color: str @@ -136,222 +25,4 @@ class WebhooksIssuePropLabelsItemsType(TypedDict): url: str -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssuePropPullRequestType(TypedDict): - """WebhooksIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", - "WebhooksIssuePropUserType", - "WebhooksIssueType", -) +__all__ = ("WebhooksLabelType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py index 78c0b9fb1..60f7cc9c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py @@ -9,63 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + full_name: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: bool -__all__ = ( - "WebhooksMilestonePropCreatorType", - "WebhooksMilestoneType", -) +__all__ = ("WebhooksRepositoriesItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py index dbf46b92e..afa5d37c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py @@ -9,349 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0150 import IssueTypeType +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" -class WebhooksIssue2Type(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] - assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssue2PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssue2PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssue2PropPullRequestType] - reactions: WebhooksIssue2PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhooksIssue2PropUserType, None] - - -class WebhooksIssue2PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssue2PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] name: str node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssue2PropPullRequestType(TypedDict): - """WebhooksIssue2PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssue2PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssue2PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: bool -__all__ = ( - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", - "WebhooksIssue2PropUserType", - "WebhooksIssue2Type", -) +__all__ = ("WebhooksRepositoriesAddedItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py index 12263b7bb..6393790aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py @@ -9,11 +9,59 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType -class WebhooksUserMannequinType(TypedDict): + +class WebhooksIssueCommentType(TypedDict): + """issue comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime + html_url: str + id: int + issue_url: str + node_id: str + performed_via_github_app: Union[IntegrationType, None] + reactions: WebhooksIssueCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhooksIssueCommentPropUserType, None] + + +class WebhooksIssueCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssueCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,4 +88,8 @@ class WebhooksUserMannequinType(TypedDict): user_view_type: NotRequired[str] -__all__ = ("WebhooksUserMannequinType",) +__all__ = ( + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", + "WebhooksIssueCommentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py index 442613e28..dea7603b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py @@ -9,48 +9,25 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class WebhooksMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhooksChangesType(TypedDict): + """WebhooksChanges - account: WebhooksMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhooksMarketplacePurchasePropPlanType - unit_count: int + The changes to the comment. + """ + body: NotRequired[WebhooksChangesPropBodyType] -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" - -class WebhooksMarketplacePurchasePropPlanType(TypedDict): - """WebhooksMarketplacePurchasePropPlan""" - - bullets: list[Union[str, None]] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + from_: str __all__ = ( - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", - "WebhooksMarketplacePurchaseType", + "WebhooksChangesPropBodyType", + "WebhooksChangesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py index 38627d866..244a24482 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py @@ -9,48 +9,349 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0153 import IssueTypeType -class WebhooksPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - account: WebhooksPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhooksPreviousMarketplacePurchasePropPlanType - unit_count: int +class WebhooksIssueType(TypedDict): + """Issue + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ -class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropAccount""" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhooksIssuePropUserType, None] + + +class WebhooksIssuePropAssigneeType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str node_id: str - organization_billing_email: Union[str, None] - type: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropPlan""" +class WebhooksIssuePropMilestonePropCreatorType(TypedDict): + """User""" - bullets: list[str] - description: str - has_free_trial: bool + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + node_id: str + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", - "WebhooksPreviousMarketplacePurchaseType", + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropSubIssuesSummaryType", + "WebhooksIssuePropUserType", + "WebhooksIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py index 1b0b6886a..78c0b9fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py @@ -9,52 +9,63 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeamType(TypedDict): - """Team +class WebhooksMilestoneType(TypedDict): + """Milestone - Groups of organization members that gives permissions on specified repositories. + A collection of related issues and pull requests. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksTeamPropParentType(TypedDict): - """WebhooksTeamPropParent""" - + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksMilestonePropCreatorType, None] description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - members_url: str - name: str + labels_url: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str +class WebhooksMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + __all__ = ( - "WebhooksTeamPropParentType", - "WebhooksTeamType", + "WebhooksMilestonePropCreatorType", + "WebhooksMilestoneType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py index ceb943840..6377b1990 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py @@ -9,22 +9,349 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0246 import SimpleCommitType +from .group_0153 import IssueTypeType -class MergeGroupType(TypedDict): - """Merge Group +class WebhooksIssue2Type(TypedDict): + """Issue - A group of pull requests that the merge queue has grouped together to be merged. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] + assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssue2PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssue2PropPullRequestType] + reactions: WebhooksIssue2PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] -__all__ = ("MergeGroupType",) +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssue2PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssue2PropPullRequestType(TypedDict): + """WebhooksIssue2PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssue2PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssue2PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropSubIssuesSummaryType", + "WebhooksIssue2PropUserType", + "WebhooksIssue2Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py index 84341cab5..12263b7bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py @@ -9,36 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMilestone3Type(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestone3PropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestone3PropCreatorType(TypedDict): +class WebhooksUserMannequinType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -60,12 +35,9 @@ class WebhooksMilestone3PropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -__all__ = ( - "WebhooksMilestone3PropCreatorType", - "WebhooksMilestone3Type", -) +__all__ = ("WebhooksUserMannequinType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py index 838f548fa..442613e28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py @@ -10,51 +10,47 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksMembershipType(TypedDict): - """Membership +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + account: WebhooksMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhooksMarketplacePurchasePropPlanType + unit_count: int - organization_url: str - role: str - state: str - url: str - user: Union[WebhooksMembershipPropUserType, None] +class WebhooksMarketplacePurchasePropAccountType(TypedDict): + """WebhooksMarketplacePurchasePropAccount""" -class WebhooksMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhooksMarketplacePurchasePropPlanType(TypedDict): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: list[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksMembershipPropUserType", - "WebhooksMembershipType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", + "WebhooksMarketplacePurchaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py index 8767f4c9e..38627d866 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py @@ -9,163 +9,48 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request + account: WebhooksPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhooksPreviousMarketplacePurchasePropPlanType + unit_count: int - Details of a Personal Access Token Request. - """ + +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str - id: int - name: str + login: str node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ + organization_billing_email: Union[str, None] + type: str - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] +class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropPlan""" -PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsResultPropOther -""" + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestType", + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksPreviousMarketplacePurchaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py index 15e68c071..1b0b6886a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py @@ -9,57 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectCardType(TypedDict): - """Project Card""" +class WebhooksTeamType(TypedDict): + """Team - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhooksProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str + Groups of organization members that gives permissions on specified repositories. + """ - -class WebhooksProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + description: NotRequired[Union[str, None]] html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] + members_url: NotRequired[str] + name: str node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + parent: NotRequired[Union[WebhooksTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] + + +class WebhooksTeamPropParentType(TypedDict): + """WebhooksTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhooksProjectCardPropCreatorType", - "WebhooksProjectCardType", + "WebhooksTeamPropParentType", + "WebhooksTeamType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py index f00c9358c..2879a521f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py @@ -9,57 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0250 import SimpleCommitType -class WebhooksProjectType(TypedDict): - """Project""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] - html_url: str - id: int - name: str - node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime - url: str +class MergeGroupType(TypedDict): + """Merge Group + A group of pull requests that the merge queue has grouped together to be merged. + """ -class WebhooksProjectPropCreatorType(TypedDict): - """User""" + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -__all__ = ( - "WebhooksProjectPropCreatorType", - "WebhooksProjectType", -) +__all__ = ("MergeGroupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py index 3c545b05d..84341cab5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py @@ -10,22 +10,62 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectColumnType(TypedDict): - """Project Column""" +class WebhooksMilestone3Type(TypedDict): + """Milestone - after_id: NotRequired[Union[int, None]] - cards_url: str + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime + creator: Union[WebhooksMilestone3PropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -__all__ = ("WebhooksProjectColumnType",) +class WebhooksMilestone3PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksMilestone3PropCreatorType", + "WebhooksMilestone3Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py index 61f9ee87b..838f548fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py @@ -9,33 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksMembershipType(TypedDict): + """Membership -class ProjectsV2Type(TypedDict): - """Projects v2 Project - - A projects v2 project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float - node_id: str - owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] - - -__all__ = ("ProjectsV2Type",) + organization_url: str + role: str + state: str + url: str + user: Union[WebhooksMembershipPropUserType, None] + + +class WebhooksMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksMembershipPropUserType", + "WebhooksMembershipType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py index d31a72cb2..8767f4c9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py @@ -9,25 +9,163 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request + Details of a Personal Access Token Request. + """ -class WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" + id: int + owner: SimpleUserType + permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType + permissions_result: PersonalAccessTokenRequestPropPermissionsResultType + repository_selection: Literal["none", "all", "subset"] + repository_count: Union[int, None] + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsResultPropOther +""" __all__ = ( - "WebhooksProjectChangesPropArchivedAtType", - "WebhooksProjectChangesType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py index 11c42252b..15e68c071 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py @@ -13,24 +13,53 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectCardPropCreatorType(TypedDict): + """User""" - id: float + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("ProjectsV2ItemType",) +__all__ = ( + "WebhooksProjectCardPropCreatorType", + "WebhooksProjectCardType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py index 07d3ae203..f00c9358c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py @@ -9,31 +9,57 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectType(TypedDict): + """Project""" -class ProjectsV2StatusUpdateType(TypedDict): - """Projects v2 Status Update - - An status update belonging to a project - """ - - id: float - node_id: str - project_node_id: NotRequired[str] - creator: NotRequired[SimpleUserType] + body: Union[str, None] + columns_url: str created_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] updated_at: datetime - status: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - start_date: NotRequired[date] - target_date: NotRequired[date] - body: NotRequired[Union[str, None]] + url: str + + +class WebhooksProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("ProjectsV2StatusUpdateType",) +__all__ = ( + "WebhooksProjectPropCreatorType", + "WebhooksProjectType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py index 328b0e5a5..3c545b05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py @@ -10,88 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0066 import TeamSimpleType -from .group_0149 import MilestoneType -from .group_0304 import AutoMergeType -from .group_0384 import PullRequestPropLabelsItemsType -from .group_0385 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0386 import PullRequestPropLinksType +class WebhooksProjectColumnType(TypedDict): + """Project Column""" -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" - - url: str + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime id: int + name: str node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime + project_url: str updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + url: str -__all__ = ("PullRequestWebhookType",) +__all__ = ("WebhooksProjectColumnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py index 85163bcaa..61f9ee87b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py @@ -9,23 +9,33 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class ProjectsV2Type(TypedDict): + """Projects v2 Project + A projects v2 project + """ -__all__ = ("PullRequestWebhookAllof1Type",) + id: float + node_id: str + owner: SimpleUserType + creator: SimpleUserType + title: str + description: Union[str, None] + public: bool + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] + + +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py index 9c89f8ed7..d31a72cb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py @@ -10,869 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksPullRequest5Type(TypedDict): - """Pull Request""" +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" - links: WebhooksPullRequest5PropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhooksPullRequest5PropAssigneeType, None] - assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] - base: WebhooksPullRequest5PropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhooksPullRequest5PropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhooksPullRequest5PropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] - milestone: Union[WebhooksPullRequest5PropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhooksPullRequest5PropUserType, None] + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] -class WebhooksPullRequest5PropAssigneeType(TypedDict): - """User""" +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksPullRequest5PropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLinksType(TypedDict): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropCommentsType - commits: WebhooksPullRequest5PropLinksPropCommitsType - html: WebhooksPullRequest5PropLinksPropHtmlType - issue: WebhooksPullRequest5PropLinksPropIssueType - review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType - review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType - self_: WebhooksPullRequest5PropLinksPropSelfType - statuses: WebhooksPullRequest5PropLinksPropStatusesType - - -class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropBaseType(TypedDict): - """WebhooksPullRequest5PropBase""" - - label: str - ref: str - repo: WebhooksPullRequest5PropBasePropRepoType - sha: str - user: Union[WebhooksPullRequest5PropBasePropUserType, None] - - -class WebhooksPullRequest5PropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadType(TypedDict): - """WebhooksPullRequest5PropHead""" - - label: str - ref: str - repo: WebhooksPullRequest5PropHeadPropRepoType - sha: str - user: Union[WebhooksPullRequest5PropHeadPropUserType, None] - - -class WebhooksPullRequest5PropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhooksPullRequest5PropAssigneeType", - "WebhooksPullRequest5PropAssigneesItemsType", - "WebhooksPullRequest5PropAutoMergePropEnabledByType", - "WebhooksPullRequest5PropAutoMergeType", - "WebhooksPullRequest5PropBasePropRepoPropLicenseType", - "WebhooksPullRequest5PropBasePropRepoPropOwnerType", - "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", - "WebhooksPullRequest5PropBasePropRepoType", - "WebhooksPullRequest5PropBasePropUserType", - "WebhooksPullRequest5PropBaseType", - "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", - "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", - "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", - "WebhooksPullRequest5PropHeadPropRepoType", - "WebhooksPullRequest5PropHeadPropUserType", - "WebhooksPullRequest5PropHeadType", - "WebhooksPullRequest5PropLabelsItemsType", - "WebhooksPullRequest5PropLinksPropCommentsType", - "WebhooksPullRequest5PropLinksPropCommitsType", - "WebhooksPullRequest5PropLinksPropHtmlType", - "WebhooksPullRequest5PropLinksPropIssueType", - "WebhooksPullRequest5PropLinksPropReviewCommentType", - "WebhooksPullRequest5PropLinksPropReviewCommentsType", - "WebhooksPullRequest5PropLinksPropSelfType", - "WebhooksPullRequest5PropLinksPropStatusesType", - "WebhooksPullRequest5PropLinksType", - "WebhooksPullRequest5PropMergedByType", - "WebhooksPullRequest5PropMilestonePropCreatorType", - "WebhooksPullRequest5PropMilestoneType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", - "WebhooksPullRequest5PropRequestedTeamsItemsType", - "WebhooksPullRequest5PropUserType", - "WebhooksPullRequest5Type", + "WebhooksProjectChangesPropArchivedAtType", + "WebhooksProjectChangesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py index e0b112082..11c42252b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py @@ -13,127 +13,24 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item + + An item belonging to a project """ - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str + id: float + node_id: NotRequired[str] + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] - - -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + archived_at: Union[datetime, None] -__all__ = ( - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentType", -) +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py index 0d56edfb2..07d3ae203 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py @@ -9,89 +9,31 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksReviewType(TypedDict): - """WebhooksReview - The review that was affected. +class ProjectsV2StatusUpdateType(TypedDict): + """Projects v2 Status Update + + An status update belonging to a project """ - links: WebhooksReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int + id: float node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] - - -class WebhooksReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType - - -class WebhooksReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str + project_node_id: NotRequired[str] + creator: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ( - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropUserType", - "WebhooksReviewType", -) +__all__ = ("ProjectsV2StatusUpdateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py index 10aec5ffc..897a0cc57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py @@ -13,129 +13,85 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0066 import TeamSimpleType +from .group_0152 import MilestoneType +from .group_0308 import AutoMergeType +from .group_0388 import PullRequestPropLabelsItemsType +from .group_0389 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0390 import PullRequestPropLinksType -class WebhooksReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - assets: list[WebhooksReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhooksReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str url: str - zipball_url: Union[str, None] - - -class WebhooksReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str node_id: str - size: int - state: Literal["uploaded"] + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksReleasePropAssetsItemsPropUploaderType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleaseType", -) + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] + + +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py index 29f198924..85163bcaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py @@ -9,133 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksRelease1Type(TypedDict): - """Release +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] - assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksRelease1PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - -class WebhooksRelease1PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksRelease1PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksRelease1PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -__all__ = ( - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", - "WebhooksRelease1Type", -) +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py index 3401e5834..9c89f8ed7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py @@ -14,32 +14,716 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" - The security alert of the vulnerable dependency. + links: WebhooksPullRequest5PropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhooksPullRequest5PropAssigneeType, None] + assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhooksPullRequest5PropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhooksPullRequest5PropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] + milestone: Union[WebhooksPullRequest5PropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhooksPullRequest5PropUserType, None] + + +class WebhooksPullRequest5PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhooksPullRequest5PropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksPullRequest5PropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str number: int - severity: str - state: Literal["open"] + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksPullRequest5PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLinksType(TypedDict): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropCommentsType + commits: WebhooksPullRequest5PropLinksPropCommitsType + html: WebhooksPullRequest5PropLinksPropHtmlType + issue: WebhooksPullRequest5PropLinksPropIssueType + review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType + review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType + self_: WebhooksPullRequest5PropLinksPropSelfType + statuses: WebhooksPullRequest5PropLinksPropStatusesType + + +class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropBaseType(TypedDict): + """WebhooksPullRequest5PropBase""" + + label: str + ref: str + repo: WebhooksPullRequest5PropBasePropRepoType + sha: str + user: Union[WebhooksPullRequest5PropBasePropUserType, None] + + +class WebhooksPullRequest5PropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadType(TypedDict): + """WebhooksPullRequest5PropHead""" + + label: str + ref: str + repo: WebhooksPullRequest5PropHeadPropRepoType + sha: str + user: Union[WebhooksPullRequest5PropHeadPropUserType, None] + + +class WebhooksPullRequest5PropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksAlertPropDismisserType(TypedDict): +class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -63,9 +747,132 @@ class WebhooksAlertPropDismisserType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhooksAlertPropDismisserType", - "WebhooksAlertType", + "WebhooksPullRequest5PropAssigneeType", + "WebhooksPullRequest5PropAssigneesItemsType", + "WebhooksPullRequest5PropAutoMergePropEnabledByType", + "WebhooksPullRequest5PropAutoMergeType", + "WebhooksPullRequest5PropBasePropRepoPropLicenseType", + "WebhooksPullRequest5PropBasePropRepoPropOwnerType", + "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", + "WebhooksPullRequest5PropBasePropRepoType", + "WebhooksPullRequest5PropBasePropUserType", + "WebhooksPullRequest5PropBaseType", + "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", + "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", + "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", + "WebhooksPullRequest5PropHeadPropRepoType", + "WebhooksPullRequest5PropHeadPropUserType", + "WebhooksPullRequest5PropHeadType", + "WebhooksPullRequest5PropLabelsItemsType", + "WebhooksPullRequest5PropLinksPropCommentsType", + "WebhooksPullRequest5PropLinksPropCommitsType", + "WebhooksPullRequest5PropLinksPropHtmlType", + "WebhooksPullRequest5PropLinksPropIssueType", + "WebhooksPullRequest5PropLinksPropReviewCommentType", + "WebhooksPullRequest5PropLinksPropReviewCommentsType", + "WebhooksPullRequest5PropLinksPropSelfType", + "WebhooksPullRequest5PropLinksPropStatusesType", + "WebhooksPullRequest5PropLinksType", + "WebhooksPullRequest5PropMergedByType", + "WebhooksPullRequest5PropMilestonePropCreatorType", + "WebhooksPullRequest5PropMilestoneType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", + "WebhooksPullRequest5PropRequestedTeamsItemsType", + "WebhooksPullRequest5PropUserType", + "WebhooksPullRequest5Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py index 60f295adf..e0b112082 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py @@ -13,46 +13,127 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] + links: WebhooksReviewCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertWebhookType",) + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhooksReviewCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhooksReviewCommentPropUserType, None] + + +class WebhooksReviewCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReviewCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewCommentPropLinksType(TypedDict): + """WebhooksReviewCommentPropLinks""" + + html: WebhooksReviewCommentPropLinksPropHtmlType + pull_request: WebhooksReviewCommentPropLinksPropPullRequestType + self_: WebhooksReviewCommentPropLinksPropSelfType + + +class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +__all__ = ( + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py index dce9a1159..0d56edfb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py @@ -9,95 +9,89 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +class WebhooksReviewType(TypedDict): + """WebhooksReview -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The review that was affected. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] - severity: str - summary: str - updated_at: str - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, None] -class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksReviewPropUserType(TypedDict): + """User""" - url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksReviewPropLinksType(TypedDict): + """WebhooksReviewPropLinks""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str + html: WebhooksReviewPropLinksPropHtmlType + pull_request: WebhooksReviewPropLinksPropPullRequestType -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" - identifier: str + href: str -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" - ecosystem: str - name: str + href: str __all__ = ( - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryType", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropUserType", + "WebhooksReviewType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py index 7dd35b2e2..593e61fe6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py @@ -9,47 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksSponsorshipType(TypedDict): - """WebhooksSponsorship""" - - created_at: str - maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhooksSponsorshipPropSponsorType, None] - sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] - tier: WebhooksSponsorshipPropTierType - - -class WebhooksSponsorshipPropMaintainerType(TypedDict): - """WebhooksSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhooksReleaseType(TypedDict): + """Release + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ -class WebhooksSponsorshipPropSponsorType(TypedDict): + assets: list[WebhooksReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhooksReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksReleasePropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -76,7 +70,44 @@ class WebhooksSponsorshipPropSponsorType(TypedDict): user_view_type: NotRequired[str] -class WebhooksSponsorshipPropSponsorableType(TypedDict): +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -100,32 +131,12 @@ class WebhooksSponsorshipPropSponsorableType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str __all__ = ( - "WebhooksSponsorshipPropMaintainerType", - "WebhooksSponsorshipPropSponsorType", - "WebhooksSponsorshipPropSponsorableType", - "WebhooksSponsorshipPropTierType", - "WebhooksSponsorshipType", + "WebhooksReleasePropAssetsItemsPropUploaderType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleaseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py index bcc71503a..868af322f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py @@ -9,42 +9,134 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" +class WebhooksRelease1Type(TypedDict): + """Release - tier: WebhooksChanges8PropTierType - - -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - from_: WebhooksChanges8PropTierPropFromType + assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] + assets_url: str + author: Union[WebhooksRelease1PropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksRelease1PropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier +class WebhooksRelease1PropAssetsItemsType(TypedDict): + """Release Asset - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + Data related to a release. """ - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] name: str node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksRelease1PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str __all__ = ( - "WebhooksChanges8PropTierPropFromType", - "WebhooksChanges8PropTierType", - "WebhooksChanges8Type", + "WebhooksRelease1PropAssetsItemsPropUploaderType", + "WebhooksRelease1PropAssetsItemsType", + "WebhooksRelease1PropAuthorType", + "WebhooksRelease1PropReactionsType", + "WebhooksRelease1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py index 108b60484..3401e5834 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py @@ -9,52 +9,63 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert - Groups of organization members that gives permissions on specified repositories. + The security alert of the vulnerable dependency. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + node_id: str + number: int + severity: str + state: Literal["open"] -class WebhooksTeam1PropParentType(TypedDict): - """WebhooksTeam1PropParent""" +class WebhooksAlertPropDismisserType(TypedDict): + """User""" - description: Union[str, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhooksTeam1PropParentType", - "WebhooksTeam1Type", + "WebhooksAlertPropDismisserType", + "WebhooksAlertType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py index d488d2509..60f295adf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py @@ -9,25 +9,50 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" - - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("SecretScanningAlertWebhookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py index 4340e809b..dce9a1159 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py @@ -9,25 +9,95 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0001 import CvssSeveritiesType -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhooksSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] + published_at: str + references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] + severity: str + summary: str + updated_at: str + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] + withdrawn_at: Union[str, None] -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) + +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str + name: str + + +__all__ = ( + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py index 9f9960121..7dd35b2e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py @@ -9,27 +9,123 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0478 import WebhooksRuleType +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" + created_at: str + maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] + node_id: str + privacy_level: str + sponsor: Union[WebhooksSponsorshipPropSponsorType, None] + sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] + tier: WebhooksSponsorshipPropTierType - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType +class WebhooksSponsorshipPropMaintainerType(TypedDict): + """WebhooksSponsorshipPropMaintainer""" -__all__ = ("WebhookBranchProtectionRuleCreatedType",) + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorableType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropTierType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", + "WebhooksSponsorshipType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py index 30968dc7d..bcc71503a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py @@ -9,27 +9,42 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0478 import WebhooksRuleType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" + tier: WebhooksChanges8PropTierType - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -__all__ = ("WebhookBranchProtectionRuleDeletedType",) + from_: WebhooksChanges8PropTierPropFromType + + +class WebhooksChanges8PropTierPropFromType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksChanges8PropTierPropFromType", + "WebhooksChanges8PropTierType", + "WebhooksChanges8Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py index 5e0e17e2e..108b60484 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py @@ -12,170 +12,49 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0478 import WebhooksRuleType +class WebhooksTeam1Type(TypedDict): + """Team -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" - - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType - - -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType - ] - authorized_actor_names: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType - ] - authorized_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType - ] - authorized_dismissal_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType - ] - linear_history_requirement_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType - ] - lock_branch_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType - ] - lock_allows_fork_sync: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType - ] - pull_request_reviews_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType - ] - require_last_push_approval: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType - ] - required_status_checks: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType - ] - required_status_checks_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType - ] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: list[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel + Groups of organization members that gives permissions on specified repositories. """ - from_: Literal["off", "non_admins", "everyone"] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksTeam1PropParentType(TypedDict): + """WebhooksTeam1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedType", + "WebhooksTeam1PropParentType", + "WebhooksTeam1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py index 7eacf8831..8adecb25a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0480 import ExemptionRequestType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookExemptionRequestCancelledType(TypedDict): - """Exemption request cancellation event""" +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - action: Literal["cancelled"] + action: Literal["disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestCancelledType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py index 82c471281..9fb3fec43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0480 import ExemptionRequestType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookExemptionRequestCompletedType(TypedDict): - """Exemption request completed event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["completed"] + action: Literal["enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestCompletedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py index 22d7ae3ac..6ecb0a233 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0480 import ExemptionRequestType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0483 import WebhooksRuleType -class WebhookExemptionRequestCreatedType(TypedDict): - """Exemption request created event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestCreatedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py index ebd3561b2..d9426b901 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0479 import ExemptionResponseType -from .group_0480 import ExemptionRequestType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0483 import WebhooksRuleType -class WebhookExemptionRequestResponseDismissedType(TypedDict): - """Exemption response dismissed event""" +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - action: Literal["response_dismissed"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - exemption_response: ExemptionResponseType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestResponseDismissedType",) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py index 2c00eda77..8cb363416 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py @@ -9,29 +9,173 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0479 import ExemptionResponseType -from .group_0480 import ExemptionRequestType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0483 import WebhooksRuleType -class WebhookExemptionRequestResponseSubmittedType(TypedDict): - """Exemption response submitted event""" +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" - action: Literal["response_submitted"] + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - exemption_response: ExemptionResponseType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookExemptionRequestResponseSubmittedType",) +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + lock_branch_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType + ] + lock_allows_fork_sync: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType + ] + pull_request_reviews_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType + ] + require_last_push_approval: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +__all__ = ( + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py index 055130925..ed24199b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0482 import CheckRunWithSimpleCheckSuiteType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0485 import ExemptionRequestType -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" +class WebhookExemptionRequestCancelledType(TypedDict): + """Exemption request cancellation event""" - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["cancelled"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedType",) +__all__ = ("WebhookExemptionRequestCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py index 831afd105..4add9efbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0485 import ExemptionRequestType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookExemptionRequestCompletedType(TypedDict): + """Exemption request completed event""" - payload: str + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookExemptionRequestCompletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py index 3f88f11da..98930f172 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0482 import CheckRunWithSimpleCheckSuiteType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0485 import ExemptionRequestType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookExemptionRequestCreatedType(TypedDict): + """Exemption request created event""" action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookExemptionRequestCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py index 090ccf388..65183817e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py @@ -9,16 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0484 import ExemptionResponseType +from .group_0485 import ExemptionRequestType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseDismissedType(TypedDict): + """Exemption response dismissed event""" - payload: str + action: Literal["response_dismissed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookExemptionRequestResponseDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py index 1955ae4ce..487cbd10d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py @@ -13,34 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0482 import CheckRunWithSimpleCheckSuiteType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0484 import ExemptionResponseType +from .group_0485 import ExemptionRequestType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookExemptionRequestResponseSubmittedType(TypedDict): + """Exemption response submitted event""" - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["response_submitted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType sender: SimpleUserType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: NotRequired[str] - - -__all__ = ( - "WebhookCheckRunRequestedActionPropRequestedActionType", - "WebhookCheckRunRequestedActionType", -) +__all__ = ("WebhookExemptionRequestResponseSubmittedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py index 0d80e2c39..871bff9fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0487 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - payload: str + action: Literal["completed"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py index c2a804532..831afd105 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0482 import CheckRunWithSimpleCheckSuiteType +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" + The check_run.completed webhook encoded with URL encoding + """ - action: Literal["rerequested"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + payload: str -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py index ef6a77599..329f28e5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0487 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - payload: str + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py index dd8d4503c..090ccf388 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py @@ -9,268 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" - - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] - updated_at: datetime - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.created webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedType", -) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py index ece828013..9fb099d27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py @@ -9,265 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0487 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). + The action requested by the user. """ - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + identifier: NotRequired[str] __all__ = ( - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedType", + "WebhookCheckRunRequestedActionPropRequestedActionType", + "WebhookCheckRunRequestedActionType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py index 85b0abdad..0d80e2c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py @@ -9,264 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" - - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py index 53a61320e..4cadafdd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py @@ -9,154 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0487 import CheckRunWithSimpleCheckSuiteType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str - version: Union[str, None] - - -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchType", -) +__all__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py b/githubkit/versions/ghec_v2022_11_28/types/group_0549.py index 7c88e321b..ef6a77599 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0549.py @@ -9,192 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str - dismissal_approved_by: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, - None, - ] - ] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + payload: str -__all__ = ( - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py index 74772ff69..320317ff2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py @@ -14,117 +14,263 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed"]] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] + created_at: datetime + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType + ] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] + updated_at: datetime url: str - dismissal_approved_by: NotRequired[None] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): + """App - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py index 666262800..644ca2fb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py @@ -14,53 +14,92 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType - commit_oid: str + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType ] - fixed_at: NotRequired[None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Union[None, Literal["fixed"]] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -87,72 +126,148 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """Committer - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + Metaproperties for Git author/committer information. + """ + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + id: int + name: str + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py index 456f593ba..ef3feb587 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py @@ -14,121 +14,259 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[str, None] - fixed_at: NotRequired[None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py index eeef3f42d..490d6fc7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,64 @@ class WebhookCodeScanningAlertReopenedByUserType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: None - dismissed_by: None + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] fixed_at: NotRequired[None] html_url: str most_recent_instance: NotRequired[ Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, None, ] ] number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Union[None, Literal["open", "fixed"]] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( TypedDict ): """Alert Instance""" @@ -71,20 +102,20 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion """ end_column: NotRequired[int] @@ -94,35 +125,38 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: NotRequired[str] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str id: str severity: Union[None, Literal["none", "note", "warning", "error"]] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py index c1efa7f12..5b63fe49d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py @@ -9,77 +9,158 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: datetime + dismissed_at: datetime + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None ] - body: str - commit_id: str - created_at: str + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] html_url: str - id: int - line: Union[int, None] - node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + dismissal_approved_by: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, + None, + ] + ] -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): + """User""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -107,8 +188,13 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): __all__ = ( - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py index 9b37537b1..c0265db17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py @@ -9,29 +9,122 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - description: Union[str, None] + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed"]] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] + url: str + dismissal_approved_by: NotRequired[None] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py index 3339f1a12..f5f249aa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py @@ -9,25 +9,150 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0078 import CustomPropertyType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["created"] - definition: CustomPropertyType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Union[None, Literal["fixed"]] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py index 711acd600..067499194 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py @@ -9,33 +9,126 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: Union[str, None] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert - property_name: str + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[str, None] + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] __all__ = ( - "WebhookCustomPropertyDeletedPropDefinitionType", - "WebhookCustomPropertyDeletedType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py index 35c1c231a..aef9562fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py @@ -9,25 +9,120 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0078 import CustomPropertyType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): - """custom property promoted to business event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - action: Literal["promote_to_enterprise"] - definition: CustomPropertyType + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: Union[None, Literal["open", "fixed"]] + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py index 5695d991f..538e1b6e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py @@ -9,25 +9,106 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0078 import CustomPropertyType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" - action: Literal["updated"] - definition: CustomPropertyType + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: str + html_url: str + id: int + line: Union[int, None] + node_id: str + path: Union[str, None] + position: Union[int, None] + reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] + updated_at: str + url: str + user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + + +class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py index 01dbf4189..06e26c1af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0215 import CustomPropertyValueType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["updated"] + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str + organization: NotRequired[OrganizationSimpleWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserType] - new_property_values: list[CustomPropertyValueType] - old_property_values: list[CustomPropertyValueType] + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py index 80c8ae24c..daadb1e21 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0078 import CustomPropertyType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" + action: Literal["created"] + definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDeleteType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py index 79ebf0cdf..5b0096e14 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py @@ -13,23 +13,29 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0320 import DependabotAlertType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + + +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ( + "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCustomPropertyDeletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py index c5e6c018b..abcd2d9e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0320 import DependabotAlertType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0078 import CustomPropertyType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): + """custom property promoted to business event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType + action: Literal["promote_to_enterprise"] + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py index c486092ff..84f43f7fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0320 import DependabotAlertType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0078 import CustomPropertyType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["created"] - alert: DependabotAlertType + action: Literal["updated"] + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py index 530a621d5..39cf98205 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py @@ -13,23 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0320 import DependabotAlertType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0219 import CustomPropertyValueType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserType] + new_property_values: list[CustomPropertyValueType] + old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py index be6544990..1d553da4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0320 import DependabotAlertType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["fixed"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py index c7d8edd08..f920f70ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0320 import DependabotAlertType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0324 import DependabotAlertType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["reintroduced"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReintroducedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py index 643f4cc76..5a9087f01 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0320 import DependabotAlertType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0324 import DependabotAlertType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["reopened"] + action: Literal["auto_reopened"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py index 40da6a89a..c9c2938a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0483 import WebhooksDeployKeyType +from .group_0324 import DependabotAlertType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py index 2673526be..2c7d55ef2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0483 import WebhooksDeployKeyType +from .group_0324 import DependabotAlertType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["dismissed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py index 322620c17..fbaf71035 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py @@ -9,550 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0484 import WebhooksWorkflowType +from .group_0324 import DependabotAlertType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] - - -class WebhookDeploymentCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/deployments#list-deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] - performed_via_github_app: NotRequired[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] -"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 -""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: NotRequired[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedType", -) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py index d6b0a904b..a24987b7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py @@ -13,26 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0252 import DeploymentType -from .group_0383 import PullRequestType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType - - -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" - - action: Literal["requested"] - environment: NotRequired[str] - event: NotRequired[str] - deployment_callback_url: NotRequired[str] - deployment: NotRequired[DeploymentType] - pull_requests: NotRequired[list[PullRequestType]] - repository: NotRequired[RepositoryWebhooksType] - organization: NotRequired[OrganizationSimpleWebhooksType] +from .group_0324 import DependabotAlertType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" + + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserType] + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py index 5268665f9..964a62355 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py @@ -9,419 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0485 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0486 import WebhooksWorkflowJobRunType +from .group_0324 import DependabotAlertType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py index 1ac08d764..ed4c2a28e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py @@ -9,417 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0485 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0486 import WebhooksWorkflowJobRunType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0488 import WebhooksDeployKeyType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedType", -) +__all__ = ("WebhookDeployKeyCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py index 20a769e9d..47164a88f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py @@ -9,453 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0488 import WebhooksDeployKeyType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["requested"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] - environment: str installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedType", -) +__all__ = ("WebhookDeployKeyDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py index 0d88cacd2..c47a80187 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py @@ -14,61 +14,28 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0484 import WebhooksWorkflowType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0489 import WebhooksWorkflowType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] - ] - - -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str + workflow: Union[WebhooksWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): """Deployment The [deployment](https://docs.github.com/enterprise- @@ -76,20 +43,15 @@ class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): """ created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] description: Union[str, None] environment: str id: int node_id: str original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] ] production_environment: NotRequired[bool] ref: str @@ -102,7 +64,7 @@ class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): url: str -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -129,16 +91,12 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): user_view_type: NotRequired[str] -WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ - str, Any -] -"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 +WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] +"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 """ -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( - TypedDict -): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -156,17 +114,17 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, None, ] permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( TypedDict ): """User""" @@ -195,11 +153,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -241,173 +198,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropP workflows: NotRequired[Literal["read", "write"]] -class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/enterprise- - cloud@latest//rest/deployments/statuses#list-deployment-statuses). - """ - - created_at: str - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None - ] - deployment_url: str - description: str - environment: str - environment_url: NotRequired[str] - id: int - log_url: NotRequired[str] - node_id: str - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, - None, - ] - ] - repository_url: str - state: str - target_url: str - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -423,7 +217,6 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "timed_out", "action_required", "stale", - "startup_failure", ], ] created_at: datetime @@ -432,7 +225,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): head_branch: str head_commit: NotRequired[None] head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -444,19 +237,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): path: str previous_attempt_url: NotRequired[None] pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType - ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] rerun_url: NotRequired[str] run_attempt: int run_number: int @@ -464,8 +255,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] ] updated_at: datetime url: str @@ -473,7 +264,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): workflow_url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -500,17 +291,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -537,8 +328,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(Typed user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -575,7 +366,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -590,10 +381,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -615,8 +404,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerTy url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -653,7 +442,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -668,10 +457,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -693,27 +480,29 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -723,17 +512,19 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -744,30 +535,24 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead __all__ = ( - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedType", + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py index 0235f2831..dd239fb36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py @@ -13,25 +13,26 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0488 import WebhooksAnswerType -from .group_0489 import DiscussionType - - -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" - - action: Literal["answered"] - answer: WebhooksAnswerType - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] +from .group_0256 import DeploymentType +from .group_0387 import PullRequestType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" + + action: Literal["requested"] + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[list[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDiscussionAnsweredType",) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py index bd0019139..85a9bfa14 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py @@ -10,60 +10,418 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0490 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0491 import WebhooksWorkflowJobRunType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): + """User""" - created_at: datetime - description: str - emoji: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - is_answerable: bool - name: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py index e286235a2..0ad134f43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py @@ -9,27 +9,417 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0490 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0491 import WebhooksWorkflowJobRunType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["closed"] - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionClosedType",) +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py index d03a5035c..fcceaabdb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py @@ -9,29 +9,453 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType -from .group_0490 import WebhooksCommentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["created"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhooksUserType, None] + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentCreatedType",) +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str + + +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py index 7a22113e3..aced36bda 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py @@ -9,29 +9,765 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType -from .group_0490 import WebhooksCommentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0489 import WebhooksWorkflowType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["deleted"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["created"] + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + workflow: NotRequired[Union[WebhooksWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -__all__ = ("WebhookDiscussionCommentDeletedType",) +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ + str, Any +] +"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 +""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/statuses#list-deployment-statuses). + """ + + created_at: str + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None + ] + deployment_url: str + description: str + environment: str + environment_url: NotRequired[str] + id: int + log_url: NotRequired[str] + node_id: str + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, + None, + ] + ] + repository_url: str + state: str + target_url: str + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py index 85ed37216..8014b323d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py @@ -13,20 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType -from .group_0490 import WebhooksCommentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0493 import WebhooksAnswerType +from .group_0494 import DiscussionType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhooksCommentType + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -35,20 +34,4 @@ class WebhookDiscussionCommentEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" - - body: WebhookDiscussionCommentEditedPropChangesPropBodyType - - -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedType", -) +__all__ = ("WebhookDiscussionAnsweredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py index 60b7cf624..ccadf2394 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py @@ -9,21 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["created"] + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,36 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCreatedType",) +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +__all__ = ( + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py index 851152376..41422569a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["deleted"] + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionDeletedType",) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py index 9476861ec..c0deed084 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py @@ -13,18 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType +from .group_0495 import WebhooksCommentType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["created"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +34,4 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" - - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] - - -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedType", -) +__all__ = ("WebhookDiscussionCommentCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py index 6237b7692..384c190a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType -from .group_0491 import WebhooksLabelType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType +from .group_0495 import WebhooksCommentType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["labeled"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py index 0f15552ef..09bf6a179 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py @@ -13,17 +13,20 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType +from .group_0495 import WebhooksCommentType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["locked"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionLockedType",) +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +__all__ = ( + "WebhookDiscussionCommentEditedPropChangesPropBodyType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py index 7d3d1d158..6e3cc5215 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["pinned"] + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py index dd29718b1..9b3fd4622 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py index 644d0bd99..b77656b9d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py @@ -13,19 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType -from .group_0591 import WebhookDiscussionTransferredPropChangesType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +33,28 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredType",) +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" + + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py index 80c4d2562..647f385c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType +from .group_0496 import WebhooksLabelType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["labeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionLabeledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py index d6741e6e9..4225824ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0488 import WebhooksAnswerType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["unanswered"] + action: Literal["locked"] discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookDiscussionUnansweredType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py index e195f51d2..fd8000883 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType -from .group_0491 import WebhooksLabelType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["unlabeled"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py index 6f2d3cc6d..0238987b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - action: Literal["unlocked"] + action: Literal["reopened"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnlockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py index d62706afd..a7a841b70 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0489 import DiscussionType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType +from .group_0596 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - action: Literal["unpinned"] + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py index 3d3d36da3..97b59bb44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0597 import WebhookForkPropForkeeType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookForkType(TypedDict): - """fork event +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - A user forks a repository. - """ + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py index c4fa3c598..c1813e631 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py @@ -9,151 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0599 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0493 import WebhooksAnswerType +from .group_0494 import DiscussionType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. - """ + action: Literal["unanswered"] + discussion: DiscussionType + old_answer: WebhooksAnswerType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: datetime - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[Union[str, None], None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: Literal[True] - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[Union[str, None], None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[None, None] - languages_url: str - license_: Union[WebhookForkPropForkeeMergedLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[None, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: WebhookForkPropForkeeMergedOwnerType - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: datetime - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeMergedLicenseType(TypedDict): - """WebhookForkPropForkeeMergedLicense""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeMergedOwnerType(TypedDict): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", - "WebhookForkPropForkeeType", -) +__all__ = ("WebhookDiscussionUnansweredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py index f89ab3164..ac1acf617 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py @@ -9,150 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0599 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType +from .group_0496 import WebhooksLabelType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" - A git repository - """ + action: Literal["unlabeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", - "WebhookForkPropForkeeAllof0Type", -) +__all__ = ("WebhookDiscussionUnlabeledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py index a6cb9b92f..508674c82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py @@ -9,17 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" + action: Literal["unlocked"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py index 624daaf0c..22d1006f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py @@ -9,122 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0494 import DiscussionType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[list[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" + action: Literal["unpinned"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", - "WebhookForkPropForkeeAllof1Type", -) +__all__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py index 52c10d4b8..f67b66fa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py @@ -9,17 +9,28 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0602 import WebhookForkPropForkeeType -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" +class WebhookForkType(TypedDict): + """fork event - action: Literal["revoked"] + A user forks a repository. + """ + + enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookForkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py b/githubkit/versions/ghec_v2022_11_28/types/group_0602.py index 877bbda1c..0f4671666 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0602.py @@ -9,39 +9,151 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0604 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pages: list[WebhookGollumPropPagesItemsType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: datetime + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[Union[str, None], None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: Literal[True] + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[Union[str, None], None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[None, None] + languages_url: str + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[None, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: WebhookForkPropForkeeMergedOwnerType + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: datetime + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookGollumPropPagesItemsType", - "WebhookGollumType", + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", + "WebhookForkPropForkeeType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py index 50eee3633..fe02f47f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py @@ -9,29 +9,150 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType -from .group_0492 import WebhooksRepositoriesItemsType +from .group_0604 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] - sender: SimpleUserType + A git repository + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationCreatedType",) + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py index 4a951e680..a6cb9b92f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0492 import WebhooksRepositoriesItemsType +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType - -__all__ = ("WebhookInstallationDeletedType",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py index dd39e2795..624daaf0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py @@ -9,28 +9,122 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0492 import WebhooksRepositoriesItemsType +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[list[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] - action: Literal["new_permissions_accepted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" -__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py index 0446b3037..52c10d4b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType -from .group_0493 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" - - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserType -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" - full_name: NotRequired[str] - id: NotRequired[int] - name: NotRequired[str] - node_id: NotRequired[str] - private: NotRequired[bool] + action: Literal["revoked"] + sender: SimpleUserType -__all__ = ( - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesAddedType", -) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py index a78d5c1e8..e14abadf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py @@ -13,42 +13,35 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType -from .group_0493 import WebhooksRepositoriesAddedItemsType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] + pages: list[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" - full_name: str - id: int - name: str - node_id: str - private: bool + action: Literal["created", "edited"] + html_url: str + page_name: str + sha: str + summary: Union[str, None] + title: str __all__ = ( - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedType", + "WebhookGollumPropPagesItemsType", + "WebhookGollumType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py index 13e30dccc..8c76e1ddb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0492 import WebhooksRepositoriesItemsType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType +from .group_0497 import WebhooksRepositoriesItemsType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["suspend"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + requester: NotRequired[Union[WebhooksUserType, None]] sender: SimpleUserType -__all__ = ("WebhookInstallationSuspendType",) +__all__ = ("WebhookInstallationCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py index 1cadd3f3f..0a565955d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py @@ -9,95 +9,28 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0018 import InstallationType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0497 import WebhooksRepositoriesItemsType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - target_type: str + requester: NotRequired[None] + sender: SimpleUserType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: NotRequired[Union[str, None]] - avatar_url: str - created_at: NotRequired[str] - description: NotRequired[None] - events_url: NotRequired[str] - followers: NotRequired[int] - followers_url: NotRequired[str] - following: NotRequired[int] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - hooks_url: NotRequired[str] - html_url: str - id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] - node_id: str - organizations_url: NotRequired[str] - public_gists: NotRequired[int] - public_members_url: NotRequired[str] - public_repos: NotRequired[int] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - slug: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - website_url: NotRequired[None] - user_view_type: NotRequired[str] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str - - -__all__ = ( - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedType", -) +__all__ = ("WebhookInstallationDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py index 2a18f55e8..ba5fe6013 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0492 import WebhooksRepositoriesItemsType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0497 import WebhooksRepositoriesItemsType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["unsuspend"] + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,4 +33,4 @@ class WebhookInstallationUnsuspendType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py index 778f4c90d..85ad062ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py @@ -9,29 +9,46 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0612 import WebhookIssueCommentCreatedPropCommentType -from .group_0613 import WebhookIssueCommentCreatedPropIssueType +from .group_0018 import InstallationType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType +from .group_0498 import WebhooksRepositoriesAddedItemsType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType + ] + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] sender: SimpleUserType -__all__ = ("WebhookIssueCommentCreatedType",) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + node_id: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ( + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py index 6ba5d4683..750419df3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py @@ -9,87 +9,46 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType - - -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType +from .group_0498 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType, None] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + name: str + node_id: str + private: bool __all__ = ( - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", - "WebhookIssueCommentCreatedPropCommentType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py index c37979ce6..821b514ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py @@ -9,157 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType -from .group_0615 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0620 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0622 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0623 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0497 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ + action: Literal["suspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", - "WebhookIssueCommentCreatedPropIssueType", -) +__all__ = ("WebhookInstallationSuspendType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py index 105d667e7..a36cd6f39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py @@ -9,163 +9,95 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType -from .group_0615 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0617 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0619 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0620 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + target_type: str + + +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] events_url: NotRequired[str] + followers: NotRequired[int] followers_url: NotRequired[str] + following: NotRequired[int] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] - html_url: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - login: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] + node_id: str organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] received_events_url: NotRequired[str] repos_url: NotRequired[str] site_admin: NotRequired[bool] + slug: NotRequired[str] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + website_url: NotRequired[None] user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py b/githubkit/versions/ghec_v2022_11_28/types/group_0615.py index 088b44492..ba8742c59 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0615.py @@ -9,62 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0497 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" + action: Literal["unsuspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookInstallationUnsuspendType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py index 2a39d32cf..e43337e78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0617 import WebhookIssueCommentCreatedPropCommentType +from .group_0618 import WebhookIssueCommentCreatedPropIssueType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" + + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py index bbac28cd2..6ba5d4683 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py @@ -11,37 +11,85 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0616 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +from .group_0010 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - A collection of related issues and pull requests. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - description: Union[str, None] - due_on: Union[datetime, None] + body: str + created_at: datetime html_url: str id: int - labels_url: str + issue_url: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType updated_at: datetime url: str + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] + + +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +__all__ = ( + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookIssueCommentCreatedPropCommentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py index b261a91af..a02691ac5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py @@ -9,14 +9,87 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0153 import IssueTypeType +from .group_0620 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0625 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0627 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0628 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, +) + + +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" + +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,58 +110,56 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py index 706670ba3..a43e48806 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py @@ -10,41 +10,162 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0618 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0153 import IssueTypeType +from .group_0620 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0622 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0624 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0625 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py index ef1c4a5c5..088b44492 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py @@ -9,15 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py index 7b1858f2a..2a39d32cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py @@ -13,49 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,75 +40,4 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py index 72717dd16..8ba7ccf3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py @@ -13,13 +13,16 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0616 import ( +from .group_0621 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -41,4 +44,4 @@ class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py b/githubkit/versions/ghec_v2022_11_28/types/group_0623.py index bd3166e94..b261a91af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0623.py @@ -9,36 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0618 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py index 813c6f825..a8b57e5d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py @@ -9,29 +9,42 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0494 import WebhooksIssueCommentType -from .group_0625 import WebhookIssueCommentDeletedPropIssueType - - -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" - - action: Literal["deleted"] - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentDeletedType",) +from .group_0623 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py index 01ce71dee..ef1c4a5c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py @@ -9,157 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0150 import IssueTypeType -from .group_0627 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0632 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0634 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0635 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", - "WebhookIssueCommentDeletedPropIssueType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py index 4badfa9db..7b1858f2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py @@ -9,92 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType -from .group_0627 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0629 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0631 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0632 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None ] ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -121,36 +82,57 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict) user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -158,14 +140,17 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py index 0cf270ec9..ded78c1c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py @@ -11,60 +11,34 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +from .group_0621 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - color: str - default: bool + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py index b8118ecd1..b05e9fdf4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py @@ -9,35 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) +from .group_0623 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py index b97c594c3..97e09f0b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py @@ -9,39 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0628 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0499 import WebhooksIssueCommentType +from .group_0630 import WebhookIssueCommentDeletedPropIssueType + + +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" + + action: Literal["deleted"] + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py index 078dc1e49..b9f322a73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py @@ -9,14 +9,87 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0153 import IssueTypeType +from .group_0632 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0637 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0639 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0640 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, +) + + +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentDeletedPropIssueMergedUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" + +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,58 +110,56 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py index 3446b505e..1dd4a0912 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py @@ -10,41 +10,162 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0630 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0153 import IssueTypeType +from .group_0632 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0634 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0636 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0637 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + ] ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py index aa70cbec8..0cf270ec9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py @@ -9,15 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py index 0664cda5a..b8118ecd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py @@ -13,49 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,76 +40,4 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py index e712a5799..3ede5f05d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py @@ -13,13 +13,16 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0628 import ( +from .group_0633 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -41,4 +44,4 @@ class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py index f6ef9aa59..078dc1e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py @@ -9,36 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0630 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py index 6cd0e9d86..5f2486324 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py @@ -9,31 +9,42 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0494 import WebhooksIssueCommentType -from .group_0495 import WebhooksChangesType -from .group_0637 import WebhookIssueCommentEditedPropIssueType - - -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" - - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentEditedType",) +from .group_0635 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py index 0fa7ac7fd..aa70cbec8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py @@ -9,155 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0150 import IssueTypeType -from .group_0639 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) -from .group_0644 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -from .group_0646 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0647 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", - "WebhookIssueCommentEditedPropIssueType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py index e4f4f73f0..0664cda5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py @@ -9,90 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType -from .group_0639 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) -from .group_0641 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0643 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0644 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None ] ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -119,36 +82,57 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str url: str -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -156,14 +140,18 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", - "WebhookIssueCommentEditedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py index 398fe7733..6eaca87fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py @@ -11,60 +11,34 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +from .group_0633 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - color: str - default: bool + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py index 9ac4a4c4e..fcb6fbd07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py @@ -9,35 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) +from .group_0635 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py index 3c38d7b3c..ec80b66f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py @@ -9,39 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0640 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0499 import WebhooksIssueCommentType +from .group_0500 import WebhooksChangesType +from .group_0642 import WebhookIssueCommentEditedPropIssueType + + +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" + + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentEditedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py index 3b96ed6e4..59b41aa6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py @@ -9,14 +9,85 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0153 import IssueTypeType +from .group_0644 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) +from .group_0649 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType +from .group_0651 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0652 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, +) + + +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentEditedPropIssueMergedUserType + -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,57 +108,56 @@ class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - The set of permissions for the GitHub app - """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", + "WebhookIssueCommentEditedPropIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py index 9d2bcce88..55d16e9db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py @@ -10,41 +10,160 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0642 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0153 import IssueTypeType +from .group_0644 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) +from .group_0646 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0648 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0649 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", + "WebhookIssueCommentEditedPropIssueAllof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py index 5c991e61e..398fe7733 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py @@ -9,15 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py index d5d49ac59..9ac4a4c4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py @@ -13,49 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,75 +40,4 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", - "WebhookIssueCommentEditedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py index 72f471b49..e69f2d0e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py @@ -13,13 +13,16 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0640 import ( +from .group_0645 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -41,4 +44,4 @@ class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py index 513774455..3b96ed6e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py @@ -9,36 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0642 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py index a6130237a..4359415df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py @@ -9,29 +9,42 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType -from .group_0496 import WebhooksIssueType - - -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" - - action: Literal["assigned"] - assignee: NotRequired[Union[WebhooksUserType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssuesAssignedType",) +from .group_0647 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py index f0bccce7a..5c991e61e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py @@ -9,27 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0650 import WebhookIssuesClosedPropIssueType +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" + total: int + completed: int + percent_completed: int - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - -__all__ = ("WebhookIssuesClosedType",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py index 2845a2e3c..d5d49ac59 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py @@ -9,77 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType -from .group_0656 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0658 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0659 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType - - -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -105,35 +82,12 @@ class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -144,36 +98,41 @@ class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -181,16 +140,17 @@ class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", - "WebhookIssuesClosedPropIssueType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py index 46e99186b..0a23bafb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py @@ -11,190 +11,34 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0150 import IssueTypeType -from .group_0653 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0655 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -from .group_0656 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +from .group_0645 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] closed_at: Union[datetime, None] - comments: int - comments_url: str + closed_issues: int created_at: datetime - draft: NotRequired[bool] - events_url: str + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] node_id: str number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] + open_issues: int + state: Literal["open", "closed"] title: str - type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", - "WebhookIssuesClosedPropIssueAllof0Type", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py index 2a05f2e97..399300ad0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py @@ -9,35 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) +from .group_0647 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py index 4a2d0686c..c228e29a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py @@ -9,35 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0652 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType +from .group_0501 import WebhooksIssueType -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssuesAssignedType(TypedDict): + """issues assigned event""" - A collection of related issues and pull requests. - """ + action: Literal["assigned"] + assignee: NotRequired[Union[WebhooksUserType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssuesAssignedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py index 77496d06f..6eb2bef5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py @@ -9,85 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0655 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py index 9d1f8bf33..8afb403b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py @@ -10,40 +10,187 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0654 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0153 import IssueTypeType +from .group_0661 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, ) +from .group_0663 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0664 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] + assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType + + +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): + """WebhookIssuesClosedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", + "WebhookIssuesClosedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py index 2fe4e0efb..008e7f825 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py @@ -10,29 +10,191 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0153 import IssueTypeType +from .group_0658 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0660 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0661 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +) + + +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py index 06e71289d..2a05f2e97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py @@ -13,95 +13,21 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,18 +35,9 @@ class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", - "WebhookIssuesClosedPropIssueAllof1Type", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py b/githubkit/versions/ghec_v2022_11_28/types/group_0658.py index b2f6999e8..c55c5adae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0658.py @@ -13,11 +13,14 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0652 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0657 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -37,4 +40,4 @@ class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py index 462a62eec..77496d06f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py @@ -9,35 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0654 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0660.py b/githubkit/versions/ghec_v2022_11_28/types/group_0660.py index a164c9f28..a6adf26a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0660.py @@ -9,27 +9,41 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0661 import WebhookIssuesDeletedPropIssueType - - -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssuesDeletedType",) +from .group_0659 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py index a6931f15e..2fe4e0efb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py @@ -10,286 +10,12 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -298,22 +24,7 @@ class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -321,45 +32,7 @@ class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - __all__ = ( - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDeletedPropIssuePropUserType", - "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py index 3f62904a0..06e71289d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py @@ -9,29 +9,118 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0497 import WebhooksMilestoneType -from .group_0663 import WebhookIssuesDemilestonedPropIssueType +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + ] + assignees: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + ] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" -__all__ = ("WebhookIssuesDemilestonedType",) + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py index 3aca94355..9c558e412 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py @@ -11,147 +11,18 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0150 import IssueTypeType +from .group_0657 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -166,206 +37,4 @@ class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDemilestonedPropIssuePropUserType", - "WebhookIssuesDemilestonedPropIssueType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py index 2c4ae7f40..a7e7f1254 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py @@ -9,57 +9,35 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType -from .group_0665 import WebhookIssuesEditedPropIssueType - - -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" - - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str +from .group_0659 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -__all__ = ( - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedType", -) +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py index e82b9a134..c495fb743 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py @@ -9,356 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0666 import WebhookIssuesDeletedPropIssueType -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] - -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesEditedPropIssuePropUserType", - "WebhookIssuesEditedPropIssueType", -) +__all__ = ("WebhookIssuesDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py index 1fe311d57..d36eb8f00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py @@ -9,29 +9,357 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType -from .group_0667 import WebhookIssuesLabeledPropIssueType +from .group_0153 import IssueTypeType -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" +class WebhookIssuesDeletedPropIssueType(TypedDict): + """Issue - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLabeledType",) + +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDeletedPropIssuePropUserType", + "WebhookIssuesDeletedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py index 75573b24f..bf2b9a908 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py @@ -9,356 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0502 import WebhooksMilestoneType +from .group_0668 import WebhookIssuesDemilestonedPropIssueType -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["demilestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] - -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLabeledPropIssuePropUserType", - "WebhookIssuesLabeledPropIssueType", -) +__all__ = ("WebhookIssuesDemilestonedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py index be101cbd7..ca283575e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py @@ -9,27 +9,363 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0669 import WebhookIssuesLockedPropIssueType +from .group_0153 import IssueTypeType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" +class WebhookIssuesDemilestonedPropIssueType(TypedDict): + """Issue - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLockedType",) + +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py index 83f2bfc68..358e41110 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py @@ -9,359 +9,57 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType +from .group_0670 import WebhookIssuesEditedPropIssueType -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhooksLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges - -class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The changes to the issue. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] -class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" - total: int - completed: int - percent_completed: int + from_: str -class WebhookIssuesLockedPropIssuePropUserType(TypedDict): - """User""" +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str __all__ = ( - "WebhookIssuesLockedPropIssuePropAssigneeType", - "WebhookIssuesLockedPropIssuePropAssigneesItemsType", - "WebhookIssuesLockedPropIssuePropLabelsItemsType", - "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLockedPropIssuePropMilestoneType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssuePropPullRequestType", - "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLockedPropIssuePropUserType", - "WebhookIssuesLockedPropIssueType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py index af71776a3..0e54e69ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py @@ -9,29 +9,356 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0497 import WebhooksMilestoneType -from .group_0671 import WebhookIssuesMilestonedPropIssueType +from .group_0153 import IssueTypeType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" +class WebhookIssuesEditedPropIssueType(TypedDict): + """Issue - action: Literal["milestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesEditedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesMilestonedType",) + +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesEditedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesEditedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py index c626b52e0..f88557aaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py @@ -9,357 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType +from .group_0672 import WebhookIssuesLabeledPropIssueType -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """Issue +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] - -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesMilestonedPropIssuePropUserType", - "WebhookIssuesMilestonedPropIssueType", -) +__all__ = ("WebhookIssuesLabeledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py index 8061d235e..ca5531471 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py @@ -9,29 +9,356 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0673 import WebhookIssuesOpenedPropChangesType -from .group_0675 import WebhookIssuesOpenedPropIssueType +from .group_0153 import IssueTypeType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookIssuesLabeledPropIssueType(TypedDict): + """Issue - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] -__all__ = ("WebhookIssuesOpenedType",) + +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesLabeledPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py index 2d2cdfa8f..97bb53d64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py @@ -9,189 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0674 import WebhookIssuesOpenedPropChangesPropOldIssueType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0674 import WebhookIssuesLockedPropIssueType -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + action: Literal["locked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_discussions: NotRequired[bool] - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesType", -) +__all__ = ("WebhookIssuesLockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py index d177b04a6..a39396484 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py @@ -13,87 +13,68 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0153 import IssueTypeType -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): +class WebhookIssuesLockedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- cloud@latest//rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: NotRequired[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - assignees: NotRequired[ - list[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None - ] - ] - ] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[datetime, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[datetime] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime draft: NotRequired[bool] - events_url: NotRequired[str] - html_url: NotRequired[str] + events_url: str + html_url: str id: int labels: NotRequired[ - list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] ] - node_id: NotRequired[str] + labels_url: str + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] + node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] - repository_url: NotRequired[str] + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType + repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType + WebhookIssuesLockedPropIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[datetime] - url: NotRequired[str] - user: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - ] type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -120,7 +101,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -147,7 +128,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -159,7 +140,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): +class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -168,9 +149,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -185,7 +164,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -212,9 +191,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(Typ user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -232,19 +209,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -271,11 +245,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -317,8 +290,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLockedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -327,7 +300,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): +class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -342,7 +315,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -350,7 +323,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDi percent_completed: int -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): +class WebhookIssuesLockedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -378,17 +351,17 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLockedPropIssuePropUserType", + "WebhookIssuesLockedPropIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py index da5de641b..d5a6325e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py @@ -9,357 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0502 import WebhooksMilestoneType +from .group_0676 import WebhookIssuesMilestonedPropIssueType -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropIssueType", -) +__all__ = ("WebhookIssuesMilestonedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py index 322bfdcf0..32fde4a59 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py @@ -9,27 +9,357 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0498 import WebhooksIssue2Type +from .group_0153 import IssueTypeType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue - action: Literal["pinned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesPinnedType",) + +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py index 1fda1b124..f9c18f085 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0678 import WebhookIssuesReopenedPropIssueType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0678 import WebhookIssuesOpenedPropChangesType +from .group_0680 import WebhookIssuesOpenedPropIssueType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - action: Literal["reopened"] + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + issue: WebhookIssuesOpenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesReopenedType",) +__all__ = ("WebhookIssuesOpenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py index a77cb6a17..e52438878 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py @@ -10,213 +10,147 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0150 import IssueTypeType +from .group_0679 import WebhookIssuesOpenedPropChangesPropOldIssueType -class WebhookIssuesReopenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] - type: NotRequired[Union[IssueTypeType, None]] + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType -class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository - -class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + A git repository """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str description: Union[str, None] - due_on: Union[datetime, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - number: int + notifications_url: str open_issues: int - state: Literal["open", "closed"] - title: str + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + key: str name: str node_id: str - owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + spdx_id: str + url: Union[str, None] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -243,123 +177,21 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - -class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookIssuesReopenedPropIssuePropAssigneeType", - "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", - "WebhookIssuesReopenedPropIssuePropLabelsItemsType", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesReopenedPropIssuePropMilestoneType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssuePropPullRequestType", - "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesReopenedPropIssuePropUserType", - "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py index f8ac1c6dc..743e7a600 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py @@ -9,29 +9,386 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0498 import WebhooksIssue2Type -from .group_0680 import WebhookIssuesTransferredPropChangesType +from .group_0153 import IssueTypeType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: NotRequired[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: NotRequired[ + list[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None + ] + ] + ] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[datetime, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[datetime] + draft: NotRequired[bool] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: int + labels: NotRequired[ + list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + ] + node_id: NotRequired[str] + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] + repository_url: NotRequired[str] + sub_issues_summary: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[datetime] + url: NotRequired[str] + user: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + ] + type: NotRequired[Union[IssueTypeType, None]] -__all__ = ("WebhookIssuesTransferredType",) + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py index 17102afa4..e4e67dcff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py @@ -10,149 +10,213 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0681 import WebhookIssuesTransferredPropChangesPropNewIssueType +from .group_0153 import IssueTypeType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesOpenedPropIssueType(TypedDict): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository - - A git repository + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str html_url: str id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str + labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str node_id: str - notifications_url: str + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str + state: Literal["open", "closed"] + title: str updated_at: datetime url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App - key: str + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - spdx_id: str - url: Union[str, None] + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -179,23 +243,123 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDic user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py index f4c0ba2c9..a88f5b9f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py @@ -9,385 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0503 import WebhooksIssue2Type -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): - """Issue +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ + action: Literal["pinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: list[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( - TypedDict -): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", -) +__all__ = ("WebhookIssuesPinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py index ee748c43a..8912ed21d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0150 import IssueTypeType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0496 import WebhooksIssueType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0683 import WebhookIssuesReopenedPropIssueType -class WebhookIssuesTypedType(TypedDict): - """issues typed event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["typed"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - type: Union[IssueTypeType, None] + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesTypedType",) +__all__ = ("WebhookIssuesReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py index 72f6885f0..e96b89955 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py @@ -9,29 +9,357 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0496 import WebhooksIssueType -from .group_0499 import WebhooksUserMannequinType +from .group_0153 import IssueTypeType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + type: NotRequired[Union[IssueTypeType, None]] -__all__ = ("WebhookIssuesUnassignedType",) + +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesReopenedPropIssueType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py index 137bd9e55..63532f565 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType -from .group_0496 import WebhooksIssueType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0503 import WebhooksIssue2Type +from .group_0685 import WebhookIssuesTransferredPropChangesType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["unlabeled"] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnlabeledType",) +__all__ = ("WebhookIssuesTransferredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py index 91201f79e..8a3227890 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py @@ -9,27 +9,193 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0686 import WebhookIssuesUnlockedPropIssueType +from .group_0686 import WebhookIssuesTransferredPropChangesPropNewIssueType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" - action: Literal["unlocked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType -__all__ = ("WebhookIssuesUnlockedType",) +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py index 568ada9cf..b32065e8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py @@ -13,10 +13,10 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0150 import IssueTypeType +from .group_0153 import IssueTypeType -class WebhookIssuesUnlockedPropIssueType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -26,8 +26,14 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: list[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -48,21 +54,28 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] ] labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + locked: NotRequired[bool] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -71,10 +84,10 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -101,7 +114,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -128,7 +141,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -140,7 +153,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -149,7 +162,10 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -164,7 +180,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -191,7 +209,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( + TypedDict +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -209,16 +229,19 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -245,10 +268,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -290,8 +314,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -300,7 +324,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -315,7 +339,9 @@ class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( + TypedDict +): """Sub-issues Summary""" total: int @@ -323,7 +349,7 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -351,17 +377,17 @@ class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesUnlockedPropIssuePropUserType", - "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py index 4dbb4f298..dc5ccfe32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0498 import WebhooksIssue2Type +from .group_0153 import IssueTypeType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0501 import WebhooksIssueType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesTypedType(TypedDict): + """issues typed event""" - action: Literal["unpinned"] + action: Literal["typed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhooksIssueType + type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnpinnedType",) +__all__ = ("WebhookIssuesTypedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py index 040bbddd5..71ac620bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0150 import IssueTypeType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0496 import WebhooksIssueType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0501 import WebhooksIssueType +from .group_0504 import WebhooksUserMannequinType -class WebhookIssuesUntypedType(TypedDict): - """issues untyped event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["untyped"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssueType - type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUntypedType",) +__all__ = ("WebhookIssuesUnassignedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py index e4957c2d8..c79abb3c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType +from .group_0501 import WebhooksIssueType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["created"] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookLabelCreatedType",) +__all__ = ("WebhookIssuesUnlabeledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py index 8e7f13d7f..8395b75bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0691 import WebhookIssuesUnlockedPropIssueType -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["deleted"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookLabelDeletedType",) +__all__ = ("WebhookIssuesUnlockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py index f205118e3..b989c9b76 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py @@ -9,63 +9,359 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType +from .group_0153 import IssueTypeType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookIssuesUnlockedPropIssueType(TypedDict): + """Issue - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + + +class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookLabelEditedPropChangesType(TypedDict): - """WebhookLabelEditedPropChanges - The changes to the label if the action was `edited`. +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - color: NotRequired[WebhookLabelEditedPropChangesPropColorType] - description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] -class WebhookLabelEditedPropChangesPropColorType(TypedDict): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): + """Reactions""" - from_: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): - """WebhookLabelEditedPropChangesPropDescription""" +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" - from_: str + total: int + completed: int + percent_completed: int -class WebhookLabelEditedPropChangesPropNameType(TypedDict): - """WebhookLabelEditedPropChangesPropName""" +class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesUnlockedPropIssuePropUserType", + "WebhookIssuesUnlockedPropIssueType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py index 75de55df6..9e96d8f3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py @@ -13,26 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0500 import WebhooksMarketplacePurchaseType -from .group_0501 import WebhooksPreviousMarketplacePurchaseType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0503 import WebhooksIssue2Type -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["unpinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +__all__ = ("WebhookIssuesUnpinnedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py index 63e35a694..7159c89fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py @@ -13,74 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0500 import WebhooksMarketplacePurchaseType +from .group_0153 import IssueTypeType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0501 import WebhooksIssueType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookIssuesUntypedType(TypedDict): + """issues untyped event""" - action: Literal["changed"] - effective_date: str + action: Literal["untyped"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssueType + type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: Union[bool, None] - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedType", -) +__all__ = ("WebhookIssuesUntypedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py index 2679b0c8c..4f96b0fd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0500 import WebhooksMarketplacePurchaseType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeType", -) +__all__ = ("WebhookLabelCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py index bb9dcf511..7f1c18a8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0501 import WebhooksPreviousMarketplacePurchaseType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledType", -) +__all__ = ("WebhookLabelDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py index 08432ccfd..3391396db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py @@ -13,26 +13,59 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0500 import WebhooksMarketplacePurchaseType -from .group_0501 import WebhooksPreviousMarketplacePurchaseType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" - action: Literal["purchased"] - effective_date: str + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + + +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str + + +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py index 0583d0294..3ede456c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py @@ -9,64 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0505 import WebhooksMarketplacePurchaseType +from .group_0506 import WebhooksPreviousMarketplacePurchaseType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" - - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] - - -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] - - -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str - - -__all__ = ( - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedType", -) +__all__ = ("WebhookMarketplacePurchaseCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0698.py b/githubkit/versions/ghec_v2022_11_28/types/group_0698.py index 4c99aa6cd..d00696669 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0698.py @@ -13,52 +13,74 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0505 import WebhooksMarketplacePurchaseType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + action: Literal["changed"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMemberEditedPropChangesType(TypedDict): - """WebhookMemberEditedPropChanges +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - The changes to the collaborator permissions - """ + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int - old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] - permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" -class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropOldPermission""" + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str - from_: str +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" -class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropPermission""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py index efdf2aa67..967c7c4d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py @@ -13,23 +13,76 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0505 import WebhooksMarketplacePurchaseType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["removed"] + action: Literal["pending_change"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMemberRemovedType",) +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py index 75f5b6713..8402ca951 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py @@ -12,56 +12,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType -from .group_0502 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0506 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["added"] + action: Literal["pending_change_cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserType + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py index 18250a9d3..10289d41f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py @@ -9,59 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType -from .group_0502 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0505 import WebhooksMarketplacePurchaseType +from .group_0506 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["removed"] + action: Literal["purchased"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: WebhooksMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType + sender: SimpleUserType -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedType", -) +__all__ = ("WebhookMarketplacePurchasePurchasedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py index 1e3c5d814..c77641a21 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py @@ -9,25 +9,64 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0503 import MergeGroupType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["checks_requested"] + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" + + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + + +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] + + +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str + + +__all__ = ( + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py index 54fca7725..59bc64b4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py @@ -9,26 +9,56 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0503 import MergeGroupType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] + + +class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str + + +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py index 8f8b9d4c4..a5aca8dd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py @@ -13,53 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["deleted"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: list[str] - id: int - name: str - type: str - updated_at: str - - -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str - - -__all__ = ( - "WebhookMetaDeletedPropHookPropConfigType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedType", -) +__all__ = ("WebhookMemberRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py index d2b37aa3c..a694db5dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0497 import WebhooksMilestoneType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType +from .group_0507 import WebhooksTeamType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["closed"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneClosedType",) +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookMembershipAddedPropSenderType", + "WebhookMembershipAddedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py index eb5fcb45e..fac531170 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0504 import WebhooksMilestone3Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType +from .group_0507 import WebhooksTeamType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["created"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneCreatedType",) +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py index 51ec15591..e0b3818c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0497 import WebhooksMilestoneType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0508 import MergeGroupType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMilestoneDeletedType",) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py index 5cc36c1b0..b3158b505 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py @@ -13,59 +13,22 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0497 import WebhooksMilestoneType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0508 import MergeGroupType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -class WebhookMilestoneEditedPropChangesType(TypedDict): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] - due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] - title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] - - -class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedType", -) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py index b29a8c00f..0d2ab0c42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py @@ -9,27 +9,57 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0504 import WebhooksMilestone3Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["opened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMilestoneOpenedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: list[str] + id: int + name: str + type: str + updated_at: str + + +class WebhookMetaDeletedPropHookPropConfigType(TypedDict): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] + insecure_ssl: str + secret: NotRequired[str] + url: str + + +__all__ = ( + "WebhookMetaDeletedPropHookPropConfigType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py index 3b6c666f1..40552243d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0502 import WebhooksMilestoneType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["blocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrgBlockBlockedType",) +__all__ = ("WebhookMilestoneClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py index a461f61f0..310b143c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0509 import WebhooksMilestone3Type -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrgBlockUnblockedType",) +__all__ = ("WebhookMilestoneCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py index 44150b4fb..607612850 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0505 import WebhooksMembershipType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0502 import WebhooksMilestoneType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookMilestoneDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py index fdf3e3d28..b2cb47621 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py @@ -13,23 +13,59 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0505 import WebhooksMembershipType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0502 import WebhooksMilestoneType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["member_added"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberAddedType",) +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + + +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py index 038c0026f..ded7eff8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py @@ -9,80 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0509 import WebhooksMilestone3Type -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["member_invited"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - user: NotRequired[Union[WebhooksUserType, None]] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: datetime - email: Union[str, None] - failed_at: Union[datetime, None] - failed_reason: Union[str, None] - id: float - invitation_teams_url: str - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] - login: Union[str, None] - node_id: str - role: str - team_count: float - invitation_source: NotRequired[str] - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedType", -) +__all__ = ("WebhookMilestoneOpenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py index 18a68ceea..265f7766f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0505 import WebhooksMembershipType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" - action: Literal["member_removed"] + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberRemovedType",) +__all__ = ("WebhookOrgBlockBlockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py index cef60135c..e2f0d710d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0505 import WebhooksMembershipType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["unblocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" - - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] - - -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedType", -) +__all__ = ("WebhookOrgBlockUnblockedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py index fbf589490..5422c80e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0510 import WebhooksMembershipType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" - name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" - version: NotRequired[str] - - -WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropMetadata -""" - - -WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropDependenciesItems -""" - - -__all__ = ( - "WebhookRubygemsMetadataPropDependenciesItemsType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataType", -) +__all__ = ("WebhookOrganizationDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py index 9cff59671..d1cf40104 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0719 import WebhookPackagePublishedPropPackageType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0510 import WebhooksMembershipType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - action: Literal["published"] + action: Literal["member_added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookPackagePublishedType",) +__all__ = ("WebhookOrganizationMemberAddedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py index b2f4d67de..0bd0aafa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py @@ -9,35 +9,52 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0720 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" - Information about the package. + action: Literal["member_invited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + user: NotRequired[Union[WebhooksUserType, None]] + + +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None - ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] - - -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -64,18 +81,8 @@ class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - __all__ = ( - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", - "WebhookPackagePublishedPropPackageType", + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py index 8bbe1b912..ce408546c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py @@ -9,495 +9,27 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0717 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0510 import WebhooksMembershipType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + action: Literal["member_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, - None, - ] - ] - bugs: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, - None, - ] - ] - dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, - None, - ] - ] - scripts: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType - ] - ] - contributors: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType - ] - ] - engines: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: NotRequired[Union[int, str]] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: Union[str, None] - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionType", -) +__all__ = ("WebhookOrganizationMemberRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py index 3cf209574..69fa5970f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py @@ -13,23 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0722 import WebhookPackageUpdatedPropPackageType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0510 import WebhooksMembershipType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" - action: Literal["updated"] + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookPackageUpdatedType",) +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py index 7d005c05f..fbf589490 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py @@ -9,71 +9,44 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0723 import WebhookPackageUpdatedPropPackagePropPackageVersionType - - -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" + name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] + + +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" + version: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - about_url: str - name: str - type: str - url: str - vendor: str +WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropMetadata +""" + + +WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropDependenciesItems +""" __all__ = ( - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", - "WebhookPackageUpdatedPropPackageType", + "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py index 8875fc8d3..1e48ce9b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py @@ -9,168 +9,27 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0717 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0724 import WebhookPackagePublishedPropPackageType -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionType", -) +__all__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py b/githubkit/versions/ghec_v2022_11_28/types/group_0724.py index 0d7eaab96..dc5f0a9f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0724.py @@ -12,49 +12,32 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0725 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - build: WebhookPageBuildPropBuildType - enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + Information about the package. """ - commit: Union[str, None] - created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str - updated_at: str - url: str - - -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] - - -class WebhookPageBuildPropBuildPropPusherType(TypedDict): + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None + ] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] + + +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,9 +64,18 @@ class WebhookPageBuildPropBuildPropPusherType(TypedDict): user_view_type: NotRequired[str] +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + __all__ = ( - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildType", + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", + "WebhookPackagePublishedPropPackageType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py index 0ae3f193b..2b09c7e28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py @@ -9,25 +9,495 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0506 import PersonalAccessTokenRequestType +from .group_0722 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: SimpleInstallationType + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] + ] + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems +""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, + None, + ] + ] + bugs: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, + None, + ] + ] + dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, + None, + ] + ] + scripts: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType + ] + ] + contributors: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType + ] + ] + engines: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: NotRequired[Union[int, str]] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: Union[str, None] + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py index e8963c1ea..b56c8070d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0506 import PersonalAccessTokenRequestType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0727 import WebhookPackageUpdatedPropPackageType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: RepositoryWebhooksType sender: SimpleUserType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +__all__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py index b8f15e020..b31707ac3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py @@ -9,25 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0506 import PersonalAccessTokenRequestType +from .group_0728 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: NotRequired[SimpleInstallationType] + Information about the package. + """ + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) + +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", + "WebhookPackageUpdatedPropPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py index 79dc74e16..9dc197211 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py @@ -9,25 +9,168 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0506 import PersonalAccessTokenRequestType +from .group_0722 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - sender: SimpleUserType - installation: SimpleInstallationType + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems +""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py index a785f55af..bd4600fbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py @@ -9,23 +9,81 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0730 import WebhookPingPropHookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPageBuildType(TypedDict): + """page_build event""" - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - zen: NotRequired[str] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookPingType",) +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ + + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] + + +class WebhookPageBuildPropBuildPropPusherType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py index 39b343b48..3ff52eb1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py @@ -9,45 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0343 import HookResponseType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0511 import PersonalAccessTokenRequestType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - The webhook that is being pinged - """ + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserType + installation: SimpleInstallationType - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: list[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime - url: NotRequired[str] - -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" - - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookPingPropHookPropConfigType", - "WebhookPingPropHookType", -) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py index 76f44f172..cf3b12fb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0511 import PersonalAccessTokenRequestType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - payload: str + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserType + installation: SimpleInstallationType -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py index f7efe6417..af6d29227 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py @@ -13,40 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0507 import WebhooksProjectCardType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0511 import PersonalAccessTokenRequestType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: NotRequired[SimpleInstallationType] -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py index db55735e9..8f439de94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0507 import WebhooksProjectCardType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0511 import PersonalAccessTokenRequestType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["created"] + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType + installation: SimpleInstallationType -__all__ = ("WebhookProjectCardCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py index 6f6498086..075a818c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py @@ -9,76 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0735 import WebhookPingPropHookType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + zen: NotRequired[str] -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py index eca334684..04f7d031f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py @@ -9,44 +9,45 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0507 import WebhooksProjectCardType +from .group_0347 import HookResponseType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPingPropHookType(TypedDict): + """Webhook - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + The webhook that is being pinged + """ + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType + created_at: datetime + deliveries_url: NotRequired[str] + events: list[str] + id: int + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str + updated_at: datetime + url: NotRequired[str] -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" - note: WebhookProjectCardEditedPropChangesPropNoteType +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" - -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedType", + "WebhookPingPropHookPropConfigType", + "WebhookPingPropHookType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py index 95f08cad4..76f44f172 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py @@ -9,91 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" + The webhooks ping payload encoded with URL encoding. + """ - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + payload: str -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType - - -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int - - -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] - id: int - node_id: str - note: Union[Union[str, None], None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedType", -) +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py index c75678d30..90308bd78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py @@ -9,57 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0512 import WebhooksProjectCardType -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" + + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNoteType + + +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardConvertedPropChangesPropNoteType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py index 8e4564103..25ff61938 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py @@ -9,53 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0512 import WebhooksProjectCardType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] - ] - id: NotRequired[int] - node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof1Type", -) + +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +__all__ = ("WebhookProjectCardCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py index 1d92559a5..327555ce8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py @@ -9,27 +9,76 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0508 import WebhooksProjectType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" - action: Literal["closed"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: SimpleUserType -__all__ = ("WebhookProjectClosedType",) +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py index 294d8b9cf..af2d1414f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py @@ -9,27 +9,44 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0509 import WebhooksProjectColumnType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0512 import WebhooksProjectCardType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookProjectCardEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnCreatedType",) +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] + + +__all__ = ( + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py index 50325ea54..c99d78cf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py @@ -9,27 +9,91 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0509 import WebhooksProjectColumnType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["deleted"] + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + project_card: WebhookProjectCardMovedPropProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnDeletedType",) +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType + + +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int + + +class WebhookProjectCardMovedPropProjectCardType(TypedDict): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + id: int + node_id: str + note: Union[Union[str, None], None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py index 5f5e07769..c75678d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py @@ -9,44 +9,57 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0509 import WebhooksProjectColumnType - -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" - - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - - -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" - - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] - - -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookProjectColumnEditedPropChangesPropNameType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedType", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py index a1ee60bd0..8e4564103 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py @@ -9,27 +9,53 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0509 import WebhooksProjectColumnType - -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" - - action: Literal["moved"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - - -__all__ = ("WebhookProjectColumnMovedType",) +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] + ] + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py index ff21f9513..7a24d7dff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0508 import WebhooksProjectType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0513 import WebhooksProjectType -class WebhookProjectCreatedType(TypedDict): - """project created event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["created"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookProjectCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookProjectCreatedType",) +__all__ = ("WebhookProjectClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py index 31fc116ca..af21133e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0508 import WebhooksProjectType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0514 import WebhooksProjectColumnType -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectDeletedType",) +__all__ = ("WebhookProjectColumnCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py index 3bf321ce5..f894009bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py @@ -9,55 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0508 import WebhooksProjectType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0514 import WebhooksProjectColumnType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: NotRequired[SimpleUserType] -class WebhookProjectEditedPropChangesType(TypedDict): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] - name: NotRequired[WebhookProjectEditedPropChangesPropNameType] - - -class WebhookProjectEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str - - -class WebhookProjectEditedPropChangesPropNameType(TypedDict): - """WebhookProjectEditedPropChangesPropName""" - - from_: str - - -__all__ = ( - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedType", -) +__all__ = ("WebhookProjectColumnDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py index fccf397c6..3fb7ae755 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py @@ -13,23 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0508 import WebhooksProjectType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0514 import WebhooksProjectColumnType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectReopenedType",) +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" + + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + + +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py index 97bc49bd5..ca8ccfd53 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py @@ -13,19 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0510 import ProjectsV2Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0514 import WebhooksProjectColumnType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - action: Literal["closed"] + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectClosedType",) +__all__ = ("WebhookProjectColumnMovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py index 962c437fc..8e5fc2113 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py @@ -13,22 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0510 import ProjectsV2Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0513 import WebhooksProjectType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated - - A project was created - """ +class WebhookProjectCreatedType(TypedDict): + """project created event""" action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ("WebhookProjectCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py index 7cc72dda0..bd5966b10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py @@ -9,23 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0510 import ProjectsV2Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0513 import WebhooksProjectType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +__all__ = ("WebhookProjectDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py index 0aee9975f..df6851cf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py @@ -9,72 +9,55 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0510 import ProjectsV2Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0513 import WebhooksProjectType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChanges""" +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges - description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType - ] - public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] - short_description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType - ] - title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] + The changes to the project if the action was `edited`. + """ + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] -class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + from_: str -class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - from_: NotRequired[bool] - to: NotRequired[bool] +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: NotRequired[str] - to: NotRequired[str] + from_: str __all__ = ( - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedType", + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py index 9fe2cd96d..44a2afb75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0511 import WebhooksProjectChangesType -from .group_0512 import ProjectsV2ItemType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0513 import WebhooksProjectType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemArchivedType",) +__all__ = ("WebhookProjectReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py index 22825797b..2fc0da0de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py @@ -9,43 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0512 import ProjectsV2ItemType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0515 import ProjectsV2Type -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedType", -) +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py index 8be0332cb..64c742d1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py @@ -13,19 +13,22 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0512 import ProjectsV2ItemType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0515 import ProjectsV2Type -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated + + A project was created + """ action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py index 63637a128..43bf7f5cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0512 import ProjectsV2ItemType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0515 import ProjectsV2Type -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0756.py b/githubkit/versions/ghec_v2022_11_28/types/group_0756.py index 98115fd3d..adcab49a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0756.py @@ -13,103 +13,68 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0512 import ProjectsV2ItemType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0515 import ProjectsV2Type -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: NotRequired[str] - field_type: NotRequired[str] - field_name: NotRequired[str] - project_number: NotRequired[int] - from_: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType ] - to: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] -class ProjectsV2SingleSelectOptionType(TypedDict): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str - name: str - color: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class ProjectsV2IterationSettingType(TypedDict): - """Projects v2 Iteration Setting - An iteration setting for an iteration field - """ +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - id: str - title: str - duration: NotRequired[Union[float, None]] - start_date: NotRequired[Union[str, None]] + from_: NotRequired[bool] + to: NotRequired[bool] -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" +class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] + from_: NotRequired[str] + to: NotRequired[str] __all__ = ( - "ProjectsV2IterationSettingType", - "ProjectsV2SingleSelectOptionType", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py index 63503ed9e..d5cd0568f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py @@ -9,45 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0512 import ProjectsV2ItemType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0516 import WebhooksProjectChangesType +from .group_0517 import ProjectsV2ItemType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["archived"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType - ] - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedType", -) +__all__ = ("WebhookProjectsV2ItemArchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py index 3e925c1dc..eb24822fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0511 import WebhooksProjectChangesType -from .group_0512 import ProjectsV2ItemType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0517 import ProjectsV2ItemType -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["restored"] - changes: WebhooksProjectChangesType + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType + ] + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[str] + + +__all__ = ( + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py index 6694bb2dc..1c92ed88f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0510 import ProjectsV2Type +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0517 import ProjectsV2ItemType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["reopened"] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +__all__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py index 40ecb0d9d..313ad5783 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0513 import ProjectsV2StatusUpdateType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0517 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py index a97da1e46..af2e98179 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py @@ -9,23 +9,107 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0513 import ProjectsV2StatusUpdateType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0517 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: NotRequired[str] + field_type: NotRequired[str] + field_name: NotRequired[str] + project_number: NotRequired[int] + from_: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + to: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + + +class ProjectsV2SingleSelectOptionType(TypedDict): + """Projects v2 Single Select Option + + An option for a single select field + """ + + id: str + name: str + color: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + + +class ProjectsV2IterationSettingType(TypedDict): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str + title: str + duration: NotRequired[Union[float, None]] + start_date: NotRequired[Union[str, None]] + + +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "ProjectsV2IterationSettingType", + "ProjectsV2SingleSelectOptionType", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py index 2f2bd72d2..96ba0af58 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py @@ -9,77 +9,45 @@ from __future__ import annotations -from datetime import date from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0513 import ProjectsV2StatusUpdateType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0517 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateEditedType(TypedDict): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" - body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] - status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] - start_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType - ] - target_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( + TypedDict +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - - from_: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - to: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] - - __all__ = ( - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesType", - "WebhookProjectsV2StatusUpdateEditedType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py index 70f355881..d14b9edf9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py @@ -9,23 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0516 import WebhooksProjectChangesType +from .group_0517 import ProjectsV2ItemType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookPublicType",) +__all__ = ("WebhookProjectsV2ItemRestoredType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py index 270927563..2e4028d70 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py @@ -9,950 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0487 import WebhooksUserType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0515 import ProjectsV2Type -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["assigned"] - assignee: Union[WebhooksUserType, None] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedType", -) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py index eb6fdf3b7..dbeb5bfc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py @@ -9,997 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0518 import ProjectsV2StatusUpdateType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["auto_merge_disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledType", -) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py index 6924288cc..838913dfb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py @@ -9,987 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0518 import ProjectsV2StatusUpdateType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["auto_merge_enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledType", -) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py index 30268e11c..3d808a7dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py @@ -9,28 +9,77 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0514 import PullRequestWebhookType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0518 import ProjectsV2StatusUpdateType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["edited"] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookPullRequestClosedType",) +class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] + status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] + start_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType + ] + target_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + to: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +__all__ = ( + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py index d803d7f39..37c8fcc7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py @@ -9,28 +9,23 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0514 import PullRequestWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestConvertedToDraftType",) +__all__ = ("WebhookPublicType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py index 18a936c9e..9e06d9852 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py @@ -9,28 +9,950 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0149 import MilestoneType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0516 import WebhooksPullRequest5Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0492 import WebhooksUserType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["demilestoned"] + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestDemilestonedType",) +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAssignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py index 1b1fc24ad..dcd269195 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py @@ -14,50 +14,42 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["dequeued"] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -69,8 +61,10 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -82,11 +76,11 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -95,22 +89,24 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -120,10 +116,10 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] -class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -150,7 +146,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -176,7 +174,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -185,12 +183,13 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -219,7 +218,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -231,7 +230,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -258,7 +257,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -268,7 +267,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -284,7 +284,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -306,12 +308,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -335,12 +337,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -367,48 +369,58 @@ class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -416,7 +428,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -424,29 +436,35 @@ class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -473,7 +491,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -516,10 +534,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): git_url: str has_downloads: bool has_issues: bool + has_discussions: bool has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -533,7 +551,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -548,10 +567,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -585,7 +605,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -597,7 +617,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -624,10 +646,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -636,17 +660,19 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -673,7 +699,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -733,7 +759,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -748,10 +775,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -785,7 +813,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -797,7 +825,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -824,10 +854,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -836,7 +868,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -845,30 +877,30 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] @@ -884,7 +916,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -899,7 +933,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -910,10 +944,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] html_url: str @@ -929,41 +965,41 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py index 0fb764c3c..829058608 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py @@ -9,79 +9,987 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0514 import PullRequestWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): + """Pull Request""" - The changes to the comment if the action was `edited`. + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository """ - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] - from_: str +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - from_: str +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ - from_: str + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ - from_: str + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py index 97876a6a2..1c7c11b8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py @@ -9,947 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0519 import PullRequestWebhookType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["enqueued"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedType", -) +__all__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py index d591b2f2e..0c41e6010 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py @@ -9,945 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0519 import PullRequestWebhookType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["labeled"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLabeledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledType", -) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py index 90d3d063f..b046860df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py @@ -9,937 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0152 import MilestoneType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0521 import WebhooksPullRequest5Type -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["locked"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedType", -) +__all__ = ("WebhookPullRequestDemilestonedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py index 23442b093..0627d8c0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py @@ -9,28 +9,961 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0149 import MilestoneType -from .group_0474 import EnterpriseWebhooksType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0516 import WebhooksPullRequest5Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["milestoned"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestMilestonedType",) +class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py index b1d149cf6..5ddb7613c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py @@ -13,24 +13,75 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0514 import PullRequestWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0519 import PullRequestWebhookType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["opened"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookPullRequestOpenedType",) +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + + +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + + +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str + + +__all__ = ( + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py index 858b45997..bf852d0ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py @@ -9,28 +9,947 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0514 import PullRequestWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["ready_for_review"] + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReadyForReviewType",) +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py index f05641432..1657072d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py @@ -9,28 +9,945 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0514 import PullRequestWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["reopened"] + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReopenedType",) +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestLabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestLabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py index ee5506cb4..581a805fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py @@ -14,158 +14,36 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): - """User""" +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -177,56 +55,61 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -248,14 +131,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -281,7 +162,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -290,15 +171,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -325,9 +203,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -339,7 +215,34 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -349,8 +252,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -366,9 +268,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -390,12 +290,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -424,7 +324,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -451,104 +351,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -575,9 +453,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -637,8 +513,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -653,11 +528,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -691,9 +565,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -703,9 +575,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -732,12 +602,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -746,23 +614,17 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -808,7 +670,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( has_pages: bool has_projects: bool has_wiki: bool - has_discussions: NotRequired[bool] + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -822,8 +684,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -838,11 +699,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -876,9 +736,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -888,9 +746,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -917,12 +773,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -931,9 +785,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -960,7 +812,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -977,7 +829,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -988,11 +840,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -1008,9 +860,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -1025,7 +875,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1036,12 +886,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -1057,47 +905,41 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py index 685e55b79..c4a29252d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py @@ -9,971 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0517 import WebhooksReviewCommentType +from .group_0152 import MilestoneType +from .group_0479 import EnterpriseWebhooksType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0521 import WebhooksPullRequest5Type -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["deleted"] - comment: WebhooksReviewCommentType + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedType", -) +__all__ = ("WebhookPullRequestMilestonedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py index dece35d9b..a60e3c3af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py @@ -9,974 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0495 import WebhooksChangesType -from .group_0517 import WebhooksReviewCommentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0519 import PullRequestWebhookType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - user_view_type: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedType", -) +__all__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py index a78d2cc5e..0e6c22d9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py @@ -9,1024 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0519 import PullRequestWebhookType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["dismissed"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedType", -) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py index 894dc28db..a6eabbe5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py @@ -9,918 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0518 import WebhooksReviewType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0519 import PullRequestWebhookType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedType", -) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py index 35a7c921d..eb7a1791c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py @@ -14,29 +14,87 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["review_request_removed"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -63,21 +121,49 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -91,76 +177,56 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -182,12 +248,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -211,14 +277,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -227,13 +290,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -262,7 +325,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -276,38 +339,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -317,7 +349,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -334,7 +366,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -358,12 +390,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -387,14 +419,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -416,31 +446,31 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -448,7 +478,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -456,7 +486,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -464,7 +494,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -472,7 +502,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -480,7 +510,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -488,7 +518,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -496,7 +526,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -504,24 +534,19 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -550,7 +575,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -612,7 +637,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -628,11 +653,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -666,7 +691,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -678,7 +703,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -707,11 +732,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -721,53 +746,21 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -815,7 +808,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool + has_discussions: NotRequired[bool] homepage: Union[str, None] hooks_url: str html_url: str @@ -829,7 +822,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -845,11 +838,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -883,7 +876,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -895,7 +888,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -924,11 +917,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -938,7 +931,36 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -955,7 +977,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -966,11 +988,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -986,7 +1008,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,30 +1017,30 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1035,42 +1057,47 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py index 1c71e13c5..711c93db9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py @@ -14,85 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0522 import WebhooksReviewCommentType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["review_request_removed"] + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -106,76 +60,56 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -202,7 +136,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -228,12 +162,9 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesIt subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -242,13 +173,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -277,7 +208,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -291,38 +222,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -332,7 +232,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -349,7 +249,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -378,7 +278,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -407,9 +307,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -431,31 +329,31 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType + comments: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -463,7 +361,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -471,7 +369,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -479,7 +377,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -487,7 +385,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -495,7 +393,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -503,7 +401,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -511,7 +409,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -519,24 +417,19 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -565,7 +458,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -627,7 +520,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -643,11 +536,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -681,7 +574,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -693,7 +586,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -722,11 +615,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -736,53 +629,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -844,7 +705,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -860,11 +721,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -898,7 +759,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -910,7 +771,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -939,11 +800,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -953,7 +814,36 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -962,30 +852,30 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -1001,7 +891,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1010,30 +900,30 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1050,43 +940,40 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py index 75e3563e5..4facbbb05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py @@ -14,69 +14,41 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0500 import WebhooksChangesType +from .group_0522 import WebhooksReviewCommentType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["review_requested"] + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -90,71 +62,56 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -176,12 +133,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(Typ site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -205,14 +162,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsTy site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -221,13 +176,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -256,7 +211,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -270,36 +225,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -309,7 +235,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -326,7 +252,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -355,7 +281,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -384,7 +310,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -407,30 +333,30 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDi starred_url: NotRequired[str] subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] user_view_type: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -438,7 +364,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -446,7 +372,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -454,7 +380,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -462,7 +388,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -470,7 +396,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -478,7 +404,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -486,7 +412,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -494,19 +420,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -535,7 +461,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -597,7 +523,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -613,11 +539,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -651,7 +577,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -663,7 +589,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -692,11 +618,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool @@ -706,48 +632,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -809,7 +708,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -825,11 +724,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -863,7 +762,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -875,7 +774,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -904,11 +803,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool @@ -918,7 +817,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -927,30 +855,30 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -966,7 +894,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -983,7 +911,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -994,11 +922,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -1015,42 +943,40 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py index cf420c46b..f2ed41860 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py @@ -14,82 +14,116 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["review_requested"] + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview - Groups of organization members that gives permissions on specified repositories. + The review that was affected. """ + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" +class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -103,70 +137,51 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -193,9 +208,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -219,12 +232,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsTy subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,13 +243,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -268,9 +278,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -282,36 +290,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -321,7 +300,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -338,7 +317,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -362,12 +341,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -391,12 +370,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -423,26 +402,24 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -450,7 +427,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -458,23 +435,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -482,7 +455,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -490,15 +463,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -506,21 +477,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -547,9 +516,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -609,7 +576,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -625,11 +592,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -663,7 +630,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -675,7 +642,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -704,12 +671,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -718,50 +683,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -821,7 +757,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -837,11 +773,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +811,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,7 +823,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -916,12 +852,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -930,7 +864,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -939,30 +900,30 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -978,7 +939,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,7 +956,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1006,11 +967,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -1027,43 +988,45 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py index 825790851..41b34c8d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py @@ -14,40 +14,49 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0518 import WebhooksReviewType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0523 import WebhooksReviewType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["submitted"] + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None - ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,9 +69,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,29 +79,29 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +110,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,7 +140,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -157,7 +166,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -166,13 +175,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -201,7 +210,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -213,7 +222,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -223,8 +232,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -240,7 +248,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -269,7 +277,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorTy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -298,7 +306,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -325,52 +333,48 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -378,7 +382,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -386,33 +390,29 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -439,7 +439,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -485,7 +485,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -499,12 +498,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -515,11 +512,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -528,10 +524,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -546,14 +538,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -565,7 +555,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -594,10 +584,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -606,21 +596,17 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -666,7 +652,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -680,12 +665,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -696,11 +679,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -709,10 +691,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -727,14 +705,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +722,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,10 +751,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -787,7 +763,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -814,7 +790,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,7 +807,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -842,11 +818,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -862,7 +838,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -879,7 +855,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -890,12 +866,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -911,40 +885,42 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py index e225c9e03..ccf3405da 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py @@ -14,38 +14,70 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["resolved"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserType + + +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] + additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, ] assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, None, ] ] @@ -60,53 +92,75 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType ] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] + ] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -133,7 +187,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -159,9 +213,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -170,13 +227,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +262,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -219,7 +276,38 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -229,7 +317,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -246,7 +334,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -275,7 +363,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -299,12 +387,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -326,31 +416,31 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -358,7 +448,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -366,7 +456,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -374,7 +464,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -382,7 +472,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -390,7 +480,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,7 +488,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -406,7 +496,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -414,19 +504,24 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -455,7 +550,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -517,10 +612,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -531,11 +628,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -544,6 +641,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -558,13 +659,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +678,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -605,11 +707,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool @@ -619,21 +721,53 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None - ] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -695,10 +829,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -709,11 +845,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -722,6 +858,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -736,13 +876,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -754,7 +895,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -783,11 +924,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool @@ -797,36 +938,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,7 +955,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -854,11 +966,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -874,7 +986,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -883,30 +995,30 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] @@ -922,189 +1034,43 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py index a16c47e4b..f99f942fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py @@ -14,38 +14,85 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unresolved"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + sender: SimpleUserType + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] + additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, ] assignees: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, None, ] ] @@ -60,55 +107,73 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType ] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] + ] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( TypedDict ): """User""" @@ -137,7 +202,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -163,9 +228,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsT subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -174,15 +240,15 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +277,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -225,7 +291,36 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -237,7 +332,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -254,7 +349,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -283,7 +378,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -312,7 +407,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -339,26 +436,26 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedD user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -366,7 +463,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -374,7 +471,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -382,7 +479,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -390,7 +487,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueT href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +495,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,7 +503,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -414,7 +511,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -422,20 +519,24 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, None, ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -464,7 +565,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -526,10 +627,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -540,11 +643,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -553,6 +656,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -567,13 +674,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +693,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,11 +722,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool @@ -628,20 +736,24 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, None, ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -670,7 +782,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -732,10 +844,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -746,11 +860,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,6 +873,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -773,13 +891,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -791,7 +910,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -820,11 +939,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool @@ -834,7 +953,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,30 +962,30 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -882,7 +1001,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,30 +1010,30 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] @@ -930,191 +1049,44 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str -class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( - TypedDict -): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: ( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py index 38ee60be3..852161bf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py @@ -14,38 +14,71 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +91,9 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +105,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,10 +120,12 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] ] milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -96,13 +133,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -112,10 +149,12 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -142,7 +181,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -166,9 +207,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -177,12 +221,13 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +256,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -223,7 +270,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -250,7 +297,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -260,7 +309,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -276,7 +326,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -305,7 +355,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,12 +379,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -361,48 +411,58 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -410,7 +470,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -418,29 +478,37 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -467,7 +535,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -527,7 +597,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -543,10 +613,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -580,7 +651,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -592,7 +663,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -621,10 +692,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -633,17 +706,21 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -670,7 +747,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -730,7 +809,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -746,10 +825,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -783,7 +863,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -795,7 +875,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -824,10 +904,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -836,7 +918,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -853,7 +935,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -864,11 +946,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -884,7 +966,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -901,7 +983,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -912,10 +994,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -931,41 +1015,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar __all__ = ( - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py index b46e888f5..656dc1a98 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py @@ -14,38 +14,83 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0499 import WebhooksUserMannequinType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + sender: SimpleUserType -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +103,9 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +117,13 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,22 +132,26 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -110,10 +161,12 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,7 +193,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -164,9 +219,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,12 +233,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +268,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -221,7 +282,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -243,12 +304,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -258,7 +321,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -274,7 +338,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -303,7 +367,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -327,12 +391,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -359,48 +423,58 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -408,7 +482,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -416,29 +490,37 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -465,7 +547,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -525,7 +609,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -540,10 +625,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +663,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +675,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,10 +704,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -630,17 +718,50 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -700,7 +821,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -715,10 +837,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -752,7 +875,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -764,7 +887,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -793,10 +916,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -805,34 +930,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -841,30 +939,30 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -880,7 +978,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -895,7 +995,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -906,10 +1006,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -925,41 +1027,43 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare __all__ = ( - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py index 4d6971a13..1086efb9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py @@ -14,38 +14,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0491 import WebhooksLabelType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0523 import WebhooksReviewType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["unlabeled"] + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType repository: RepositoryWebhooksType + review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,61 +59,52 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -138,7 +131,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -164,7 +157,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,12 +166,13 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +201,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -219,34 +213,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -256,7 +223,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -272,7 +240,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -299,7 +269,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -328,7 +298,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -355,48 +325,52 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +378,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +386,33 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -461,7 +439,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -521,7 +499,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,10 +515,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -573,7 +553,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +565,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,10 +594,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -626,17 +606,21 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" label: Union[str, None] ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -696,7 +680,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -711,10 +696,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -748,7 +734,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -760,7 +746,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -789,10 +775,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -801,7 +787,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -828,7 +814,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -845,7 +831,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -856,11 +842,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -876,7 +862,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -891,7 +879,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +890,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] html_url: str @@ -921,41 +911,40 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen __all__ = ( - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py index 27405e847..8e3d09126 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py @@ -14,36 +14,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - action: Literal["unlocked"] + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,61 +59,54 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +133,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,21 +161,22 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +205,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -217,34 +219,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +229,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +246,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -297,7 +275,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,12 +299,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -348,53 +326,63 @@ class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +390,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +398,37 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -459,7 +455,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -519,11 +517,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -534,10 +531,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -546,10 +544,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -564,14 +558,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +576,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -610,10 +605,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -622,17 +619,23 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -692,11 +695,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -707,10 +709,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -719,10 +722,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -737,14 +736,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -756,7 +754,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -783,10 +783,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -795,7 +797,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -822,7 +826,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,30 +835,30 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -870,7 +874,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +891,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +902,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ description: Union[str, None] html_url: str @@ -914,42 +922,189 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: ( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py index 5c54444c6..1fee03ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py @@ -10,129 +10,463 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookPushType(TypedDict): - """push event""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - after: str - base_ref: Union[str, None] - before: str - commits: list[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - added: NotRequired[list[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + The status of auto merging a pull request. + """ -class WebhookPushPropPusherType(TypedDict): - """Committer + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + node_id: str url: str -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str -class WebhookPushPropRepositoryType(TypedDict): + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -157,7 +491,6 @@ class WebhookPushPropRepositoryType(TypedDict): contents_url: str contributors_url: str created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str @@ -192,7 +525,10 @@ class WebhookPushPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -203,8 +539,13 @@ class WebhookPushPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -232,16 +573,215 @@ class WebhookPushPropRepositoryType(TypedDict): web_commit_signoff_required: NotRequired[bool] -WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookPushPropRepositoryPropCustomProperties +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" -class WebhookPushPropRepositoryPropLicenseType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -251,7 +791,9 @@ class WebhookPushPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookPushPropRepositoryPropOwnerType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -278,8 +820,12 @@ class WebhookPushPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ admin: bool maintain: NotRequired[bool] @@ -288,18 +834,287 @@ class WebhookPushPropRepositoryPropPermissionsType(TypedDict): triage: NotRequired[bool] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: ( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropPusherType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", - "WebhookPushPropRepositoryType", - "WebhookPushType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py index 88f43d8b5..4644e42ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py @@ -9,27 +9,963 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0797 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" - action: Literal["published"] + action: Literal["synchronize"] + after: str + before: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py index 3abfe130d..5edfdc767 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py @@ -9,71 +9,957 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0798 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0504 import WebhooksUserMannequinType + + +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" + + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] + + +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" - created_at: Union[str, None] + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str description: Union[str, None] - ecosystem: str + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - updated_at: Union[str, None] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" - avatar_url: str + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + - about_url: NotRequired[str] +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - type: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - vendor: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py index 9c1417189..e75abe95d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py @@ -9,479 +9,813 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0717 import WebhookRubygemsMetadataType - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType - ] - body: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, - ] +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0496 import WebhooksLabelType + + +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - draft: NotRequired[bool] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + issue_url: str + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + merge_method: Literal["merge", "squash", "rebase"] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str url: str - user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - tags: NotRequired[list[str]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata -Items -""" +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[list[str]] - contributors: NotRequired[list[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] - content_type: str - created_at: str - download_url: str + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository """ - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - + """License""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + """User""" - digest: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository """ - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -489,39 +823,139 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py index 677891f04..a00b3c6d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py @@ -9,27 +9,947 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0800 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" - action: Literal["updated"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestUnlockedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py index d960d8d68..94881b793 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py @@ -9,65 +9,297 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0801 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookPushType(TypedDict): + """push event""" - created_at: str - description: None - ecosystem: str - html_url: str - id: int + after: str + base_ref: Union[str, None] + before: str + commits: list[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool + enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType + sender: NotRequired[SimpleUserType] + + +class WebhookPushPropHeadCommitType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropHeadCommitPropAuthorType + committer: WebhookPushPropHeadCommitPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropPusherType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: NotRequired[Union[str, None]] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropCommitsItemsPropAuthorType + committer: WebhookPushPropCommitsItemsPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None - ] - updated_at: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" - - avatar_url: str + username: NotRequired[str] + + +class WebhookPushPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookPushPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookPushPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPushPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropPusherType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPushPropRepositoryType", + "WebhookPushType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py index 214a2a3da..7ec21de40 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py @@ -9,172 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0717 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0802 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: NotRequired[list[str]] - - -WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt -ems -""" - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", -) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py index e455208dc..749fe9626 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py @@ -9,27 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0519 import WebhooksReleaseType +from .group_0803 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: SimpleUserType + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -__all__ = ("WebhookReleaseCreatedType",) +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py index 8ff922aa7..a71f40351 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py @@ -9,27 +9,519 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0519 import WebhooksReleaseType +from .group_0722 import WebhookRubygemsMetadataType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: SimpleUserType + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookReleaseDeletedType",) +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata +Items +""" + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[list[str]] + contributors: NotRequired[list[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py index 70ef47cb4..f3461d6a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py @@ -13,64 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0519 import WebhooksReleaseType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0805 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookReleaseEditedType(TypedDict): - """release edited event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool - - -__all__ = ( - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropTagNameType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedType", -) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py index f33e5ad3f..165f9d71a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py @@ -9,154 +9,65 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType - - -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" - - action: Literal["prereleased"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - +from .group_0806 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + created_at: str + description: None + ecosystem: str html_url: str id: int - name: Union[str, None] - node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + namespace: str + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType + package_type: str + package_version: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + ) + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None ] - url: str + updated_at: str -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str user_view_type: NotRequired[str] -class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" __all__ = ( - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackageUpdatedPropRegistryPackageType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py index b4ca417be..3116e6e32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py @@ -9,27 +9,172 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0520 import WebhooksRelease1Type +from .group_0722 import WebhookRubygemsMetadataType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookReleasePublishedType",) +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt +ems +""" + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: NotRequired[str] + created_at: NotRequired[str] + download_url: NotRequired[str] + id: NotRequired[int] + md5: NotRequired[Union[str, None]] + name: NotRequired[str] + sha1: NotRequired[Union[str, None]] + sha256: NotRequired[str] + size: NotRequired[int] + state: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py index f88bad3bb..537892dea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0519 import WebhooksReleaseType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0524 import WebhooksReleaseType -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["released"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookReleaseReleasedType",) +__all__ = ("WebhookReleaseCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py index 10479fbba..bf7ff16c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0520 import WebhooksRelease1Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0524 import WebhooksReleaseType -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["unpublished"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("WebhookReleaseDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py index 295c08664..0ab348636 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py @@ -13,23 +13,64 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0222 import RepositoryAdvisoryType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0524 import WebhooksReleaseType -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["published"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropTagNameType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py index 9127b97a9..81d36c700 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py @@ -9,27 +9,155 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0222 import RepositoryAdvisoryType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: Literal["reported"] + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +__all__ = ( + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py index 0d3034f23..2d039dd42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0525 import WebhooksRelease1Type -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["archived"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ("WebhookReleasePublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py index 611d0c9a7..294236234 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0524 import WebhooksReleaseType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["created"] + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ("WebhookReleaseReleasedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py index 580866124..7bcb14d66 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0525 import WebhooksRelease1Type -class WebhookRepositoryDeletedType(TypedDict): - """repository deleted event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["deleted"] + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryDeletedType",) +__all__ = ("WebhookReleaseUnpublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py index 114814038..abbf22f2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py @@ -9,38 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0226 import RepositoryAdvisoryType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] -"""WebhookRepositoryDispatchSamplePropClientPayload - -The `client_payload` that was specified in the `POST -/repos/{owner}/{repo}/dispatches` request body. -""" - - -__all__ = ( - "WebhookRepositoryDispatchSamplePropClientPayloadType", - "WebhookRepositoryDispatchSampleType", -) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py index fcddb9188..9609a5d20 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py @@ -9,66 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0226 import RepositoryAdvisoryType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -class WebhookRepositoryEditedPropChangesType(TypedDict): - """WebhookRepositoryEditedPropChanges""" - - default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] - description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] - homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] - topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] - - -class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str - - -class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: NotRequired[Union[list[str], None]] - - -__all__ = ( - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedType", -) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py index c662a3d1d..24295b885 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py index 785464de7..2c59cf9b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["privatized"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPrivatizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py index 751ef69cf..94dfc07f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["publicized"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPublicizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py index cfc33219c..aa078dfcf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py @@ -9,49 +9,38 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" +WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] +"""WebhookRepositoryDispatchSamplePropClientPayload - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str +The `client_payload` that was specified in the `POST +/repos/{owner}/{repo}/dispatches` request body. +""" __all__ = ( - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedType", + "WebhookRepositoryDispatchSamplePropClientPayloadType", + "WebhookRepositoryDispatchSampleType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py index 0cc31b3bb..9a1001c85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py @@ -9,27 +9,66 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0136 import RepositoryRulesetType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" + + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] + + +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str + + +class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: NotRequired[Union[list[str], None]] + + +__all__ = ( + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py index 67757c358..e5050cae0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0136 import RepositoryRulesetType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType + status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py index d279ee9a1..c4da6f4da 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py @@ -13,25 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0136 import RepositoryRulesetType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0823 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - action: Literal["edited"] + action: Literal["privatized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedType",) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py index a006812f2..841e6c4ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py @@ -9,37 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0824 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -from .group_0826 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] + action: Literal["publicized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesType", -) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py index 5b5ad06b2..c5f56f8f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py @@ -9,24 +9,49 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0085 import RepositoryRulesetConditionsType -from .group_0825 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" + + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: NotRequired[list[RepositoryRulesetConditionsType]] - deleted: NotRequired[list[RepositoryRulesetConditionsType]] - updated: NotRequired[ - list[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str + + +__all__ = ( + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py index 9594c1d75..f9c27669f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py @@ -9,88 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0085 import RepositoryRulesetConditionsType +from .group_0003 import SimpleUserType +from .group_0136 import RepositoryRulesetType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[list[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[list[str]] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", -) +__all__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py index 4059e207a..ae355f7c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py @@ -9,97 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType -from .group_0827 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0136 import RepositoryRulesetType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - added: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - deleted: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - updated: NotRequired[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py index 8b7482bfa..4bfe925ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py @@ -9,117 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType +from .group_0003 import SimpleUserType +from .group_0136 import RepositoryRulesetType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0828 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] + action: Literal["edited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", -) +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py index 59c1d6552..e943cf6d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py @@ -9,105 +9,37 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0829 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0831 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookRepositoryTransferredPropChangesType(TypedDict): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwnerType - - -class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwner""" + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + from_: NotRequired[str] - organization: NotRequired[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType - ] - user: NotRequired[ - Union[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None - ] - ] +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( - TypedDict -): - """Organization""" - - avatar_url: str - description: Union[str, None] - events_url: str - hooks_url: str - html_url: NotRequired[str] - id: int - issues_url: str - login: str - members_url: str - node_id: str - public_members_url: str - repos_url: str - url: str - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: NotRequired[str] __all__ = ( - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredType", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py index 6b6ce1cc5..9c80ca272 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py @@ -9,25 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0085 import RepositoryRulesetConditionsType +from .group_0830 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - action: Literal["unarchived"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + added: NotRequired[list[RepositoryRulesetConditionsType]] + deleted: NotRequired[list[RepositoryRulesetConditionsType]] + updated: NotRequired[ + list[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] + ] -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py index 274485885..9594c1d75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py @@ -9,27 +9,88 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0521 import WebhooksAlertType +from .group_0085 import RepositoryRulesetConditionsType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["create"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType + ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[list[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[list[str]] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py index 6d866a691..e77384e79 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py @@ -9,86 +9,97 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType - - -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): - """Repository Vulnerability Alert Alert +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType +from .group_0832 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) - The security alert of the vulnerable dependency. - """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + deleted: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + updated: NotRequired[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["dismissed"] - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", - "WebhookRepositoryVulnerabilityAlertDismissType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py index 02f140a81..8b7482bfa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py @@ -9,27 +9,117 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0521 import WebhooksAlertType +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - action: Literal["reopen"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType + ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py index 8984662e8..8aee02bb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py @@ -9,22 +9,21 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,36 +31,52 @@ class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): sender: SimpleUserType -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" - The security alert of the vulnerable dependency. - """ + owner: WebhookRepositoryTransferredPropChangesPropOwnerType - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ + +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None ] ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( + TypedDict +): + """Organization""" + + avatar_url: str + description: Union[str, None] + events_url: str + hooks_url: str + html_url: NotRequired[str] id: int + issues_url: str + login: str + members_url: str node_id: str - number: int - severity: str - state: Literal["fixed", "open"] + public_members_url: str + repos_url: str + url: str -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -85,10 +100,14 @@ class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(Typed subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", - "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py index d4d1369eb..c34e132fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0522 import SecretScanningAlertWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType + action: Literal["unarchived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertCreatedType",) +__all__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py index 7bfb120f8..7e4a4cc2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py @@ -9,228 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0522 import SecretScanningAlertWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0526 import WebhooksAlertType -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType + action: Literal["create"] + alert: WebhooksAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" - - type: NotRequired[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - - -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str - - -__all__ = ( - "SecretScanningLocationCommitType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationType", - "SecretScanningLocationWikiCommitType", - "WebhookSecretScanningAlertLocationCreatedType", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py index 4c3c84e39..bc33ca653 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py @@ -9,13 +9,86 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_comment: NotRequired[Union[str, None]] + dismiss_reason: str + dismissed_at: str + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["dismissed"] + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py index 35d6175f6..6ab87baf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0522 import SecretScanningAlertWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0526 import WebhooksAlertType -class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["publicly_leaked"] - alert: SecretScanningAlertWebhookType + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py index 46cf50000..2cb9a15d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py @@ -9,27 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0522 import SecretScanningAlertWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertReopenedType",) +class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[ + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + ] + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["fixed", "open"] + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolveType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py index eaa728386..d82286cc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0522 import SecretScanningAlertWebhookType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0527 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["resolved"] + action: Literal["created"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertResolvedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py index 7e9f534f7..c6912ae03 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0522 import SecretScanningAlertWebhookType +from .group_0422 import SecretScanningLocationType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0527 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" - action: Literal["validated"] + action: Literal["created"] alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py index 8221a499f..4c3c84e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py @@ -9,35 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType - - -class WebhookSecretScanningScanCompletedType(TypedDict): - """secret_scanning_scan completed event""" - - action: Literal["completed"] - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] - started_at: datetime - completed_at: datetime - secret_types: NotRequired[Union[list[str], None]] - custom_pattern_name: NotRequired[Union[str, None]] - custom_pattern_scope: NotRequired[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] - repository: NotRequired[RepositoryWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] - - -__all__ = ("WebhookSecretScanningScanCompletedType",) +from typing_extensions import TypedDict + + +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" + + payload: str + + +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py index 8cf20dead..8f452fd07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0523 import WebhooksSecurityAdvisoryType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0527 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" +class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): + """secret_scanning_alert publicly leaked event""" - action: Literal["published"] + action: Literal["publicly_leaked"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py index ee3db1220..29b18a9c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0523 import WebhooksSecurityAdvisoryType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0527 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - action: Literal["updated"] + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py index c0ab82377..36e0a8038 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0845 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0527 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["withdrawn"] + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py index f38acab63..19554d34a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py @@ -9,113 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0527 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - The details of the security advisory, including summary, description, and - severity. - """ + action: Literal["validated"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: str - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", -) +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py b/githubkit/versions/ghec_v2022_11_28/types/group_0846.py index e0b0964f8..d8959921f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0846.py @@ -9,25 +9,35 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0218 import FullRepositoryType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0847 import WebhookSecurityAndAnalysisPropChangesType - - -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" - - changes: WebhookSecurityAndAnalysisPropChangesType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookSecretScanningScanCompletedType(TypedDict): + """secret_scanning_scan completed event""" + + action: Literal["completed"] + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] + started_at: datetime + completed_at: datetime + secret_types: NotRequired[Union[list[str], None]] + custom_pattern_name: NotRequired[Union[str, None]] + custom_pattern_scope: NotRequired[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] + repository: NotRequired[RepositoryWebhooksType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("WebhookSecretScanningScanCompletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0847.py b/githubkit/versions/ghec_v2022_11_28/types/group_0847.py index 2b2106b07..13f8e2638 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0847.py @@ -9,15 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0848 import WebhookSecurityAndAnalysisPropChangesPropFromType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0528 import WebhooksSecurityAdvisoryType -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py index 7b37e426e..b63f4fd22 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0167 import SecurityAndAnalysisType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0528 import WebhooksSecurityAdvisoryType -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + action: Literal["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py index 5a9693296..42d217577 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0524 import WebhooksSponsorshipType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0850 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["cancelled"] + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py index b2843e227..f38acab63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py @@ -9,27 +9,113 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0524 import WebhooksSponsorshipType +from .group_0001 import CvssSeveritiesType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType + ] + severity: str + summary: str + updated_at: str + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: str -__all__ = ("WebhookSponsorshipCreatedType",) + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str + + +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py index becece0a5..297b678c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py @@ -9,44 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0524 import WebhooksSponsorshipType +from .group_0222 import FullRepositoryType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0852 import WebhookSecurityAndAnalysisPropChangesType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + repository: FullRepositoryType + sender: NotRequired[SimpleUserType] -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -__all__ = ( - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedType", -) +__all__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py b/githubkit/versions/ghec_v2022_11_28/types/group_0852.py index e168084ba..bcde53b4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0852.py @@ -9,28 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0524 import WebhooksSponsorshipType +from .group_0853 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookSponsorshipPendingCancellationType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py index 15131a448..b0a4ff870 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py @@ -9,30 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0524 import WebhooksSponsorshipType -from .group_0525 import WebhooksChanges8Type +from .group_0170 import SecurityAndAnalysisType -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["pending_tier_change"] - changes: WebhooksChanges8Type - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py index 57ca0f56b..ca8947528 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py @@ -13,19 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0524 import WebhooksSponsorshipType -from .group_0525 import WebhooksChanges8Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0529 import WebhooksSponsorshipType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -34,4 +32,4 @@ class WebhookSponsorshipTierChangedType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipTierChangedType",) +__all__ = ("WebhookSponsorshipCancelledType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py index 4292ad890..d9d6ba440 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py @@ -9,26 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0529 import WebhooksSponsorshipType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - starred_at: Union[str, None] + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookSponsorshipCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py index f43bfe07f..103b0021e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py @@ -13,22 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0529 import WebhooksSponsorshipType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - starred_at: None + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStarDeletedType",) +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str + + +__all__ = ( + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py index 18fd62191..c077cb099 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py @@ -9,202 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0529 import WebhooksSponsorshipType -class WebhookStatusType(TypedDict): - """status event""" +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - avatar_url: NotRequired[Union[str, None]] - branches: list[WebhookStatusPropBranchesItemsType] - commit: WebhookStatusPropCommitType - context: str - created_at: str - description: Union[str, None] + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] - name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str + sponsorship: WebhooksSponsorshipType -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: list[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - verified_at: Union[str, None] - - -__all__ = ( - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitType", - "WebhookStatusType", -) +__all__ = ("WebhookSponsorshipPendingCancellationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py index 31b2ed900..686cbd1b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py @@ -9,21 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0529 import WebhooksSponsorshipType +from .group_0530 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("WebhookSponsorshipPendingTierChangeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py b/githubkit/versions/ghec_v2022_11_28/types/group_0859.py index eafde2845..bd7c826d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0859.py @@ -9,15 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0529 import WebhooksSponsorshipType +from .group_0530 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" + action: Literal["tier_changed"] + changes: WebhooksChanges8Type + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("WebhookSponsorshipTierChangedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py index e44b95c39..1e23f1403 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py @@ -9,21 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookStarCreatedType(TypedDict): + """star created event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: Union[str, None] -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py index a808e25ce..5b99a38e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py @@ -9,15 +9,26 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookStarDeletedType(TypedDict): + """star deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: None -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py index 643ed992e..19c9f40a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py @@ -9,30 +9,202 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0152 import IssueType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType - - -class WebhookSubIssuesParentIssueAddedType(TypedDict): - """parent issue added event""" - - action: Literal["parent_issue_added"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookStatusType(TypedDict): + """status event""" + + avatar_url: NotRequired[Union[str, None]] + branches: list[WebhookStatusPropBranchesItemsType] + commit: WebhookStatusPropCommitType + context: str + created_at: str + description: Union[str, None] + enterprise: NotRequired[EnterpriseWebhooksType] + id: int installation: NotRequired[SimpleInstallationType] + name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str + + +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommitType + name: str + protected: bool + + +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] + url: Union[str, None] + + +class WebhookStatusPropCommitType(TypedDict): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthorType, None] + comments_url: str + commit: WebhookStatusPropCommitPropCommitType + committer: Union[WebhookStatusPropCommitPropCommitterType, None] + html_url: str + node_id: str + parents: list[WebhookStatusPropCommitPropParentsItemsType] + sha: str + url: str + + +class WebhookStatusPropCommitPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthorType + comment_count: int + committer: WebhookStatusPropCommitPropCommitPropCommitterType + message: str + tree: WebhookStatusPropCommitPropCommitPropTreeType + url: str + verification: WebhookStatusPropCommitPropCommitPropVerificationType + + +class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] + signature: Union[str, None] + verified: bool + verified_at: Union[str, None] -__all__ = ("WebhookSubIssuesParentIssueAddedType",) +__all__ = ( + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitType", + "WebhookStatusType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py index a9b74a4a1..31b2ed900 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0152 import IssueType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookSubIssuesParentIssueRemovedType(TypedDict): - """parent issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["parent_issue_removed"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookSubIssuesParentIssueRemovedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py index 9525a82c7..eafde2845 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0152 import IssueType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookSubIssuesSubIssueAddedType(TypedDict): - """sub-issue added event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - action: Literal["sub_issue_added"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - -__all__ = ("WebhookSubIssuesSubIssueAddedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py index ebd9895ae..e44b95c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0152 import IssueType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookSubIssuesSubIssueRemovedType(TypedDict): - """sub-issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_removed"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookSubIssuesSubIssueRemovedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py index 6c774844d..a808e25ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py @@ -11,23 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0526 import WebhooksTeam1Type +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookTeamAddType(TypedDict): - """team_add event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - team: WebhooksTeam1Type - -__all__ = ("WebhookTeamAddType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py index 5f1c06417..c66ea720d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py @@ -9,194 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0526 import WebhooksTeam1Type - - -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" - - action: Literal["added_to_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0155 import IssueType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueAddedType(TypedDict): + """parent issue added event""" + + action: Literal["parent_issue_added"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryType", -) +__all__ = ("WebhookSubIssuesParentIssueAddedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py index 6157e0bb2..b97d25dd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py @@ -9,190 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0526 import WebhooksTeam1Type - - -class WebhookTeamCreatedType(TypedDict): - """team created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0155 import IssueType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueRemovedType(TypedDict): + """parent issue removed event""" + + action: Literal["parent_issue_removed"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamCreatedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedType", -) +__all__ = ("WebhookSubIssuesParentIssueRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py index f391cc072..86105e845 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py @@ -9,190 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0526 import WebhooksTeam1Type - - -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0155 import IssueType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueAddedType(TypedDict): + """sub-issue added event""" + + action: Literal["sub_issue_added"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamDeletedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedType", -) +__all__ = ("WebhookSubIssuesSubIssueAddedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0870.py b/githubkit/versions/ghec_v2022_11_28/types/group_0870.py index d0bcf4951..b59aac628 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0870.py @@ -9,258 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0526 import WebhooksTeam1Type - - -class WebhookTeamEditedType(TypedDict): - """team edited event""" - - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0155 import IssueType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueRemovedType(TypedDict): + """sub-issue removed event""" + + action: Literal["sub_issue_removed"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamEditedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType - ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - - from_: str - - -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str - - -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedType", -) +__all__ = ("WebhookSubIssuesSubIssueRemovedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py index abb2e3570..8136b3475 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py @@ -9,194 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0526 import WebhooksTeam1Type +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0531 import WebhooksTeam1Type -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" +class WebhookTeamAddType(TypedDict): + """team_add event""" - action: Literal["removed_from_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryType", -) +__all__ = ("WebhookTeamAddType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py b/githubkit/versions/ghec_v2022_11_28/types/group_0872.py index 2340edf81..6a7f0dd94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0872.py @@ -9,25 +9,194 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0531 import WebhooksTeam1Type -class WebhookWatchStartedType(TypedDict): - """watch started event""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" - action: Literal["started"] + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type -__all__ = ("WebhookWatchStartedType",) +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py index bc4122033..36eaaafd3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py @@ -9,35 +9,190 @@ from __future__ import annotations -from typing import Any, Union +from datetime import datetime +from typing import Any, Literal, Union from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0531 import WebhooksTeam1Type -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" +class WebhookTeamCreatedType(TypedDict): + """team created event""" + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] sender: SimpleUserType - workflow: str + team: WebhooksTeam1Type -WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] -"""WebhookWorkflowDispatchPropInputs +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamCreatedPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. """ +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookWorkflowDispatchPropInputsType", - "WebhookWorkflowDispatchType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py index 5070afb62..db3f09337 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py @@ -9,79 +9,190 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0252 import DeploymentType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0531 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" - action: Literal["completed"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str - completed_at: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamDeletedPropRepositoryPropCustomProperties - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py index d129fc90a..041507744 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py @@ -9,65 +9,258 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0531 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamEditedType(TypedDict): + """team edited event""" + + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] + sender: SimpleUserType + team: WebhooksTeam1Type + + +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + +WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamEditedPropRepositoryPropCustomProperties -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py index 92b2bfd6b..cc5dbb0b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py @@ -9,57 +9,194 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0531 import WebhooksTeam1Type + + +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + sender: SimpleUserType + team: WebhooksTeam1Type + + +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType ] - created_at: NotRequired[str] - head_sha: NotRequired[str] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[Union[str, None]]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - list[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py index 3857eeba9..e59c79a44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py @@ -9,71 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0252 import DeploymentType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - action: Literal["in_progress"] + action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] - name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] - - -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressType", -) +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py index 217bd7ee4..84202dbc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py @@ -9,54 +9,35 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" + + enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: str + + +WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] +"""WebhookWorkflowDispatchPropInputs +""" __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowDispatchPropInputsType", + "WebhookWorkflowDispatchType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py index 7a741384f..672ade8f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py @@ -12,47 +12,76 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0256 import DeploymentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType + + +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" + + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[Union[str, None]] - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[str]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] - url: NotRequired[str] +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + url: str -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" + +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] - conclusion: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str number: int started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py index 8e342a17d..d129fc90a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py @@ -9,37 +9,31 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0252 import DeploymentType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" - - action: Literal["queued"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ check_run_url: str completed_at: Union[str, None] - conclusion: Union[str, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] created_at: str head_sha: str html_url: str @@ -54,15 +48,15 @@ class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): runner_group_name: Union[str, None] runner_id: Union[int, None] runner_name: Union[str, None] - started_at: datetime + started_at: str status: Literal["queued", "in_progress", "completed", "waiting"] head_branch: Union[str, None] workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): """Workflow Step""" completed_at: Union[str, None] @@ -70,11 +64,10 @@ class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): name: str number: int started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py index dcd39a506..92b2bfd6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py @@ -9,72 +9,57 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0252 import DeploymentType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType - -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" - - action: Literal["waiting"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - head_branch: Union[str, None] - workflow_name: Union[str, None] - status: Literal["queued", "in_progress", "completed", "waiting"] - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[list[Union[str, None]]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + list[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] + ] + url: NotRequired[str] + + +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" __all__ = ( - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py index 2e448ba0b..5f695fd2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py @@ -9,426 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0484 import WebhooksWorkflowType +from .group_0256 import DeploymentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" - action: Literal["completed"] + action: Literal["in_progress"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: list[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py index 043bfe027..217bd7ee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py @@ -9,424 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0484 import WebhooksWorkflowType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType - - -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] + labels: list[str] name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: Union[str, None] node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py index 380dc24bb..7a741384f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py @@ -9,426 +9,50 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0474 import EnterpriseWebhooksType -from .group_0475 import SimpleInstallationType -from .group_0476 import OrganizationSimpleWebhooksType -from .group_0477 import RepositoryWebhooksType -from .group_0484 import WebhooksWorkflowType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" - - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType - - -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + check_run_url: NotRequired[str] + completed_at: NotRequired[Union[str, None]] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + head_sha: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + labels: NotRequired[list[str]] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: Literal["in_progress", "completed", "queued"] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] __all__ = ( - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py index 5ba65712d..7ec6b6c5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py @@ -10,34 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0008 import EnterpriseType -from .group_0009 import IntegrationPropPermissionsType +from .group_0256 import DeploymentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str id: int - slug: NotRequired[str] + labels: list[str] + name: str node_id: str - client_id: str - owner: Union[SimpleUserType, EnterpriseType] + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending"] -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) +__all__ = ( + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py index 528a915b7..44a93b87f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py @@ -9,17 +9,72 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0256 import DeploymentType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) + +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0887.py b/githubkit/versions/ghec_v2022_11_28/types/group_0887.py index 8f59ec945..91fd20ceb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0887.py @@ -9,17 +9,426 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0489 import WebhooksWorkflowType -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" + + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + + +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str -__all__ = ("AppHookConfigPatchBodyType",) +__all__ = ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py index 24eb9bac1..1b421679f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py @@ -9,11 +9,424 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0489 import WebhooksWorkflowType -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType + + +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0889.py b/githubkit/versions/ghec_v2022_11_28/types/group_0889.py index e93cba9f3..05f3be615 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0889.py @@ -9,17 +9,426 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0017 import AppPermissionsType +from .group_0003 import SimpleUserType +from .group_0479 import EnterpriseWebhooksType +from .group_0480 import SimpleInstallationType +from .group_0481 import OrganizationSimpleWebhooksType +from .group_0482 import RepositoryWebhooksType +from .group_0489 import WebhooksWorkflowType -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] + action: Literal["requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py index fad60868e..2d4d40484 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py @@ -9,13 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" - - access_token: str - - -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType + + +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" + + id: int + slug: NotRequired[str] + node_id: str + client_id: str + owner: Union[SimpleUserType, EnterpriseType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: str + webhook_secret: Union[str, None] + pem: str + + +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py index c0bad1ae1..528a915b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: str -__all__ = ("ApplicationsClientIdTokenPostBodyType",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py index 8a68cb8df..8f59ec945 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" - access_token: str + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py index 8e0b6ce68..24eb9bac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" - access_token: str - -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py index 8351134ad..e93cba9f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py @@ -14,15 +14,12 @@ from .group_0017 import AppPermissionsType -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" - access_token: str - target: NotRequired[str] - target_id: NotRequired[int] repositories: NotRequired[list[str]] repository_ids: NotRequired[list[int]] permissions: NotRequired[AppPermissionsType] -__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py index 4dce740a0..fad60868e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class CredentialsRevokePostBodyType(TypedDict): - """CredentialsRevokePostBody""" +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" - credentials: list[str] + access_token: str -__all__ = ("CredentialsRevokePostBodyType",) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py index e3fd6e8a8..c0bad1ae1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py @@ -9,12 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing_extensions import TypedDict -EmojisGetResponse200Type: TypeAlias = dict[str, Any] -"""EmojisGetResponse200 -""" + +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" + + access_token: str -__all__ = ("EmojisGetResponse200Type",) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py index 041aa273c..8a68cb8df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0031 import ActionsHostedRunnerType +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" -class EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" + access_token: str - total_count: int - runners: list[ActionsHostedRunnerType] - -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py index f1d09102c..8e0b6ce68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py @@ -9,33 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsHostedRunnersPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersPostBody""" +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" - name: str - image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType - size: str - runner_group_id: int - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] + access_token: str -class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage - - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ - - id: NotRequired[str] - source: NotRequired[Literal["github", "partner", "custom"]] - - -__all__ = ( - "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", - "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", -) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py index 80161e9ce..8351134ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0032 import ActionsHostedRunnerImageType +from .group_0017 import AppPermissionsType -class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" - total_count: int - images: list[ActionsHostedRunnerImageType] + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ( - "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py index b478dc35e..4dce740a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py @@ -11,16 +11,11 @@ from typing_extensions import TypedDict -from .group_0032 import ActionsHostedRunnerImageType +class CredentialsRevokePostBodyType(TypedDict): + """CredentialsRevokePostBody""" -class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" + credentials: list[str] - total_count: int - images: list[ActionsHostedRunnerImageType] - -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type",) +__all__ = ("CredentialsRevokePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py index 107964da3..e3fd6e8a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py @@ -9,18 +9,12 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import TypeAlias -from .group_0030 import ActionsHostedRunnerMachineSpecType - - -class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" - - total_count: int - machine_specs: list[ActionsHostedRunnerMachineSpecType] +EmojisGetResponse200Type: TypeAlias = dict[str, Any] +"""EmojisGetResponse200 +""" -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type",) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py index 1114dd36e..041aa273c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0031 import ActionsHostedRunnerType -class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" + +class EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersGetResponse200""" total_count: int - platforms: list[str] + runners: list[ActionsHostedRunnerType] -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py index bb70222d4..f1d09102c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py @@ -9,16 +9,33 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): - """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" +class EnterprisesEnterpriseActionsHostedRunnersPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPostBody""" - name: NotRequired[str] - runner_group_id: NotRequired[int] + name: str + image: EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int maximum_runners: NotRequired[int] enable_static_ip: NotRequired[bool] -__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType",) +class EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImage + + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + + +__all__ = ( + "EnterprisesEnterpriseActionsHostedRunnersPostBodyPropImageType", + "EnterprisesEnterpriseActionsHostedRunnersPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py index ed4fcf97f..80161e9ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0032 import ActionsHostedRunnerImageType -class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsPutBody""" - enabled_organizations: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) + +__all__ = ( + "EnterprisesEnterpriseActionsHostedRunnersImagesGithubOwnedGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py index fbbf5634a..b478dc35e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py @@ -11,14 +11,16 @@ from typing_extensions import TypedDict -from .group_0036 import OrganizationSimpleType +from .group_0032 import ActionsHostedRunnerImageType -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200""" - total_count: float - organizations: list[OrganizationSimpleType] + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersImagesPartnerGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py index e10af1aa1..107964da3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py @@ -11,11 +11,16 @@ from typing_extensions import TypedDict +from .group_0030 import ActionsHostedRunnerMachineSpecType -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" - selected_organization_ids: list[int] +class EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200""" + total_count: int + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersMachineSizesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py index 5a30f5258..1114dd36e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py @@ -9,34 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" +class EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200""" - total_count: float - runner_groups: list[RunnerGroupsEnterpriseType] + total_count: int + platforms: list[str] -class RunnerGroupsEnterpriseType(TypedDict): - """RunnerGroupsEnterprise""" - - id: float - name: str - visibility: str - default: bool - selected_organizations_url: NotRequired[str] - runners_url: str - hosted_runners_url: NotRequired[str] - network_configuration_id: NotRequired[str] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsEnterpriseType", -) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersPlatformsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0908.py b/githubkit/versions/ghec_v2022_11_28/types/group_0908.py index 772221f28..bb70222d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0908.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBody""" - name: str - visibility: NotRequired[Literal["selected", "all"]] - selected_organization_ids: NotRequired[list[int]] - runners: NotRequired[list[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[str] + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) +__all__ = ("EnterprisesEnterpriseActionsHostedRunnersHostedRunnerIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py index 7127368d3..ed4fcf97f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" +class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsPutBody""" - name: NotRequired[str] - visibility: NotRequired[Literal["selected", "all"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[Union[str, None]] + enabled_organizations: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py index bbc5ea822..fbbf5634a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py @@ -14,15 +14,11 @@ from .group_0036 import OrganizationSimpleType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" total_count: float organizations: list[OrganizationSimpleType] -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", -) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py index ab43b41f7..e10af1aa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" selected_organization_ids: list[int] -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", -) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py index 7a7890a82..5a30f5258 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py @@ -9,20 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0041 import RunnerType - -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" total_count: float - runners: list[RunnerType] + runner_groups: list[RunnerGroupsEnterpriseType] + + +class RunnerGroupsEnterpriseType(TypedDict): + """RunnerGroupsEnterprise""" + + id: float + name: str + visibility: str + default: bool + selected_organizations_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + network_configuration_id: NotRequired[str] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] __all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsEnterpriseType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py index f9cb41787..772221f28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py @@ -9,15 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" - runners: list[int] + name: str + visibility: NotRequired[Literal["selected", "all"]] + selected_organization_ids: NotRequired[list[int]] + runners: NotRequired[list[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[str] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py index c98f8064a..7127368d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py @@ -9,16 +9,19 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0041 import RunnerType +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" -class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" + name: NotRequired[str] + visibility: NotRequired[Literal["selected", "all"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[Union[str, None]] - total_count: NotRequired[float] - runners: NotRequired[list[RunnerType]] - -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py index 05462f38c..bbc5ea822 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py @@ -9,16 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0036 import OrganizationSimpleType -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + total_count: float + organizations: list[OrganizationSimpleType] -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py index dc1b4cf57..ab43b41f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py @@ -11,16 +11,15 @@ from typing_extensions import TypedDict -from .group_0041 import RunnerType - -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( TypedDict ): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - runner: RunnerType - encoded_jit_config: str + selected_organization_ids: list[int] -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py index c76b3c8f6..7a7890a82 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py @@ -11,14 +11,18 @@ from typing_extensions import TypedDict -from .group_0040 import RunnerLabelType +from .group_0041 import RunnerType -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: int - labels: list[RunnerLabelType] + total_count: float + runners: list[RunnerType] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py index a11685a46..f9cb41787 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py @@ -12,10 +12,12 @@ from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - labels: list[str] + runners: list[int] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py index 55a7d1a67..c98f8064a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0041 import RunnerType -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" + total_count: NotRequired[float] + runners: NotRequired[list[RunnerType]] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py index 438f14e83..05462f38c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0040 import RunnerLabelType +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py index ed3987299..dc1b4cf57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py @@ -9,43 +9,18 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0049 import ( - AmazonS3AccessKeysConfigType, - AzureBlobConfigType, - AzureHubConfigType, - DatadogConfigType, - HecConfigType, -) -from .group_0050 import AmazonS3OidcConfigType, SplunkConfigType -from .group_0051 import GoogleCloudConfigType - - -class EnterprisesEnterpriseAuditLogStreamsPostBodyType(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsPostBody""" - - enabled: bool - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] - vendor_specific: Union[ - AzureBlobConfigType, - AzureHubConfigType, - AmazonS3OidcConfigType, - AmazonS3AccessKeysConfigType, - SplunkConfigType, - HecConfigType, - GoogleCloudConfigType, - DatadogConfigType, - ] - - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",) +from .group_0041 import RunnerType + + +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + + runner: RunnerType + encoded_jit_config: str + + +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py index 025b744eb..c76b3c8f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py @@ -9,43 +9,16 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0049 import ( - AmazonS3AccessKeysConfigType, - AzureBlobConfigType, - AzureHubConfigType, - DatadogConfigType, - HecConfigType, -) -from .group_0050 import AmazonS3OidcConfigType, SplunkConfigType -from .group_0051 import GoogleCloudConfigType - - -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" - - enabled: bool - stream_type: Literal[ - "Azure Blob Storage", - "Azure Event Hubs", - "Amazon S3", - "Splunk", - "HTTPS Event Collector", - "Google Cloud Storage", - "Datadog", - ] - vendor_specific: Union[ - AzureBlobConfigType, - AzureHubConfigType, - AmazonS3OidcConfigType, - AmazonS3AccessKeysConfigType, - SplunkConfigType, - HecConfigType, - GoogleCloudConfigType, - DatadogConfigType, - ] - - -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",) +from .group_0040 import RunnerLabelType + + +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + + total_count: int + labels: list[RunnerLabelType] + + +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py index ec679fcbf..a11685a46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type(TypedDict): - """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" - errors: NotRequired[list[str]] + labels: list[str] -__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py index 2bdddc34c..55a7d1a67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] + labels: list[str] -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py index 7f45c53f3..438f14e83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py @@ -9,71 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0061 import CodeScanningDefaultSetupOptionsType +from .group_0040 import RunnerLabelType -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" - name: str - description: str - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] + total_count: int + labels: list[RunnerLabelType] -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py index 22a33e032..ed3987299 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py @@ -10,72 +10,42 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0061 import CodeScanningDefaultSetupOptionsType +from typing_extensions import TypedDict + +from .group_0049 import ( + AmazonS3AccessKeysConfigType, + AzureBlobConfigType, + AzureHubConfigType, + DatadogConfigType, + HecConfigType, +) +from .group_0050 import AmazonS3OidcConfigType, SplunkConfigType +from .group_0051 import GoogleCloudConfigType -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" +class EnterprisesEnterpriseAuditLogStreamsPostBodyType(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsPostBody""" - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] + enabled: bool + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] + vendor_specific: Union[ + AzureBlobConfigType, + AzureHubConfigType, + AmazonS3OidcConfigType, + AmazonS3AccessKeysConfigType, + SplunkConfigType, + HecConfigType, + GoogleCloudConfigType, + DatadogConfigType, ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py index ec6e0b6b9..025b744eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py @@ -9,18 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import TypedDict - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - - scope: Literal["all", "all_without_configurations"] - - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", +from .group_0049 import ( + AmazonS3AccessKeysConfigType, + AzureBlobConfigType, + AzureHubConfigType, + DatadogConfigType, + HecConfigType, ) +from .group_0050 import AmazonS3OidcConfigType, SplunkConfigType +from .group_0051 import GoogleCloudConfigType + + +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutBody""" + + enabled: bool + stream_type: Literal[ + "Azure Blob Storage", + "Azure Event Hubs", + "Amazon S3", + "Splunk", + "HTTPS Event Collector", + "Google Cloud Storage", + "Datadog", + ] + vendor_specific: Union[ + AzureBlobConfigType, + AzureHubConfigType, + AmazonS3OidcConfigType, + AmazonS3AccessKeysConfigType, + SplunkConfigType, + HecConfigType, + GoogleCloudConfigType, + DatadogConfigType, + ] + + +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py index 47259f1fc..ec679fcbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type(TypedDict): + """EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + errors: NotRequired[list[str]] -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", -) +__all__ = ("EnterprisesEnterpriseAuditLogStreamsStreamIdPutResponse422Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py index 7eacda7c2..2bdddc34c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0060 import CodeSecurityConfigurationType +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py index 669b21726..7f45c53f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py @@ -9,22 +9,71 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0061 import CodeScanningDefaultSetupOptionsType -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - advanced_security_enabled_for_new_repositories: NotRequired[bool] - advanced_security_enabled_new_user_namespace_repos: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_non_provider_patterns_enabled_for_new_repositories: NotRequired[ - Union[bool, None] +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py index f3f0902e0..22a33e032 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py @@ -9,16 +9,73 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0068 import CopilotSeatDetailsType +from .group_0061 import CodeScanningDefaultSetupOptionsType -class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0932.py b/githubkit/versions/ghec_v2022_11_28/types/group_0932.py index 255f371e8..ec6e0b6b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0932.py @@ -9,16 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0076 import NetworkConfigurationType +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" -class EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" + scope: Literal["all", "all_without_configurations"] - total_count: int - network_configurations: list[NetworkConfigurationType] - -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py index 8140a1e62..47259f1fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py @@ -13,12 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseNetworkConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseNetworkConfigurationsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - name: str - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: list[str] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] -__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py index 021c97df5..7eacda7c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py @@ -12,17 +12,22 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0060 import CodeSecurityConfigurationType -class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( TypedDict ): - """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ - name: NotRequired[str] - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: NotRequired[list[str]] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] __all__ = ( - "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py index bef861862..669b21726 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py @@ -9,15 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0078 import CustomPropertyType +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" -class EnterprisesEnterprisePropertiesSchemaPatchBodyType(TypedDict): - """EnterprisesEnterprisePropertiesSchemaPatchBody""" + advanced_security_enabled_for_new_repositories: NotRequired[bool] + advanced_security_enabled_new_user_namespace_repos: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_non_provider_patterns_enabled_for_new_repositories: NotRequired[ + Union[bool, None] + ] - properties: list[CustomPropertyType] - -__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",) +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py index 9b00eb63f..f3f0902e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py @@ -9,81 +9,16 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0080 import RepositoryRulesetBypassActorType -from .group_0091 import EnterpriseRulesetConditionsOneof0Type -from .group_0092 import EnterpriseRulesetConditionsOneof1Type -from .group_0093 import EnterpriseRulesetConditionsOneof2Type -from .group_0094 import EnterpriseRulesetConditionsOneof3Type -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType +from .group_0068 import CopilotSeatDetailsType -class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): - """EnterprisesEnterpriseRulesetsPostBody""" +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - EnterpriseRulesetConditionsOneof0Type, - EnterpriseRulesetConditionsOneof1Type, - EnterpriseRulesetConditionsOneof2Type, - EnterpriseRulesetConditionsOneof3Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("EnterprisesEnterpriseRulesetsPostBodyType",) +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py index 5e02c0ef3..b14f5c2fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py @@ -9,81 +9,16 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0080 import RepositoryRulesetBypassActorType -from .group_0091 import EnterpriseRulesetConditionsOneof0Type -from .group_0092 import EnterpriseRulesetConditionsOneof1Type -from .group_0093 import EnterpriseRulesetConditionsOneof2Type -from .group_0094 import EnterpriseRulesetConditionsOneof3Type -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType +from .group_0068 import CopilotSeatDetailsType -class EnterprisesEnterpriseRulesetsRulesetIdPutBodyType(TypedDict): - """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" +class EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type(TypedDict): + """EnterprisesEnterpriseMembersUsernameCopilotGetResponse200""" - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - EnterpriseRulesetConditionsOneof0Type, - EnterpriseRulesetConditionsOneof1Type, - EnterpriseRulesetConditionsOneof2Type, - EnterpriseRulesetConditionsOneof3Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",) +__all__ = ("EnterprisesEnterpriseMembersUsernameCopilotGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0938.py b/githubkit/versions/ghec_v2022_11_28/types/group_0938.py index 564cbb265..255f371e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0938.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0076 import NetworkConfigurationType -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - users: NotRequired[list[str]] +class EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseNetworkConfigurationsGetResponse200""" + total_count: int + network_configurations: list[NetworkConfigurationType] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", -) + +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py index 06bb4eff1..8140a1e62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py @@ -9,19 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ +class EnterprisesEnterpriseNetworkConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseNetworkConfigurationsPostBody""" - message: NotRequired[str] + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", -) +__all__ = ("EnterprisesEnterpriseNetworkConfigurationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py index 0141363fc..021c97df5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py @@ -9,17 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( +class EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType( TypedDict ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" + """EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBody""" - users: NotRequired[list[str]] + name: NotRequired[str] + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: NotRequired[list[str]] __all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", + "EnterprisesEnterpriseNetworkConfigurationsNetworkConfigurationIdPatchBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py index 38414b976..bef861862 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0078 import CustomPropertyType -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ - message: NotRequired[str] +class EnterprisesEnterprisePropertiesSchemaPatchBodyType(TypedDict): + """EnterprisesEnterprisePropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", -) + +__all__ = ("EnterprisesEnterprisePropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0942.py b/githubkit/versions/ghec_v2022_11_28/types/group_0942.py index 2a811b378..9b00eb63f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0942.py @@ -9,29 +9,81 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - - -class GistsPostBodyType(TypedDict): - """GistsPostBody""" - - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0080 import RepositoryRulesetBypassActorType +from .group_0091 import EnterpriseRulesetConditionsOneof0Type +from .group_0092 import EnterpriseRulesetConditionsOneof1Type +from .group_0093 import EnterpriseRulesetConditionsOneof2Type +from .group_0094 import EnterpriseRulesetConditionsOneof3Type +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType -GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsPostBodyPropFiles -Names and content for the files that make up the gist +class EnterprisesEnterpriseRulesetsPostBodyType(TypedDict): + """EnterprisesEnterpriseRulesetsPostBody""" -Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} -""" + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + EnterpriseRulesetConditionsOneof0Type, + EnterpriseRulesetConditionsOneof1Type, + EnterpriseRulesetConditionsOneof2Type, + EnterpriseRulesetConditionsOneof3Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ( - "GistsPostBodyPropFilesType", - "GistsPostBodyType", -) +__all__ = ("EnterprisesEnterpriseRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py index cad5cbf2a..5e02c0ef3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py @@ -9,27 +9,81 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" - - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] +from .group_0080 import RepositoryRulesetBypassActorType +from .group_0091 import EnterpriseRulesetConditionsOneof0Type +from .group_0092 import EnterpriseRulesetConditionsOneof1Type +from .group_0093 import EnterpriseRulesetConditionsOneof2Type +from .group_0094 import EnterpriseRulesetConditionsOneof3Type +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" +class EnterprisesEnterpriseRulesetsRulesetIdPutBodyType(TypedDict): + """EnterprisesEnterpriseRulesetsRulesetIdPutBody""" - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + EnterpriseRulesetConditionsOneof0Type, + EnterpriseRulesetConditionsOneof1Type, + EnterpriseRulesetConditionsOneof2Type, + EnterpriseRulesetConditionsOneof3Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ( - "GistsGistIdGetResponse403PropBlockType", - "GistsGistIdGetResponse403Type", -) +__all__ = ("EnterprisesEnterpriseRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py index e5f3979ec..564cbb265 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py @@ -9,35 +9,17 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] - - -GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsGistIdPatchBodyPropFiles - -The gist files to be updated, renamed, or deleted. Each `key` must match the -current filename -(including extension) of the targeted gist file. For example: `hello.py`. - -To delete a file, set the whole file to null. For example: `hello.py : null`. -The file will also be -deleted if the specified object does not contain at least one of `content` or -`filename`. - -Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} -""" + users: NotRequired[list[str]] __all__ = ( - "GistsGistIdPatchBodyPropFilesType", - "GistsGistIdPatchBodyType", + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py index 054661ac7..06bb4eff1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py @@ -9,13 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ - body: str + message: NotRequired[str] -__all__ = ("GistsGistIdCommentsPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0946.py b/githubkit/versions/ghec_v2022_11_28/types/group_0946.py index 39ac46ae2..0141363fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0946.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - body: str + users: NotRequired[list[str]] -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py index 10e6b69c7..38414b976 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py @@ -9,11 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ + message: NotRequired[str] -__all__ = ("GistsGistIdStarGetResponse404Type",) + +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py b/githubkit/versions/ghec_v2022_11_28/types/group_0948.py index a168e4016..2a811b378 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0948.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0020 import RepositoryType +class GistsPostBodyType(TypedDict): + """GistsPostBody""" -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] - total_count: int - repositories: list[RepositoryType] - repository_selection: NotRequired[str] +GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsPostBodyPropFiles -__all__ = ("InstallationRepositoriesGetResponse200Type",) +Names and content for the files that make up the gist + +Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} +""" + + +__all__ = ( + "GistsPostBodyPropFilesType", + "GistsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py index cb94d812e..cad5cbf2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("MarkdownPostBodyType",) +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" + + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] + + +__all__ = ( + "GistsGistIdGetResponse403PropBlockType", + "GistsGistIdGetResponse403Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py index f9c51f36b..e5f3979ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py @@ -9,15 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -__all__ = ("NotificationsPutBodyType",) +GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsGistIdPatchBodyPropFiles + +The gist files to be updated, renamed, or deleted. Each `key` must match the +current filename +(including extension) of the targeted gist file. For example: `hello.py`. + +To delete a file, set the whole file to null. For example: `hello.py : null`. +The file will also be +deleted if the specified object does not contain at least one of `content` or +`filename`. + +Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} +""" + + +__all__ = ( + "GistsGistIdPatchBodyPropFilesType", + "GistsGistIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py index 70705f433..054661ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" - message: NotRequired[str] + body: str -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("GistsGistIdCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0952.py b/githubkit/versions/ghec_v2022_11_28/types/group_0952.py index 0dbd53ac7..39ac46ae2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0952.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" - ignored: NotRequired[bool] + body: str -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py b/githubkit/versions/ghec_v2022_11_28/types/group_0953.py index 403287f04..10e6b69c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0953.py @@ -9,16 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0171 import OrganizationCustomRepositoryRoleType +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" -class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" - total_count: NotRequired[int] - custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] - - -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) +__all__ = ("GistsGistIdStarGetResponse404Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py index f0f3bfeba..a168e4016 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py @@ -9,48 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class OrgsOrgPatchBodyType(TypedDict): - """OrgsOrgPatchBody""" - - billing_email: NotRequired[str] - company: NotRequired[str] - email: NotRequired[str] - twitter_username: NotRequired[str] - location: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - default_repository_permission: NotRequired[ - Literal["read", "write", "admin", "none"] - ] - members_can_create_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_public_repositories: NotRequired[bool] - members_allowed_repository_creation_type: NotRequired[ - Literal["all", "private", "none"] - ] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - blog: NotRequired[str] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[str] - secret_scanning_validity_checks_enabled: NotRequired[bool] - deploy_keys_enabled_for_repositories: NotRequired[bool] - - -__all__ = ("OrgsOrgPatchBodyType",) + +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" + + total_count: int + repositories: list[RepositoryType] + repository_selection: NotRequired[str] + + +__all__ = ("InstallationRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py index c9f8884a9..cb94d812e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" - total_count: int - repository_cache_usages: list[ActionsCacheUsageByRepositoryType] + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int - - -__all__ = ( - "ActionsCacheUsageByRepositoryType", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", -) +__all__ = ("MarkdownPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py index c6bcde5bd..f9c51f36b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0031 import ActionsHostedRunnerType +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" -class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersGetResponse200""" + last_read_at: NotRequired[datetime] + read: NotRequired[bool] - total_count: int - runners: list[ActionsHostedRunnerType] - -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) +__all__ = ("NotificationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py index da2efcd13..70705f433 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py @@ -9,33 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBody""" +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" - name: str - image: OrgsOrgActionsHostedRunnersPostBodyPropImageType - size: str - runner_group_id: int - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] + message: NotRequired[str] -class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ - - id: NotRequired[str] - source: NotRequired[Literal["github", "partner", "custom"]] - - -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBodyPropImageType", - "OrgsOrgActionsHostedRunnersPostBodyType", -) +__all__ = ("NotificationsPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py index 40e9ab690..0dbd53ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0032 import ActionsHostedRunnerImageType +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + ignored: NotRequired[bool] - total_count: int - images: list[ActionsHostedRunnerImageType] - -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py index 54fbcec10..fa8db23a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0032 import ActionsHostedRunnerImageType +from .group_0174 import OrganizationCustomRepositoryRoleType -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" +class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" - total_count: int - images: list[ActionsHostedRunnerImageType] + total_count: NotRequired[int] + custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py index 32724978e..3d20a3b98 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0030 import ActionsHostedRunnerMachineSpecType +class OrganizationsOrgDependabotRepositoryAccessPatchBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessPatchBody -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ - total_count: int - machine_specs: list[ActionsHostedRunnerMachineSpecType] + repository_ids_to_add: NotRequired[list[int]] + repository_ids_to_remove: NotRequired[list[int]] -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py index f96c7b054..2e01cf7ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - total_count: int - platforms: list[str] + default_level: Literal["public", "internal"] -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py index 2331cd4aa..f0f3bfeba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py @@ -9,16 +9,48 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgPatchBodyType(TypedDict): + """OrgsOrgPatchBody""" + billing_email: NotRequired[str] + company: NotRequired[str] + email: NotRequired[str] + twitter_username: NotRequired[str] + location: NotRequired[str] name: NotRequired[str] - runner_group_id: NotRequired[int] - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] - - -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) + description: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + default_repository_permission: NotRequired[ + Literal["read", "write", "admin", "none"] + ] + members_can_create_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_public_repositories: NotRequired[bool] + members_allowed_repository_creation_type: NotRequired[ + Literal["all", "private", "none"] + ] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + blog: NotRequired[str] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[str] + secret_scanning_validity_checks_enabled: NotRequired[bool] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +__all__ = ("OrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py index dfdea43ec..c9f8884a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py @@ -9,15 +9,28 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + total_count: int + repository_cache_usages: list[ActionsCacheUsageByRepositoryType] -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) +class ActionsCacheUsageByRepositoryType(TypedDict): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str + active_caches_size_in_bytes: int + active_caches_count: int + + +__all__ = ( + "ActionsCacheUsageByRepositoryType", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py index 484b23498..c6bcde5bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0020 import RepositoryType +from .group_0031 import ActionsHostedRunnerType -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" +class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersGetResponse200""" - total_count: float - repositories: list[RepositoryType] + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py index a2735688c..da2efcd13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py @@ -9,13 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBody""" - selected_repository_ids: list[int] + name: str + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBodyPropImage + + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + + +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + "OrgsOrgActionsHostedRunnersPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py index 507ed1dee..40e9ab690 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py @@ -9,36 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0032 import ActionsHostedRunnerImageType -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - total_count: float - runner_groups: list[RunnerGroupsOrgType] +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -class RunnerGroupsOrgType(TypedDict): - """RunnerGroupsOrg""" - id: float - name: str - visibility: str - default: bool - selected_repositories_url: NotRequired[str] - runners_url: str - hosted_runners_url: NotRequired[str] - network_configuration_id: NotRequired[str] - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - - -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py index 28b84e166..54fbcec10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0032 import ActionsHostedRunnerImageType -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - selected_repository_ids: NotRequired[list[int]] - runners: NotRequired[list[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[str] +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py index d7ec24fe4..32724978e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0030 import ActionsHostedRunnerMachineSpecType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[Union[str, None]] +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" + total_count: int + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py index 3542c5d01..f96c7b054 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py @@ -11,14 +11,12 @@ from typing_extensions import TypedDict -from .group_0031 import ActionsHostedRunnerType +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + total_count: int + platforms: list[str] - total_count: float - runners: list[ActionsHostedRunnerType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py index a9cea0b9d..2331cd4aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0168 import MinimalRepositoryType +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] - total_count: float - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py index 0ab50bd6d..dfdea43ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" - selected_repository_ids: list[int] + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py index 4b286a4c3..484b23498 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0041 import RunnerType +from .group_0020 import RepositoryType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" total_count: float - runners: list[RunnerType] + repositories: list[RepositoryType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py index bb10bbf9a..a2735688c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - runners: list[int] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py index b2064758b..507ed1dee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py @@ -9,16 +9,36 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0041 import RunnerType +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" + total_count: float + runner_groups: list[RunnerGroupsOrgType] - total_count: int - runners: list[RunnerType] +class RunnerGroupsOrgType(TypedDict): + """RunnerGroupsOrg""" -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) + id: float + name: str + visibility: str + default: bool + selected_repositories_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + network_configuration_id: NotRequired[str] + inherited: bool + inherited_allows_public_repositories: NotRequired[bool] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsOrgType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py index 5e08d0dd4..28b84e166 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py @@ -9,16 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] + visibility: NotRequired[Literal["selected", "all", "private"]] + selected_repository_ids: NotRequired[list[int]] + runners: NotRequired[list[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py index 86d454795..d7ec24fe4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py @@ -9,13 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - labels: list[str] + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py index 1e050b2e1..3542c5d01 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0031 import ActionsHostedRunnerType -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + total_count: float + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py index f17121488..6e314833d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0171 import MinimalRepositoryType -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" - total_count: int - secrets: list[OrganizationActionsSecretType] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + total_count: float + repositories: list[MinimalRepositoryType] -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization - Secrets for GitHub Actions for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrganizationActionsSecretType", - "OrgsOrgActionsSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0979.py b/githubkit/versions/ghec_v2022_11_28/types/group_0979.py index 6f2b7d0ff..0ab50bd6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0979.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py index 016cf3dc8..4b286a4c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0168 import MinimalRepositoryType +from .group_0041 import RunnerType -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: int - repositories: list[MinimalRepositoryType] + total_count: float + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py index 91774da55..bb10bbf9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - selected_repository_ids: list[int] + runners: list[int] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py index feb95bc8c..b2064758b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py @@ -9,33 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0041 import RunnerType -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" - total_count: int - variables: list[OrganizationActionsVariableType] - - -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" - Organization variable for GitHub Actions. - """ - - name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + total_count: int + runners: list[RunnerType] -__all__ = ( - "OrganizationActionsVariableType", - "OrgsOrgActionsVariablesGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0983.py b/githubkit/versions/ghec_v2022_11_28/types/group_0983.py index 35d9aa84a..5e08d0dd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0983.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py index 32397b063..86d454795 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] + labels: list[str] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py index 662890231..1e050b2e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0168 import MinimalRepositoryType +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + labels: list[str] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py index 7b7f6fc84..f17121488 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py @@ -9,13 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" - selected_repository_ids: list[int] + total_count: int + secrets: list[OrganizationActionsSecretType] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +class OrganizationActionsSecretType(TypedDict): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationActionsSecretType", + "OrgsOrgActionsSecretsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py index 5fba98e1e..6f2b7d0ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py @@ -9,70 +9,17 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - attestations: NotRequired[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] - ] + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pVerificationMaterial -""" - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pDsseEnvelope -""" - - -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "OrgsOrgAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py index 57bdd1a34..e6209bbe8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0171 import MinimalRepositoryType -class OrgsOrgCampaignsPostBodyType(TypedDict): - """OrgsOrgCampaignsPostBody""" - name: str - description: str - managers: NotRequired[list[str]] - team_managers: NotRequired[list[str]] - ends_at: datetime - contact_link: NotRequired[Union[str, None]] - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] - generate_issues: NotRequired[bool] +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - repository_id: int - alert_numbers: list[int] - - -__all__ = ( - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", - "OrgsOrgCampaignsPostBodyType", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py b/githubkit/versions/ghec_v2022_11_28/types/group_0989.py index 25289c59a..91774da55 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0989.py @@ -9,21 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): - """OrgsOrgCampaignsCampaignNumberPatchBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - name: NotRequired[str] - description: NotRequired[str] - managers: NotRequired[list[str]] - team_managers: NotRequired[list[str]] - ends_at: NotRequired[datetime] - contact_link: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py index 22602e6e2..feb95bc8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py @@ -9,106 +9,33 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0061 import CodeScanningDefaultSetupOptionsType +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" -class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsPostBody""" + total_count: int + variables: list[OrganizationActionsVariableType] - name: str - description: str - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] +class OrganizationActionsVariableType(TypedDict): + """Actions Variable for an Organization -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems + Organization variable for GitHub Actions. """ - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] + name: str + value: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] __all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyType", + "OrganizationActionsVariableType", + "OrgsOrgActionsVariablesGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py index a177d65ec..35d9aa84a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" + name: str + value: str + visibility: Literal["all", "private", "selected"] selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py index 98d793c92..32397b063 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py @@ -9,106 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0061 import CodeScanningDefaultSetupOptionsType - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py index 2ad011ac8..0ef54b7f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0171 import MinimalRepositoryType -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py index ed69b7f35..7b7f6fc84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py index 4c89219e5..2a4ab0267 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0060 import CodeSecurityConfigurationType +class OrgsOrgAttestationsBulkListPostBodyType(TypedDict): + """OrgsOrgAttestationsBulkListPostBody""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + subject_digests: list[str] + predicate_type: NotRequired[str] - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("OrgsOrgAttestationsBulkListPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py index ed3e85822..0dd3d4f18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py @@ -9,16 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0179 import CodespaceType +class OrgsOrgAttestationsBulkListPostResponse200Type(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200""" -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" + attestations_subject_digests: NotRequired[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType + ] + page_info: NotRequired[OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType] - total_count: int - codespaces: list[CodespaceType] +OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +Mapping of subject digest to bundles. +""" + + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: NotRequired[bool] + has_previous: NotRequired[bool] + next_: NotRequired[str] + previous: NotRequired[str] + + +__all__ = ( + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", + "OrgsOrgAttestationsBulkListPostResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py index 1234cdbd0..5fba98e1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py @@ -9,20 +9,70 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", + attestations: NotRequired[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] ] - selected_usernames: NotRequired[list[str]] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pVerificationMaterial +""" + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pDsseEnvelope +""" + + +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py index 214a3ca92..57bdd1a34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py @@ -9,13 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCampaignsPostBodyType(TypedDict): + """OrgsOrgCampaignsPostBody""" - selected_usernames: list[str] + name: str + description: str + managers: NotRequired[list[str]] + team_managers: NotRequired[list[str]] + ends_at: datetime + contact_link: NotRequired[Union[str, None]] + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] + generate_issues: NotRequired[bool] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" + + repository_id: int + alert_numbers: list[int] + + +__all__ = ( + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", + "OrgsOrgCampaignsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py index 1aec188b7..25289c59a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py @@ -9,13 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - selected_usernames: list[str] + name: NotRequired[str] + description: NotRequired[str] + managers: NotRequired[list[str]] + team_managers: NotRequired[list[str]] + ends_at: NotRequired[datetime] + contact_link: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py index b5051f775..22602e6e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py @@ -9,32 +9,106 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0061 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" - total_count: int - secrets: list[CodespacesOrgSecretType] +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons - Secrets for a GitHub Codespace. + Feature options for Automatic dependency submission """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] __all__ = ( - "CodespacesOrgSecretType", - "OrgsOrgCodespacesSecretsGetResponse200Type", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py index 8eb7cb359..a177d65ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py index 2be33e0a9..98d793c92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py @@ -9,16 +9,106 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0168 import MinimalRepositoryType +from .group_0061 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - total_count: int - repositories: list[MinimalRepositoryType] + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py index 9d6f25331..2ad011ac8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - selected_repository_ids: list[int] + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py index c71d56486..ed69b7f35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py @@ -9,16 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0068 import CopilotSeatDetailsType +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] - -__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1005.py b/githubkit/versions/ghec_v2022_11_28/types/group_1005.py index a2e3b4a72..4c89219e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1005.py @@ -9,13 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0060 import CodeSecurityConfigurationType -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: list[str] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py index 76837fcdc..2c7bd69de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict +from .group_0183 import CodespaceType -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - The total number of seats created for members of the specified team(s). - """ +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" - seats_created: int + total_count: int + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py index dba449159..1234cdbd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" - selected_teams: list[str] + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[list[str]] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py index 1b12f6a95..214a3ca92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_usernames: list[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py index 9a511ba2a..1aec188b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" selected_usernames: list[str] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py index 651754049..b5051f775 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - The total number of seats created for the specified user(s). + total_count: int + secrets: list[CodespacesOrgSecretType] + + +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. """ - seats_created: int + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ( + "CodespacesOrgSecretType", + "OrgsOrgCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py index dddfa0789..8eb7cb359 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - selected_usernames: list[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py index b1510f36c..7fac48d00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict +from .group_0171 import MinimalRepositoryType -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - seats_cancelled: int + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py index a4b53f87d..9d6f25331 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0171 import OrganizationCustomRepositoryRoleType +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + selected_repository_ids: list[int] - total_count: NotRequired[int] - custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] - -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py index fef93ba69..c71d56486 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0068 import CopilotSeatDetailsType -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" - total_count: int - secrets: list[OrganizationDependabotSecretType] +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrganizationDependabotSecretType", - "OrgsOrgDependabotSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py index 5ee895714..a2e3b4a72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[str]] + selected_teams: list[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py index da8f3a8dd..76837fcdc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0168 import MinimalRepositoryType +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + The total number of seats created for members of the specified team(s). + """ - total_count: int - repositories: list[MinimalRepositoryType] + seats_created: int -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1017.py b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py index 258f8e119..dba449159 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_repository_ids: list[int] + selected_teams: list[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py index e99853b27..1b12f6a95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py @@ -9,34 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[list[str]] - active: NotRequired[bool] - - -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. + The total number of seats set to "pending cancellation" for members of the + specified team(s). """ - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] + seats_cancelled: int -__all__ = ( - "OrgsOrgHooksPostBodyPropConfigType", - "OrgsOrgHooksPostBodyType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py index 19cc5034f..9a511ba2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] - name: NotRequired[str] + selected_usernames: list[str] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyPropConfigType", - "OrgsOrgHooksHookIdPatchBodyType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py index 6399b7a4c..651754049 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + The total number of seats created for the specified user(s). + """ + seats_created: int -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1021.py b/githubkit/versions/ghec_v2022_11_28/types/group_1021.py index 54372b1e4..dddfa0789 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1021.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0018 import InstallationType +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + selected_usernames: list[str] - total_count: int - installations: list[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py b/githubkit/versions/ghec_v2022_11_28/types/group_1022.py index 5916d7d10..b1510f36c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1022.py @@ -12,8 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + The total number of seats set to "pending cancellation" for the specified users. + """ -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + seats_cancelled: int + + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py index 2184fe8a4..ec5a86e45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0174 import OrganizationCustomRepositoryRoleType -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[list[int]] +class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): + """OrgsOrgCustomRepositoryRolesGetResponse200""" + total_count: NotRequired[int] + custom_roles: NotRequired[list[OrganizationCustomRepositoryRoleType]] -__all__ = ("OrgsOrgInvitationsPostBodyType",) + +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py index 62c9972bd..fef93ba69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0179 import CodespaceType - -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" total_count: int - codespaces: list[CodespaceType] + secrets: list[OrganizationDependabotSecretType] + + +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ( + "OrganizationDependabotSecretType", + "OrgsOrgDependabotSecretsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py index 78a34c5ed..5ee895714 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py @@ -13,10 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - role: NotRequired[Literal["admin", "member"]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[str]] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py index 242ce3795..b362e3cf2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0171 import MinimalRepositoryType -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" - repositories: list[str] - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[list[Literal["repositories"]]] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgMigrationsPostBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py index b7593464f..258f8e119 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - async_: NotRequired[bool] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py index 5de4170f2..e99853b27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py @@ -9,11 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] + + +__all__ = ( + "OrgsOrgHooksPostBodyPropConfigType", + "OrgsOrgHooksPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py index f43c7d76b..19cc5034f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py @@ -9,14 +9,32 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] + name: NotRequired[str] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksHookIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py index a99cad652..6399b7a4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" - pat_request_ids: NotRequired[list[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py index f08e02365..54372b1e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py index b2f0b1907..5916d7d10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - action: Literal["revoke"] - pat_ids: list[int] - -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py index 32c37cd97..2184fe8a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py @@ -10,13 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" - action: Literal["revoke"] + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py index 015086720..16aad207f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py @@ -9,33 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0183 import CodespaceType -class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesGetResponse200""" - total_count: int - configurations: list[OrgPrivateRegistryConfigurationType] - - -class OrgPrivateRegistryConfigurationType(TypedDict): - """Organization private registry +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - visibility: Literal["all", "private", "selected"] - created_at: datetime - updated_at: datetime + total_count: int + codespaces: list[CodespaceType] -__all__ = ( - "OrgPrivateRegistryConfigurationType", - "OrgsOrgPrivateRegistriesGetResponse200Type", -) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py index 1aa9cb63a..78a34c5ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): - """OrgsOrgPrivateRegistriesPostBody""" +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + role: NotRequired[Literal["admin", "member"]] -__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py index 95dc5e190..242ce3795 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py @@ -9,14 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" - key_id: str - key: str + repositories: list[str] + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[list[Literal["repositories"]]] -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py index e4ce35654..b7593464f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py @@ -9,19 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - registry_type: NotRequired[Literal["maven_repository"]] - username: NotRequired[Union[str, None]] - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] + async_: NotRequired[bool] -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py index 1afe17554..5de4170f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - name: str - body: NotRequired[str] - -__all__ = ("OrgsOrgProjectsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py index 0d5364a43..f43c7d76b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0078 import CustomPropertyType +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + message: NotRequired[str] + documentation_url: NotRequired[str] - properties: list[CustomPropertyType] - -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py b/githubkit/versions/ghec_v2022_11_28/types/group_1040.py index e96dbf7c6..a99cad652 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1040.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0215 import CustomPropertyValueType +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + pat_request_ids: NotRequired[list[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] - repository_names: list[str] - properties: list[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py index 9dda36fc3..f08e02365 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py @@ -9,51 +9,15 @@ from __future__ import annotations -from typing import Any, Literal -from typing_extensions import NotRequired, TypeAlias, TypedDict - - -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private", "internal"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""OrgsOrgReposPostBodyPropCustomProperties - -The custom properties for the new repository. The keys are the custom property -names, and the values are the corresponding custom property values. -""" +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" + + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ( - "OrgsOrgReposPostBodyPropCustomPropertiesType", - "OrgsOrgReposPostBodyType", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py index cc962c582..b2f0b1907 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py @@ -9,79 +9,15 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0080 import RepositoryRulesetBypassActorType -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType -from .group_0133 import OrgRulesetConditionsOneof0Type -from .group_0134 import OrgRulesetConditionsOneof1Type -from .group_0135 import OrgRulesetConditionsOneof2Type +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" + action: Literal["revoke"] + pat_ids: list[int] - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py index fd095b009..32c37cd97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py @@ -9,79 +9,14 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0080 import RepositoryRulesetBypassActorType -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType -from .group_0133 import OrgRulesetConditionsOneof0Type -from .group_0134 import OrgRulesetConditionsOneof1Type -from .group_0135 import OrgRulesetConditionsOneof2Type +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" + action: Literal["revoke"] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py index 75367c485..a8b5e1475 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py @@ -9,16 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0076 import NetworkConfigurationType - -class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" +class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesGetResponse200""" total_count: int - network_configurations: list[NetworkConfigurationType] + configurations: list[OrgPrivateRegistryConfigurationType] + + +class OrgPrivateRegistryConfigurationType(TypedDict): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] + username: NotRequired[Union[str, None]] + visibility: Literal["all", "private", "selected"] + created_at: datetime + updated_at: datetime -__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",) +__all__ = ( + "OrgPrivateRegistryConfigurationType", + "OrgsOrgPrivateRegistriesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py index c29f59c8e..26b265c7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): + """OrgsOrgPrivateRegistriesPostBody""" - name: str - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: list[str] + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] + username: NotRequired[Union[str, None]] + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py index cf5c73d09..95dc5e190 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( - TypedDict -): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - name: NotRequired[str] - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: NotRequired[list[str]] + key_id: str + key: str -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py index ccfb358e6..c047078ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py @@ -9,23 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - name: str - description: NotRequired[str] - maintainers: NotRequired[list[str]] - repo_names: NotRequired[list[str]] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + registry_type: NotRequired[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] + username: NotRequired[Union[str, None]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py b/githubkit/versions/ghec_v2022_11_28/types/group_1048.py index c08c152bc..1afe17554 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1048.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - name: NotRequired[str] - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + name: str + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py index cb961efbb..0d5364a43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0078 import CustomPropertyType -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: str - body: str - private: NotRequired[bool] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py index db3011d85..5437c861a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0219 import CustomPropertyValueType -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - title: NotRequired[str] - body: NotRequired[str] +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: list[str] + properties: list[CustomPropertyValueType] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py index a05290583..9dda36fc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py @@ -9,13 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - - body: str +from typing import Any, Literal +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "internal"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] + + +OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""OrgsOrgReposPostBodyPropCustomProperties + +The custom properties for the new repository. The keys are the custom property +names, and the values are the corresponding custom property values. +""" -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ( + "OrgsOrgReposPostBodyPropCustomPropertiesType", + "OrgsOrgReposPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py index a6b974137..cc962c582 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py @@ -9,17 +9,79 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0080 import RepositoryRulesetBypassActorType +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType +from .group_0133 import OrgRulesetConditionsOneof0Type +from .group_0134 import OrgRulesetConditionsOneof1Type +from .group_0135 import OrgRulesetConditionsOneof2Type -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - body: str +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) + +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py index 937b98f91..fd095b009 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py @@ -9,22 +9,79 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0080 import RepositoryRulesetBypassActorType +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType +from .group_0133 import OrgRulesetConditionsOneof0Type +from .group_0134 import OrgRulesetConditionsOneof1Type +from .group_0135 import OrgRulesetConditionsOneof2Type -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py index c71526f64..75367c485 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0076 import NetworkConfigurationType -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] +class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + total_count: int + network_configurations: list[NetworkConfigurationType] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) + +__all__ = ("OrgsOrgSettingsNetworkConfigurationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py index 2c9744c1c..c29f59c8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - group_id: int + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py index b4d610e84..cf5c73d09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py @@ -13,10 +13,14 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - role: NotRequired[Literal["member", "maintainer"]] + name: NotRequired[str] + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: NotRequired[list[str]] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py index 8466dce90..ccfb358e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py @@ -13,10 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - - permission: NotRequired[Literal["read", "write", "admin"]] - - -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" + + name: str + description: NotRequired[str] + maintainers: NotRequired[list[str]] + repo_names: NotRequired[list[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] + + +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py index a637157e4..c08c152bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py index b42f638ac..cb961efbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py @@ -12,10 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - permission: NotRequired[str] + title: str + body: str + private: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py index 7ecc032e3..db3011d85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py @@ -12,23 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - groups: NotRequired[ - list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - ] + title: NotRequired[str] + body: NotRequired[str] -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - - -__all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1061.py b/githubkit/versions/ghec_v2022_11_28/types/group_1061.py index edc438335..a05290583 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1061.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - query_suite: NotRequired[Literal["default", "extended"]] + body: str -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py index 8710755b1..a6b974137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + body: str -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py index 3481963bb..937b98f91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py @@ -9,15 +9,22 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1064.py b/githubkit/versions/ghec_v2022_11_28/types/group_1064.py index ab2395816..c71526f64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1064.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - position: str - column_id: NotRequired[int] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py index 7c136f63a..2c9744c1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" + group_id: int -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py index 2628f5b1a..b4d610e84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py @@ -9,29 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] + role: NotRequired[Literal["member", "maintainer"]] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", -) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py index c4d1b64db..8466dce90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py @@ -9,28 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] - ] + permission: NotRequired[Literal["read", "write", "admin"]] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", -) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py index 62ebaaaef..a637157e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - name: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py b/githubkit/versions/ghec_v2022_11_28/types/group_1069.py index 1fdc1bf2e..b42f638ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1069.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - note: Union[str, None] + permission: NotRequired[str] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1070.py b/githubkit/versions/ghec_v2022_11_28/types/group_1070.py index 93c271e2e..7ecc032e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1070.py @@ -9,14 +9,26 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - content_id: int - content_type: str + groups: NotRequired[ + list[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + ] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + + +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py index 4b4ed0962..edc438335 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py @@ -9,28 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + query_suite: NotRequired[Literal["default", "extended"]] -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", - "ProjectsColumnsColumnIdCardsPostResponse503Type", -) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py index 1eee63273..8710755b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - position: str + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py index 7df563c61..3481963bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1074.py b/githubkit/versions/ghec_v2022_11_28/types/group_1074.py index 36d491ce7..ab2395816 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1074.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + position: str + column_id: NotRequired[int] -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py index 31f864cbd..7c136f63a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py @@ -9,18 +9,11 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] - -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py index 6e093b913..2628f5b1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py @@ -12,12 +12,26 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" message: NotRequired[str] documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py index e3cd89b33..c4d1b64db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py @@ -9,14 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" - permission: NotRequired[Literal["read", "write", "admin"]] + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py index 8c02d8953..62ebaaaef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" name: str -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1079.py b/githubkit/versions/ghec_v2022_11_28/types/group_1079.py index a7224c5e8..1fdc1bf2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1079.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - message: NotRequired[str] - documentation_url: NotRequired[str] + note: Union[str, None] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py b/githubkit/versions/ghec_v2022_11_28/types/group_1080.py index 01a29c32a..93c271e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1080.py @@ -9,185 +9,14 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - name: NotRequired[str] - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private", "internal"]] - security_and_analysis: NotRequired[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] - ] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - is_template: NotRequired[bool] - default_branch: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - archived: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] + content_id: int + content_type: str -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - code_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_ai_detection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_validity_checks: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- - security/secret-scanning/using-advanced-secret-scanning-and-push-protection- - features/generic-secret-detection/responsible-ai-generic-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyType", -) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py index b3f136138..4b4ed0962 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py @@ -9,16 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0237 import ArtifactType +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] - total_count: int - artifacts: list[ArtifactType] +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", + "ProjectsColumnsColumnIdCardsPostResponse503Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py index 8552ab8cf..1eee63273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - enable_debug_logging: NotRequired[bool] + position: str -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py index 19c3d652d..7df563c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - Actions OIDC subject customization for a repository - """ - use_default: bool - include_claim_keys: NotRequired[list[str]] - - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py index 2bc8071b6..36d491ce7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0241 import ActionsSecretType +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py index 7f1a2fc74..31f864cbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0242 import ActionsVariableType +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1086.py b/githubkit/versions/ghec_v2022_11_28/types/group_1086.py index fc3874a09..6e093b913 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1086.py @@ -9,15 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1087.py b/githubkit/versions/ghec_v2022_11_28/types/group_1087.py index b02df41ae..e3cd89b33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1087.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0041 import RunnerType +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - runners: list[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py index 5036c414c..8c02d8953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py index 9ca36f6ff..a7224c5e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - labels: list[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py index 17c2e6d71..01a29c32a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py @@ -9,13 +9,185 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - labels: list[str] + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "internal"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/enterprise- + cloud@latest//organizations/managing-peoples-access-to-your-organization-with- + roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + code_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_ai_detection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_validity_checks: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/enterprise-cloud@latest//code- + security/secret-scanning/using-advanced-secret-scanning-and-push-protection- + features/generic-secret-detection/responsible-ai-generic-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py index 760f5a949..65b9994f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0247 import WorkflowRunType +from .group_0241 import ArtifactType -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" total_count: int - workflow_runs: list[WorkflowRunType] + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py b/githubkit/versions/ghec_v2022_11_28/types/group_1092.py index b07d7af8c..8552ab8cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1092.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0237 import ArtifactType +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py b/githubkit/versions/ghec_v2022_11_28/types/group_1093.py index ad2efc3f4..19c3d652d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1093.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0239 import JobType +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int - jobs: list[JobType] + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py b/githubkit/versions/ghec_v2022_11_28/types/group_1094.py index e13c17ba0..a1036ad78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1094.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0239 import JobType +from .group_0245 import ActionsSecretType -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int - jobs: list[JobType] + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py b/githubkit/versions/ghec_v2022_11_28/types/group_1095.py index 76bdf5b5d..ba759a1fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1095.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0246 import ActionsVariableType -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - environment_ids: list[int] - state: Literal["approved", "rejected"] - comment: str +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1096.py b/githubkit/versions/ghec_v2022_11_28/types/group_1096.py index 41d795f26..fc3874a09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1096.py @@ -9,13 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" - enable_debug_logging: NotRequired[bool] + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py b/githubkit/versions/ghec_v2022_11_28/types/group_1097.py index d27f156d2..b02df41ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1097.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0041 import RunnerType -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py b/githubkit/versions/ghec_v2022_11_28/types/group_1098.py index 7e4fd2d99..5036c414c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1098.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0241 import ActionsSecretType +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py b/githubkit/versions/ghec_v2022_11_28/types/group_1099.py index 335280e49..9ca36f6ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1099.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - encrypted_value: str - key_id: str + labels: list[str] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py index dd99fa0c6..17c2e6d71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0242 import ActionsVariableType +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + labels: list[str] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1101.py b/githubkit/versions/ghec_v2022_11_28/types/group_1101.py index a5b1bcda1..d8505ef15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1101.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0251 import WorkflowRunType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int + workflow_runs: list[WorkflowRunType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1102.py b/githubkit/versions/ghec_v2022_11_28/types/group_1102.py index 9dc60de46..d06c4f8e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1102.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1102.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0241 import ArtifactType -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py b/githubkit/versions/ghec_v2022_11_28/types/group_1103.py index 567412f15..c7fc13a5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1103.py @@ -9,40 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0243 import JobType -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" + +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" total_count: int - workflows: list[WorkflowType] - - -class WorkflowType(TypedDict): - """Workflow - - A GitHub Actions workflow - """ - - id: int - node_id: str - name: str - path: str - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] - created_at: datetime - updated_at: datetime - url: str - html_url: str - badge_url: str - deleted_at: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", -) + jobs: list[JobType] + + +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1104.py b/githubkit/versions/ghec_v2022_11_28/types/group_1104.py index 3e172dbfe..2eede0f4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1104.py @@ -9,31 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict +from .group_0243 import JobType -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + total_count: int + jobs: list[JobType] -ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs -Input keys and values configured in the workflow file. The maximum number of -properties is 10. Any default properties configured in the workflow file will be -used when `inputs` are omitted. -""" - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py index 625fbd5ff..76bdf5b5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py @@ -9,16 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0247 import WorkflowRunType +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + environment_ids: list[int] + state: Literal["approved", "rejected"] + comment: str - total_count: int - workflow_runs: list[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py b/githubkit/versions/ghec_v2022_11_28/types/group_1106.py index e197b3b3a..41d795f26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1106.py @@ -9,51 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + enable_debug_logging: NotRequired[bool] -class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): - """ReposOwnerRepoAttestationsPostBodyPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType - ] - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial -""" - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope -""" - - -__all__ = ( - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsPostBodyPropBundleType", - "ReposOwnerRepoAttestationsPostBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py b/githubkit/versions/ghec_v2022_11_28/types/group_1107.py index 79c9aa002..d27f156d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1107.py @@ -12,10 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - id: NotRequired[int] + enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py b/githubkit/versions/ghec_v2022_11_28/types/group_1108.py index 8a6a46fe3..1bb8655ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1108.py @@ -9,73 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict +from .group_0245 import ActionsSecretType -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - attestations: NotRequired[ - list[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropVerificationMaterial -""" - - -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropDsseEnvelope -""" - - -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1109.py b/githubkit/versions/ghec_v2022_11_28/types/group_1109.py index d3cf0850b..335280e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1109.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + encrypted_value: str + key_id: str -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py b/githubkit/versions/ghec_v2022_11_28/types/group_1110.py index bca1d637c..01db57d17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1110.py @@ -9,132 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0246 import ActionsVariableType -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None - ] - enforce_admins: Union[bool, None] - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, - None, - ] - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None - ] - required_linear_history: NotRequired[bool] - allow_force_pushes: NotRequired[Union[bool, None]] - allow_deletions: NotRequired[bool] - block_creations: NotRequired[bool] - required_conversation_resolution: NotRequired[bool] - lock_branch: NotRequired[bool] - allow_fork_syncing: NotRequired[bool] +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool - contexts: list[str] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str - app_id: NotRequired[int] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: list[str] - teams: list[str] - apps: NotRequired[list[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", -) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py b/githubkit/versions/ghec_v2022_11_28/types/group_1111.py index 663ec3e19..a5b1bcda1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1111.py @@ -9,59 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType - ] + name: str + value: str -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py index 0e57487fc..9dc60de46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py @@ -12,32 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: NotRequired[bool] - contexts: NotRequired[list[str]] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str - app_id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", -) +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" + + name: NotRequired[str] + value: NotRequired[str] + + +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py index e1f78ac45..567412f15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py @@ -9,21 +9,40 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - Examples: - {'contexts': ['contexts']} + total_count: int + workflows: list[WorkflowType] + + +class WorkflowType(TypedDict): + """Workflow + + A GitHub Actions workflow """ - contexts: list[str] + id: int + node_id: str + name: str + path: str + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] + created_at: datetime + updated_at: datetime + url: str + html_url: str + badge_url: str + deleted_at: NotRequired[datetime] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", + "ReposOwnerRepoActionsWorkflowsGetResponse200Type", + "WorkflowType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py index 7953af035..3e172dbfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py @@ -9,21 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - Examples: - {'contexts': ['contexts']} - """ + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] - contexts: list[str] + +ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + +Input keys and values configured in the workflow file. The maximum number of +properties is 10. Any default properties configured in the workflow file will be +used when `inputs` are omitted. +""" __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py index b4a0d30f6..b2870640b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py @@ -11,20 +11,14 @@ from typing_extensions import TypedDict +from .group_0251 import WorkflowRunType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - contexts: list[str] + total_count: int + workflow_runs: list[WorkflowRunType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py index 1f154c587..e197b3b3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py @@ -9,17 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" - Examples: - {'apps': ['my-app']} + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + + +class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - apps: list[str] + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope +""" -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) +__all__ = ( + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py index e8ab2de74..79c9aa002 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - Examples: - {'apps': ['my-app']} - """ + id: NotRequired[int] - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py index 26bc12cd2..8a6a46fe3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py @@ -9,17 +9,73 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - Examples: - {'apps': ['my-app']} + attestations: NotRequired[ + list[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - apps: list[str] + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropDsseEnvelope +""" -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1119.py b/githubkit/versions/ghec_v2022_11_28/types/group_1119.py index db6c7e46c..d3cf0850b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1119.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - Examples: - {'teams': ['justice-league']} - """ + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] - teams: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py index d74b8d070..bca1d637c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py @@ -9,19 +9,132 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" + + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None + ] + enforce_admins: Union[bool, None] + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, + None, + ] + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None + ] + required_linear_history: NotRequired[bool] + allow_force_pushes: NotRequired[Union[bool, None]] + allow_deletions: NotRequired[bool] + block_creations: NotRequired[bool] + required_conversation_resolution: NotRequired[bool] + lock_branch: NotRequired[bool] + allow_fork_syncing: NotRequired[bool] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool + contexts: list[str] + checks: NotRequired[ + list[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str + app_id: NotRequired[int] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - Examples: - {'teams': ['my-team']} + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. """ + users: list[str] teams: list[str] + apps: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py index 85e315c26..663ec3e19 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py @@ -9,21 +9,59 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - Examples: - {'teams': ['my-team']} + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType + ] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - teams: list[str] + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py index 14d747f27..0e57487fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py @@ -9,17 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - Examples: - {'users': ['mona']} + strict: NotRequired[bool] + contexts: NotRequired[list[str]] + checks: NotRequired[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - users: list[str] + context: str + app_id: NotRequired[int] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1123.py b/githubkit/versions/ghec_v2022_11_28/types/group_1123.py index a879b8e99..e1f78ac45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1123.py @@ -12,14 +12,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] + contexts: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py b/githubkit/versions/ghec_v2022_11_28/types/group_1124.py index 88f98adfd..7953af035 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1124.py @@ -12,14 +12,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] + contexts: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py b/githubkit/versions/ghec_v2022_11_28/types/group_1125.py index b46802659..b4a0d30f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1125.py @@ -12,10 +12,19 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - new_name: str + Examples: + {'contexts': ['contexts']} + """ + contexts: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py b/githubkit/versions/ghec_v2022_11_28/types/group_1126.py index af3347488..1f154c587 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1126.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType( - TypedDict -): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody - status: Literal["approve", "reject"] - message: str + Examples: + {'apps': ['my-app']} + """ + apps: list[str] -__all__ = ( - "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType", -) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py b/githubkit/versions/ghec_v2022_11_28/types/group_1127.py index 635e956dd..e8ab2de74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1127.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type( - TypedDict -): - """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - bypass_review_id: NotRequired[int] + Examples: + {'apps': ['my-app']} + """ + apps: list[str] -__all__ = ( - "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type", -) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py b/githubkit/versions/ghec_v2022_11_28/types/group_1128.py index 0e96d896e..26bc12cd2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1128.py @@ -9,62 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. + Examples: + {'apps': ['my-app']} """ - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] + apps: list[str] -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py b/githubkit/versions/ghec_v2022_11_28/types/group_1129.py index 82b04c6c9..db6c7e46c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1129.py @@ -9,38 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1128 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: Literal["completed"] - started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + + Examples: + {'teams': ['justice-league']} + """ + + teams: list[str] + + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py b/githubkit/versions/ghec_v2022_11_28/types/group_1130.py index 34fb78f09..d74b8d070 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1130.py @@ -9,42 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1128 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + + Examples: + {'teams': ['my-team']} + """ + + teams: list[str] + + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py index cdd81f62e..85e315c26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py @@ -9,68 +9,21 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType - ] - ] - images: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] - ] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( TypedDict ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + Examples: + {'teams': ['my-team']} + """ - label: str - description: str - identifier: str + teams: list[str] __all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py index 087b0cba5..14d747f27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py @@ -9,39 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1131 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["completed"]] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody + + Examples: + {'users': ['mona']} + """ + + users: list[str] + + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py index dfe6b8b7e..a879b8e99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py @@ -9,41 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1131 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["queued", "in_progress"]] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody + + Examples: + {'users': ['mona']} + """ + + users: list[str] + + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1134.py b/githubkit/versions/ghec_v2022_11_28/types/group_1134.py index 5d8ac49c1..88f98adfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1134.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1134.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody - head_sha: str + Examples: + {'users': ['mona']} + """ + users: list[str] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py index 5f72161c7..b46802659 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - auto_trigger_checks: NotRequired[ - list[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] + new_name: str -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py index ef1b54f23..af3347488 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py @@ -9,16 +9,19 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0273 import CheckRunType +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType( + TypedDict +): + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + status: Literal["approve", "reject"] + message: str - total_count: int - check_runs: list[CheckRunType] - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py index d8d166808..635e956dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type( + TypedDict +): + """ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200""" - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] - create_request: NotRequired[bool] + bypass_review_id: NotRequired[int] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) +__all__ = ( + "ReposOwnerRepoBypassRequestsSecretScanningBypassRequestNumberPatchResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py b/githubkit/versions/ghec_v2022_11_28/types/group_1138.py index 31cc88a9b..0e96d896e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1138.py @@ -13,16 +13,58 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] ] - query_pack: str - repositories: list[str] - repository_lists: NotRequired[list[str]] - repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py b/githubkit/versions/ghec_v2022_11_28/types/group_1139.py index 15b2259e7..901ad83be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1139.py @@ -9,20 +9,38 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict - -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" +from .group_1138 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: list[str] - repository_owners: NotRequired[list[str]] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py b/githubkit/versions/ghec_v2022_11_28/types/group_1140.py index 3b669027d..e38bee35a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1140.py @@ -9,20 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1138 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: NotRequired[list[str]] - repository_owners: list[str] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py b/githubkit/versions/ghec_v2022_11_28/types/group_1141.py index e9eb27946..cdd81f62e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1141.py @@ -9,20 +9,68 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + ] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py b/githubkit/versions/ghec_v2022_11_28/types/group_1142.py index 071375d16..d9eecb51d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1142.py @@ -9,16 +9,39 @@ from __future__ import annotations -from typing_extensions import TypedDict - -from .group_0179 import CodespaceType - - -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" - - total_count: int - codespaces: list[CodespaceType] - - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_1141 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py b/githubkit/versions/ghec_v2022_11_28/types/group_1143.py index 88f53eda8..628494997 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1143.py @@ -9,24 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict - -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" - - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] - - -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) +from .group_1141 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py b/githubkit/versions/ghec_v2022_11_28/types/group_1144.py index 2b6a98e8b..5d8ac49c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1144.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - total_count: int - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] + head_sha: str -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( - TypedDict -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - - path: str - name: NotRequired[str] - display_name: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py b/githubkit/versions/ghec_v2022_11_28/types/group_1145.py index 71f44364d..5f72161c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1145.py @@ -9,16 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0178 import CodespaceMachineType +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + auto_trigger_checks: NotRequired[ + list[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] - total_count: int - machines: list[CodespaceMachineType] +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) + app_id: int + setting: bool + + +__all__ = ( + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py b/githubkit/versions/ghec_v2022_11_28/types/group_1146.py index 1da0f80f8..3f52bf9ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1146.py @@ -9,27 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +from .group_0277 import CheckRunType -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] + total_count: int + check_runs: list[CheckRunType] -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", - "ReposOwnerRepoCodespacesNewGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py b/githubkit/versions/ghec_v2022_11_28/types/group_1147.py index fe71c65ab..d8d166808 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1147.py @@ -9,29 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - total_count: int - secrets: list[RepoCodespacesSecretType] + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] + dismissed_comment: NotRequired[Union[str, None]] + create_request: NotRequired[bool] -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "RepoCodespacesSecretType", - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py b/githubkit/versions/ghec_v2022_11_28/types/group_1148.py index 4e9617e8c..31cc88a9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1148.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack: str + repositories: list[str] + repository_lists: NotRequired[list[str]] + repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py index 4cccc4ae5..15b2259e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py @@ -9,13 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - permission: NotRequired[str] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack: str + repositories: NotRequired[list[str]] + repository_lists: list[str] + repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py index 25f26d78b..3b669027d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - body: str + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack: str + repositories: NotRequired[list[str]] + repository_lists: NotRequired[list[str]] + repository_owners: list[str] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py index ce91eec32..e9eb27946 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py @@ -9,16 +9,20 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1152.py b/githubkit/versions/ghec_v2022_11_28/types/group_1152.py index 36d63c915..863199488 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1152.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0183 import CodespaceType -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py index 706390a00..88f53eda8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py @@ -9,16 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0273 import CheckRunType +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] - total_count: int - check_runs: list[CheckRunType] - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py index a33d63ac7..2b6a98e8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py @@ -12,42 +12,26 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + total_count: int + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - The person that committed the file. Default: the authenticated user. - """ - - name: str - email: str - date: NotRequired[str] - - -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str - email: str - date: NotRequired[str] + path: str + name: NotRequired[str] + display_name: NotRequired[str] __all__ = ( - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py index 1a6415115..a2a0bd5d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py @@ -9,41 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0182 import CodespaceMachineType -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - object containing information about the committer. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyType", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py index b6eb59e50..1da0f80f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py @@ -9,20 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) + +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str + devcontainer_path: Union[str, None] + + +__all__ = ( + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py index 61528dc95..fe71c65ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py @@ -13,17 +13,17 @@ from typing_extensions import TypedDict -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" total_count: int - secrets: list[DependabotSecretType] + secrets: list[RepoCodespacesSecretType] -class DependabotSecretType(TypedDict): - """Dependabot Secret +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret - Set secrets for Dependabot. + Set repository secrets for GitHub Codespaces. """ name: str @@ -32,6 +32,6 @@ class DependabotSecretType(TypedDict): __all__ = ( - "DependabotSecretType", - "ReposOwnerRepoDependabotSecretsGetResponse200Type", + "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py index 95231af1a..4e9617e8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" encrypted_value: NotRequired[str] key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py index 6e9243ec2..4cccc4ae5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - id: int - created_at: str - result: str - message: str + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py index 149bc226e..25f26d78b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - ref: str - task: NotRequired[str] - auto_merge: NotRequired[bool] - required_contexts: NotRequired[list[str]] - payload: NotRequired[ - Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] - ] - environment: NotRequired[str] - description: NotRequired[Union[str, None]] - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] + body: str -ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 -""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", - "ReposOwnerRepoDeploymentsPostBodyType", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py index 8dce1979d..ce91eec32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - message: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1162.py b/githubkit/versions/ghec_v2022_11_28/types/group_1162.py index cc93f9515..36d63c915 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1162.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1162.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] - target_url: NotRequired[str] - log_url: NotRequired[str] - description: NotRequired[str] - environment: NotRequired[str] - environment_url: NotRequired[str] - auto_inactive: NotRequired[bool] + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1163.py b/githubkit/versions/ghec_v2022_11_28/types/group_1163.py index 0741e69a5..1d6c3795a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1163.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1163.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0277 import CheckRunType -class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" - status: Literal["approve", "deny"] - message: str +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py index a6ced9e63..a33d63ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py @@ -12,14 +12,42 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type( - TypedDict -): - """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" - dismissal_review_id: NotRequired[int] + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + + +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str + email: str + date: NotRequired[str] __all__ = ( - "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py index d1e750ab3..1a6415115 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py @@ -9,27 +9,41 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter -JSON payload with extra information about the webhook event that your action or -workflow may use. The maximum number of top-level properties is 10. The total -size of the JSON payload must be less than 64KB. -""" + object containing information about the committer. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: NotRequired[str] + email: NotRequired[str] __all__ = ( - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", - "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py index 4b9497158..b6eb59e50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py @@ -9,38 +9,20 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0329 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - list[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" ] ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] - - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] + dismissed_comment: NotRequired[str] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py index ab59e0b4e..61528dc95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py @@ -9,32 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" total_count: int - branch_policies: list[DeploymentBranchPolicyType] + secrets: list[DependabotSecretType] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy +class DependabotSecretType(TypedDict): + """Dependabot Secret - Details of a deployment branch or tag policy. + Set secrets for Dependabot. """ - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "DeploymentBranchPolicyType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "DependabotSecretType", + "ReposOwnerRepoDependabotSecretsGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py index bb2b4e614..95231af1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py @@ -12,14 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - integration_id: NotRequired[int] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py index 8b2da649e..6e9243ec2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1169.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1169.py @@ -9,24 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0335 import CustomDeploymentRuleAppType +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + id: int + created_at: str + result: str + message: str - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - list[CustomDeploymentRuleAppType] - ] - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1170.py b/githubkit/versions/ghec_v2022_11_28/types/group_1170.py index 7cdea0c74..149bc226e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1170.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1170.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0241 import ActionsSecretType +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[list[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] - total_count: int - secrets: list[ActionsSecretType] + +ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 +""" -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", + "ReposOwnerRepoDeploymentsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1171.py b/githubkit/versions/ghec_v2022_11_28/types/group_1171.py index 3ec440fb1..8dce1979d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1171.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1171.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - encrypted_value: str - key_id: str + message: NotRequired[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1172.py b/githubkit/versions/ghec_v2022_11_28/types/group_1172.py index b9dc6ca61..cc93f9515 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1172.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1172.py @@ -9,16 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0242 import ActionsVariableType +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] + target_url: NotRequired[str] + log_url: NotRequired[str] + description: NotRequired[str] + environment: NotRequired[str] + environment_url: NotRequired[str] + auto_inactive: NotRequired[bool] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1173.py b/githubkit/versions/ghec_v2022_11_28/types/group_1173.py index f3a29926f..0741e69a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1173.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1173.py @@ -9,14 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBody""" - name: str - value: str + status: Literal["approve", "deny"] + message: str -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1174.py b/githubkit/versions/ghec_v2022_11_28/types/group_1174.py index adee73102..a6ced9e63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1174.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1174.py @@ -12,11 +12,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type( + TypedDict +): + """ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200""" - name: NotRequired[str] - value: NotRequired[str] + dismissal_review_id: NotRequired[int] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ( + "ReposOwnerRepoDismissalRequestsSecretScanningAlertNumberPatchResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1175.py b/githubkit/versions/ghec_v2022_11_28/types/group_1175.py index eb686a699..d1e750ab3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1175.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1175.py @@ -9,15 +9,27 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDispatchesPostBodyPropClientPayload + +JSON payload with extra information about the webhook event that your action or +workflow may use. The maximum number of top-level properties is 10. The total +size of the JSON payload must be less than 64KB. +""" + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", + "ReposOwnerRepoDispatchesPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1176.py b/githubkit/versions/ghec_v2022_11_28/types/group_1176.py index 4c2ef3730..a9c074ce1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1176.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1176.py @@ -9,14 +9,38 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0333 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" - content: str - encoding: NotRequired[str] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + list[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1177.py b/githubkit/versions/ghec_v2022_11_28/types/group_1177.py index 73106315f..ab59e0b4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1177.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1177.py @@ -9,49 +9,32 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - message: str - tree: str - parents: NotRequired[list[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + total_count: int + branch_policies: list[DeploymentBranchPolicyType] -class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - name: str - email: str - date: NotRequired[datetime] - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. + Details of a deployment branch or tag policy. """ + id: NotRequired[int] + node_id: NotRequired[str] name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[datetime] + type: NotRequired[Literal["branch", "tag"]] __all__ = ( - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", - "ReposOwnerRepoGitCommitsPostBodyType", + "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1178.py b/githubkit/versions/ghec_v2022_11_28/types/group_1178.py index aa4d83aff..bb2b4e614 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1178.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1178.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - ref: str - sha: str + integration_id: NotRequired[int] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1179.py b/githubkit/versions/ghec_v2022_11_28/types/group_1179.py index 95219ce12..0255a59f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1179.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1179.py @@ -11,12 +11,22 @@ from typing_extensions import NotRequired, TypedDict +from .group_0339 import CustomDeploymentRuleAppType -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" - sha: str - force: NotRequired[bool] +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + list[CustomDeploymentRuleAppType] + ] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1180.py b/githubkit/versions/ghec_v2022_11_28/types/group_1180.py index bf927c780..244910672 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1180.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1180.py @@ -9,33 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0245 import ActionsSecretType -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", - "ReposOwnerRepoGitTagsPostBodyType", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1181.py b/githubkit/versions/ghec_v2022_11_28/types/group_1181.py index 62d4e64ac..3ec440fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1181.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1181.py @@ -9,28 +9,14 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + encrypted_value: str + key_id: str -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", - "ReposOwnerRepoGitTreesPostBodyType", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1182.py b/githubkit/versions/ghec_v2022_11_28/types/group_1182.py index 44bb98073..5b68c9321 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1182.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1182.py @@ -9,32 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0246 import ActionsVariableType -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "ReposOwnerRepoHooksPostBodyPropConfigType", - "ReposOwnerRepoHooksPostBodyType", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1183.py b/githubkit/versions/ghec_v2022_11_28/types/group_1183.py index 616829ef4..f3a29926f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1183.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1183.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0011 import WebhookConfigType +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" + name: str + value: str - config: NotRequired[WebhookConfigType] - events: NotRequired[list[str]] - add_events: NotRequired[list[str]] - remove_events: NotRequired[list[str]] - active: NotRequired[bool] - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1184.py b/githubkit/versions/ghec_v2022_11_28/types/group_1184.py index 2de12ce93..adee73102 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1184.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1184.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + name: NotRequired[str] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1185.py b/githubkit/versions/ghec_v2022_11_28/types/group_1185.py index 02673d9bf..eb686a699 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1185.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1185.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1186.py b/githubkit/versions/ghec_v2022_11_28/types/group_1186.py index 5f68422b7..4c2ef3730 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1186.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1186.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1187.py b/githubkit/versions/ghec_v2022_11_28/types/group_1187.py index f2dee5034..73106315f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1187.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1187.py @@ -9,14 +9,49 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" + + message: str + tree: str + parents: NotRequired[list[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ - email: NotRequired[str] name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", + "ReposOwnerRepoGitCommitsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1188.py b/githubkit/versions/ghec_v2022_11_28/types/group_1188.py index f8207f6ea..aa4d83aff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1188.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1188.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - use_lfs: Literal["opt_in", "opt_out"] + ref: str + sha: str -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1189.py b/githubkit/versions/ghec_v2022_11_28/types/group_1189.py index ca60a7364..95219ce12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1189.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1189.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" + sha: str + force: NotRequired[bool] -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1190.py b/githubkit/versions/ghec_v2022_11_28/types/group_1190.py index 9285f63d1..bf927c780 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1190.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1190.py @@ -9,14 +9,33 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", + "ReposOwnerRepoGitTagsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1191.py b/githubkit/versions/ghec_v2022_11_28/types/group_1191.py index 9bb94a509..62d4e64ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1191.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1191.py @@ -9,34 +9,28 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - title: Union[str, int] - body: NotRequired[str] - assignee: NotRequired[Union[str, None]] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] __all__ = ( - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTreesPostBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1192.py b/githubkit/versions/ghec_v2022_11_28/types/group_1192.py index 4b0c546c3..44bb98073 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1192.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1192.py @@ -9,13 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - body: str + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoHooksPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1193.py b/githubkit/versions/ghec_v2022_11_28/types/group_1193.py index 77f77960c..616829ef4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1193.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1193.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + config: NotRequired[WebhookConfigType] + events: NotRequired[list[str]] + add_events: NotRequired[list[str]] + remove_events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1194.py b/githubkit/versions/ghec_v2022_11_28/types/group_1194.py index 51b150f12..2de12ce93 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1194.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1194.py @@ -9,42 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", -) +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1195.py b/githubkit/versions/ghec_v2022_11_28/types/group_1195.py index 0f0f4ae84..02673d9bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1195.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1195.py @@ -9,13 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - assignees: NotRequired[list[str]] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1196.py b/githubkit/versions/ghec_v2022_11_28/types/group_1196.py index 2795b587e..5f68422b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1196.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1196.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - assignees: NotRequired[list[str]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1197.py b/githubkit/versions/ghec_v2022_11_28/types/group_1197.py index 2585a1e0c..f2dee5034 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1197.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1197.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - body: str + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1198.py b/githubkit/versions/ghec_v2022_11_28/types/group_1198.py index 8653eeddb..f8207f6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1198.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1198.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - labels: NotRequired[list[str]] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1199.py b/githubkit/versions/ghec_v2022_11_28/types/group_1199.py index 28a5135d1..ca60a7364 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1199.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1199.py @@ -9,24 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1200.py b/githubkit/versions/ghec_v2022_11_28/types/group_1200.py index 4b61c7722..9285f63d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1200.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1200.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - name: str + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1201.py b/githubkit/versions/ghec_v2022_11_28/types/group_1201.py index a0fe1957d..9bb94a509 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1201.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1201.py @@ -9,13 +9,34 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - labels: NotRequired[list[str]] + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1202.py b/githubkit/versions/ghec_v2022_11_28/types/group_1202.py index 672fc26ff..4b0c546c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1202.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1202.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] + body: str -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1203.py b/githubkit/versions/ghec_v2022_11_28/types/group_1203.py index 6872247a2..77f77960c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1203.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1203.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - name: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1204.py b/githubkit/versions/ghec_v2022_11_28/types/group_1204.py index 392d8c14f..51b150f12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1204.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1204.py @@ -9,14 +9,42 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: NotRequired[Union[str, int, None]] + body: NotRequired[Union[str, None]] + assignee: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1205.py b/githubkit/versions/ghec_v2022_11_28/types/group_1205.py index 5d8ff2645..0f0f4ae84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1205.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1205.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1206.py b/githubkit/versions/ghec_v2022_11_28/types/group_1206.py index 6e796683c..2795b587e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1206.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1206.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - sub_issue_id: int + assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1207.py b/githubkit/versions/ghec_v2022_11_28/types/group_1207.py index 294d951b6..2585a1e0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1207.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1207.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - sub_issue_id: int - replace_parent: NotRequired[bool] + body: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1208.py b/githubkit/versions/ghec_v2022_11_28/types/group_1208.py index 6ffa90a5b..8653eeddb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1208.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1208.py @@ -12,12 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - sub_issue_id: int - after_id: NotRequired[int] - before_id: NotRequired[int] + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1209.py b/githubkit/versions/ghec_v2022_11_28/types/group_1209.py index acb0bbfba..28a5135d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1209.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1209.py @@ -12,12 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1210.py b/githubkit/versions/ghec_v2022_11_28/types/group_1210.py index 7cc0b1b26..4b61c7722 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1210.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1210.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" name: str - color: NotRequired[str] - description: NotRequired[str] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1211.py b/githubkit/versions/ghec_v2022_11_28/types/group_1211.py index 607085961..a0fe1957d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1211.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1211.py @@ -12,12 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1212.py b/githubkit/versions/ghec_v2022_11_28/types/group_1212.py index ac724c353..672fc26ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1212.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1212.py @@ -9,13 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - branch: str + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1213.py b/githubkit/versions/ghec_v2022_11_28/types/group_1213.py index f33bb6f09..6872247a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1213.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1213.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - base: str - head: str - commit_message: NotRequired[str] + name: str -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1214.py b/githubkit/versions/ghec_v2022_11_28/types/group_1214.py index 17d426f88..392d8c14f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1214.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1214.py @@ -9,18 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1215.py b/githubkit/versions/ghec_v2022_11_28/types/group_1215.py index 1eaa2807a..5d8ff2645 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1215.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1215.py @@ -9,18 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1216.py b/githubkit/versions/ghec_v2022_11_28/types/group_1216.py index c350dcdf7..6e796683c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1216.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1216.py @@ -9,14 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - last_read_at: NotRequired[datetime] + sub_issue_id: int -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1217.py b/githubkit/versions/ghec_v2022_11_28/types/group_1217.py index 7ab2c0401..294d951b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1217.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1217.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - message: NotRequired[str] - url: NotRequired[str] + sub_issue_id: int + replace_parent: NotRequired[bool] -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1218.py b/githubkit/versions/ghec_v2022_11_28/types/group_1218.py index cd3deab02..6ffa90a5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1218.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1218.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - Update the source for the repository. Must include the branch name and path. - """ + sub_issue_id: int + after_id: NotRequired[int] + before_id: NotRequired[int] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1219.py b/githubkit/versions/ghec_v2022_11_28/types/group_1219.py index 6c204617e..acb0bbfba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1219.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1219.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" + title: NotRequired[str] + key: str + read_only: NotRequired[bool] - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1220.py b/githubkit/versions/ghec_v2022_11_28/types/group_1220.py index 60e2df55c..7cc0b1b26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1220.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1220.py @@ -9,23 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" + name: str + color: NotRequired[str] + description: NotRequired[str] - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1221.py b/githubkit/versions/ghec_v2022_11_28/types/group_1221.py index 18015aeee..607085961 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1221.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1221.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1222.py b/githubkit/versions/ghec_v2022_11_28/types/group_1222.py index fe8b64b2a..ac724c353 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1222.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1222.py @@ -9,25 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" + branch: str - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: bool - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1223.py b/githubkit/versions/ghec_v2022_11_28/types/group_1223.py index a0ef46046..f33bb6f09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1223.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1223.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1218 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + base: str + head: str + commit_message: NotRequired[str] - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1224.py b/githubkit/versions/ghec_v2022_11_28/types/group_1224.py index 1f79f8c8a..17d426f88 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1224.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1224.py @@ -9,18 +9,18 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - The source branch and directory used to publish your Pages site. - """ + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] - branch: str - path: NotRequired[Literal["/", "/docs"]] - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1225.py b/githubkit/versions/ghec_v2022_11_28/types/group_1225.py index 148518bbd..1eaa2807a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1225.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1225.py @@ -9,17 +9,18 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1224 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1226.py b/githubkit/versions/ghec_v2022_11_28/types/group_1226.py index 1cecd9247..c350dcdf7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1226.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1226.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_1224 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + last_read_at: NotRequired[datetime] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1227.py b/githubkit/versions/ghec_v2022_11_28/types/group_1227.py index 4bdb60454..7ab2c0401 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1227.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1227.py @@ -12,17 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - The object used to create GitHub Pages deployment - """ + message: NotRequired[str] + url: NotRequired[str] - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1228.py b/githubkit/versions/ghec_v2022_11_28/types/group_1228.py index c22c267f3..cd3deab02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1228.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1228.py @@ -9,13 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - enabled: bool + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1229.py b/githubkit/versions/ghec_v2022_11_28/types/group_1229.py index 5d8355086..1bad2ff28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1229.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1229.py @@ -9,14 +9,25 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" - name: str - body: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1230.py b/githubkit/versions/ghec_v2022_11_28/types/group_1230.py index d115bfd31..ac64ac793 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1230.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1230.py @@ -9,15 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0215 import CustomPropertyValueType +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" - properties: list[CustomPropertyValueType] + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1231.py b/githubkit/versions/ghec_v2022_11_28/types/group_1231.py index 8e9e41f56..1caaa7fc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1231.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1231.py @@ -9,20 +9,25 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" - title: NotRequired[str] - head: str - head_repo: NotRequired[str] - base: str - body: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - draft: NotRequired[bool] - issue: NotRequired[int] +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1232.py b/githubkit/versions/ghec_v2022_11_28/types/group_1232.py index 160987b13..3d35289aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1232.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1232.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - body: str +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: bool -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1233.py b/githubkit/versions/ghec_v2022_11_28/types/group_1233.py index 4dc9e5008..7b2b4795a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1233.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1233.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_1228 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" + + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1234.py b/githubkit/versions/ghec_v2022_11_28/types/group_1234.py index 1bb472545..1f79f8c8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1234.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1234.py @@ -13,14 +13,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1235.py b/githubkit/versions/ghec_v2022_11_28/types/group_1235.py index b0eda78e6..4e8a38598 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1235.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1235.py @@ -12,20 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1234 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1236.py b/githubkit/versions/ghec_v2022_11_28/types/group_1236.py index f15be5df1..91aee6e6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1236.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1236.py @@ -12,20 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1234 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - body: str - commit_id: str - path: str - position: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - line: NotRequired[int] - start_line: NotRequired[int] - start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] - in_reply_to: NotRequired[int] - subject_type: NotRequired[Literal["line", "file"]] +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1237.py b/githubkit/versions/ghec_v2022_11_28/types/group_1237.py index fdc9c5a0e..4bdb60454 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1237.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1237.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody - body: str + The object used to create GitHub Pages deployment + """ + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1238.py b/githubkit/versions/ghec_v2022_11_28/types/group_1238.py index 743310547..c22c267f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1238.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1238.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + enabled: bool -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1239.py b/githubkit/versions/ghec_v2022_11_28/types/group_1239.py index 797f629f0..5d8355086 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1239.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1239.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1240.py b/githubkit/versions/ghec_v2022_11_28/types/group_1240.py index 8525d9950..c9507c682 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1240.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1240.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0219 import CustomPropertyValueType -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1241.py b/githubkit/versions/ghec_v2022_11_28/types/group_1241.py index c92fe8585..8e9e41f56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1241.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1241.py @@ -12,11 +12,17 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str + body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + draft: NotRequired[bool] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1242.py b/githubkit/versions/ghec_v2022_11_28/types/group_1242.py index e461ce1cf..160987b13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1242.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1242.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - reviewers: NotRequired[list[str]] - team_reviewers: list[str] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1243.py b/githubkit/versions/ghec_v2022_11_28/types/group_1243.py index 43201ae1f..4dc9e5008 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1243.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1243.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1244.py b/githubkit/versions/ghec_v2022_11_28/types/group_1244.py index bf17592a6..1bb472545 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1244.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1244.py @@ -13,30 +13,14 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - commit_id: NotRequired[str] + title: NotRequired[str] body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1245.py b/githubkit/versions/ghec_v2022_11_28/types/group_1245.py index 05cccf0c0..b0eda78e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1245.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1245.py @@ -9,13 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - body: str + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1246.py b/githubkit/versions/ghec_v2022_11_28/types/group_1246.py index 412543923..f15be5df1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1246.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1246.py @@ -13,11 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - - message: str - event: NotRequired[Literal["DISMISS"]] - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" + + body: str + commit_id: str + path: str + position: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + line: NotRequired[int] + start_line: NotRequired[int] + start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] + in_reply_to: NotRequired[int] + subject_type: NotRequired[Literal["line", "file"]] + + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1247.py b/githubkit/versions/ghec_v2022_11_28/types/group_1247.py index d03c573ae..fdc9c5a0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1247.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1247.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1248.py b/githubkit/versions/ghec_v2022_11_28/types/group_1248.py index c102fe4d6..743310547 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1248.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1248.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - expected_head_sha: NotRequired[str] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1249.py b/githubkit/versions/ghec_v2022_11_28/types/group_1249.py index e633d70f9..797f629f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1249.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1249.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" message: NotRequired[str] - url: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1250.py b/githubkit/versions/ghec_v2022_11_28/types/group_1250.py index 4065bba0c..8525d9950 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1250.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1250.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - tag_name: str - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - discussion_category_name: NotRequired[str] - generate_release_notes: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1251.py b/githubkit/versions/ghec_v2022_11_28/types/group_1251.py index 0ddd0a8bf..c92fe8585 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1251.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1251.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1252.py b/githubkit/versions/ghec_v2022_11_28/types/group_1252.py index 2f21e468e..e461ce1cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1252.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1252.py @@ -12,13 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] + reviewers: NotRequired[list[str]] + team_reviewers: list[str] -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1253.py b/githubkit/versions/ghec_v2022_11_28/types/group_1253.py index 2300351d5..43201ae1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1253.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1253.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] - discussion_category_name: NotRequired[str] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1254.py b/githubkit/versions/ghec_v2022_11_28/types/group_1254.py index d85bf8d37..bf17592a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1254.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1254.py @@ -10,13 +10,33 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1255.py b/githubkit/versions/ghec_v2022_11_28/types/group_1255.py index 4b31a1f1f..05cccf0c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1255.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1255.py @@ -9,71 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0080 import RepositoryRulesetBypassActorType -from .group_0085 import RepositoryRulesetConditionsType -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + body: str - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1256.py b/githubkit/versions/ghec_v2022_11_28/types/group_1256.py index c705c0561..412543923 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1256.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1256.py @@ -9,71 +9,15 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0080 import RepositoryRulesetBypassActorType -from .group_0085 import RepositoryRulesetConditionsType -from .group_0095 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0096 import RepositoryRuleUpdateType -from .group_0098 import RepositoryRuleRequiredLinearHistoryType -from .group_0099 import RepositoryRuleMergeQueueType -from .group_0101 import RepositoryRuleRequiredDeploymentsType -from .group_0104 import RepositoryRulePullRequestType -from .group_0106 import RepositoryRuleRequiredStatusChecksType -from .group_0108 import RepositoryRuleCommitMessagePatternType -from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import RepositoryRuleCommitterEmailPatternType -from .group_0114 import RepositoryRuleBranchNamePatternType -from .group_0116 import RepositoryRuleTagNamePatternType -from .group_0118 import RepositoryRuleFilePathRestrictionType -from .group_0120 import RepositoryRuleMaxFilePathLengthType -from .group_0122 import RepositoryRuleFileExtensionRestrictionType -from .group_0124 import RepositoryRuleMaxFileSizeType -from .group_0127 import RepositoryRuleWorkflowsType -from .group_0129 import RepositoryRuleCodeScanningType +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" + message: str + event: NotRequired[Literal["DISMISS"]] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1257.py b/githubkit/versions/ghec_v2022_11_28/types/group_1257.py index a4f75ebc8..d03c573ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1257.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1257.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1258.py b/githubkit/versions/ghec_v2022_11_28/types/group_1258.py index ca4fd9976..c102fe4d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1258.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1258.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] - placeholder_id: str + expected_head_sha: NotRequired[str] -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1259.py b/githubkit/versions/ghec_v2022_11_28/types/group_1259.py index f5eb2b08d..e633d70f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1259.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1259.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1260.py b/githubkit/versions/ghec_v2022_11_28/types/group_1260.py index bf3b98dcb..4065bba0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1260.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1260.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + tag_name: str + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + discussion_category_name: NotRequired[str] + generate_release_notes: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1261.py b/githubkit/versions/ghec_v2022_11_28/types/group_1261.py index 492fdc91e..0ddd0a8bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1261.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1261.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - pattern: str + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1262.py b/githubkit/versions/ghec_v2022_11_28/types/group_1262.py index f6f94cfa4..2f21e468e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1262.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1262.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - names: list[str] + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1263.py b/githubkit/versions/ghec_v2022_11_28/types/group_1263.py index 4f00c0f54..2300351d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1263.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1263.py @@ -9,15 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[list[int]] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] + discussion_category_name: NotRequired[str] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1264.py b/githubkit/versions/ghec_v2022_11_28/types/group_1264.py index f8f62bc0c..d85bf8d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1264.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1264.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1265.py b/githubkit/versions/ghec_v2022_11_28/types/group_1265.py index f4878ed75..4b31a1f1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1265.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1265.py @@ -9,44 +9,71 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBody""" - - user_name: str - display_name: NotRequired[str] - name: ScimV2OrganizationsOrgUsersPostBodyPropNameType - emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] - schemas: NotRequired[list[str]] - external_id: NotRequired[str] - groups: NotRequired[list[str]] - active: NotRequired[bool] - - -class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - - value: str - primary: NotRequired[bool] - type: NotRequired[str] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", - "ScimV2OrganizationsOrgUsersPostBodyPropNameType", - "ScimV2OrganizationsOrgUsersPostBodyType", +from .group_0080 import RepositoryRulesetBypassActorType +from .group_0085 import RepositoryRulesetConditionsType +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, ) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType + + +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" + + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + + +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1266.py b/githubkit/versions/ghec_v2022_11_28/types/group_1266.py index 7aaa7ebc8..c705c0561 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1266.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1266.py @@ -9,44 +9,71 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - - schemas: NotRequired[list[str]] - display_name: NotRequired[str] - external_id: NotRequired[str] - groups: NotRequired[list[str]] - active: NotRequired[bool] - user_name: str - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType - emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: NotRequired[str] - value: str - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", +from .group_0080 import RepositoryRulesetBypassActorType +from .group_0085 import RepositoryRulesetConditionsType +from .group_0095 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, ) +from .group_0096 import RepositoryRuleUpdateType +from .group_0098 import RepositoryRuleRequiredLinearHistoryType +from .group_0099 import RepositoryRuleMergeQueueType +from .group_0101 import RepositoryRuleRequiredDeploymentsType +from .group_0104 import RepositoryRulePullRequestType +from .group_0106 import RepositoryRuleRequiredStatusChecksType +from .group_0108 import RepositoryRuleCommitMessagePatternType +from .group_0110 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0112 import RepositoryRuleCommitterEmailPatternType +from .group_0114 import RepositoryRuleBranchNamePatternType +from .group_0116 import RepositoryRuleTagNamePatternType +from .group_0118 import RepositoryRuleFilePathRestrictionType +from .group_0120 import RepositoryRuleMaxFilePathLengthType +from .group_0122 import RepositoryRuleFileExtensionRestrictionType +from .group_0124 import RepositoryRuleMaxFileSizeType +from .group_0127 import RepositoryRuleWorkflowsType +from .group_0129 import RepositoryRuleCodeScanningType + + +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + + +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1267.py b/githubkit/versions/ghec_v2022_11_28/types/group_1267.py index b3d378206..a4f75ebc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1267.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1267.py @@ -13,57 +13,14 @@ from typing_extensions import NotRequired, TypedDict -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - schemas: NotRequired[list[str]] - operations: list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] + resolution_comment: NotRequired[Union[str, None]] -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, - list[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType - ], - str, - ] - ] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: NotRequired[Union[bool, None]] - user_name: NotRequired[Union[str, None]] - external_id: NotRequired[Union[str, None]] - given_name: NotRequired[Union[str, None]] - family_name: NotRequired[Union[str, None]] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ - - value: NotRequired[str] - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", -) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1268.py b/githubkit/versions/ghec_v2022_11_28/types/group_1268.py index 6accad501..ca4fd9976 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1268.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1268.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - name: str - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] + placeholder_id: str -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1269.py b/githubkit/versions/ghec_v2022_11_28/types/group_1269.py index 5fc734f17..f5eb2b08d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1269.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1269.py @@ -9,15 +9,17 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - title: str - body: str - private: NotRequired[bool] + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1270.py b/githubkit/versions/ghec_v2022_11_28/types/group_1270.py index 97be26f9a..bf3b98dcb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1270.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1270.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - title: NotRequired[str] - body: NotRequired[str] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1271.py b/githubkit/versions/ghec_v2022_11_28/types/group_1271.py index 49b6126e3..492fdc91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1271.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1271.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - body: str + pattern: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1272.py b/githubkit/versions/ghec_v2022_11_28/types/group_1272.py index aba26488a..f6f94cfa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1272.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1272.py @@ -12,12 +12,10 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - body: str + names: list[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1273.py b/githubkit/versions/ghec_v2022_11_28/types/group_1273.py index ea06c9bbf..4f00c0f54 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1273.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1273.py @@ -9,20 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[list[int]] -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1274.py b/githubkit/versions/ghec_v2022_11_28/types/group_1274.py index 02edb1cc8..f8f62bc0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1274.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1274.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1275.py b/githubkit/versions/ghec_v2022_11_28/types/group_1275.py index 4c1b9ea73..f4878ed75 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1275.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1275.py @@ -9,14 +9,44 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + user_name: str + display_name: NotRequired[str] + name: ScimV2OrganizationsOrgUsersPostBodyPropNameType + emails: list[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] + schemas: NotRequired[list[str]] + external_id: NotRequired[str] + groups: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str + primary: NotRequired[bool] + type: NotRequired[str] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", + "ScimV2OrganizationsOrgUsersPostBodyPropNameType", + "ScimV2OrganizationsOrgUsersPostBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1276.py b/githubkit/versions/ghec_v2022_11_28/types/group_1276.py index 0fc6bc372..7aaa7ebc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1276.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1276.py @@ -9,14 +9,44 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + schemas: NotRequired[list[str]] + display_name: NotRequired[str] + external_id: NotRequired[str] + groups: NotRequired[list[str]] + active: NotRequired[bool] + user_name: str + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType + emails: list[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: NotRequired[str] + value: str + primary: NotRequired[bool] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1277.py b/githubkit/versions/ghec_v2022_11_28/types/group_1277.py index 27e574fd9..b3d378206 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1277.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1277.py @@ -9,14 +9,61 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + schemas: NotRequired[list[str]] + operations: list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType + ] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" + + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, + list[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType + ], + str, + ] + ] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: NotRequired[Union[bool, None]] + user_name: NotRequired[Union[str, None]] + external_id: NotRequired[Union[str, None]] + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ + + value: NotRequired[str] + primary: NotRequired[bool] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1278.py b/githubkit/versions/ghec_v2022_11_28/types/group_1278.py index 218231963..6accad501 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1278.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1278.py @@ -9,14 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" + name: str + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1279.py b/githubkit/versions/ghec_v2022_11_28/types/group_1279.py index 55352f689..5fc734f17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1279.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1279.py @@ -12,25 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - groups: list[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - synced_at: NotRequired[str] + title: str + body: str + private: NotRequired[bool] -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - id: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - - -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", -) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1280.py b/githubkit/versions/ghec_v2022_11_28/types/group_1280.py index 0cc0c51fd..97be26f9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1280.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1280.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class UserPatchBodyType(TypedDict): - """UserPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - name: NotRequired[str] - email: NotRequired[str] - blog: NotRequired[str] - twitter_username: NotRequired[Union[str, None]] - company: NotRequired[str] - location: NotRequired[str] - hireable: NotRequired[bool] - bio: NotRequired[str] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("UserPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1281.py b/githubkit/versions/ghec_v2022_11_28/types/group_1281.py index 1a88f91c0..49b6126e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1281.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1281.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0179 import CodespaceType +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + body: str - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1282.py b/githubkit/versions/ghec_v2022_11_28/types/group_1282.py index ca44ecf9e..aba26488a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1282.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1282.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - repository_id: int - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] + body: str -__all__ = ("UserCodespacesPostBodyOneof0Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1283.py b/githubkit/versions/ghec_v2022_11_28/types/group_1283.py index ad32a685a..ea06c9bbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1283.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1283.py @@ -10,32 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequestType - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - - -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] __all__ = ( - "UserCodespacesPostBodyOneof1PropPullRequestType", - "UserCodespacesPostBodyOneof1Type", + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1284.py b/githubkit/versions/ghec_v2022_11_28/types/group_1284.py index 1e27e71b8..02edb1cc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1284.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1284.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import TypedDict -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - total_count: int - secrets: list[CodespacesSecretType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -class CodespacesSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str - - -__all__ = ( - "CodespacesSecretType", - "UserCodespacesSecretsGetResponse200Type", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1285.py b/githubkit/versions/ghec_v2022_11_28/types/group_1285.py index 6ec0707c1..4c1b9ea73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1285.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1285.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[list[Union[int, str]]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1286.py b/githubkit/versions/ghec_v2022_11_28/types/group_1286.py index 84b98cd90..0fc6bc372 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1286.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1286.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0168 import MinimalRepositoryType +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1287.py b/githubkit/versions/ghec_v2022_11_28/types/group_1287.py index 69b6c64de..27e574fd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1287.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1287.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - selected_repository_ids: list[int] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1288.py b/githubkit/versions/ghec_v2022_11_28/types/group_1288.py index 73deadc8f..218231963 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1288.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1288.py @@ -9,15 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[list[str]] + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1289.py b/githubkit/versions/ghec_v2022_11_28/types/group_1289.py index ffbb19b63..55352f689 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1289.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1289.py @@ -9,16 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0178 import CodespaceMachineType +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + groups: list[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + synced_at: NotRequired[str] - total_count: int - machines: list[CodespaceMachineType] +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) + group_id: str + group_name: str + group_description: str + id: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + + +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1290.py b/githubkit/versions/ghec_v2022_11_28/types/group_1290.py index 90f680aa4..0cc0c51fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1290.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1290.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" name: NotRequired[str] - private: NotRequired[bool] + email: NotRequired[str] + blog: NotRequired[str] + twitter_username: NotRequired[Union[str, None]] + company: NotRequired[str] + location: NotRequired[str] + hireable: NotRequired[bool] + bio: NotRequired[str] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1291.py b/githubkit/versions/ghec_v2022_11_28/types/group_1291.py index 741f85377..3d5b09444 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1291.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1291.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0183 import CodespaceType -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" - visibility: Literal["public", "private"] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("UserEmailVisibilityPatchBodyType",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1292.py b/githubkit/versions/ghec_v2022_11_28/types/group_1292.py index fa445ed2c..ca44ecf9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1292.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1292.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ + repository_id: int + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] - emails: list[str] - -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1293.py b/githubkit/versions/ghec_v2022_11_28/types/group_1293.py index 85a754f60..ad32a685a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1293.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1293.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} + +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace """ - emails: list[str] + pull_request_number: int + repository_id: int -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ( + "UserCodespacesPostBodyOneof1PropPullRequestType", + "UserCodespacesPostBodyOneof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1294.py b/githubkit/versions/ghec_v2022_11_28/types/group_1294.py index bef46dc62..1e27e71b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1294.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1294.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import TypedDict -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - name: NotRequired[str] - armored_public_key: str + total_count: int + secrets: list[CodespacesSecretType] -__all__ = ("UserGpgKeysPostBodyType",) +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str + + +__all__ = ( + "CodespacesSecretType", + "UserCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1295.py b/githubkit/versions/ghec_v2022_11_28/types/group_1295.py index 069eb3383..6ec0707c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1295.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1295.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0018 import InstallationType +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[list[Union[int, str]]] - total_count: int - installations: list[InstallationType] - -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1296.py b/githubkit/versions/ghec_v2022_11_28/types/group_1296.py index 8e85a1d81..dc1e0137e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1296.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1296.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0020 import RepositoryType +from .group_0171 import MinimalRepositoryType -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" total_count: int - repository_selection: NotRequired[str] - repositories: list[RepositoryType] + repositories: list[MinimalRepositoryType] -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1297.py b/githubkit/versions/ghec_v2022_11_28/types/group_1297.py index 9f9dd053b..69b6c64de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1297.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1297.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + selected_repository_ids: list[int] -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1298.py b/githubkit/versions/ghec_v2022_11_28/types/group_1298.py index 5ec08a5e0..73deadc8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1298.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1298.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" - title: NotRequired[str] - key: str + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[list[str]] -__all__ = ("UserKeysPostBodyType",) +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1299.py b/githubkit/versions/ghec_v2022_11_28/types/group_1299.py index 718052573..9e240cc83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1299.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1299.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0182 import CodespaceMachineType -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" - state: Literal["active"] +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1300.py b/githubkit/versions/ghec_v2022_11_28/types/group_1300.py index 586d41155..90f680aa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1300.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1300.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[list[Literal["repositories"]]] - repositories: list[str] + name: NotRequired[str] + private: NotRequired[bool] -__all__ = ("UserMigrationsPostBodyType",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1301.py b/githubkit/versions/ghec_v2022_11_28/types/group_1301.py index 6393094b2..741f85377 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1301.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1301.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - name: str - body: NotRequired[Union[str, None]] + visibility: Literal["public", "private"] -__all__ = ("UserProjectsPostBodyType",) +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1302.py b/githubkit/versions/ghec_v2022_11_28/types/group_1302.py index 354d7b410..fa445ed2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1302.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1302.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) +from typing_extensions import TypedDict + + +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] + + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1303.py b/githubkit/versions/ghec_v2022_11_28/types/group_1303.py index 7c5bf8edc..85a754f60 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1303.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1303.py @@ -12,15 +12,19 @@ from typing_extensions import TypedDict -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + {'emails': ['octocat@github.com', 'mona@github.com']} """ - account_urls: list[str] + emails: list[str] -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1304.py b/githubkit/versions/ghec_v2022_11_28/types/group_1304.py index 5e8ecaf24..bef46dc62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1304.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1304.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + name: NotRequired[str] + armored_public_key: str - account_urls: list[str] - -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1305.py b/githubkit/versions/ghec_v2022_11_28/types/group_1305.py index 712df953e..069eb3383 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1305.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1305.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" - title: NotRequired[str] - key: str +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("UserSshSigningKeysPostBodyType",) + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1306.py b/githubkit/versions/ghec_v2022_11_28/types/group_1306.py index 86ef1dfd9..8e85a1d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1306.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1306.py @@ -9,73 +9,17 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestations: NotRequired[ - list[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + total_count: int + repository_selection: NotRequired[str] + repositories: list[RepositoryType] -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropVerificationMaterial -""" - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropDsseEnvelope -""" - - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1307.py b/githubkit/versions/ghec_v2022_11_28/types/group_1307.py new file mode 100644 index 000000000..9f9dd053b --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1307.py @@ -0,0 +1,19 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" + + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1308.py b/githubkit/versions/ghec_v2022_11_28/types/group_1308.py new file mode 100644 index 000000000..5ec08a5e0 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1308.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1309.py b/githubkit/versions/ghec_v2022_11_28/types/group_1309.py new file mode 100644 index 000000000..718052573 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1309.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] + + +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1310.py b/githubkit/versions/ghec_v2022_11_28/types/group_1310.py new file mode 100644 index 000000000..586d41155 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1310.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" + + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[list[Literal["repositories"]]] + repositories: list[str] + + +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1311.py b/githubkit/versions/ghec_v2022_11_28/types/group_1311.py new file mode 100644 index 000000000..6393094b2 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1311.py @@ -0,0 +1,23 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" + + name: str + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1312.py b/githubkit/versions/ghec_v2022_11_28/types/group_1312.py new file mode 100644 index 000000000..354d7b410 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1312.py @@ -0,0 +1,46 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1313.py b/githubkit/versions/ghec_v2022_11_28/types/group_1313.py new file mode 100644 index 000000000..7c5bf8edc --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1313.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1314.py b/githubkit/versions/ghec_v2022_11_28/types/group_1314.py new file mode 100644 index 000000000..5e8ecaf24 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1314.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1315.py b/githubkit/versions/ghec_v2022_11_28/types/group_1315.py new file mode 100644 index 000000000..712df953e --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1315.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1316.py b/githubkit/versions/ghec_v2022_11_28/types/group_1316.py new file mode 100644 index 000000000..5145f707c --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1316.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" + + subject_digests: list[str] + + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1317.py b/githubkit/versions/ghec_v2022_11_28/types/group_1317.py new file mode 100644 index 000000000..913848fca --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1317.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" + + attestation_ids: list[int] + + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1318.py b/githubkit/versions/ghec_v2022_11_28/types/group_1318.py new file mode 100644 index 000000000..86ef1dfd9 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1318.py @@ -0,0 +1,81 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + list[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropVerificationMaterial +""" + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropDsseEnvelope +""" + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/latest/models.py b/githubkit/versions/latest/models.py index b1aba7ace..091713168 100644 --- a/githubkit/versions/latest/models.py +++ b/githubkit/versions/latest/models.py @@ -631,6 +631,9 @@ from githubkit.versions.v2022_11_28.models import ( DependabotPublicKey as DependabotPublicKey, ) + from githubkit.versions.v2022_11_28.models import ( + DependabotRepositoryAccessDetails as DependabotRepositoryAccessDetails, + ) from githubkit.versions.v2022_11_28.models import ( DependabotSecret as DependabotSecret, ) @@ -1050,6 +1053,9 @@ from githubkit.versions.v2022_11_28.models import ( MinimalRepository as MinimalRepository, ) + from githubkit.versions.v2022_11_28.models import ( + MinimalRepositoryPropCustomProperties as MinimalRepositoryPropCustomProperties, + ) from githubkit.versions.v2022_11_28.models import ( MinimalRepositoryPropLicense as MinimalRepositoryPropLicense, ) @@ -1142,6 +1148,12 @@ from githubkit.versions.v2022_11_28.models import ( OrganizationSimpleWebhooks as OrganizationSimpleWebhooks, ) + from githubkit.versions.v2022_11_28.models import ( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrganizationsOrgDependabotRepositoryAccessPatchBody as OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) from githubkit.versions.v2022_11_28.models import ( OrganizationUpdateIssueType as OrganizationUpdateIssueType, ) @@ -1279,6 +1291,18 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostBody as OrgsOrgAttestationsBulkListPostBody, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostResponse200 as OrgsOrgAttestationsBulkListPostResponse200, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, + ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsBulkListPostResponse200PropPageInfo as OrgsOrgAttestationsBulkListPostResponse200PropPageInfo, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) @@ -1965,6 +1989,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryInvitation as RepositoryInvitation, ) + from githubkit.versions.v2022_11_28.models import ( + RepositoryPropCodeSearchIndexStatus as RepositoryPropCodeSearchIndexStatus, + ) from githubkit.versions.v2022_11_28.models import ( RepositoryPropPermissions as RepositoryPropPermissions, ) @@ -3419,6 +3446,12 @@ from githubkit.versions.v2022_11_28.models import ( UserSshSigningKeysPostBody as UserSshSigningKeysPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof0 as UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof1 as UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) from githubkit.versions.v2022_11_28.models import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) @@ -9773,6 +9806,7 @@ "LicenseSimple", "Repository", "RepositoryPropPermissions", + "RepositoryPropCodeSearchIndexStatus", "InstallationToken", "ScopedInstallation", "Authorization", @@ -9805,6 +9839,19 @@ "DependabotAlertSecurityAdvisoryPropReferencesItems", "DependabotAlertWithRepository", "DependabotAlertWithRepositoryPropDependency", + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueBody", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", "OrganizationSecretScanningAlert", "Milestone", "IssueType", @@ -9859,10 +9906,12 @@ "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", + "MinimalRepositoryPropCustomProperties", "Thread", "ThreadPropSubject", "ThreadSubscription", "OrganizationSimple", + "DependabotRepositoryAccessDetails", "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", "OrganizationFull", @@ -10406,6 +10455,7 @@ "RepositoryRuleDetailedOneof19", "RepositoryRuleDetailedOneof20", "SecretScanningAlert", + "SecretScanningLocation", "SecretScanningPushProtectionBypass", "SecretScanningScanHistory", "SecretScanningScan", @@ -12464,20 +12514,6 @@ "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", "WebhookSecretScanningAlertCreated", "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", "WebhookSecretScanningAlertLocationCreatedFormEncoded", "WebhookSecretScanningAlertPubliclyLeaked", "WebhookSecretScanningAlertReopened", @@ -12675,6 +12711,8 @@ "NotificationsPutBody", "NotificationsPutResponse202", "NotificationsThreadsThreadIdSubscriptionPutBody", + "OrganizationsOrgDependabotRepositoryAccessPatchBody", + "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody", "OrgsOrgPatchBody", "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", @@ -12716,6 +12754,10 @@ "OrgsOrgActionsVariablesNamePatchBody", "OrgsOrgActionsVariablesNameRepositoriesGetResponse200", "OrgsOrgActionsVariablesNameRepositoriesPutBody", + "OrgsOrgAttestationsBulkListPostBody", + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", @@ -13100,6 +13142,8 @@ "UserSocialAccountsPostBody", "UserSocialAccountsDeleteBody", "UserSshSigningKeysPostBody", + "UsersUsernameAttestationsDeleteRequestPostBodyOneof0", + "UsersUsernameAttestationsDeleteRequestPostBodyOneof1", "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", diff --git a/githubkit/versions/latest/types.py b/githubkit/versions/latest/types.py index 1850d616d..2e1b7eb55 100644 --- a/githubkit/versions/latest/types.py +++ b/githubkit/versions/latest/types.py @@ -667,6 +667,9 @@ from githubkit.versions.v2022_11_28.types import ( DependabotPublicKeyType as DependabotPublicKeyType, ) + from githubkit.versions.v2022_11_28.types import ( + DependabotRepositoryAccessDetailsType as DependabotRepositoryAccessDetailsType, + ) from githubkit.versions.v2022_11_28.types import ( DependabotSecretType as DependabotSecretType, ) @@ -1113,6 +1116,9 @@ MilestonedIssueEventType as MilestonedIssueEventType, ) from githubkit.versions.v2022_11_28.types import MilestoneType as MilestoneType + from githubkit.versions.v2022_11_28.types import ( + MinimalRepositoryPropCustomPropertiesType as MinimalRepositoryPropCustomPropertiesType, + ) from githubkit.versions.v2022_11_28.types import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) @@ -1212,6 +1218,12 @@ from githubkit.versions.v2022_11_28.types import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) + from githubkit.versions.v2022_11_28.types import ( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + ) + from githubkit.versions.v2022_11_28.types import ( + OrganizationsOrgDependabotRepositoryAccessPatchBodyType as OrganizationsOrgDependabotRepositoryAccessPatchBodyType, + ) from githubkit.versions.v2022_11_28.types import ( OrganizationUpdateIssueTypeType as OrganizationUpdateIssueTypeType, ) @@ -1351,6 +1363,18 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsBulkListPostBodyType as OrgsOrgAttestationsBulkListPostBodyType, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType as OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType, + ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsBulkListPostResponse200Type as OrgsOrgAttestationsBulkListPostResponse200Type, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) @@ -2060,6 +2084,9 @@ from githubkit.versions.v2022_11_28.types import ( RepositoryInvitationType as RepositoryInvitationType, ) + from githubkit.versions.v2022_11_28.types import ( + RepositoryPropCodeSearchIndexStatusType as RepositoryPropCodeSearchIndexStatusType, + ) from githubkit.versions.v2022_11_28.types import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -3547,6 +3574,12 @@ from githubkit.versions.v2022_11_28.types import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + ) + from githubkit.versions.v2022_11_28.types import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ) from githubkit.versions.v2022_11_28.types import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) @@ -9951,6 +9984,7 @@ "LicenseSimpleType", "RepositoryType", "RepositoryPropPermissionsType", + "RepositoryPropCodeSearchIndexStatusType", "InstallationTokenType", "ScopedInstallationType", "AuthorizationType", @@ -9983,6 +10017,19 @@ "DependabotAlertSecurityAdvisoryPropReferencesItemsType", "DependabotAlertWithRepositoryType", "DependabotAlertWithRepositoryPropDependencyType", + "SecretScanningLocationCommitType", + "SecretScanningLocationWikiCommitType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationPullRequestReviewCommentType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationPullRequestCommentType", "OrganizationSecretScanningAlertType", "MilestoneType", "IssueTypeType", @@ -10037,10 +10084,12 @@ "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropCustomPropertiesType", "ThreadType", "ThreadPropSubjectType", "ThreadSubscriptionType", "OrganizationSimpleType", + "DependabotRepositoryAccessDetailsType", "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", "OrganizationFullType", @@ -10584,6 +10633,7 @@ "RepositoryRuleDetailedOneof19Type", "RepositoryRuleDetailedOneof20Type", "SecretScanningAlertType", + "SecretScanningLocationType", "SecretScanningPushProtectionBypassType", "SecretScanningScanHistoryType", "SecretScanningScanType", @@ -12642,20 +12692,6 @@ "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", "WebhookSecretScanningAlertCreatedType", "WebhookSecretScanningAlertLocationCreatedType", - "SecretScanningLocationType", - "SecretScanningLocationCommitType", - "SecretScanningLocationWikiCommitType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestReviewCommentType", "WebhookSecretScanningAlertLocationCreatedFormEncodedType", "WebhookSecretScanningAlertPubliclyLeakedType", "WebhookSecretScanningAlertReopenedType", @@ -12853,6 +12889,8 @@ "NotificationsPutBodyType", "NotificationsPutResponse202Type", "NotificationsThreadsThreadIdSubscriptionPutBodyType", + "OrganizationsOrgDependabotRepositoryAccessPatchBodyType", + "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType", "OrgsOrgPatchBodyType", "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", @@ -12894,6 +12932,10 @@ "OrgsOrgActionsVariablesNamePatchBodyType", "OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type", "OrgsOrgActionsVariablesNameRepositoriesPutBodyType", + "OrgsOrgAttestationsBulkListPostBodyType", + "OrgsOrgAttestationsBulkListPostResponse200Type", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", "OrgsOrgAttestationsSubjectDigestGetResponse200Type", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", @@ -13278,6 +13320,8 @@ "UserSocialAccountsPostBodyType", "UserSocialAccountsDeleteBodyType", "UserSshSigningKeysPostBodyType", + "UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type", + "UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type", "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", diff --git a/githubkit/versions/v2022_11_28/models/__init__.py b/githubkit/versions/v2022_11_28/models/__init__.py index d9af18d8f..ce955ece2 100644 --- a/githubkit/versions/v2022_11_28/models/__init__.py +++ b/githubkit/versions/v2022_11_28/models/__init__.py @@ -58,6 +58,9 @@ from .group_0018 import Installation as Installation from .group_0019 import LicenseSimple as LicenseSimple from .group_0020 import Repository as Repository + from .group_0020 import ( + RepositoryPropCodeSearchIndexStatus as RepositoryPropCodeSearchIndexStatus, + ) from .group_0020 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import InstallationToken as InstallationToken from .group_0022 import ScopedInstallation as ScopedInstallation @@ -123,8448 +126,8478 @@ from .group_0037 import ( DependabotAlertWithRepositoryPropDependency as DependabotAlertWithRepositoryPropDependency, ) + from .group_0038 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0038 import ( + SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, + ) + from .group_0038 import ( + SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, + ) + from .group_0038 import ( + SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, + ) + from .group_0038 import ( + SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, + ) + from .group_0038 import ( + SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, + ) from .group_0038 import ( + SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, + ) + from .group_0039 import ( + SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, + ) + from .group_0039 import ( + SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, + ) + from .group_0039 import ( + SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, + ) + from .group_0039 import ( + SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, + ) + from .group_0040 import ( + SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, + ) + from .group_0040 import ( + SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, + ) + from .group_0041 import ( OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, ) - from .group_0039 import Milestone as Milestone - from .group_0040 import IssueType as IssueType - from .group_0041 import ReactionRollup as ReactionRollup - from .group_0042 import Issue as Issue - from .group_0042 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0042 import IssuePropPullRequest as IssuePropPullRequest - from .group_0042 import SubIssuesSummary as SubIssuesSummary - from .group_0043 import IssueComment as IssueComment - from .group_0044 import Actor as Actor - from .group_0044 import Event as Event - from .group_0044 import EventPropPayload as EventPropPayload - from .group_0044 import ( + from .group_0042 import Milestone as Milestone + from .group_0043 import IssueType as IssueType + from .group_0044 import ReactionRollup as ReactionRollup + from .group_0045 import Issue as Issue + from .group_0045 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0045 import IssuePropPullRequest as IssuePropPullRequest + from .group_0045 import SubIssuesSummary as SubIssuesSummary + from .group_0046 import IssueComment as IssueComment + from .group_0047 import Actor as Actor + from .group_0047 import Event as Event + from .group_0047 import EventPropPayload as EventPropPayload + from .group_0047 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0044 import EventPropRepo as EventPropRepo - from .group_0045 import Feed as Feed - from .group_0045 import FeedPropLinks as FeedPropLinks - from .group_0045 import LinkWithType as LinkWithType - from .group_0046 import BaseGist as BaseGist - from .group_0046 import BaseGistPropFiles as BaseGistPropFiles - from .group_0047 import GistHistory as GistHistory - from .group_0047 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0047 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0047 import ( + from .group_0047 import EventPropRepo as EventPropRepo + from .group_0048 import Feed as Feed + from .group_0048 import FeedPropLinks as FeedPropLinks + from .group_0048 import LinkWithType as LinkWithType + from .group_0049 import BaseGist as BaseGist + from .group_0049 import BaseGistPropFiles as BaseGistPropFiles + from .group_0050 import GistHistory as GistHistory + from .group_0050 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0050 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0050 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0048 import GistSimple as GistSimple - from .group_0048 import GistSimplePropFiles as GistSimplePropFiles - from .group_0048 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0048 import PublicUser as PublicUser - from .group_0048 import PublicUserPropPlan as PublicUserPropPlan - from .group_0049 import GistComment as GistComment - from .group_0050 import GistCommit as GistCommit - from .group_0050 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0051 import GitignoreTemplate as GitignoreTemplate - from .group_0052 import License as License - from .group_0053 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0054 import MarketplacePurchase as MarketplacePurchase - from .group_0055 import ( + from .group_0051 import GistSimple as GistSimple + from .group_0051 import GistSimplePropFiles as GistSimplePropFiles + from .group_0051 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0051 import PublicUser as PublicUser + from .group_0051 import PublicUserPropPlan as PublicUserPropPlan + from .group_0052 import GistComment as GistComment + from .group_0053 import GistCommit as GistCommit + from .group_0053 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0054 import GitignoreTemplate as GitignoreTemplate + from .group_0055 import License as License + from .group_0056 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0057 import MarketplacePurchase as MarketplacePurchase + from .group_0058 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0055 import ( + from .group_0058 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0056 import ApiOverview as ApiOverview - from .group_0056 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0056 import ( + from .group_0059 import ApiOverview as ApiOverview + from .group_0059 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0059 import ( ApiOverviewPropDomainsPropActionsInbound as ApiOverviewPropDomainsPropActionsInbound, ) - from .group_0056 import ( + from .group_0059 import ( ApiOverviewPropDomainsPropArtifactAttestations as ApiOverviewPropDomainsPropArtifactAttestations, ) - from .group_0056 import ( + from .group_0059 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0057 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0057 import ( + from .group_0060 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0060 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropCodeSecurity as SecurityAndAnalysisPropCodeSecurity, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanningAiDetection as SecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0058 import CodeOfConduct as CodeOfConduct - from .group_0058 import MinimalRepository as MinimalRepository - from .group_0058 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0058 import ( + from .group_0061 import CodeOfConduct as CodeOfConduct + from .group_0061 import MinimalRepository as MinimalRepository + from .group_0061 import ( + MinimalRepositoryPropCustomProperties as MinimalRepositoryPropCustomProperties, + ) + from .group_0061 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense + from .group_0061 import ( MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0059 import Thread as Thread - from .group_0059 import ThreadPropSubject as ThreadPropSubject - from .group_0060 import ThreadSubscription as ThreadSubscription - from .group_0061 import OrganizationSimple as OrganizationSimple - from .group_0062 import BillingUsageReport as BillingUsageReport - from .group_0062 import ( + from .group_0062 import Thread as Thread + from .group_0062 import ThreadPropSubject as ThreadPropSubject + from .group_0063 import ThreadSubscription as ThreadSubscription + from .group_0064 import OrganizationSimple as OrganizationSimple + from .group_0065 import ( + DependabotRepositoryAccessDetails as DependabotRepositoryAccessDetails, + ) + from .group_0066 import BillingUsageReport as BillingUsageReport + from .group_0066 import ( BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems, ) - from .group_0063 import OrganizationFull as OrganizationFull - from .group_0063 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0064 import ( + from .group_0067 import OrganizationFull as OrganizationFull + from .group_0067 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0068 import ( ActionsCacheUsageOrgEnterprise as ActionsCacheUsageOrgEnterprise, ) - from .group_0065 import ( + from .group_0069 import ( ActionsHostedRunnerMachineSpec as ActionsHostedRunnerMachineSpec, ) - from .group_0066 import ActionsHostedRunner as ActionsHostedRunner - from .group_0066 import ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage - from .group_0066 import PublicIp as PublicIp - from .group_0067 import ActionsHostedRunnerImage as ActionsHostedRunnerImage - from .group_0068 import ActionsHostedRunnerLimits as ActionsHostedRunnerLimits - from .group_0068 import ( + from .group_0070 import ActionsHostedRunner as ActionsHostedRunner + from .group_0070 import ActionsHostedRunnerPoolImage as ActionsHostedRunnerPoolImage + from .group_0070 import PublicIp as PublicIp + from .group_0071 import ActionsHostedRunnerImage as ActionsHostedRunnerImage + from .group_0072 import ActionsHostedRunnerLimits as ActionsHostedRunnerLimits + from .group_0072 import ( ActionsHostedRunnerLimitsPropPublicIps as ActionsHostedRunnerLimitsPropPublicIps, ) - from .group_0069 import OidcCustomSub as OidcCustomSub - from .group_0070 import ( + from .group_0073 import OidcCustomSub as OidcCustomSub + from .group_0074 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0071 import SelectedActions as SelectedActions - from .group_0072 import ( + from .group_0075 import SelectedActions as SelectedActions + from .group_0076 import ( ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, ) - from .group_0073 import ( + from .group_0077 import ( ActionsSetDefaultWorkflowPermissions as ActionsSetDefaultWorkflowPermissions, ) - from .group_0074 import RunnerLabel as RunnerLabel - from .group_0075 import Runner as Runner - from .group_0076 import RunnerApplication as RunnerApplication - from .group_0077 import AuthenticationToken as AuthenticationToken - from .group_0077 import ( + from .group_0078 import RunnerLabel as RunnerLabel + from .group_0079 import Runner as Runner + from .group_0080 import RunnerApplication as RunnerApplication + from .group_0081 import AuthenticationToken as AuthenticationToken + from .group_0081 import ( AuthenticationTokenPropPermissions as AuthenticationTokenPropPermissions, ) - from .group_0078 import ActionsPublicKey as ActionsPublicKey - from .group_0079 import TeamSimple as TeamSimple - from .group_0080 import Team as Team - from .group_0080 import TeamPropPermissions as TeamPropPermissions - from .group_0081 import CampaignSummary as CampaignSummary - from .group_0081 import ( + from .group_0082 import ActionsPublicKey as ActionsPublicKey + from .group_0083 import TeamSimple as TeamSimple + from .group_0084 import Team as Team + from .group_0084 import TeamPropPermissions as TeamPropPermissions + from .group_0085 import CampaignSummary as CampaignSummary + from .group_0085 import ( CampaignSummaryPropAlertStats as CampaignSummaryPropAlertStats, ) - from .group_0082 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary - from .group_0083 import CodeScanningAnalysisTool as CodeScanningAnalysisTool - from .group_0084 import CodeScanningAlertInstance as CodeScanningAlertInstance - from .group_0084 import ( + from .group_0086 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary + from .group_0087 import CodeScanningAnalysisTool as CodeScanningAnalysisTool + from .group_0088 import CodeScanningAlertInstance as CodeScanningAlertInstance + from .group_0088 import ( CodeScanningAlertInstancePropMessage as CodeScanningAlertInstancePropMessage, ) - from .group_0084 import CodeScanningAlertLocation as CodeScanningAlertLocation - from .group_0085 import ( + from .group_0088 import CodeScanningAlertLocation as CodeScanningAlertLocation + from .group_0089 import ( CodeScanningOrganizationAlertItems as CodeScanningOrganizationAlertItems, ) - from .group_0086 import CodespaceMachine as CodespaceMachine - from .group_0087 import Codespace as Codespace - from .group_0087 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0087 import ( + from .group_0090 import CodespaceMachine as CodespaceMachine + from .group_0091 import Codespace as Codespace + from .group_0091 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0091 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0088 import CodespacesPublicKey as CodespacesPublicKey - from .group_0089 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0089 import ( + from .group_0092 import CodespacesPublicKey as CodespacesPublicKey + from .group_0093 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0093 import ( CopilotOrganizationSeatBreakdown as CopilotOrganizationSeatBreakdown, ) - from .group_0090 import CopilotSeatDetails as CopilotSeatDetails - from .group_0090 import EnterpriseTeam as EnterpriseTeam - from .group_0090 import ( + from .group_0094 import CopilotSeatDetails as CopilotSeatDetails + from .group_0094 import EnterpriseTeam as EnterpriseTeam + from .group_0094 import ( OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, ) - from .group_0091 import CopilotDotcomChat as CopilotDotcomChat - from .group_0091 import ( + from .group_0095 import CopilotDotcomChat as CopilotDotcomChat + from .group_0095 import ( CopilotDotcomChatPropModelsItems as CopilotDotcomChatPropModelsItems, ) - from .group_0091 import CopilotDotcomPullRequests as CopilotDotcomPullRequests - from .group_0091 import ( + from .group_0095 import CopilotDotcomPullRequests as CopilotDotcomPullRequests + from .group_0095 import ( CopilotDotcomPullRequestsPropRepositoriesItems as CopilotDotcomPullRequestsPropRepositoriesItems, ) - from .group_0091 import ( + from .group_0095 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems, ) - from .group_0091 import CopilotIdeChat as CopilotIdeChat - from .group_0091 import ( + from .group_0095 import CopilotIdeChat as CopilotIdeChat + from .group_0095 import ( CopilotIdeChatPropEditorsItems as CopilotIdeChatPropEditorsItems, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeChatPropEditorsItemsPropModelsItems as CopilotIdeChatPropEditorsItemsPropModelsItems, ) - from .group_0091 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions - from .group_0091 import ( + from .group_0095 import CopilotIdeCodeCompletions as CopilotIdeCodeCompletions + from .group_0095 import ( CopilotIdeCodeCompletionsPropEditorsItems as CopilotIdeCodeCompletionsPropEditorsItems, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeCodeCompletionsPropLanguagesItems as CopilotIdeCodeCompletionsPropLanguagesItems, ) - from .group_0091 import CopilotUsageMetricsDay as CopilotUsageMetricsDay - from .group_0092 import DependabotPublicKey as DependabotPublicKey - from .group_0093 import Package as Package - from .group_0094 import OrganizationInvitation as OrganizationInvitation - from .group_0095 import OrgHook as OrgHook - from .group_0095 import OrgHookPropConfig as OrgHookPropConfig - from .group_0096 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems - from .group_0097 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems - from .group_0098 import ApiInsightsSummaryStats as ApiInsightsSummaryStats - from .group_0099 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems - from .group_0100 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems - from .group_0101 import InteractionLimitResponse as InteractionLimitResponse - from .group_0102 import InteractionLimit as InteractionLimit - from .group_0103 import OrganizationCreateIssueType as OrganizationCreateIssueType - from .group_0104 import OrganizationUpdateIssueType as OrganizationUpdateIssueType - from .group_0105 import OrgMembership as OrgMembership - from .group_0105 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0106 import Migration as Migration - from .group_0107 import OrganizationRole as OrganizationRole - from .group_0107 import ( + from .group_0095 import CopilotUsageMetricsDay as CopilotUsageMetricsDay + from .group_0096 import DependabotPublicKey as DependabotPublicKey + from .group_0097 import Package as Package + from .group_0098 import OrganizationInvitation as OrganizationInvitation + from .group_0099 import OrgHook as OrgHook + from .group_0099 import OrgHookPropConfig as OrgHookPropConfig + from .group_0100 import ApiInsightsRouteStatsItems as ApiInsightsRouteStatsItems + from .group_0101 import ApiInsightsSubjectStatsItems as ApiInsightsSubjectStatsItems + from .group_0102 import ApiInsightsSummaryStats as ApiInsightsSummaryStats + from .group_0103 import ApiInsightsTimeStatsItems as ApiInsightsTimeStatsItems + from .group_0104 import ApiInsightsUserStatsItems as ApiInsightsUserStatsItems + from .group_0105 import InteractionLimitResponse as InteractionLimitResponse + from .group_0106 import InteractionLimit as InteractionLimit + from .group_0107 import OrganizationCreateIssueType as OrganizationCreateIssueType + from .group_0108 import OrganizationUpdateIssueType as OrganizationUpdateIssueType + from .group_0109 import OrgMembership as OrgMembership + from .group_0109 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0110 import Migration as Migration + from .group_0111 import OrganizationRole as OrganizationRole + from .group_0111 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0108 import TeamRoleAssignment as TeamRoleAssignment - from .group_0108 import ( + from .group_0112 import TeamRoleAssignment as TeamRoleAssignment + from .group_0112 import ( TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, ) - from .group_0109 import UserRoleAssignment as UserRoleAssignment - from .group_0110 import PackageVersion as PackageVersion - from .group_0110 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0110 import ( + from .group_0113 import UserRoleAssignment as UserRoleAssignment + from .group_0114 import PackageVersion as PackageVersion + from .group_0114 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0114 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0110 import ( + from .group_0114 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0113 import ( + from .group_0117 import ( OrgPrivateRegistryConfigurationWithSelectedRepositories as OrgPrivateRegistryConfigurationWithSelectedRepositories, ) - from .group_0114 import Project as Project - from .group_0115 import CustomProperty as CustomProperty - from .group_0116 import CustomPropertySetPayload as CustomPropertySetPayload - from .group_0117 import CustomPropertyValue as CustomPropertyValue - from .group_0118 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0119 import CodeOfConductSimple as CodeOfConductSimple - from .group_0120 import FullRepository as FullRepository - from .group_0120 import ( + from .group_0118 import Project as Project + from .group_0119 import CustomProperty as CustomProperty + from .group_0120 import CustomPropertySetPayload as CustomPropertySetPayload + from .group_0121 import CustomPropertyValue as CustomPropertyValue + from .group_0122 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0123 import CodeOfConductSimple as CodeOfConductSimple + from .group_0124 import FullRepository as FullRepository + from .group_0124 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0120 import ( + from .group_0124 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0121 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor - from .group_0122 import RepositoryRulesetConditions as RepositoryRulesetConditions - from .group_0123 import ( + from .group_0125 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor + from .group_0126 import RepositoryRulesetConditions as RepositoryRulesetConditions + from .group_0127 import ( RepositoryRulesetConditionsPropRefName as RepositoryRulesetConditionsPropRefName, ) - from .group_0124 import ( + from .group_0128 import ( RepositoryRulesetConditionsRepositoryNameTarget as RepositoryRulesetConditionsRepositoryNameTarget, ) - from .group_0125 import ( + from .group_0129 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0126 import ( + from .group_0130 import ( RepositoryRulesetConditionsRepositoryIdTarget as RepositoryRulesetConditionsRepositoryIdTarget, ) - from .group_0127 import ( + from .group_0131 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId, ) - from .group_0128 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertyTarget as RepositoryRulesetConditionsRepositoryPropertyTarget, ) - from .group_0129 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) - from .group_0129 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0130 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 - from .group_0131 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 - from .group_0132 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 - from .group_0133 import RepositoryRuleCreation as RepositoryRuleCreation - from .group_0133 import RepositoryRuleDeletion as RepositoryRuleDeletion - from .group_0133 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward - from .group_0133 import ( + from .group_0134 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 + from .group_0135 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 + from .group_0136 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 + from .group_0137 import RepositoryRuleCreation as RepositoryRuleCreation + from .group_0137 import RepositoryRuleDeletion as RepositoryRuleDeletion + from .group_0137 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward + from .group_0137 import ( RepositoryRuleRequiredSignatures as RepositoryRuleRequiredSignatures, ) - from .group_0134 import RepositoryRuleUpdate as RepositoryRuleUpdate - from .group_0135 import ( + from .group_0138 import RepositoryRuleUpdate as RepositoryRuleUpdate + from .group_0139 import ( RepositoryRuleUpdatePropParameters as RepositoryRuleUpdatePropParameters, ) - from .group_0136 import ( + from .group_0140 import ( RepositoryRuleRequiredLinearHistory as RepositoryRuleRequiredLinearHistory, ) - from .group_0137 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue - from .group_0138 import ( + from .group_0141 import RepositoryRuleMergeQueue as RepositoryRuleMergeQueue + from .group_0142 import ( RepositoryRuleMergeQueuePropParameters as RepositoryRuleMergeQueuePropParameters, ) - from .group_0139 import ( + from .group_0143 import ( RepositoryRuleRequiredDeployments as RepositoryRuleRequiredDeployments, ) - from .group_0140 import ( + from .group_0144 import ( RepositoryRuleRequiredDeploymentsPropParameters as RepositoryRuleRequiredDeploymentsPropParameters, ) - from .group_0141 import ( + from .group_0145 import ( RepositoryRuleParamsRequiredReviewerConfiguration as RepositoryRuleParamsRequiredReviewerConfiguration, ) - from .group_0141 import RepositoryRuleParamsReviewer as RepositoryRuleParamsReviewer - from .group_0142 import RepositoryRulePullRequest as RepositoryRulePullRequest - from .group_0143 import ( + from .group_0145 import RepositoryRuleParamsReviewer as RepositoryRuleParamsReviewer + from .group_0146 import RepositoryRulePullRequest as RepositoryRulePullRequest + from .group_0147 import ( RepositoryRulePullRequestPropParameters as RepositoryRulePullRequestPropParameters, ) - from .group_0144 import ( + from .group_0148 import ( RepositoryRuleRequiredStatusChecks as RepositoryRuleRequiredStatusChecks, ) - from .group_0145 import ( + from .group_0149 import ( RepositoryRuleParamsStatusCheckConfiguration as RepositoryRuleParamsStatusCheckConfiguration, ) - from .group_0145 import ( + from .group_0149 import ( RepositoryRuleRequiredStatusChecksPropParameters as RepositoryRuleRequiredStatusChecksPropParameters, ) - from .group_0146 import ( + from .group_0150 import ( RepositoryRuleCommitMessagePattern as RepositoryRuleCommitMessagePattern, ) - from .group_0147 import ( + from .group_0151 import ( RepositoryRuleCommitMessagePatternPropParameters as RepositoryRuleCommitMessagePatternPropParameters, ) - from .group_0148 import ( + from .group_0152 import ( RepositoryRuleCommitAuthorEmailPattern as RepositoryRuleCommitAuthorEmailPattern, ) - from .group_0149 import ( + from .group_0153 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0150 import ( + from .group_0154 import ( RepositoryRuleCommitterEmailPattern as RepositoryRuleCommitterEmailPattern, ) - from .group_0151 import ( + from .group_0155 import ( RepositoryRuleCommitterEmailPatternPropParameters as RepositoryRuleCommitterEmailPatternPropParameters, ) - from .group_0152 import ( + from .group_0156 import ( RepositoryRuleBranchNamePattern as RepositoryRuleBranchNamePattern, ) - from .group_0153 import ( + from .group_0157 import ( RepositoryRuleBranchNamePatternPropParameters as RepositoryRuleBranchNamePatternPropParameters, ) - from .group_0154 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern - from .group_0155 import ( + from .group_0158 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern + from .group_0159 import ( RepositoryRuleTagNamePatternPropParameters as RepositoryRuleTagNamePatternPropParameters, ) - from .group_0156 import ( + from .group_0160 import ( RepositoryRuleFilePathRestriction as RepositoryRuleFilePathRestriction, ) - from .group_0157 import ( + from .group_0161 import ( RepositoryRuleFilePathRestrictionPropParameters as RepositoryRuleFilePathRestrictionPropParameters, ) - from .group_0158 import ( + from .group_0162 import ( RepositoryRuleMaxFilePathLength as RepositoryRuleMaxFilePathLength, ) - from .group_0159 import ( + from .group_0163 import ( RepositoryRuleMaxFilePathLengthPropParameters as RepositoryRuleMaxFilePathLengthPropParameters, ) - from .group_0160 import ( + from .group_0164 import ( RepositoryRuleFileExtensionRestriction as RepositoryRuleFileExtensionRestriction, ) - from .group_0161 import ( + from .group_0165 import ( RepositoryRuleFileExtensionRestrictionPropParameters as RepositoryRuleFileExtensionRestrictionPropParameters, ) - from .group_0162 import RepositoryRuleMaxFileSize as RepositoryRuleMaxFileSize - from .group_0163 import ( + from .group_0166 import RepositoryRuleMaxFileSize as RepositoryRuleMaxFileSize + from .group_0167 import ( RepositoryRuleMaxFileSizePropParameters as RepositoryRuleMaxFileSizePropParameters, ) - from .group_0164 import ( + from .group_0168 import ( RepositoryRuleParamsRestrictedCommits as RepositoryRuleParamsRestrictedCommits, ) - from .group_0165 import RepositoryRuleWorkflows as RepositoryRuleWorkflows - from .group_0166 import ( + from .group_0169 import RepositoryRuleWorkflows as RepositoryRuleWorkflows + from .group_0170 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0166 import ( + from .group_0170 import ( RepositoryRuleWorkflowsPropParameters as RepositoryRuleWorkflowsPropParameters, ) - from .group_0167 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning - from .group_0168 import ( + from .group_0171 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning + from .group_0172 import ( RepositoryRuleCodeScanningPropParameters as RepositoryRuleCodeScanningPropParameters, ) - from .group_0168 import ( + from .group_0172 import ( RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, ) - from .group_0169 import RepositoryRuleset as RepositoryRuleset - from .group_0169 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks - from .group_0169 import ( + from .group_0173 import RepositoryRuleset as RepositoryRuleset + from .group_0173 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0173 import ( RepositoryRulesetPropLinksPropHtml as RepositoryRulesetPropLinksPropHtml, ) - from .group_0169 import ( + from .group_0173 import ( RepositoryRulesetPropLinksPropSelf as RepositoryRulesetPropLinksPropSelf, ) - from .group_0170 import RuleSuitesItems as RuleSuitesItems - from .group_0171 import RuleSuite as RuleSuite - from .group_0171 import ( + from .group_0174 import RuleSuitesItems as RuleSuitesItems + from .group_0175 import RuleSuite as RuleSuite + from .group_0175 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0171 import ( + from .group_0175 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0172 import RulesetVersion as RulesetVersion - from .group_0173 import RulesetVersionPropActor as RulesetVersionPropActor - from .group_0174 import RulesetVersionWithState as RulesetVersionWithState - from .group_0175 import ( + from .group_0176 import RulesetVersion as RulesetVersion + from .group_0177 import RulesetVersionPropActor as RulesetVersionPropActor + from .group_0178 import RulesetVersionWithState as RulesetVersionWithState + from .group_0179 import ( RulesetVersionWithStateAllof1 as RulesetVersionWithStateAllof1, ) - from .group_0176 import ( + from .group_0180 import ( RulesetVersionWithStateAllof1PropState as RulesetVersionWithStateAllof1PropState, ) - from .group_0177 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0178 import RepositoryAdvisory as RepositoryAdvisory - from .group_0178 import ( + from .group_0181 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0182 import RepositoryAdvisory as RepositoryAdvisory + from .group_0182 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0178 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0178 import ( + from .group_0182 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0182 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0179 import ActionsBillingUsage as ActionsBillingUsage - from .group_0179 import ( + from .group_0183 import ActionsBillingUsage as ActionsBillingUsage + from .group_0183 import ( ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, ) - from .group_0180 import PackagesBillingUsage as PackagesBillingUsage - from .group_0181 import CombinedBillingUsage as CombinedBillingUsage - from .group_0182 import NetworkSettings as NetworkSettings - from .group_0183 import TeamFull as TeamFull - from .group_0183 import TeamOrganization as TeamOrganization - from .group_0183 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0184 import TeamDiscussion as TeamDiscussion - from .group_0185 import TeamDiscussionComment as TeamDiscussionComment - from .group_0186 import Reaction as Reaction - from .group_0187 import TeamMembership as TeamMembership - from .group_0188 import TeamProject as TeamProject - from .group_0188 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0189 import TeamRepository as TeamRepository - from .group_0189 import ( + from .group_0184 import PackagesBillingUsage as PackagesBillingUsage + from .group_0185 import CombinedBillingUsage as CombinedBillingUsage + from .group_0186 import NetworkSettings as NetworkSettings + from .group_0187 import TeamFull as TeamFull + from .group_0187 import TeamOrganization as TeamOrganization + from .group_0187 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0188 import TeamDiscussion as TeamDiscussion + from .group_0189 import TeamDiscussionComment as TeamDiscussionComment + from .group_0190 import Reaction as Reaction + from .group_0191 import TeamMembership as TeamMembership + from .group_0192 import TeamProject as TeamProject + from .group_0192 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0193 import TeamRepository as TeamRepository + from .group_0193 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0190 import ProjectCard as ProjectCard - from .group_0191 import ProjectColumn as ProjectColumn - from .group_0192 import ( + from .group_0194 import ProjectCard as ProjectCard + from .group_0195 import ProjectColumn as ProjectColumn + from .group_0196 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0193 import RateLimit as RateLimit - from .group_0194 import RateLimitOverview as RateLimitOverview - from .group_0195 import ( + from .group_0197 import RateLimit as RateLimit + from .group_0198 import RateLimitOverview as RateLimitOverview + from .group_0199 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0196 import Artifact as Artifact - from .group_0196 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0197 import ActionsCacheList as ActionsCacheList - from .group_0197 import ( + from .group_0200 import Artifact as Artifact + from .group_0200 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0201 import ActionsCacheList as ActionsCacheList + from .group_0201 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0198 import Job as Job - from .group_0198 import JobPropStepsItems as JobPropStepsItems - from .group_0199 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0200 import ActionsSecret as ActionsSecret - from .group_0201 import ActionsVariable as ActionsVariable - from .group_0202 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0203 import ( + from .group_0202 import Job as Job + from .group_0202 import JobPropStepsItems as JobPropStepsItems + from .group_0203 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0204 import ActionsSecret as ActionsSecret + from .group_0205 import ActionsVariable as ActionsVariable + from .group_0206 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0207 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0204 import PullRequestMinimal as PullRequestMinimal - from .group_0204 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0204 import ( + from .group_0208 import PullRequestMinimal as PullRequestMinimal + from .group_0208 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0208 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0204 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0204 import ( + from .group_0208 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0208 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0205 import SimpleCommit as SimpleCommit - from .group_0205 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0205 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0206 import ReferencedWorkflow as ReferencedWorkflow - from .group_0206 import WorkflowRun as WorkflowRun - from .group_0207 import EnvironmentApprovals as EnvironmentApprovals - from .group_0207 import ( + from .group_0209 import SimpleCommit as SimpleCommit + from .group_0209 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0209 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0210 import ReferencedWorkflow as ReferencedWorkflow + from .group_0210 import WorkflowRun as WorkflowRun + from .group_0211 import EnvironmentApprovals as EnvironmentApprovals + from .group_0211 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0208 import ( + from .group_0212 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0209 import ( + from .group_0213 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0210 import PendingDeployment as PendingDeployment - from .group_0210 import ( + from .group_0214 import PendingDeployment as PendingDeployment + from .group_0214 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0210 import ( + from .group_0214 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0211 import Deployment as Deployment - from .group_0211 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0212 import WorkflowRunUsage as WorkflowRunUsage - from .group_0212 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0212 import ( + from .group_0215 import Deployment as Deployment + from .group_0215 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0216 import WorkflowRunUsage as WorkflowRunUsage + from .group_0216 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0216 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0213 import WorkflowUsage as WorkflowUsage - from .group_0213 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0213 import ( + from .group_0217 import WorkflowUsage as WorkflowUsage + from .group_0217 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0217 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0213 import ( + from .group_0217 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0213 import ( + from .group_0217 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0214 import Activity as Activity - from .group_0215 import Autolink as Autolink - from .group_0216 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0217 import ( + from .group_0218 import Activity as Activity + from .group_0219 import Autolink as Autolink + from .group_0220 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0221 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0218 import ( + from .group_0222 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0218 import ( + from .group_0222 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0219 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0219 import ( + from .group_0223 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0223 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0220 import BranchProtection as BranchProtection - from .group_0220 import ( + from .group_0224 import BranchProtection as BranchProtection + from .group_0224 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0220 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0220 import ( + from .group_0224 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0224 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0220 import ( + from .group_0224 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0221 import ShortBranch as ShortBranch - from .group_0221 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0222 import GitUser as GitUser - from .group_0223 import Verification as Verification - from .group_0224 import DiffEntry as DiffEntry - from .group_0225 import Commit as Commit - from .group_0225 import CommitPropParentsItems as CommitPropParentsItems - from .group_0225 import CommitPropStats as CommitPropStats - from .group_0225 import EmptyObject as EmptyObject - from .group_0226 import CommitPropCommit as CommitPropCommit - from .group_0226 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0227 import BranchWithProtection as BranchWithProtection - from .group_0227 import ( + from .group_0225 import ShortBranch as ShortBranch + from .group_0225 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0226 import GitUser as GitUser + from .group_0227 import Verification as Verification + from .group_0228 import DiffEntry as DiffEntry + from .group_0229 import Commit as Commit + from .group_0229 import CommitPropParentsItems as CommitPropParentsItems + from .group_0229 import CommitPropStats as CommitPropStats + from .group_0229 import EmptyObject as EmptyObject + from .group_0230 import CommitPropCommit as CommitPropCommit + from .group_0230 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0231 import BranchWithProtection as BranchWithProtection + from .group_0231 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0228 import ProtectedBranch as ProtectedBranch - from .group_0228 import ( + from .group_0232 import ProtectedBranch as ProtectedBranch + from .group_0232 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0228 import StatusCheckPolicy as StatusCheckPolicy - from .group_0228 import ( + from .group_0232 import StatusCheckPolicy as StatusCheckPolicy + from .group_0232 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0229 import ( + from .group_0233 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0230 import ( + from .group_0234 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0230 import ( + from .group_0234 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0231 import DeploymentSimple as DeploymentSimple - from .group_0232 import CheckRun as CheckRun - from .group_0232 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0232 import CheckRunPropOutput as CheckRunPropOutput - from .group_0233 import CheckAnnotation as CheckAnnotation - from .group_0234 import CheckSuite as CheckSuite - from .group_0234 import ( + from .group_0235 import DeploymentSimple as DeploymentSimple + from .group_0236 import CheckRun as CheckRun + from .group_0236 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0236 import CheckRunPropOutput as CheckRunPropOutput + from .group_0237 import CheckAnnotation as CheckAnnotation + from .group_0238 import CheckSuite as CheckSuite + from .group_0238 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0235 import CheckSuitePreference as CheckSuitePreference - from .group_0235 import ( + from .group_0239 import CheckSuitePreference as CheckSuitePreference + from .group_0239 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0235 import ( + from .group_0239 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0236 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0237 import CodeScanningAlert as CodeScanningAlert - from .group_0237 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0238 import CodeScanningAutofix as CodeScanningAutofix - from .group_0239 import CodeScanningAutofixCommits as CodeScanningAutofixCommits - from .group_0240 import ( + from .group_0240 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0241 import CodeScanningAlert as CodeScanningAlert + from .group_0241 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0242 import CodeScanningAutofix as CodeScanningAutofix + from .group_0243 import CodeScanningAutofixCommits as CodeScanningAutofixCommits + from .group_0244 import ( CodeScanningAutofixCommitsResponse as CodeScanningAutofixCommitsResponse, ) - from .group_0241 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0242 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0243 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0244 import ( + from .group_0245 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0246 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0247 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0248 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0245 import ( + from .group_0249 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0246 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0247 import ( + from .group_0250 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0251 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0248 import ( + from .group_0252 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0248 import ( + from .group_0252 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0249 import ( + from .group_0253 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0250 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0251 import ( + from .group_0254 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0255 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0252 import ( + from .group_0256 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0253 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0254 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0255 import ( + from .group_0257 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0258 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0259 import ( CodeSecurityConfigurationForRepository as CodeSecurityConfigurationForRepository, ) - from .group_0256 import CodeownersErrors as CodeownersErrors - from .group_0256 import ( + from .group_0260 import CodeownersErrors as CodeownersErrors + from .group_0260 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0257 import ( + from .group_0261 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0258 import RepositoryInvitation as RepositoryInvitation - from .group_0259 import Collaborator as Collaborator - from .group_0259 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0259 import ( + from .group_0262 import RepositoryInvitation as RepositoryInvitation + from .group_0263 import Collaborator as Collaborator + from .group_0263 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0263 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0260 import CommitComment as CommitComment - from .group_0260 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0261 import BranchShort as BranchShort - from .group_0261 import BranchShortPropCommit as BranchShortPropCommit - from .group_0262 import Link as Link - from .group_0263 import AutoMerge as AutoMerge - from .group_0264 import PullRequestSimple as PullRequestSimple - from .group_0264 import ( + from .group_0264 import CommitComment as CommitComment + from .group_0264 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0265 import BranchShort as BranchShort + from .group_0265 import BranchShortPropCommit as BranchShortPropCommit + from .group_0266 import Link as Link + from .group_0267 import AutoMerge as AutoMerge + from .group_0268 import PullRequestSimple as PullRequestSimple + from .group_0268 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0265 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0265 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0266 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0267 import CombinedCommitStatus as CombinedCommitStatus - from .group_0267 import SimpleCommitStatus as SimpleCommitStatus - from .group_0268 import Status as Status - from .group_0269 import CommunityHealthFile as CommunityHealthFile - from .group_0269 import CommunityProfile as CommunityProfile - from .group_0269 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0270 import CommitComparison as CommitComparison - from .group_0271 import ContentTree as ContentTree - from .group_0271 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0271 import ( + from .group_0269 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0269 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0270 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0271 import CombinedCommitStatus as CombinedCommitStatus + from .group_0271 import SimpleCommitStatus as SimpleCommitStatus + from .group_0272 import Status as Status + from .group_0273 import CommunityHealthFile as CommunityHealthFile + from .group_0273 import CommunityProfile as CommunityProfile + from .group_0273 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0274 import CommitComparison as CommitComparison + from .group_0275 import ContentTree as ContentTree + from .group_0275 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0275 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0271 import ContentTreePropLinks as ContentTreePropLinks - from .group_0272 import ContentDirectoryItems as ContentDirectoryItems - from .group_0272 import ( + from .group_0275 import ContentTreePropLinks as ContentTreePropLinks + from .group_0276 import ContentDirectoryItems as ContentDirectoryItems + from .group_0276 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0273 import ContentFile as ContentFile - from .group_0273 import ContentFilePropLinks as ContentFilePropLinks - from .group_0274 import ContentSymlink as ContentSymlink - from .group_0274 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0275 import ContentSubmodule as ContentSubmodule - from .group_0275 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0276 import FileCommit as FileCommit - from .group_0276 import FileCommitPropCommit as FileCommitPropCommit - from .group_0276 import ( + from .group_0277 import ContentFile as ContentFile + from .group_0277 import ContentFilePropLinks as ContentFilePropLinks + from .group_0278 import ContentSymlink as ContentSymlink + from .group_0278 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0279 import ContentSubmodule as ContentSubmodule + from .group_0279 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0280 import FileCommit as FileCommit + from .group_0280 import FileCommitPropCommit as FileCommitPropCommit + from .group_0280 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0276 import ( + from .group_0280 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0276 import ( + from .group_0280 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0276 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0276 import ( + from .group_0280 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0280 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0276 import FileCommitPropContent as FileCommitPropContent - from .group_0276 import ( + from .group_0280 import FileCommitPropContent as FileCommitPropContent + from .group_0280 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0277 import RepositoryRuleViolationError as RepositoryRuleViolationError - from .group_0277 import ( + from .group_0281 import RepositoryRuleViolationError as RepositoryRuleViolationError + from .group_0281 import ( RepositoryRuleViolationErrorPropMetadata as RepositoryRuleViolationErrorPropMetadata, ) - from .group_0277 import ( + from .group_0281 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanning as RepositoryRuleViolationErrorPropMetadataPropSecretScanning, ) - from .group_0277 import ( + from .group_0281 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems, ) - from .group_0278 import Contributor as Contributor - from .group_0279 import DependabotAlert as DependabotAlert - from .group_0280 import ( + from .group_0282 import Contributor as Contributor + from .group_0283 import DependabotAlert as DependabotAlert + from .group_0284 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0281 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0281 import ( + from .group_0285 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0285 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0282 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0282 import ( + from .group_0286 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0286 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItems as DependencyGraphSpdxSbomPropSbomPropRelationshipsItems, ) - from .group_0283 import Metadata as Metadata - from .group_0284 import Dependency as Dependency - from .group_0285 import Manifest as Manifest - from .group_0285 import ManifestPropFile as ManifestPropFile - from .group_0285 import ManifestPropResolved as ManifestPropResolved - from .group_0286 import Snapshot as Snapshot - from .group_0286 import SnapshotPropDetector as SnapshotPropDetector - from .group_0286 import SnapshotPropJob as SnapshotPropJob - from .group_0286 import SnapshotPropManifests as SnapshotPropManifests - from .group_0287 import DeploymentStatus as DeploymentStatus - from .group_0288 import ( + from .group_0287 import Metadata as Metadata + from .group_0288 import Dependency as Dependency + from .group_0289 import Manifest as Manifest + from .group_0289 import ManifestPropFile as ManifestPropFile + from .group_0289 import ManifestPropResolved as ManifestPropResolved + from .group_0290 import Snapshot as Snapshot + from .group_0290 import SnapshotPropDetector as SnapshotPropDetector + from .group_0290 import SnapshotPropJob as SnapshotPropJob + from .group_0290 import SnapshotPropManifests as SnapshotPropManifests + from .group_0291 import DeploymentStatus as DeploymentStatus + from .group_0292 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0289 import Environment as Environment - from .group_0289 import ( + from .group_0293 import Environment as Environment + from .group_0293 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0289 import ( + from .group_0293 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0289 import ( + from .group_0293 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0290 import ( + from .group_0294 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0291 import ( + from .group_0295 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0292 import ( + from .group_0296 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0293 import ( + from .group_0297 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0294 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0295 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0295 import ( + from .group_0298 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0299 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0299 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0296 import ShortBlob as ShortBlob - from .group_0297 import Blob as Blob - from .group_0298 import GitCommit as GitCommit - from .group_0298 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0298 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0298 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0298 import GitCommitPropTree as GitCommitPropTree - from .group_0298 import GitCommitPropVerification as GitCommitPropVerification - from .group_0299 import GitRef as GitRef - from .group_0299 import GitRefPropObject as GitRefPropObject - from .group_0300 import GitTag as GitTag - from .group_0300 import GitTagPropObject as GitTagPropObject - from .group_0300 import GitTagPropTagger as GitTagPropTagger - from .group_0301 import GitTree as GitTree - from .group_0301 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0302 import HookResponse as HookResponse - from .group_0303 import Hook as Hook - from .group_0304 import Import as Import - from .group_0304 import ( + from .group_0300 import ShortBlob as ShortBlob + from .group_0301 import Blob as Blob + from .group_0302 import GitCommit as GitCommit + from .group_0302 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0302 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0302 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0302 import GitCommitPropTree as GitCommitPropTree + from .group_0302 import GitCommitPropVerification as GitCommitPropVerification + from .group_0303 import GitRef as GitRef + from .group_0303 import GitRefPropObject as GitRefPropObject + from .group_0304 import GitTag as GitTag + from .group_0304 import GitTagPropObject as GitTagPropObject + from .group_0304 import GitTagPropTagger as GitTagPropTagger + from .group_0305 import GitTree as GitTree + from .group_0305 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0306 import HookResponse as HookResponse + from .group_0307 import Hook as Hook + from .group_0308 import Import as Import + from .group_0308 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0305 import PorterAuthor as PorterAuthor - from .group_0306 import PorterLargeFile as PorterLargeFile - from .group_0307 import IssueEvent as IssueEvent - from .group_0307 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0307 import IssueEventLabel as IssueEventLabel - from .group_0307 import IssueEventMilestone as IssueEventMilestone - from .group_0307 import IssueEventProjectCard as IssueEventProjectCard - from .group_0307 import IssueEventRename as IssueEventRename - from .group_0308 import LabeledIssueEvent as LabeledIssueEvent - from .group_0308 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0309 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0309 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0310 import AssignedIssueEvent as AssignedIssueEvent - from .group_0311 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0312 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0312 import ( + from .group_0309 import PorterAuthor as PorterAuthor + from .group_0310 import PorterLargeFile as PorterLargeFile + from .group_0311 import IssueEvent as IssueEvent + from .group_0311 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0311 import IssueEventLabel as IssueEventLabel + from .group_0311 import IssueEventMilestone as IssueEventMilestone + from .group_0311 import IssueEventProjectCard as IssueEventProjectCard + from .group_0311 import IssueEventRename as IssueEventRename + from .group_0312 import LabeledIssueEvent as LabeledIssueEvent + from .group_0312 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0313 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0313 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0314 import AssignedIssueEvent as AssignedIssueEvent + from .group_0315 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0316 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0316 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0313 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0313 import ( + from .group_0317 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0317 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0314 import RenamedIssueEvent as RenamedIssueEvent - from .group_0314 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0315 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0316 import ( + from .group_0318 import RenamedIssueEvent as RenamedIssueEvent + from .group_0318 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0319 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0320 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0317 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0317 import ( + from .group_0321 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0321 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0318 import LockedIssueEvent as LockedIssueEvent - from .group_0319 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0319 import ( + from .group_0322 import LockedIssueEvent as LockedIssueEvent + from .group_0323 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0323 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0320 import ( + from .group_0324 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0320 import ( + from .group_0324 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0321 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0321 import ( + from .group_0325 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0325 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0322 import ( + from .group_0326 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0322 import ( + from .group_0326 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0323 import TimelineCommentEvent as TimelineCommentEvent - from .group_0324 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0325 import ( + from .group_0327 import TimelineCommentEvent as TimelineCommentEvent + from .group_0328 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0329 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0326 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0326 import ( + from .group_0330 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0330 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0327 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0327 import ( + from .group_0331 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0331 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0327 import ( + from .group_0331 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0327 import ( + from .group_0331 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0328 import PullRequestReviewComment as PullRequestReviewComment - from .group_0328 import ( + from .group_0332 import PullRequestReviewComment as PullRequestReviewComment + from .group_0332 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0328 import ( + from .group_0332 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0328 import ( + from .group_0332 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0328 import ( + from .group_0332 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0328 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0329 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0330 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0331 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0332 import DeployKey as DeployKey - from .group_0333 import Language as Language - from .group_0334 import LicenseContent as LicenseContent - from .group_0334 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0335 import MergedUpstream as MergedUpstream - from .group_0336 import Page as Page - from .group_0336 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0336 import PagesSourceHash as PagesSourceHash - from .group_0337 import PageBuild as PageBuild - from .group_0337 import PageBuildPropError as PageBuildPropError - from .group_0338 import PageBuildStatus as PageBuildStatus - from .group_0339 import PageDeployment as PageDeployment - from .group_0340 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0341 import PagesHealthCheck as PagesHealthCheck - from .group_0341 import ( + from .group_0332 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0333 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0334 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0335 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0336 import DeployKey as DeployKey + from .group_0337 import Language as Language + from .group_0338 import LicenseContent as LicenseContent + from .group_0338 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0339 import MergedUpstream as MergedUpstream + from .group_0340 import Page as Page + from .group_0340 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0340 import PagesSourceHash as PagesSourceHash + from .group_0341 import PageBuild as PageBuild + from .group_0341 import PageBuildPropError as PageBuildPropError + from .group_0342 import PageBuildStatus as PageBuildStatus + from .group_0343 import PageDeployment as PageDeployment + from .group_0344 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0345 import PagesHealthCheck as PagesHealthCheck + from .group_0345 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0341 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0342 import PullRequest as PullRequest - from .group_0343 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0344 import PullRequestPropBase as PullRequestPropBase - from .group_0344 import PullRequestPropHead as PullRequestPropHead - from .group_0345 import PullRequestPropLinks as PullRequestPropLinks - from .group_0346 import PullRequestMergeResult as PullRequestMergeResult - from .group_0347 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0348 import PullRequestReview as PullRequestReview - from .group_0348 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0348 import ( + from .group_0345 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0346 import PullRequest as PullRequest + from .group_0347 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0348 import PullRequestPropBase as PullRequestPropBase + from .group_0348 import PullRequestPropHead as PullRequestPropHead + from .group_0349 import PullRequestPropLinks as PullRequestPropLinks + from .group_0350 import PullRequestMergeResult as PullRequestMergeResult + from .group_0351 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0352 import PullRequestReview as PullRequestReview + from .group_0352 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0352 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0348 import ( + from .group_0352 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0349 import ReviewComment as ReviewComment - from .group_0350 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0351 import ReleaseAsset as ReleaseAsset - from .group_0352 import Release as Release - from .group_0353 import ReleaseNotesContent as ReleaseNotesContent - from .group_0354 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0355 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0356 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0357 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0358 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0359 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0360 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0361 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0362 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0363 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0364 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0365 import ( + from .group_0353 import ReviewComment as ReviewComment + from .group_0354 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0355 import ReleaseAsset as ReleaseAsset + from .group_0356 import Release as Release + from .group_0357 import ReleaseNotesContent as ReleaseNotesContent + from .group_0358 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0359 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0360 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0361 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0362 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0363 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0364 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0365 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0366 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0367 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0368 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0369 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0366 import ( + from .group_0370 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0367 import ( + from .group_0371 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0368 import ( + from .group_0372 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0369 import ( + from .group_0373 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0370 import ( + from .group_0374 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0371 import ( + from .group_0375 import ( RepositoryRuleDetailedOneof16 as RepositoryRuleDetailedOneof16, ) - from .group_0372 import ( + from .group_0376 import ( RepositoryRuleDetailedOneof17 as RepositoryRuleDetailedOneof17, ) - from .group_0373 import ( + from .group_0377 import ( RepositoryRuleDetailedOneof18 as RepositoryRuleDetailedOneof18, ) - from .group_0374 import ( + from .group_0378 import ( RepositoryRuleDetailedOneof19 as RepositoryRuleDetailedOneof19, ) - from .group_0375 import ( + from .group_0379 import ( RepositoryRuleDetailedOneof20 as RepositoryRuleDetailedOneof20, ) - from .group_0376 import SecretScanningAlert as SecretScanningAlert - from .group_0377 import ( + from .group_0380 import SecretScanningAlert as SecretScanningAlert + from .group_0381 import SecretScanningLocation as SecretScanningLocation + from .group_0382 import ( SecretScanningPushProtectionBypass as SecretScanningPushProtectionBypass, ) - from .group_0378 import SecretScanningScan as SecretScanningScan - from .group_0378 import SecretScanningScanHistory as SecretScanningScanHistory - from .group_0378 import ( + from .group_0383 import SecretScanningScan as SecretScanningScan + from .group_0383 import SecretScanningScanHistory as SecretScanningScanHistory + from .group_0383 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItems as SecretScanningScanHistoryPropCustomPatternBackfillScansItems, ) - from .group_0379 import ( + from .group_0384 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1 as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1, ) - from .group_0380 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0380 import ( + from .group_0385 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0385 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0380 import ( + from .group_0385 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0380 import ( + from .group_0385 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0381 import ( + from .group_0386 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0381 import ( + from .group_0386 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0381 import ( + from .group_0386 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0382 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0382 import ( + from .group_0387 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0387 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0382 import ( + from .group_0387 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0382 import ( + from .group_0387 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0383 import Stargazer as Stargazer - from .group_0384 import CommitActivity as CommitActivity - from .group_0385 import ContributorActivity as ContributorActivity - from .group_0385 import ( + from .group_0388 import Stargazer as Stargazer + from .group_0389 import CommitActivity as CommitActivity + from .group_0390 import ContributorActivity as ContributorActivity + from .group_0390 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0386 import ParticipationStats as ParticipationStats - from .group_0387 import RepositorySubscription as RepositorySubscription - from .group_0388 import Tag as Tag - from .group_0388 import TagPropCommit as TagPropCommit - from .group_0389 import TagProtection as TagProtection - from .group_0390 import Topic as Topic - from .group_0391 import Traffic as Traffic - from .group_0392 import CloneTraffic as CloneTraffic - from .group_0393 import ContentTraffic as ContentTraffic - from .group_0394 import ReferrerTraffic as ReferrerTraffic - from .group_0395 import ViewTraffic as ViewTraffic - from .group_0396 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0396 import ( + from .group_0391 import ParticipationStats as ParticipationStats + from .group_0392 import RepositorySubscription as RepositorySubscription + from .group_0393 import Tag as Tag + from .group_0393 import TagPropCommit as TagPropCommit + from .group_0394 import TagProtection as TagProtection + from .group_0395 import Topic as Topic + from .group_0396 import Traffic as Traffic + from .group_0397 import CloneTraffic as CloneTraffic + from .group_0398 import ContentTraffic as ContentTraffic + from .group_0399 import ReferrerTraffic as ReferrerTraffic + from .group_0400 import ViewTraffic as ViewTraffic + from .group_0401 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0401 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0397 import CodeSearchResultItem as CodeSearchResultItem - from .group_0397 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0398 import CommitSearchResultItem as CommitSearchResultItem - from .group_0398 import ( + from .group_0402 import CodeSearchResultItem as CodeSearchResultItem + from .group_0402 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0403 import CommitSearchResultItem as CommitSearchResultItem + from .group_0403 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0398 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0399 import ( + from .group_0403 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0404 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0399 import ( + from .group_0404 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0399 import ( + from .group_0404 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0400 import IssueSearchResultItem as IssueSearchResultItem - from .group_0400 import ( + from .group_0405 import IssueSearchResultItem as IssueSearchResultItem + from .group_0405 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0400 import ( + from .group_0405 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0400 import ( + from .group_0405 import ( IssueSearchResultItemPropSubIssuesSummary as IssueSearchResultItemPropSubIssuesSummary, ) - from .group_0400 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0401 import LabelSearchResultItem as LabelSearchResultItem - from .group_0401 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0402 import RepoSearchResultItem as RepoSearchResultItem - from .group_0402 import ( + from .group_0405 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0406 import LabelSearchResultItem as LabelSearchResultItem + from .group_0406 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0407 import RepoSearchResultItem as RepoSearchResultItem + from .group_0407 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0402 import ( + from .group_0407 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0403 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0403 import TopicSearchResultItem as TopicSearchResultItem - from .group_0403 import ( + from .group_0408 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0408 import TopicSearchResultItem as TopicSearchResultItem + from .group_0408 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0403 import ( + from .group_0408 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0403 import ( + from .group_0408 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0403 import ( + from .group_0408 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0404 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0404 import UserSearchResultItem as UserSearchResultItem - from .group_0405 import PrivateUser as PrivateUser - from .group_0405 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0406 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0407 import CodespaceExportDetails as CodespaceExportDetails - from .group_0408 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0408 import ( + from .group_0409 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0409 import UserSearchResultItem as UserSearchResultItem + from .group_0410 import PrivateUser as PrivateUser + from .group_0410 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0411 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0412 import CodespaceExportDetails as CodespaceExportDetails + from .group_0413 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0413 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0408 import ( + from .group_0413 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0409 import Email as Email - from .group_0410 import GpgKey as GpgKey - from .group_0410 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0410 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0410 import ( + from .group_0414 import Email as Email + from .group_0415 import GpgKey as GpgKey + from .group_0415 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0415 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0415 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0411 import Key as Key - from .group_0412 import MarketplaceAccount as MarketplaceAccount - from .group_0412 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0413 import SocialAccount as SocialAccount - from .group_0414 import SshSigningKey as SshSigningKey - from .group_0415 import StarredRepository as StarredRepository - from .group_0416 import Hovercard as Hovercard - from .group_0416 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0417 import KeySimple as KeySimple - from .group_0418 import BillingUsageReportUser as BillingUsageReportUser - from .group_0418 import ( + from .group_0416 import Key as Key + from .group_0417 import MarketplaceAccount as MarketplaceAccount + from .group_0417 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0418 import SocialAccount as SocialAccount + from .group_0419 import SshSigningKey as SshSigningKey + from .group_0420 import StarredRepository as StarredRepository + from .group_0421 import Hovercard as Hovercard + from .group_0421 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0422 import KeySimple as KeySimple + from .group_0423 import BillingUsageReportUser as BillingUsageReportUser + from .group_0423 import ( BillingUsageReportUserPropUsageItemsItems as BillingUsageReportUserPropUsageItemsItems, ) - from .group_0419 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0420 import SimpleInstallation as SimpleInstallation - from .group_0421 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0422 import RepositoryWebhooks as RepositoryWebhooks - from .group_0422 import ( + from .group_0424 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0425 import SimpleInstallation as SimpleInstallation + from .group_0426 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0427 import RepositoryWebhooks as RepositoryWebhooks + from .group_0427 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0423 import WebhooksRule as WebhooksRule - from .group_0424 import SimpleCheckSuite as SimpleCheckSuite - from .group_0425 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0425 import ( + from .group_0428 import WebhooksRule as WebhooksRule + from .group_0429 import SimpleCheckSuite as SimpleCheckSuite + from .group_0430 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0430 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0426 import WebhooksDeployKey as WebhooksDeployKey - from .group_0427 import WebhooksWorkflow as WebhooksWorkflow - from .group_0428 import WebhooksApprover as WebhooksApprover - from .group_0428 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0428 import ( + from .group_0431 import WebhooksDeployKey as WebhooksDeployKey + from .group_0432 import WebhooksWorkflow as WebhooksWorkflow + from .group_0433 import WebhooksApprover as WebhooksApprover + from .group_0433 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0433 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0429 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0430 import WebhooksUser as WebhooksUser - from .group_0431 import WebhooksAnswer as WebhooksAnswer - from .group_0431 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0431 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0432 import Discussion as Discussion - from .group_0432 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0432 import DiscussionPropCategory as DiscussionPropCategory - from .group_0432 import DiscussionPropReactions as DiscussionPropReactions - from .group_0432 import DiscussionPropUser as DiscussionPropUser - from .group_0432 import Label as Label - from .group_0433 import WebhooksComment as WebhooksComment - from .group_0433 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0433 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0434 import WebhooksLabel as WebhooksLabel - from .group_0435 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0436 import ( + from .group_0434 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0435 import WebhooksUser as WebhooksUser + from .group_0436 import WebhooksAnswer as WebhooksAnswer + from .group_0436 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0436 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0437 import Discussion as Discussion + from .group_0437 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0437 import DiscussionPropCategory as DiscussionPropCategory + from .group_0437 import DiscussionPropReactions as DiscussionPropReactions + from .group_0437 import DiscussionPropUser as DiscussionPropUser + from .group_0437 import Label as Label + from .group_0438 import WebhooksComment as WebhooksComment + from .group_0438 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0438 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0439 import WebhooksLabel as WebhooksLabel + from .group_0440 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0441 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0437 import WebhooksIssueComment as WebhooksIssueComment - from .group_0437 import ( + from .group_0442 import WebhooksIssueComment as WebhooksIssueComment + from .group_0442 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0437 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0438 import WebhooksChanges as WebhooksChanges - from .group_0438 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0439 import WebhooksIssue as WebhooksIssue - from .group_0439 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0439 import ( + from .group_0442 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0443 import WebhooksChanges as WebhooksChanges + from .group_0443 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0444 import WebhooksIssue as WebhooksIssue + from .group_0444 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0444 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0439 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0439 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0439 import ( + from .group_0444 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0444 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0444 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0439 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0439 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0439 import ( + from .group_0444 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0444 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0444 import ( WebhooksIssuePropSubIssuesSummary as WebhooksIssuePropSubIssuesSummary, ) - from .group_0439 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0440 import WebhooksMilestone as WebhooksMilestone - from .group_0440 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0441 import WebhooksIssue2 as WebhooksIssue2 - from .group_0441 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0441 import ( + from .group_0444 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0445 import WebhooksMilestone as WebhooksMilestone + from .group_0445 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0446 import WebhooksIssue2 as WebhooksIssue2 + from .group_0446 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0446 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0441 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0441 import ( + from .group_0446 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0446 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0441 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0441 import ( + from .group_0446 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0446 import ( WebhooksIssue2PropSubIssuesSummary as WebhooksIssue2PropSubIssuesSummary, ) - from .group_0441 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0442 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0443 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0443 import ( + from .group_0446 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0447 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0448 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0448 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0443 import ( + from .group_0448 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0445 import WebhooksTeam as WebhooksTeam - from .group_0445 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0446 import MergeGroup as MergeGroup - from .group_0447 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0447 import ( + from .group_0450 import WebhooksTeam as WebhooksTeam + from .group_0450 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0451 import MergeGroup as MergeGroup + from .group_0452 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0452 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0448 import WebhooksMembership as WebhooksMembership - from .group_0448 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0449 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0449 import ( + from .group_0453 import WebhooksMembership as WebhooksMembership + from .group_0453 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0454 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0450 import WebhooksProjectCard as WebhooksProjectCard - from .group_0450 import ( + from .group_0455 import WebhooksProjectCard as WebhooksProjectCard + from .group_0455 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0451 import WebhooksProject as WebhooksProject - from .group_0451 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0452 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0453 import ProjectsV2 as ProjectsV2 - from .group_0454 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0454 import ( + from .group_0456 import WebhooksProject as WebhooksProject + from .group_0456 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0457 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0458 import ProjectsV2 as ProjectsV2 + from .group_0459 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0459 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0455 import ProjectsV2Item as ProjectsV2Item - from .group_0456 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate - from .group_0457 import PullRequestWebhook as PullRequestWebhook - from .group_0458 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0459 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0459 import ( + from .group_0460 import ProjectsV2Item as ProjectsV2Item + from .group_0461 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0462 import PullRequestWebhook as PullRequestWebhook + from .group_0463 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0464 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0464 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0459 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0459 import ( + from .group_0464 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0459 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0459 import ( + from .group_0464 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0459 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0460 import WebhooksReviewComment as WebhooksReviewComment - from .group_0460 import ( + from .group_0464 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0465 import WebhooksReviewComment as WebhooksReviewComment + from .group_0465 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0461 import WebhooksReview as WebhooksReview - from .group_0461 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0461 import ( + from .group_0466 import WebhooksReview as WebhooksReview + from .group_0466 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0466 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0461 import ( + from .group_0466 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0461 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0462 import WebhooksRelease as WebhooksRelease - from .group_0462 import ( + from .group_0466 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0467 import WebhooksRelease as WebhooksRelease + from .group_0467 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0462 import ( + from .group_0467 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0462 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0462 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0463 import WebhooksRelease1 as WebhooksRelease1 - from .group_0463 import ( + from .group_0467 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0467 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0468 import WebhooksRelease1 as WebhooksRelease1 + from .group_0468 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0463 import ( + from .group_0468 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0463 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0463 import ( + from .group_0468 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0468 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0464 import WebhooksAlert as WebhooksAlert - from .group_0464 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0465 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0466 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0466 import ( + from .group_0469 import WebhooksAlert as WebhooksAlert + from .group_0469 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0470 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0471 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0471 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0467 import WebhooksSponsorship as WebhooksSponsorship - from .group_0467 import ( + from .group_0472 import WebhooksSponsorship as WebhooksSponsorship + from .group_0472 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0467 import ( + from .group_0472 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0467 import ( + from .group_0472 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0467 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0468 import WebhooksChanges8 as WebhooksChanges8 - from .group_0468 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0468 import ( + from .group_0472 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0473 import WebhooksChanges8 as WebhooksChanges8 + from .group_0473 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0473 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0469 import WebhooksTeam1 as WebhooksTeam1 - from .group_0469 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0470 import ( + from .group_0474 import WebhooksTeam1 as WebhooksTeam1 + from .group_0474 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0475 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0471 import ( + from .group_0476 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0472 import ( + from .group_0477 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0473 import ( + from .group_0478 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, ) - from .group_0475 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0476 import ( + from .group_0480 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0481 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0477 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0478 import ( + from .group_0482 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0483 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0481 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0482 import ( + from .group_0486 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0487 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0483 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0483 import ( + from .group_0488 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0484 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0484 import ( + from .group_0489 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0485 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0485 import ( + from .group_0490 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0492 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0492 import ( + from .group_0497 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0497 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0492 import ( + from .group_0497 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0492 import ( + from .group_0497 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0493 import WebhookCreate as WebhookCreate - from .group_0494 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0495 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0495 import ( + from .group_0498 import WebhookCreate as WebhookCreate + from .group_0499 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0500 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0500 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0496 import ( + from .group_0501 import ( WebhookCustomPropertyPromotedToEnterprise as WebhookCustomPropertyPromotedToEnterprise, ) - from .group_0497 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0498 import ( + from .group_0502 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0503 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0499 import WebhookDelete as WebhookDelete - from .group_0500 import ( + from .group_0504 import WebhookDelete as WebhookDelete + from .group_0505 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0504 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0505 import ( + from .group_0509 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0510 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0506 import ( + from .group_0511 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0507 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0508 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0509 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0509 import ( + from .group_0512 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0513 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0514 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0514 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0510 import ( + from .group_0515 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0515 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0516 import ( + from .group_0520 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0521 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0517 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0518 import ( + from .group_0522 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0523 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0519 import ( + from .group_0524 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0520 import ( + from .group_0525 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0520 import ( + from .group_0525 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0520 import ( + from .group_0525 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0521 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0522 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0523 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0523 import ( + from .group_0526 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0527 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0528 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0528 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0523 import ( + from .group_0528 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0523 import ( + from .group_0528 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0524 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0525 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0526 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0527 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0528 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0529 import ( + from .group_0529 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0530 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0531 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0532 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0533 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0534 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0530 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0531 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0532 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0533 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0534 import WebhookFork as WebhookFork - from .group_0535 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0535 import ( + from .group_0535 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0536 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0537 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0538 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0539 import WebhookFork as WebhookFork + from .group_0540 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0540 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0535 import ( + from .group_0540 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0536 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0536 import ( + from .group_0541 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0541 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0536 import ( + from .group_0541 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0537 import ( + from .group_0542 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0538 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0538 import ( + from .group_0543 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0543 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0538 import ( + from .group_0543 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0539 import ( + from .group_0544 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0540 import WebhookGollum as WebhookGollum - from .group_0540 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0541 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0542 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0543 import ( + from .group_0545 import WebhookGollum as WebhookGollum + from .group_0545 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0546 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0547 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0548 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0544 import ( + from .group_0549 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0544 import ( + from .group_0549 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0545 import ( + from .group_0550 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0545 import ( + from .group_0550 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0546 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0547 import ( + from .group_0551 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0552 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0548 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0549 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0550 import ( + from .group_0553 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0554 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0555 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0550 import ( + from .group_0555 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0550 import ( + from .group_0555 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0554 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0555 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0557 import ( + from .group_0562 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0560 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0561 import ( + from .group_0566 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0562 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0563 import ( + from .group_0567 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0568 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0566 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0567 import ( + from .group_0572 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0568 import ( + from .group_0573 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0568 import ( + from .group_0573 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0570 import ( + from .group_0575 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0572 import ( + from .group_0577 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0573 import ( + from .group_0578 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0574 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0575 import ( + from .group_0579 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0580 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0578 import ( + from .group_0583 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0579 import ( + from .group_0584 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0580 import ( + from .group_0585 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0580 import ( + from .group_0585 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0582 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0586 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0587 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0588 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0588 import ( + from .group_0591 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0592 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0593 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0591 import ( + from .group_0596 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0594 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0594 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0597 import ( + from .group_0602 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0598 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0599 import ( + from .group_0603 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0604 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummary as WebhookIssuesDeletedPropIssuePropSubIssuesSummary, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0600 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0601 import ( + from .group_0605 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0606 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0602 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0602 import ( + from .group_0607 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0607 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0602 import ( + from .group_0607 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0602 import ( + from .group_0607 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0603 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0603 import ( + from .group_0608 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0608 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummary as WebhookIssuesEditedPropIssuePropSubIssuesSummary, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0604 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0605 import ( + from .group_0609 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0610 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummary as WebhookIssuesLabeledPropIssuePropSubIssuesSummary, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0606 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0607 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0607 import ( + from .group_0611 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0612 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0612 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummary as WebhookIssuesLockedPropIssuePropSubIssuesSummary, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0608 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0609 import ( + from .group_0613 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0614 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummary as WebhookIssuesMilestonedPropIssuePropSubIssuesSummary, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0610 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0611 import ( + from .group_0615 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0616 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0613 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0613 import ( + from .group_0618 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummary as WebhookIssuesOpenedPropIssuePropSubIssuesSummary, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0614 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0615 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0616 import ( + from .group_0619 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0620 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0621 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummary as WebhookIssuesReopenedPropIssuePropSubIssuesSummary, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0617 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0618 import ( + from .group_0622 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0623 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0620 import WebhookIssuesTyped as WebhookIssuesTyped - from .group_0621 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0622 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0623 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0624 import ( + from .group_0625 import WebhookIssuesTyped as WebhookIssuesTyped + from .group_0626 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0627 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0628 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0629 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummary as WebhookIssuesUnlockedPropIssuePropSubIssuesSummary, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0625 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0626 import WebhookIssuesUntyped as WebhookIssuesUntyped - from .group_0627 import WebhookLabelCreated as WebhookLabelCreated - from .group_0628 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0629 import WebhookLabelEdited as WebhookLabelEdited - from .group_0629 import ( + from .group_0630 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0631 import WebhookIssuesUntyped as WebhookIssuesUntyped + from .group_0632 import WebhookLabelCreated as WebhookLabelCreated + from .group_0633 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0634 import WebhookLabelEdited as WebhookLabelEdited + from .group_0634 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0629 import ( + from .group_0634 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0629 import ( + from .group_0634 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0629 import ( + from .group_0634 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0630 import ( + from .group_0635 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0634 import ( + from .group_0639 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0635 import WebhookMemberAdded as WebhookMemberAdded - from .group_0635 import ( + from .group_0640 import WebhookMemberAdded as WebhookMemberAdded + from .group_0640 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0635 import ( + from .group_0640 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0635 import ( + from .group_0640 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0636 import WebhookMemberEdited as WebhookMemberEdited - from .group_0636 import ( + from .group_0641 import WebhookMemberEdited as WebhookMemberEdited + from .group_0641 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0636 import ( + from .group_0641 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0636 import ( + from .group_0641 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0637 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0638 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0638 import ( + from .group_0642 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0643 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0643 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0639 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0639 import ( + from .group_0644 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0644 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0640 import ( + from .group_0645 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0641 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0642 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0642 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0642 import ( + from .group_0646 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0647 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0647 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0647 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0643 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0644 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0645 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0646 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0646 import ( + from .group_0648 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0649 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0650 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0651 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0651 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0646 import ( + from .group_0651 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0646 import ( + from .group_0651 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0646 import ( + from .group_0651 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0647 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0648 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0649 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0650 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0651 import ( + from .group_0652 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0653 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0654 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0655 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0656 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0652 import ( + from .group_0657 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0652 import ( + from .group_0657 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0652 import ( + from .group_0657 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0653 import ( + from .group_0658 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0654 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0654 import ( + from .group_0659 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0659 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0654 import ( + from .group_0659 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0655 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0655 import ( + from .group_0660 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0660 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0655 import ( + from .group_0660 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0655 import ( + from .group_0660 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0656 import WebhookPackagePublished as WebhookPackagePublished - from .group_0657 import ( + from .group_0661 import WebhookPackagePublished as WebhookPackagePublished + from .group_0662 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0657 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0657 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0659 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0660 import ( + from .group_0664 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0665 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0660 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0660 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0662 import WebhookPageBuild as WebhookPageBuild - from .group_0662 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0662 import ( + from .group_0667 import WebhookPageBuild as WebhookPageBuild + from .group_0667 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0667 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0662 import ( + from .group_0667 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0663 import ( + from .group_0668 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0664 import ( + from .group_0669 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0665 import ( + from .group_0670 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0666 import ( + from .group_0671 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0667 import WebhookPing as WebhookPing - from .group_0668 import WebhookPingPropHook as WebhookPingPropHook - from .group_0668 import ( + from .group_0672 import WebhookPing as WebhookPing + from .group_0673 import WebhookPingPropHook as WebhookPingPropHook + from .group_0673 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0669 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0670 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0670 import ( + from .group_0674 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0675 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0675 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0670 import ( + from .group_0675 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0671 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0672 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0672 import ( + from .group_0676 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0677 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0677 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0672 import ( + from .group_0677 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0673 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0673 import ( + from .group_0678 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0678 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0673 import ( + from .group_0678 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0674 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0674 import ( + from .group_0679 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0679 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0674 import ( + from .group_0679 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0674 import ( + from .group_0679 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0674 import ( + from .group_0679 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0675 import ( + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0675 import ( + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0676 import ( + from .group_0681 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0676 import ( + from .group_0681 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0677 import WebhookProjectClosed as WebhookProjectClosed - from .group_0678 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0679 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0680 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0680 import ( + from .group_0682 import WebhookProjectClosed as WebhookProjectClosed + from .group_0683 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0684 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0685 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0685 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0680 import ( + from .group_0685 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0681 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0682 import WebhookProjectCreated as WebhookProjectCreated - from .group_0683 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0684 import WebhookProjectEdited as WebhookProjectEdited - from .group_0684 import ( + from .group_0686 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0687 import WebhookProjectCreated as WebhookProjectCreated + from .group_0688 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0689 import WebhookProjectEdited as WebhookProjectEdited + from .group_0689 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0684 import ( + from .group_0689 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0684 import ( + from .group_0689 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0685 import WebhookProjectReopened as WebhookProjectReopened - from .group_0686 import ( + from .group_0690 import WebhookProjectReopened as WebhookProjectReopened + from .group_0691 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0687 import ( + from .group_0692 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0688 import ( + from .group_0693 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0690 import ( + from .group_0695 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0691 import ( + from .group_0696 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0691 import ( + from .group_0696 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0691 import ( + from .group_0696 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0692 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0693 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0694 import ProjectsV2IterationSetting as ProjectsV2IterationSetting - from .group_0694 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption - from .group_0694 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0694 import ( + from .group_0697 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0698 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0699 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0699 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0699 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0695 import ( + from .group_0700 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0695 import ( + from .group_0700 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0695 import ( + from .group_0700 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0696 import ( + from .group_0701 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0697 import ( + from .group_0702 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0698 import ( + from .group_0703 import ( WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, ) - from .group_0699 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, ) - from .group_0701 import WebhookPublic as WebhookPublic - from .group_0702 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0702 import ( + from .group_0706 import WebhookPublic as WebhookPublic + from .group_0707 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0705 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0706 import ( + from .group_0710 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0711 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0707 import ( + from .group_0712 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0708 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0708 import ( + from .group_0713 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0709 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0709 import ( + from .group_0714 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0714 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0710 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0710 import ( + from .group_0715 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0711 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0711 import ( + from .group_0716 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0712 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0712 import ( + from .group_0717 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0717 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0713 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0714 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0715 import ( + from .group_0718 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0719 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0720 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0716 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0717 import ( + from .group_0721 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0722 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0730 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0730 import ( + from .group_0735 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0731 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0731 import ( + from .group_0736 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0732 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0732 import ( + from .group_0737 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0733 import WebhookPush as WebhookPush - from .group_0733 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0733 import ( + from .group_0738 import WebhookPush as WebhookPush + from .group_0738 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0738 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0733 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0733 import ( + from .group_0738 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0738 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0733 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0733 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0733 import ( + from .group_0738 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0738 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0738 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0734 import ( + from .group_0739 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0735 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0735 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0735 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0737 import ( + from .group_0742 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0738 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0738 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0738 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0740 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0741 import WebhookReleaseDeleted as WebhookReleaseDeleted - from .group_0742 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0742 import ( + from .group_0745 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0746 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0747 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0747 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesPropTagName as WebhookReleaseEditedPropChangesPropTagName, ) - from .group_0743 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0743 import ( + from .group_0748 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0748 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0744 import WebhookReleasePublished as WebhookReleasePublished - from .group_0745 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0746 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0747 import ( + from .group_0749 import WebhookReleasePublished as WebhookReleasePublished + from .group_0750 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0751 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0752 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0748 import ( + from .group_0753 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0749 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0750 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0751 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0752 import ( + from .group_0754 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0755 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0756 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0757 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0752 import ( + from .group_0757 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0753 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0753 import ( + from .group_0758 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0758 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0754 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0755 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0756 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0757 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0757 import ( + from .group_0759 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0760 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0761 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0762 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0762 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0757 import ( + from .group_0762 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0757 import ( + from .group_0762 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0758 import ( + from .group_0763 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0759 import ( + from .group_0764 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0760 import ( + from .group_0765 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0761 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0761 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0761 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0762 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0764 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0766 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0766 import ( + from .group_0771 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0771 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0767 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0768 import ( + from .group_0772 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0769 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0769 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0769 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0770 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0771 import ( + from .group_0776 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0771 import ( + from .group_0776 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0771 import ( + from .group_0776 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0772 import ( + from .group_0777 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0773 import SecretScanningLocation as SecretScanningLocation - from .group_0773 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0773 import ( - SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, - ) - from .group_0773 import ( - SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, - ) - from .group_0773 import ( - SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, - ) - from .group_0773 import ( - SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, - ) - from .group_0773 import ( - SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, - ) - from .group_0773 import ( - SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, - ) - from .group_0773 import ( - SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, - ) - from .group_0773 import ( + from .group_0778 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0774 import ( + from .group_0779 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0775 import ( + from .group_0780 import ( WebhookSecretScanningAlertPubliclyLeaked as WebhookSecretScanningAlertPubliclyLeaked, ) - from .group_0776 import ( + from .group_0781 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0777 import ( + from .group_0782 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0778 import ( + from .group_0783 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0779 import ( + from .group_0784 import ( WebhookSecretScanningScanCompleted as WebhookSecretScanningScanCompleted, ) - from .group_0780 import ( + from .group_0785 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0781 import ( + from .group_0786 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0782 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0784 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0785 import ( + from .group_0789 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0790 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0786 import ( + from .group_0791 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0787 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0788 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0789 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0789 import ( + from .group_0792 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0793 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0794 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0794 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0789 import ( + from .group_0794 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0790 import ( + from .group_0795 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0791 import ( + from .group_0796 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0792 import ( + from .group_0797 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0793 import WebhookStarCreated as WebhookStarCreated - from .group_0794 import WebhookStarDeleted as WebhookStarDeleted - from .group_0795 import WebhookStatus as WebhookStatus - from .group_0795 import ( + from .group_0798 import WebhookStarCreated as WebhookStarCreated + from .group_0799 import WebhookStarDeleted as WebhookStarDeleted + from .group_0800 import WebhookStatus as WebhookStatus + from .group_0800 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0795 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0795 import ( + from .group_0800 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0800 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0796 import ( + from .group_0801 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0797 import ( + from .group_0802 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0798 import ( + from .group_0803 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0799 import ( + from .group_0804 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0800 import ( + from .group_0805 import ( WebhookSubIssuesParentIssueAdded as WebhookSubIssuesParentIssueAdded, ) - from .group_0801 import ( + from .group_0806 import ( WebhookSubIssuesParentIssueRemoved as WebhookSubIssuesParentIssueRemoved, ) - from .group_0802 import ( + from .group_0807 import ( WebhookSubIssuesSubIssueAdded as WebhookSubIssuesSubIssueAdded, ) - from .group_0803 import ( + from .group_0808 import ( WebhookSubIssuesSubIssueRemoved as WebhookSubIssuesSubIssueRemoved, ) - from .group_0804 import WebhookTeamAdd as WebhookTeamAdd - from .group_0805 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0805 import ( + from .group_0809 import WebhookTeamAdd as WebhookTeamAdd + from .group_0810 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0806 import WebhookTeamCreated as WebhookTeamCreated - from .group_0806 import ( + from .group_0811 import WebhookTeamCreated as WebhookTeamCreated + from .group_0811 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0807 import WebhookTeamDeleted as WebhookTeamDeleted - from .group_0807 import ( + from .group_0812 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0812 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0808 import WebhookTeamEdited as WebhookTeamEdited - from .group_0808 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0808 import ( + from .group_0813 import WebhookTeamEdited as WebhookTeamEdited + from .group_0813 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0813 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0810 import WebhookWatchStarted as WebhookWatchStarted - from .group_0811 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0811 import ( + from .group_0815 import WebhookWatchStarted as WebhookWatchStarted + from .group_0816 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0816 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0812 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0812 import ( + from .group_0817 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0812 import ( + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0813 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0813 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0814 import ( + from .group_0819 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0814 import ( + from .group_0819 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0815 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0815 import ( + from .group_0820 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0815 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0816 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0816 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0817 import ( + from .group_0822 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0817 import ( + from .group_0822 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0818 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_0818 import ( + from .group_0823 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_0823 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0818 import ( + from .group_0823 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0819 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0819 import ( + from .group_0824 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0824 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0819 import ( + from .group_0824 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0820 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0820 import ( + from .group_0825 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0821 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0821 import ( + from .group_0826 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0822 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0822 import ( + from .group_0827 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0823 import ( + from .group_0828 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0824 import ( + from .group_0829 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0825 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0826 import ( + from .group_0830 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0831 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0827 import ( + from .group_0832 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0828 import ( + from .group_0833 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0829 import ( + from .group_0834 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0830 import ( + from .group_0835 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0831 import ( + from .group_0836 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0832 import ( + from .group_0837 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0833 import CredentialsRevokePostBody as CredentialsRevokePostBody - from .group_0834 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0835 import ( + from .group_0838 import CredentialsRevokePostBody as CredentialsRevokePostBody + from .group_0839 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsPostBody, ) - from .group_0835 import ( + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0836 import ( + from .group_0841 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0836 import ( + from .group_0841 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0837 import ( + from .group_0842 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0838 import ( + from .group_0843 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0839 import ( + from .group_0844 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0840 import ( + from .group_0845 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503 as EnterprisesEnterpriseSecretScanningAlertsGetResponse503, ) - from .group_0841 import GistsPostBody as GistsPostBody - from .group_0841 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0842 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0842 import ( + from .group_0846 import GistsPostBody as GistsPostBody + from .group_0846 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0847 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0847 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0843 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0843 import ( + from .group_0848 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0848 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0844 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0845 import ( + from .group_0849 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0850 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0846 import ( + from .group_0851 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0847 import ( + from .group_0852 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0848 import MarkdownPostBody as MarkdownPostBody - from .group_0849 import NotificationsPutBody as NotificationsPutBody - from .group_0850 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0851 import ( + from .group_0853 import MarkdownPostBody as MarkdownPostBody + from .group_0854 import NotificationsPutBody as NotificationsPutBody + from .group_0855 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0856 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0852 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0853 import ( + from .group_0857 import ( + OrganizationsOrgDependabotRepositoryAccessPatchBody as OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) + from .group_0858 import ( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + from .group_0859 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0860 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0853 import ( + from .group_0860 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0854 import ( + from .group_0861 import ( OrgsOrgActionsHostedRunnersGetResponse200 as OrgsOrgActionsHostedRunnersGetResponse200, ) - from .group_0855 import ( + from .group_0862 import ( OrgsOrgActionsHostedRunnersPostBody as OrgsOrgActionsHostedRunnersPostBody, ) - from .group_0855 import ( + from .group_0862 import ( OrgsOrgActionsHostedRunnersPostBodyPropImage as OrgsOrgActionsHostedRunnersPostBodyPropImage, ) - from .group_0856 import ( + from .group_0863 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200 as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200, ) - from .group_0857 import ( + from .group_0864 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200 as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200, ) - from .group_0858 import ( + from .group_0865 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200 as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200, ) - from .group_0859 import ( + from .group_0866 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200 as OrgsOrgActionsHostedRunnersPlatformsGetResponse200, ) - from .group_0860 import ( + from .group_0867 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody, ) - from .group_0861 import ( + from .group_0868 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0862 import ( + from .group_0869 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0863 import ( + from .group_0870 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0864 import ( + from .group_0871 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0864 import RunnerGroupsOrg as RunnerGroupsOrg - from .group_0865 import ( + from .group_0871 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0872 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0866 import ( + from .group_0873 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0867 import ( + from .group_0874 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200, ) - from .group_0868 import ( + from .group_0875 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0869 import ( + from .group_0876 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0870 import ( + from .group_0877 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0871 import ( + from .group_0878 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0872 import ( + from .group_0879 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0873 import ( + from .group_0880 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0874 import ( + from .group_0881 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201 as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0875 import ( + from .group_0882 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0876 import ( + from .group_0883 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0877 import ( + from .group_0884 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0878 import ( + from .group_0885 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0879 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0879 import ( + from .group_0886 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0886 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0880 import ( + from .group_0887 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0881 import ( + from .group_0888 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0882 import ( + from .group_0889 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0883 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0883 import ( + from .group_0890 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0890 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0884 import ( + from .group_0891 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0885 import ( + from .group_0892 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0886 import ( + from .group_0893 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0887 import ( + from .group_0894 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0888 import ( + from .group_0895 import ( + OrgsOrgAttestationsBulkListPostBody as OrgsOrgAttestationsBulkListPostBody, + ) + from .group_0896 import ( + OrgsOrgAttestationsBulkListPostResponse200 as OrgsOrgAttestationsBulkListPostResponse200, + ) + from .group_0896 import ( + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests, + ) + from .group_0896 import ( + OrgsOrgAttestationsBulkListPostResponse200PropPageInfo as OrgsOrgAttestationsBulkListPostResponse200PropPageInfo, + ) + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_0889 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody - from .group_0889 import ( + from .group_0898 import OrgsOrgCampaignsPostBody as OrgsOrgCampaignsPostBody + from .group_0898 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems, ) - from .group_0890 import ( + from .group_0899 import ( OrgsOrgCampaignsCampaignNumberPatchBody as OrgsOrgCampaignsCampaignNumberPatchBody, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0892 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBody as OrgsOrgCodeSecurityConfigurationsDetachDeleteBody, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems, ) - from .group_0894 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, ) - from .group_0895 import ( + from .group_0904 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, ) - from .group_0896 import ( + from .group_0905 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, ) - from .group_0897 import ( + from .group_0906 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0898 import ( + from .group_0907 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0899 import ( + from .group_0908 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0900 import ( + from .group_0909 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0901 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_0901 import ( + from .group_0910 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_0910 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0902 import ( + from .group_0911 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0903 import ( + from .group_0912 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0904 import ( + from .group_0913 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0905 import ( + from .group_0914 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0906 import ( + from .group_0915 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0907 import ( + from .group_0916 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0908 import ( + from .group_0917 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0909 import ( + from .group_0918 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0910 import ( + from .group_0919 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0911 import ( + from .group_0920 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0912 import ( + from .group_0921 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0913 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_0913 import ( + from .group_0922 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0922 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0914 import ( + from .group_0923 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0915 import ( + from .group_0924 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0916 import ( + from .group_0925 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0917 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0917 import ( + from .group_0926 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0926 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_0918 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_0918 import ( + from .group_0927 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0927 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0919 import ( + from .group_0928 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0920 import ( + from .group_0929 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0921 import ( + from .group_0930 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0922 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0923 import ( + from .group_0931 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0932 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0924 import ( + from .group_0933 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0925 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody - from .group_0926 import ( + from .group_0934 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0935 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0927 import ( + from .group_0936 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0928 import ( + from .group_0937 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0929 import ( + from .group_0938 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0930 import ( + from .group_0939 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0931 import ( + from .group_0940 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0932 import ( + from .group_0941 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0933 import ( + from .group_0942 import ( OrgPrivateRegistryConfiguration as OrgPrivateRegistryConfiguration, ) - from .group_0933 import ( + from .group_0942 import ( OrgsOrgPrivateRegistriesGetResponse200 as OrgsOrgPrivateRegistriesGetResponse200, ) - from .group_0934 import ( + from .group_0943 import ( OrgsOrgPrivateRegistriesPostBody as OrgsOrgPrivateRegistriesPostBody, ) - from .group_0935 import ( + from .group_0944 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200 as OrgsOrgPrivateRegistriesPublicKeyGetResponse200, ) - from .group_0936 import ( + from .group_0945 import ( OrgsOrgPrivateRegistriesSecretNamePatchBody as OrgsOrgPrivateRegistriesSecretNamePatchBody, ) - from .group_0937 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0938 import ( + from .group_0946 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0947 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0939 import ( + from .group_0948 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0940 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0940 import ( + from .group_0949 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0949 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0941 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0942 import ( + from .group_0950 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0951 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0943 import NetworkConfiguration as NetworkConfiguration - from .group_0943 import ( + from .group_0952 import NetworkConfiguration as NetworkConfiguration + from .group_0952 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200 as OrgsOrgSettingsNetworkConfigurationsGetResponse200, ) - from .group_0944 import ( + from .group_0953 import ( OrgsOrgSettingsNetworkConfigurationsPostBody as OrgsOrgSettingsNetworkConfigurationsPostBody, ) - from .group_0945 import ( + from .group_0954 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody, ) - from .group_0946 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0947 import ( + from .group_0955 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_0956 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_0948 import ( + from .group_0957 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0949 import ( + from .group_0958 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0950 import ( + from .group_0959 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0951 import ( + from .group_0960 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0952 import ( + from .group_0961 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0953 import ( + from .group_0962 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0954 import ( + from .group_0963 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0955 import ( + from .group_0964 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0956 import ( + from .group_0965 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0957 import ( + from .group_0966 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0958 import ( + from .group_0967 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0959 import ( + from .group_0968 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0960 import ( + from .group_0969 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_0961 import ( + from .group_0970 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0962 import ( + from .group_0971 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0963 import ( + from .group_0972 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0963 import ( + from .group_0972 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0964 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0964 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0965 import ( + from .group_0974 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0966 import ( + from .group_0975 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0967 import ( + from .group_0976 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0968 import ( + from .group_0977 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0968 import ( + from .group_0977 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0969 import ( + from .group_0978 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_0970 import ( + from .group_0979 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0971 import ( + from .group_0980 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_0972 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_0973 import ( + from .group_0981 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_0982 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_0974 import ( + from .group_0983 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0975 import ( + from .group_0984 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_0976 import ( + from .group_0985 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0977 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody - from .group_0977 import ( + from .group_0986 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0978 import ( + from .group_0987 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0979 import ( + from .group_0988 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0980 import ( + from .group_0989 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0981 import ( + from .group_0990 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_0982 import ( + from .group_0991 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0983 import ( + from .group_0992 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0984 import ( + from .group_0993 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0985 import ( + from .group_0994 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0986 import ( + from .group_0995 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0987 import ( + from .group_0996 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0988 import ( + from .group_0997 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_0989 import ( + from .group_0998 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_0990 import ( + from .group_0999 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_0991 import ( + from .group_1000 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_0992 import ( + from .group_1001 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_0993 import ( + from .group_1002 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_0994 import ( + from .group_1003 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_0995 import ( + from .group_1004 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_0996 import ( + from .group_1005 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_0997 import ( + from .group_1006 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_0998 import ( + from .group_1007 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_0999 import ( + from .group_1008 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1000 import ( + from .group_1009 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1000 import Workflow as Workflow - from .group_1001 import ( + from .group_1009 import Workflow as Workflow + from .group_1010 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_1001 import ( + from .group_1010 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_1002 import ( + from .group_1011 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, ) - from .group_1004 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) - from .group_1006 import ( + from .group_1015 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_1008 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_1008 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_1008 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_1009 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_1009 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_1010 import ( + from .group_1019 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1011 import ( + from .group_1020 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1012 import ( + from .group_1021 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_1013 import ( + from .group_1022 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody, ) - from .group_1014 import ( + from .group_1023 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody, ) - from .group_1015 import ( + from .group_1024 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody, ) - from .group_1016 import ( + from .group_1025 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_1017 import ( + from .group_1026 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_1018 import ( + from .group_1027 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_1019 import ( + from .group_1028 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody, ) - from .group_1020 import ( + from .group_1029 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody, ) - from .group_1021 import ( + from .group_1030 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody, ) - from .group_1022 import ( + from .group_1031 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1024 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_1025 import ( + from .group_1034 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_1027 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_1028 import ( + from .group_1037 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_1029 import ( + from .group_1038 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1030 import ( + from .group_1039 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_1030 import ( + from .group_1039 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_1031 import ( + from .group_1040 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_1032 import ( + from .group_1041 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1033 import ( + from .group_1042 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_1034 import ( + from .group_1043 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_1035 import ( + from .group_1044 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_1036 import ( + from .group_1045 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_1037 import ( + from .group_1046 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1038 import ( + from .group_1047 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1039 import ( + from .group_1048 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1039 import ( + from .group_1048 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_1040 import ( + from .group_1049 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1041 import ( + from .group_1050 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1041 import ( + from .group_1050 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1042 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1042 import ( + from .group_1051 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1051 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1043 import ( + from .group_1052 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1044 import ( + from .group_1053 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1045 import ( + from .group_1054 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1046 import ( + from .group_1055 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1047 import ( + from .group_1056 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1048 import ( + from .group_1057 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1049 import ( + from .group_1058 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1049 import ( + from .group_1058 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1049 import ( + from .group_1058 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1050 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1050 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1050 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1051 import ( + from .group_1060 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1052 import DependabotSecret as DependabotSecret - from .group_1052 import ( + from .group_1061 import DependabotSecret as DependabotSecret + from .group_1061 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1053 import ( + from .group_1062 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1054 import ( + from .group_1063 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1055 import ( + from .group_1064 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1055 import ( + from .group_1064 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1056 import ( + from .group_1065 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1057 import ( + from .group_1066 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1058 import ( + from .group_1067 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1058 import ( + from .group_1067 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1059 import ( + from .group_1068 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1059 import ( + from .group_1068 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1060 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1060 import ( + from .group_1069 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1069 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_1061 import ( + from .group_1070 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_1062 import ( + from .group_1071 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_1063 import ( + from .group_1072 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_1064 import ( + from .group_1073 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1065 import ( + from .group_1074 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_1066 import ( + from .group_1075 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1067 import ( + from .group_1076 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_1068 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1069 import ( + from .group_1077 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1078 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1070 import ( + from .group_1079 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1070 import ( + from .group_1079 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1070 import ( + from .group_1079 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1071 import ( + from .group_1080 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1072 import ( + from .group_1081 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1073 import ( + from .group_1082 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1073 import ( + from .group_1082 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1074 import ( + from .group_1083 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1074 import ( + from .group_1083 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1075 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1075 import ( + from .group_1084 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1084 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1076 import ( + from .group_1085 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1077 import ( + from .group_1086 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1078 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1079 import ( + from .group_1087 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1088 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) - from .group_1080 import ( + from .group_1089 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1081 import ( + from .group_1090 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1082 import ( + from .group_1091 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1083 import ( + from .group_1092 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1084 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1084 import ( + from .group_1093 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1093 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1085 import ( + from .group_1094 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1086 import ( + from .group_1095 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1087 import ( + from .group_1096 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1087 import ( + from .group_1096 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1088 import ( + from .group_1097 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1089 import ( + from .group_1098 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1090 import ( + from .group_1099 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1091 import ( + from .group_1100 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1092 import ( + from .group_1101 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1092 import ( + from .group_1101 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1093 import ( + from .group_1102 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1094 import ( + from .group_1103 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1095 import ( + from .group_1104 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1095 import ( + from .group_1104 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_1096 import ( + from .group_1105 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1097 import ( + from .group_1106 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1098 import ( + from .group_1107 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1099 import ( + from .group_1108 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody, ) - from .group_1100 import ( + from .group_1109 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody, ) - from .group_1101 import ( + from .group_1110 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody, ) - from .group_1102 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1103 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1104 import ( + from .group_1111 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1112 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1113 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1105 import ( + from .group_1114 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1106 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1107 import ( + from .group_1115 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1116 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1108 import ( + from .group_1117 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1109 import ( + from .group_1118 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) - from .group_1110 import ( + from .group_1119 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1111 import ( + from .group_1120 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1112 import ( + from .group_1121 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1113 import ( + from .group_1122 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1114 import ( + from .group_1123 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1115 import ( + from .group_1124 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1116 import ( + from .group_1125 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1117 import ( + from .group_1126 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1118 import ( + from .group_1127 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1119 import ( + from .group_1128 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1120 import ( + from .group_1129 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1121 import ( + from .group_1130 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1122 import ( + from .group_1131 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1123 import ( + from .group_1132 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_1124 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1125 import ( + from .group_1133 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1134 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1126 import ( + from .group_1135 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_1127 import ( + from .group_1136 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1128 import ( + from .group_1137 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1129 import ( + from .group_1138 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_1130 import ( + from .group_1139 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1131 import ( + from .group_1140 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1132 import ( + from .group_1141 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1133 import ( + from .group_1142 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1134 import ( + from .group_1143 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1135 import ( + from .group_1144 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1136 import ( + from .group_1145 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1137 import ( + from .group_1146 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1137 import ( + from .group_1146 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1138 import ( + from .group_1147 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_1139 import ( + from .group_1148 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_1140 import ( + from .group_1149 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_1141 import ( + from .group_1150 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1142 import ( + from .group_1151 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1143 import ( + from .group_1152 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1144 import ( + from .group_1153 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1145 import ( + from .group_1154 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1146 import ( + from .group_1155 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) - from .group_1147 import ( + from .group_1156 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_1148 import ( + from .group_1157 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1149 import ( + from .group_1158 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1150 import ( + from .group_1159 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1151 import ( + from .group_1160 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody, ) - from .group_1152 import ( + from .group_1161 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1153 import ( + from .group_1162 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) - from .group_1154 import ( + from .group_1163 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1155 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody - from .group_1156 import ( + from .group_1164 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_1165 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1157 import ( + from .group_1166 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1158 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1159 import ( + from .group_1167 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1168 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) - from .group_1160 import ( + from .group_1169 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_1161 import ( + from .group_1170 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1162 import ( + from .group_1171 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_1163 import ( + from .group_1172 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1164 import ( + from .group_1173 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_1165 import ( + from .group_1174 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_1166 import ( + from .group_1175 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1167 import ( + from .group_1176 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1168 import ( + from .group_1177 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) - from .group_1169 import UserPatchBody as UserPatchBody - from .group_1170 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1171 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1172 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1172 import ( + from .group_1178 import UserPatchBody as UserPatchBody + from .group_1179 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1180 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1181 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1181 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_1173 import CodespacesSecret as CodespacesSecret - from .group_1173 import ( + from .group_1182 import CodespacesSecret as CodespacesSecret + from .group_1182 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) - from .group_1174 import ( + from .group_1183 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_1175 import ( + from .group_1184 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1176 import ( + from .group_1185 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_1177 import ( + from .group_1186 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) - from .group_1178 import ( + from .group_1187 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_1179 import ( + from .group_1188 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from .group_1180 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1181 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 - from .group_1182 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1183 import UserGpgKeysPostBody as UserGpgKeysPostBody - from .group_1184 import ( + from .group_1189 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1190 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_1191 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1192 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_1193 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1185 import ( + from .group_1194 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_1186 import ( + from .group_1195 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from .group_1187 import UserKeysPostBody as UserKeysPostBody - from .group_1188 import ( + from .group_1196 import UserKeysPostBody as UserKeysPostBody + from .group_1197 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_1189 import UserMigrationsPostBody as UserMigrationsPostBody - from .group_1190 import UserProjectsPostBody as UserProjectsPostBody - from .group_1191 import UserReposPostBody as UserReposPostBody - from .group_1192 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1193 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_1194 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody - from .group_1195 import ( + from .group_1198 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_1199 import UserProjectsPostBody as UserProjectsPostBody + from .group_1200 import UserReposPostBody as UserReposPostBody + from .group_1201 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1202 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_1203 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_1204 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof0 as UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + ) + from .group_1205 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof1 as UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, ) else: @@ -8613,6 +8646,7 @@ ".group_0020": ( "Repository", "RepositoryPropPermissions", + "RepositoryPropCodeSearchIndexStatus", ), ".group_0021": ("InstallationToken",), ".group_0022": ("ScopedInstallation",), @@ -8658,67 +8692,86 @@ ), ".group_0036": ("DependabotAlertWithRepository",), ".group_0037": ("DependabotAlertWithRepositoryPropDependency",), - ".group_0038": ("OrganizationSecretScanningAlert",), - ".group_0039": ("Milestone",), - ".group_0040": ("IssueType",), - ".group_0041": ("ReactionRollup",), - ".group_0042": ( + ".group_0038": ( + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueBody", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + ), + ".group_0039": ( + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestReviewComment", + ), + ".group_0040": ( + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", + ), + ".group_0041": ("OrganizationSecretScanningAlert",), + ".group_0042": ("Milestone",), + ".group_0043": ("IssueType",), + ".group_0044": ("ReactionRollup",), + ".group_0045": ( "Issue", "SubIssuesSummary", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0043": ("IssueComment",), - ".group_0044": ( + ".group_0046": ("IssueComment",), + ".group_0047": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0045": ( + ".group_0048": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0046": ( + ".group_0049": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0047": ( + ".group_0050": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0048": ( + ".group_0051": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0049": ("GistComment",), - ".group_0050": ( + ".group_0052": ("GistComment",), + ".group_0053": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0051": ("GitignoreTemplate",), - ".group_0052": ("License",), - ".group_0053": ("MarketplaceListingPlan",), - ".group_0054": ("MarketplacePurchase",), - ".group_0055": ( + ".group_0054": ("GitignoreTemplate",), + ".group_0055": ("License",), + ".group_0056": ("MarketplaceListingPlan",), + ".group_0057": ("MarketplacePurchase",), + ".group_0058": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0056": ( + ".group_0059": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", "ApiOverviewPropDomainsPropActionsInbound", "ApiOverviewPropDomainsPropArtifactAttestations", ), - ".group_0057": ( + ".group_0060": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropCodeSecurity", @@ -8728,85 +8781,87 @@ "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", "SecurityAndAnalysisPropSecretScanningAiDetection", ), - ".group_0058": ( + ".group_0061": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", + "MinimalRepositoryPropCustomProperties", ), - ".group_0059": ( + ".group_0062": ( "Thread", "ThreadPropSubject", ), - ".group_0060": ("ThreadSubscription",), - ".group_0061": ("OrganizationSimple",), - ".group_0062": ( + ".group_0063": ("ThreadSubscription",), + ".group_0064": ("OrganizationSimple",), + ".group_0065": ("DependabotRepositoryAccessDetails",), + ".group_0066": ( "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", ), - ".group_0063": ( + ".group_0067": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0064": ("ActionsCacheUsageOrgEnterprise",), - ".group_0065": ("ActionsHostedRunnerMachineSpec",), - ".group_0066": ( + ".group_0068": ("ActionsCacheUsageOrgEnterprise",), + ".group_0069": ("ActionsHostedRunnerMachineSpec",), + ".group_0070": ( "ActionsHostedRunner", "ActionsHostedRunnerPoolImage", "PublicIp", ), - ".group_0067": ("ActionsHostedRunnerImage",), - ".group_0068": ( + ".group_0071": ("ActionsHostedRunnerImage",), + ".group_0072": ( "ActionsHostedRunnerLimits", "ActionsHostedRunnerLimitsPropPublicIps", ), - ".group_0069": ("OidcCustomSub",), - ".group_0070": ("ActionsOrganizationPermissions",), - ".group_0071": ("SelectedActions",), - ".group_0072": ("ActionsGetDefaultWorkflowPermissions",), - ".group_0073": ("ActionsSetDefaultWorkflowPermissions",), - ".group_0074": ("RunnerLabel",), - ".group_0075": ("Runner",), - ".group_0076": ("RunnerApplication",), - ".group_0077": ( + ".group_0073": ("OidcCustomSub",), + ".group_0074": ("ActionsOrganizationPermissions",), + ".group_0075": ("SelectedActions",), + ".group_0076": ("ActionsGetDefaultWorkflowPermissions",), + ".group_0077": ("ActionsSetDefaultWorkflowPermissions",), + ".group_0078": ("RunnerLabel",), + ".group_0079": ("Runner",), + ".group_0080": ("RunnerApplication",), + ".group_0081": ( "AuthenticationToken", "AuthenticationTokenPropPermissions", ), - ".group_0078": ("ActionsPublicKey",), - ".group_0079": ("TeamSimple",), - ".group_0080": ( + ".group_0082": ("ActionsPublicKey",), + ".group_0083": ("TeamSimple",), + ".group_0084": ( "Team", "TeamPropPermissions", ), - ".group_0081": ( + ".group_0085": ( "CampaignSummary", "CampaignSummaryPropAlertStats", ), - ".group_0082": ("CodeScanningAlertRuleSummary",), - ".group_0083": ("CodeScanningAnalysisTool",), - ".group_0084": ( + ".group_0086": ("CodeScanningAlertRuleSummary",), + ".group_0087": ("CodeScanningAnalysisTool",), + ".group_0088": ( "CodeScanningAlertInstance", "CodeScanningAlertLocation", "CodeScanningAlertInstancePropMessage", ), - ".group_0085": ("CodeScanningOrganizationAlertItems",), - ".group_0086": ("CodespaceMachine",), - ".group_0087": ( + ".group_0089": ("CodeScanningOrganizationAlertItems",), + ".group_0090": ("CodespaceMachine",), + ".group_0091": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0088": ("CodespacesPublicKey",), - ".group_0089": ( + ".group_0092": ("CodespacesPublicKey",), + ".group_0093": ( "CopilotOrganizationDetails", "CopilotOrganizationSeatBreakdown", ), - ".group_0090": ( + ".group_0094": ( "CopilotSeatDetails", "EnterpriseTeam", "OrgsOrgCopilotBillingSeatsGetResponse200", ), - ".group_0091": ( + ".group_0095": ( "CopilotUsageMetricsDay", "CopilotDotcomChat", "CopilotDotcomChatPropModelsItems", @@ -8822,159 +8877,159 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", ), - ".group_0092": ("DependabotPublicKey",), - ".group_0093": ("Package",), - ".group_0094": ("OrganizationInvitation",), - ".group_0095": ( + ".group_0096": ("DependabotPublicKey",), + ".group_0097": ("Package",), + ".group_0098": ("OrganizationInvitation",), + ".group_0099": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0096": ("ApiInsightsRouteStatsItems",), - ".group_0097": ("ApiInsightsSubjectStatsItems",), - ".group_0098": ("ApiInsightsSummaryStats",), - ".group_0099": ("ApiInsightsTimeStatsItems",), - ".group_0100": ("ApiInsightsUserStatsItems",), - ".group_0101": ("InteractionLimitResponse",), - ".group_0102": ("InteractionLimit",), - ".group_0103": ("OrganizationCreateIssueType",), - ".group_0104": ("OrganizationUpdateIssueType",), - ".group_0105": ( + ".group_0100": ("ApiInsightsRouteStatsItems",), + ".group_0101": ("ApiInsightsSubjectStatsItems",), + ".group_0102": ("ApiInsightsSummaryStats",), + ".group_0103": ("ApiInsightsTimeStatsItems",), + ".group_0104": ("ApiInsightsUserStatsItems",), + ".group_0105": ("InteractionLimitResponse",), + ".group_0106": ("InteractionLimit",), + ".group_0107": ("OrganizationCreateIssueType",), + ".group_0108": ("OrganizationUpdateIssueType",), + ".group_0109": ( "OrgMembership", "OrgMembershipPropPermissions", ), - ".group_0106": ("Migration",), - ".group_0107": ( + ".group_0110": ("Migration",), + ".group_0111": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0108": ( + ".group_0112": ( "TeamRoleAssignment", "TeamRoleAssignmentPropPermissions", ), - ".group_0109": ("UserRoleAssignment",), - ".group_0110": ( + ".group_0113": ("UserRoleAssignment",), + ".group_0114": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0111": ( + ".group_0115": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0112": ( + ".group_0116": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0113": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), - ".group_0114": ("Project",), - ".group_0115": ("CustomProperty",), - ".group_0116": ("CustomPropertySetPayload",), - ".group_0117": ("CustomPropertyValue",), - ".group_0118": ("OrgRepoCustomPropertyValues",), - ".group_0119": ("CodeOfConductSimple",), - ".group_0120": ( + ".group_0117": ("OrgPrivateRegistryConfigurationWithSelectedRepositories",), + ".group_0118": ("Project",), + ".group_0119": ("CustomProperty",), + ".group_0120": ("CustomPropertySetPayload",), + ".group_0121": ("CustomPropertyValue",), + ".group_0122": ("OrgRepoCustomPropertyValues",), + ".group_0123": ("CodeOfConductSimple",), + ".group_0124": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0121": ("RepositoryRulesetBypassActor",), - ".group_0122": ("RepositoryRulesetConditions",), - ".group_0123": ("RepositoryRulesetConditionsPropRefName",), - ".group_0124": ("RepositoryRulesetConditionsRepositoryNameTarget",), - ".group_0125": ( + ".group_0125": ("RepositoryRulesetBypassActor",), + ".group_0126": ("RepositoryRulesetConditions",), + ".group_0127": ("RepositoryRulesetConditionsPropRefName",), + ".group_0128": ("RepositoryRulesetConditionsRepositoryNameTarget",), + ".group_0129": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName", ), - ".group_0126": ("RepositoryRulesetConditionsRepositoryIdTarget",), - ".group_0127": ( + ".group_0130": ("RepositoryRulesetConditionsRepositoryIdTarget",), + ".group_0131": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId", ), - ".group_0128": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), - ".group_0129": ( + ".group_0132": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), + ".group_0133": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", "RepositoryRulesetConditionsRepositoryPropertySpec", ), - ".group_0130": ("OrgRulesetConditionsOneof0",), - ".group_0131": ("OrgRulesetConditionsOneof1",), - ".group_0132": ("OrgRulesetConditionsOneof2",), - ".group_0133": ( + ".group_0134": ("OrgRulesetConditionsOneof0",), + ".group_0135": ("OrgRulesetConditionsOneof1",), + ".group_0136": ("OrgRulesetConditionsOneof2",), + ".group_0137": ( "RepositoryRuleCreation", "RepositoryRuleDeletion", "RepositoryRuleRequiredSignatures", "RepositoryRuleNonFastForward", ), - ".group_0134": ("RepositoryRuleUpdate",), - ".group_0135": ("RepositoryRuleUpdatePropParameters",), - ".group_0136": ("RepositoryRuleRequiredLinearHistory",), - ".group_0137": ("RepositoryRuleMergeQueue",), - ".group_0138": ("RepositoryRuleMergeQueuePropParameters",), - ".group_0139": ("RepositoryRuleRequiredDeployments",), - ".group_0140": ("RepositoryRuleRequiredDeploymentsPropParameters",), - ".group_0141": ( + ".group_0138": ("RepositoryRuleUpdate",), + ".group_0139": ("RepositoryRuleUpdatePropParameters",), + ".group_0140": ("RepositoryRuleRequiredLinearHistory",), + ".group_0141": ("RepositoryRuleMergeQueue",), + ".group_0142": ("RepositoryRuleMergeQueuePropParameters",), + ".group_0143": ("RepositoryRuleRequiredDeployments",), + ".group_0144": ("RepositoryRuleRequiredDeploymentsPropParameters",), + ".group_0145": ( "RepositoryRuleParamsRequiredReviewerConfiguration", "RepositoryRuleParamsReviewer", ), - ".group_0142": ("RepositoryRulePullRequest",), - ".group_0143": ("RepositoryRulePullRequestPropParameters",), - ".group_0144": ("RepositoryRuleRequiredStatusChecks",), - ".group_0145": ( + ".group_0146": ("RepositoryRulePullRequest",), + ".group_0147": ("RepositoryRulePullRequestPropParameters",), + ".group_0148": ("RepositoryRuleRequiredStatusChecks",), + ".group_0149": ( "RepositoryRuleRequiredStatusChecksPropParameters", "RepositoryRuleParamsStatusCheckConfiguration", ), - ".group_0146": ("RepositoryRuleCommitMessagePattern",), - ".group_0147": ("RepositoryRuleCommitMessagePatternPropParameters",), - ".group_0148": ("RepositoryRuleCommitAuthorEmailPattern",), - ".group_0149": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), - ".group_0150": ("RepositoryRuleCommitterEmailPattern",), - ".group_0151": ("RepositoryRuleCommitterEmailPatternPropParameters",), - ".group_0152": ("RepositoryRuleBranchNamePattern",), - ".group_0153": ("RepositoryRuleBranchNamePatternPropParameters",), - ".group_0154": ("RepositoryRuleTagNamePattern",), - ".group_0155": ("RepositoryRuleTagNamePatternPropParameters",), - ".group_0156": ("RepositoryRuleFilePathRestriction",), - ".group_0157": ("RepositoryRuleFilePathRestrictionPropParameters",), - ".group_0158": ("RepositoryRuleMaxFilePathLength",), - ".group_0159": ("RepositoryRuleMaxFilePathLengthPropParameters",), - ".group_0160": ("RepositoryRuleFileExtensionRestriction",), - ".group_0161": ("RepositoryRuleFileExtensionRestrictionPropParameters",), - ".group_0162": ("RepositoryRuleMaxFileSize",), - ".group_0163": ("RepositoryRuleMaxFileSizePropParameters",), - ".group_0164": ("RepositoryRuleParamsRestrictedCommits",), - ".group_0165": ("RepositoryRuleWorkflows",), - ".group_0166": ( + ".group_0150": ("RepositoryRuleCommitMessagePattern",), + ".group_0151": ("RepositoryRuleCommitMessagePatternPropParameters",), + ".group_0152": ("RepositoryRuleCommitAuthorEmailPattern",), + ".group_0153": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), + ".group_0154": ("RepositoryRuleCommitterEmailPattern",), + ".group_0155": ("RepositoryRuleCommitterEmailPatternPropParameters",), + ".group_0156": ("RepositoryRuleBranchNamePattern",), + ".group_0157": ("RepositoryRuleBranchNamePatternPropParameters",), + ".group_0158": ("RepositoryRuleTagNamePattern",), + ".group_0159": ("RepositoryRuleTagNamePatternPropParameters",), + ".group_0160": ("RepositoryRuleFilePathRestriction",), + ".group_0161": ("RepositoryRuleFilePathRestrictionPropParameters",), + ".group_0162": ("RepositoryRuleMaxFilePathLength",), + ".group_0163": ("RepositoryRuleMaxFilePathLengthPropParameters",), + ".group_0164": ("RepositoryRuleFileExtensionRestriction",), + ".group_0165": ("RepositoryRuleFileExtensionRestrictionPropParameters",), + ".group_0166": ("RepositoryRuleMaxFileSize",), + ".group_0167": ("RepositoryRuleMaxFileSizePropParameters",), + ".group_0168": ("RepositoryRuleParamsRestrictedCommits",), + ".group_0169": ("RepositoryRuleWorkflows",), + ".group_0170": ( "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0167": ("RepositoryRuleCodeScanning",), - ".group_0168": ( + ".group_0171": ("RepositoryRuleCodeScanning",), + ".group_0172": ( "RepositoryRuleCodeScanningPropParameters", "RepositoryRuleParamsCodeScanningTool", ), - ".group_0169": ( + ".group_0173": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", "RepositoryRulesetPropLinksPropHtml", ), - ".group_0170": ("RuleSuitesItems",), - ".group_0171": ( + ".group_0174": ("RuleSuitesItems",), + ".group_0175": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0172": ("RulesetVersion",), - ".group_0173": ("RulesetVersionPropActor",), - ".group_0174": ("RulesetVersionWithState",), - ".group_0175": ("RulesetVersionWithStateAllof1",), - ".group_0176": ("RulesetVersionWithStateAllof1PropState",), - ".group_0177": ("RepositoryAdvisoryCredit",), - ".group_0178": ( + ".group_0176": ("RulesetVersion",), + ".group_0177": ("RulesetVersionPropActor",), + ".group_0178": ("RulesetVersionWithState",), + ".group_0179": ("RulesetVersionWithStateAllof1",), + ".group_0180": ("RulesetVersionWithStateAllof1PropState",), + ".group_0181": ("RepositoryAdvisoryCredit",), + ".group_0182": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -8984,85 +9039,85 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0179": ( + ".group_0183": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0180": ("PackagesBillingUsage",), - ".group_0181": ("CombinedBillingUsage",), - ".group_0182": ("NetworkSettings",), - ".group_0183": ( + ".group_0184": ("PackagesBillingUsage",), + ".group_0185": ("CombinedBillingUsage",), + ".group_0186": ("NetworkSettings",), + ".group_0187": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0184": ("TeamDiscussion",), - ".group_0185": ("TeamDiscussionComment",), - ".group_0186": ("Reaction",), - ".group_0187": ("TeamMembership",), - ".group_0188": ( + ".group_0188": ("TeamDiscussion",), + ".group_0189": ("TeamDiscussionComment",), + ".group_0190": ("Reaction",), + ".group_0191": ("TeamMembership",), + ".group_0192": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0189": ( + ".group_0193": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0190": ("ProjectCard",), - ".group_0191": ("ProjectColumn",), - ".group_0192": ("ProjectCollaboratorPermission",), - ".group_0193": ("RateLimit",), - ".group_0194": ("RateLimitOverview",), - ".group_0195": ("RateLimitOverviewPropResources",), - ".group_0196": ( + ".group_0194": ("ProjectCard",), + ".group_0195": ("ProjectColumn",), + ".group_0196": ("ProjectCollaboratorPermission",), + ".group_0197": ("RateLimit",), + ".group_0198": ("RateLimitOverview",), + ".group_0199": ("RateLimitOverviewPropResources",), + ".group_0200": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0197": ( + ".group_0201": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0198": ( + ".group_0202": ( "Job", "JobPropStepsItems", ), - ".group_0199": ("OidcCustomSubRepo",), - ".group_0200": ("ActionsSecret",), - ".group_0201": ("ActionsVariable",), - ".group_0202": ("ActionsRepositoryPermissions",), - ".group_0203": ("ActionsWorkflowAccessToRepository",), - ".group_0204": ( + ".group_0203": ("OidcCustomSubRepo",), + ".group_0204": ("ActionsSecret",), + ".group_0205": ("ActionsVariable",), + ".group_0206": ("ActionsRepositoryPermissions",), + ".group_0207": ("ActionsWorkflowAccessToRepository",), + ".group_0208": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0205": ( + ".group_0209": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0206": ( + ".group_0210": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0207": ( + ".group_0211": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0208": ("ReviewCustomGatesCommentRequired",), - ".group_0209": ("ReviewCustomGatesStateRequired",), - ".group_0210": ( + ".group_0212": ("ReviewCustomGatesCommentRequired",), + ".group_0213": ("ReviewCustomGatesStateRequired",), + ".group_0214": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0211": ( + ".group_0215": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0212": ( + ".group_0216": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -9072,22 +9127,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0213": ( + ".group_0217": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0214": ("Activity",), - ".group_0215": ("Autolink",), - ".group_0216": ("CheckAutomatedSecurityFixes",), - ".group_0217": ("ProtectedBranchPullRequestReview",), - ".group_0218": ( + ".group_0218": ("Activity",), + ".group_0219": ("Autolink",), + ".group_0220": ("CheckAutomatedSecurityFixes",), + ".group_0221": ("ProtectedBranchPullRequestReview",), + ".group_0222": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0219": ( + ".group_0223": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -9095,7 +9150,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0220": ( + ".group_0224": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -9109,28 +9164,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0221": ( + ".group_0225": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0222": ("GitUser",), - ".group_0223": ("Verification",), - ".group_0224": ("DiffEntry",), - ".group_0225": ( + ".group_0226": ("GitUser",), + ".group_0227": ("Verification",), + ".group_0228": ("DiffEntry",), + ".group_0229": ( "Commit", "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0226": ( + ".group_0230": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0227": ( + ".group_0231": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0228": ( + ".group_0232": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -9144,117 +9199,117 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0229": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0230": ( + ".group_0233": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0234": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0231": ("DeploymentSimple",), - ".group_0232": ( + ".group_0235": ("DeploymentSimple",), + ".group_0236": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0233": ("CheckAnnotation",), - ".group_0234": ( + ".group_0237": ("CheckAnnotation",), + ".group_0238": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0235": ( + ".group_0239": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0236": ("CodeScanningAlertItems",), - ".group_0237": ( + ".group_0240": ("CodeScanningAlertItems",), + ".group_0241": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0238": ("CodeScanningAutofix",), - ".group_0239": ("CodeScanningAutofixCommits",), - ".group_0240": ("CodeScanningAutofixCommitsResponse",), - ".group_0241": ("CodeScanningAnalysis",), - ".group_0242": ("CodeScanningAnalysisDeletion",), - ".group_0243": ("CodeScanningCodeqlDatabase",), - ".group_0244": ("CodeScanningVariantAnalysisRepository",), - ".group_0245": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0246": ("CodeScanningVariantAnalysis",), - ".group_0247": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0248": ( + ".group_0242": ("CodeScanningAutofix",), + ".group_0243": ("CodeScanningAutofixCommits",), + ".group_0244": ("CodeScanningAutofixCommitsResponse",), + ".group_0245": ("CodeScanningAnalysis",), + ".group_0246": ("CodeScanningAnalysisDeletion",), + ".group_0247": ("CodeScanningCodeqlDatabase",), + ".group_0248": ("CodeScanningVariantAnalysisRepository",), + ".group_0249": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0250": ("CodeScanningVariantAnalysis",), + ".group_0251": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0252": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0249": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0250": ("CodeScanningDefaultSetup",), - ".group_0251": ("CodeScanningDefaultSetupUpdate",), - ".group_0252": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0253": ("CodeScanningSarifsReceipt",), - ".group_0254": ("CodeScanningSarifsStatus",), - ".group_0255": ("CodeSecurityConfigurationForRepository",), - ".group_0256": ( + ".group_0253": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0254": ("CodeScanningDefaultSetup",), + ".group_0255": ("CodeScanningDefaultSetupUpdate",), + ".group_0256": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0257": ("CodeScanningSarifsReceipt",), + ".group_0258": ("CodeScanningSarifsStatus",), + ".group_0259": ("CodeSecurityConfigurationForRepository",), + ".group_0260": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0257": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0258": ("RepositoryInvitation",), - ".group_0259": ( + ".group_0261": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0262": ("RepositoryInvitation",), + ".group_0263": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0260": ( + ".group_0264": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0261": ( + ".group_0265": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0262": ("Link",), - ".group_0263": ("AutoMerge",), - ".group_0264": ( + ".group_0266": ("Link",), + ".group_0267": ("AutoMerge",), + ".group_0268": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0265": ( + ".group_0269": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0266": ("PullRequestSimplePropLinks",), - ".group_0267": ( + ".group_0270": ("PullRequestSimplePropLinks",), + ".group_0271": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0268": ("Status",), - ".group_0269": ( + ".group_0272": ("Status",), + ".group_0273": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0270": ("CommitComparison",), - ".group_0271": ( + ".group_0274": ("CommitComparison",), + ".group_0275": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0272": ( + ".group_0276": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0273": ( + ".group_0277": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0274": ( + ".group_0278": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0275": ( + ".group_0279": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0276": ( + ".group_0280": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -9265,20 +9320,20 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0277": ( + ".group_0281": ( "RepositoryRuleViolationError", "RepositoryRuleViolationErrorPropMetadata", "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ), - ".group_0278": ("Contributor",), - ".group_0279": ("DependabotAlert",), - ".group_0280": ("DependabotAlertPropDependency",), - ".group_0281": ( + ".group_0282": ("Contributor",), + ".group_0283": ("DependabotAlert",), + ".group_0284": ("DependabotAlertPropDependency",), + ".group_0285": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0282": ( + ".group_0286": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", @@ -9286,39 +9341,39 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0283": ("Metadata",), - ".group_0284": ("Dependency",), - ".group_0285": ( + ".group_0287": ("Metadata",), + ".group_0288": ("Dependency",), + ".group_0289": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0286": ( + ".group_0290": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0287": ("DeploymentStatus",), - ".group_0288": ("DeploymentBranchPolicySettings",), - ".group_0289": ( + ".group_0291": ("DeploymentStatus",), + ".group_0292": ("DeploymentBranchPolicySettings",), + ".group_0293": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0290": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0291": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0292": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0293": ("DeploymentBranchPolicyNamePattern",), - ".group_0294": ("CustomDeploymentRuleApp",), - ".group_0295": ( + ".group_0294": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0295": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0296": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0297": ("DeploymentBranchPolicyNamePattern",), + ".group_0298": ("CustomDeploymentRuleApp",), + ".group_0299": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0296": ("ShortBlob",), - ".group_0297": ("Blob",), - ".group_0298": ( + ".group_0300": ("ShortBlob",), + ".group_0301": ("Blob",), + ".group_0302": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -9326,28 +9381,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0299": ( + ".group_0303": ( "GitRef", "GitRefPropObject", ), - ".group_0300": ( + ".group_0304": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0301": ( + ".group_0305": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0302": ("HookResponse",), - ".group_0303": ("Hook",), - ".group_0304": ( + ".group_0306": ("HookResponse",), + ".group_0307": ("Hook",), + ".group_0308": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0305": ("PorterAuthor",), - ".group_0306": ("PorterLargeFile",), - ".group_0307": ( + ".group_0309": ("PorterAuthor",), + ".group_0310": ("PorterLargeFile",), + ".group_0311": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -9355,55 +9410,55 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0308": ( + ".group_0312": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0309": ( + ".group_0313": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0310": ("AssignedIssueEvent",), - ".group_0311": ("UnassignedIssueEvent",), - ".group_0312": ( + ".group_0314": ("AssignedIssueEvent",), + ".group_0315": ("UnassignedIssueEvent",), + ".group_0316": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0313": ( + ".group_0317": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0314": ( + ".group_0318": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0315": ("ReviewRequestedIssueEvent",), - ".group_0316": ("ReviewRequestRemovedIssueEvent",), - ".group_0317": ( + ".group_0319": ("ReviewRequestedIssueEvent",), + ".group_0320": ("ReviewRequestRemovedIssueEvent",), + ".group_0321": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0318": ("LockedIssueEvent",), - ".group_0319": ( + ".group_0322": ("LockedIssueEvent",), + ".group_0323": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0320": ( + ".group_0324": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0321": ( + ".group_0325": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0322": ( + ".group_0326": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0323": ("TimelineCommentEvent",), - ".group_0324": ("TimelineCrossReferencedEvent",), - ".group_0325": ("TimelineCrossReferencedEventPropSource",), - ".group_0326": ( + ".group_0327": ("TimelineCommentEvent",), + ".group_0328": ("TimelineCrossReferencedEvent",), + ".group_0329": ("TimelineCrossReferencedEventPropSource",), + ".group_0330": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -9411,13 +9466,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0327": ( + ".group_0331": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0328": ( + ".group_0332": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -9425,156 +9480,157 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0329": ("TimelineAssignedIssueEvent",), - ".group_0330": ("TimelineUnassignedIssueEvent",), - ".group_0331": ("StateChangeIssueEvent",), - ".group_0332": ("DeployKey",), - ".group_0333": ("Language",), - ".group_0334": ( + ".group_0333": ("TimelineAssignedIssueEvent",), + ".group_0334": ("TimelineUnassignedIssueEvent",), + ".group_0335": ("StateChangeIssueEvent",), + ".group_0336": ("DeployKey",), + ".group_0337": ("Language",), + ".group_0338": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0335": ("MergedUpstream",), - ".group_0336": ( + ".group_0339": ("MergedUpstream",), + ".group_0340": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0337": ( + ".group_0341": ( "PageBuild", "PageBuildPropError", ), - ".group_0338": ("PageBuildStatus",), - ".group_0339": ("PageDeployment",), - ".group_0340": ("PagesDeploymentStatus",), - ".group_0341": ( + ".group_0342": ("PageBuildStatus",), + ".group_0343": ("PageDeployment",), + ".group_0344": ("PagesDeploymentStatus",), + ".group_0345": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0342": ("PullRequest",), - ".group_0343": ("PullRequestPropLabelsItems",), - ".group_0344": ( + ".group_0346": ("PullRequest",), + ".group_0347": ("PullRequestPropLabelsItems",), + ".group_0348": ( "PullRequestPropHead", "PullRequestPropBase", ), - ".group_0345": ("PullRequestPropLinks",), - ".group_0346": ("PullRequestMergeResult",), - ".group_0347": ("PullRequestReviewRequest",), - ".group_0348": ( + ".group_0349": ("PullRequestPropLinks",), + ".group_0350": ("PullRequestMergeResult",), + ".group_0351": ("PullRequestReviewRequest",), + ".group_0352": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0349": ("ReviewComment",), - ".group_0350": ("ReviewCommentPropLinks",), - ".group_0351": ("ReleaseAsset",), - ".group_0352": ("Release",), - ".group_0353": ("ReleaseNotesContent",), - ".group_0354": ("RepositoryRuleRulesetInfo",), - ".group_0355": ("RepositoryRuleDetailedOneof0",), - ".group_0356": ("RepositoryRuleDetailedOneof1",), - ".group_0357": ("RepositoryRuleDetailedOneof2",), - ".group_0358": ("RepositoryRuleDetailedOneof3",), - ".group_0359": ("RepositoryRuleDetailedOneof4",), - ".group_0360": ("RepositoryRuleDetailedOneof5",), - ".group_0361": ("RepositoryRuleDetailedOneof6",), - ".group_0362": ("RepositoryRuleDetailedOneof7",), - ".group_0363": ("RepositoryRuleDetailedOneof8",), - ".group_0364": ("RepositoryRuleDetailedOneof9",), - ".group_0365": ("RepositoryRuleDetailedOneof10",), - ".group_0366": ("RepositoryRuleDetailedOneof11",), - ".group_0367": ("RepositoryRuleDetailedOneof12",), - ".group_0368": ("RepositoryRuleDetailedOneof13",), - ".group_0369": ("RepositoryRuleDetailedOneof14",), - ".group_0370": ("RepositoryRuleDetailedOneof15",), - ".group_0371": ("RepositoryRuleDetailedOneof16",), - ".group_0372": ("RepositoryRuleDetailedOneof17",), - ".group_0373": ("RepositoryRuleDetailedOneof18",), - ".group_0374": ("RepositoryRuleDetailedOneof19",), - ".group_0375": ("RepositoryRuleDetailedOneof20",), - ".group_0376": ("SecretScanningAlert",), - ".group_0377": ("SecretScanningPushProtectionBypass",), - ".group_0378": ( + ".group_0353": ("ReviewComment",), + ".group_0354": ("ReviewCommentPropLinks",), + ".group_0355": ("ReleaseAsset",), + ".group_0356": ("Release",), + ".group_0357": ("ReleaseNotesContent",), + ".group_0358": ("RepositoryRuleRulesetInfo",), + ".group_0359": ("RepositoryRuleDetailedOneof0",), + ".group_0360": ("RepositoryRuleDetailedOneof1",), + ".group_0361": ("RepositoryRuleDetailedOneof2",), + ".group_0362": ("RepositoryRuleDetailedOneof3",), + ".group_0363": ("RepositoryRuleDetailedOneof4",), + ".group_0364": ("RepositoryRuleDetailedOneof5",), + ".group_0365": ("RepositoryRuleDetailedOneof6",), + ".group_0366": ("RepositoryRuleDetailedOneof7",), + ".group_0367": ("RepositoryRuleDetailedOneof8",), + ".group_0368": ("RepositoryRuleDetailedOneof9",), + ".group_0369": ("RepositoryRuleDetailedOneof10",), + ".group_0370": ("RepositoryRuleDetailedOneof11",), + ".group_0371": ("RepositoryRuleDetailedOneof12",), + ".group_0372": ("RepositoryRuleDetailedOneof13",), + ".group_0373": ("RepositoryRuleDetailedOneof14",), + ".group_0374": ("RepositoryRuleDetailedOneof15",), + ".group_0375": ("RepositoryRuleDetailedOneof16",), + ".group_0376": ("RepositoryRuleDetailedOneof17",), + ".group_0377": ("RepositoryRuleDetailedOneof18",), + ".group_0378": ("RepositoryRuleDetailedOneof19",), + ".group_0379": ("RepositoryRuleDetailedOneof20",), + ".group_0380": ("SecretScanningAlert",), + ".group_0381": ("SecretScanningLocation",), + ".group_0382": ("SecretScanningPushProtectionBypass",), + ".group_0383": ( "SecretScanningScanHistory", "SecretScanningScan", "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", ), - ".group_0379": ( + ".group_0384": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1", ), - ".group_0380": ( + ".group_0385": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0381": ( + ".group_0386": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0382": ( + ".group_0387": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0383": ("Stargazer",), - ".group_0384": ("CommitActivity",), - ".group_0385": ( + ".group_0388": ("Stargazer",), + ".group_0389": ("CommitActivity",), + ".group_0390": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0386": ("ParticipationStats",), - ".group_0387": ("RepositorySubscription",), - ".group_0388": ( + ".group_0391": ("ParticipationStats",), + ".group_0392": ("RepositorySubscription",), + ".group_0393": ( "Tag", "TagPropCommit", ), - ".group_0389": ("TagProtection",), - ".group_0390": ("Topic",), - ".group_0391": ("Traffic",), - ".group_0392": ("CloneTraffic",), - ".group_0393": ("ContentTraffic",), - ".group_0394": ("ReferrerTraffic",), - ".group_0395": ("ViewTraffic",), - ".group_0396": ( + ".group_0394": ("TagProtection",), + ".group_0395": ("Topic",), + ".group_0396": ("Traffic",), + ".group_0397": ("CloneTraffic",), + ".group_0398": ("ContentTraffic",), + ".group_0399": ("ReferrerTraffic",), + ".group_0400": ("ViewTraffic",), + ".group_0401": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0397": ( + ".group_0402": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0398": ( + ".group_0403": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0399": ( + ".group_0404": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0400": ( + ".group_0405": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", "IssueSearchResultItemPropSubIssuesSummary", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0401": ( + ".group_0406": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0402": ( + ".group_0407": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0403": ( + ".group_0408": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -9582,49 +9638,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0404": ( + ".group_0409": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0405": ( + ".group_0410": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0406": ("CodespacesUserPublicKey",), - ".group_0407": ("CodespaceExportDetails",), - ".group_0408": ( + ".group_0411": ("CodespacesUserPublicKey",), + ".group_0412": ("CodespaceExportDetails",), + ".group_0413": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0409": ("Email",), - ".group_0410": ( + ".group_0414": ("Email",), + ".group_0415": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0411": ("Key",), - ".group_0412": ( + ".group_0416": ("Key",), + ".group_0417": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0413": ("SocialAccount",), - ".group_0414": ("SshSigningKey",), - ".group_0415": ("StarredRepository",), - ".group_0416": ( + ".group_0418": ("SocialAccount",), + ".group_0419": ("SshSigningKey",), + ".group_0420": ("StarredRepository",), + ".group_0421": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0417": ("KeySimple",), - ".group_0418": ( + ".group_0422": ("KeySimple",), + ".group_0423": ( "BillingUsageReportUser", "BillingUsageReportUserPropUsageItemsItems", ), - ".group_0419": ("EnterpriseWebhooks",), - ".group_0420": ("SimpleInstallation",), - ".group_0421": ("OrganizationSimpleWebhooks",), - ".group_0422": ( + ".group_0424": ("EnterpriseWebhooks",), + ".group_0425": ("SimpleInstallation",), + ".group_0426": ("OrganizationSimpleWebhooks",), + ".group_0427": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -9632,27 +9688,27 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0423": ("WebhooksRule",), - ".group_0424": ("SimpleCheckSuite",), - ".group_0425": ( + ".group_0428": ("WebhooksRule",), + ".group_0429": ("SimpleCheckSuite",), + ".group_0430": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0426": ("WebhooksDeployKey",), - ".group_0427": ("WebhooksWorkflow",), - ".group_0428": ( + ".group_0431": ("WebhooksDeployKey",), + ".group_0432": ("WebhooksWorkflow",), + ".group_0433": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0429": ("WebhooksWorkflowJobRun",), - ".group_0430": ("WebhooksUser",), - ".group_0431": ( + ".group_0434": ("WebhooksWorkflowJobRun",), + ".group_0435": ("WebhooksUser",), + ".group_0436": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0432": ( + ".group_0437": ( "Discussion", "Label", "DiscussionPropAnswerChosenBy", @@ -9660,24 +9716,24 @@ "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0433": ( + ".group_0438": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0434": ("WebhooksLabel",), - ".group_0435": ("WebhooksRepositoriesItems",), - ".group_0436": ("WebhooksRepositoriesAddedItems",), - ".group_0437": ( + ".group_0439": ("WebhooksLabel",), + ".group_0440": ("WebhooksRepositoriesItems",), + ".group_0441": ("WebhooksRepositoriesAddedItems",), + ".group_0442": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0438": ( + ".group_0443": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0439": ( + ".group_0444": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -9692,11 +9748,11 @@ "WebhooksIssuePropSubIssuesSummary", "WebhooksIssuePropUser", ), - ".group_0440": ( + ".group_0445": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0441": ( + ".group_0446": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -9711,31 +9767,31 @@ "WebhooksIssue2PropSubIssuesSummary", "WebhooksIssue2PropUser", ), - ".group_0442": ("WebhooksUserMannequin",), - ".group_0443": ( + ".group_0447": ("WebhooksUserMannequin",), + ".group_0448": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0444": ( + ".group_0449": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0445": ( + ".group_0450": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0446": ("MergeGroup",), - ".group_0447": ( + ".group_0451": ("MergeGroup",), + ".group_0452": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0448": ( + ".group_0453": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0449": ( + ".group_0454": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -9751,25 +9807,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0450": ( + ".group_0455": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0451": ( + ".group_0456": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0452": ("WebhooksProjectColumn",), - ".group_0453": ("ProjectsV2",), - ".group_0454": ( + ".group_0457": ("WebhooksProjectColumn",), + ".group_0458": ("ProjectsV2",), + ".group_0459": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0455": ("ProjectsV2Item",), - ".group_0456": ("ProjectsV2StatusUpdate",), - ".group_0457": ("PullRequestWebhook",), - ".group_0458": ("PullRequestWebhookAllof1",), - ".group_0459": ( + ".group_0460": ("ProjectsV2Item",), + ".group_0461": ("ProjectsV2StatusUpdate",), + ".group_0462": ("PullRequestWebhook",), + ".group_0463": ("PullRequestWebhookAllof1",), + ".group_0464": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -9807,7 +9863,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0460": ( + ".group_0465": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -9816,33 +9872,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0461": ( + ".group_0466": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0462": ( + ".group_0467": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0463": ( + ".group_0468": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0464": ( + ".group_0469": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0465": ("SecretScanningAlertWebhook",), - ".group_0466": ( + ".group_0470": ("SecretScanningAlertWebhook",), + ".group_0471": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -9852,27 +9908,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0467": ( + ".group_0472": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0468": ( + ".group_0473": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0469": ( + ".group_0474": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0470": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0471": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0472": ("WebhookBranchProtectionRuleCreated",), - ".group_0473": ("WebhookBranchProtectionRuleDeleted",), - ".group_0474": ( + ".group_0475": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0476": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0477": ("WebhookBranchProtectionRuleCreated",), + ".group_0478": ("WebhookBranchProtectionRuleDeleted",), + ".group_0479": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -9887,18 +9943,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0475": ("WebhookCheckRunCompleted",), - ".group_0476": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0477": ("WebhookCheckRunCreated",), - ".group_0478": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0479": ( + ".group_0480": ("WebhookCheckRunCompleted",), + ".group_0481": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0482": ("WebhookCheckRunCreated",), + ".group_0483": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0484": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0480": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0481": ("WebhookCheckRunRerequested",), - ".group_0482": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0483": ( + ".group_0485": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0486": ("WebhookCheckRunRerequested",), + ".group_0487": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0488": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -9913,7 +9969,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0484": ( + ".group_0489": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -9928,7 +9984,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0485": ( + ".group_0490": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -9943,7 +9999,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0486": ( + ".group_0491": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -9953,7 +10009,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0487": ( + ".group_0492": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -9964,7 +10020,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", ), - ".group_0488": ( + ".group_0493": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -9973,7 +10029,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0489": ( + ".group_0494": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -9983,7 +10039,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0490": ( + ".group_0495": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -9993,7 +10049,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0491": ( + ".group_0496": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -10002,32 +10058,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0492": ( + ".group_0497": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0493": ("WebhookCreate",), - ".group_0494": ("WebhookCustomPropertyCreated",), - ".group_0495": ( + ".group_0498": ("WebhookCreate",), + ".group_0499": ("WebhookCustomPropertyCreated",), + ".group_0500": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0496": ("WebhookCustomPropertyPromotedToEnterprise",), - ".group_0497": ("WebhookCustomPropertyUpdated",), - ".group_0498": ("WebhookCustomPropertyValuesUpdated",), - ".group_0499": ("WebhookDelete",), - ".group_0500": ("WebhookDependabotAlertAutoDismissed",), - ".group_0501": ("WebhookDependabotAlertAutoReopened",), - ".group_0502": ("WebhookDependabotAlertCreated",), - ".group_0503": ("WebhookDependabotAlertDismissed",), - ".group_0504": ("WebhookDependabotAlertFixed",), - ".group_0505": ("WebhookDependabotAlertReintroduced",), - ".group_0506": ("WebhookDependabotAlertReopened",), - ".group_0507": ("WebhookDeployKeyCreated",), - ".group_0508": ("WebhookDeployKeyDeleted",), - ".group_0509": ( + ".group_0501": ("WebhookCustomPropertyPromotedToEnterprise",), + ".group_0502": ("WebhookCustomPropertyUpdated",), + ".group_0503": ("WebhookCustomPropertyValuesUpdated",), + ".group_0504": ("WebhookDelete",), + ".group_0505": ("WebhookDependabotAlertAutoDismissed",), + ".group_0506": ("WebhookDependabotAlertAutoReopened",), + ".group_0507": ("WebhookDependabotAlertCreated",), + ".group_0508": ("WebhookDependabotAlertDismissed",), + ".group_0509": ("WebhookDependabotAlertFixed",), + ".group_0510": ("WebhookDependabotAlertReintroduced",), + ".group_0511": ("WebhookDependabotAlertReopened",), + ".group_0512": ("WebhookDeployKeyCreated",), + ".group_0513": ("WebhookDeployKeyDeleted",), + ".group_0514": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -10049,8 +10105,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0510": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0511": ( + ".group_0515": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0516": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -10068,7 +10124,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0512": ( + ".group_0517": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -10086,7 +10142,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0513": ( + ".group_0518": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -10106,7 +10162,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0514": ( + ".group_0519": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -10134,119 +10190,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0515": ("WebhookDiscussionAnswered",), - ".group_0516": ( + ".group_0520": ("WebhookDiscussionAnswered",), + ".group_0521": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0517": ("WebhookDiscussionClosed",), - ".group_0518": ("WebhookDiscussionCommentCreated",), - ".group_0519": ("WebhookDiscussionCommentDeleted",), - ".group_0520": ( + ".group_0522": ("WebhookDiscussionClosed",), + ".group_0523": ("WebhookDiscussionCommentCreated",), + ".group_0524": ("WebhookDiscussionCommentDeleted",), + ".group_0525": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0521": ("WebhookDiscussionCreated",), - ".group_0522": ("WebhookDiscussionDeleted",), - ".group_0523": ( + ".group_0526": ("WebhookDiscussionCreated",), + ".group_0527": ("WebhookDiscussionDeleted",), + ".group_0528": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0524": ("WebhookDiscussionLabeled",), - ".group_0525": ("WebhookDiscussionLocked",), - ".group_0526": ("WebhookDiscussionPinned",), - ".group_0527": ("WebhookDiscussionReopened",), - ".group_0528": ("WebhookDiscussionTransferred",), - ".group_0529": ("WebhookDiscussionTransferredPropChanges",), - ".group_0530": ("WebhookDiscussionUnanswered",), - ".group_0531": ("WebhookDiscussionUnlabeled",), - ".group_0532": ("WebhookDiscussionUnlocked",), - ".group_0533": ("WebhookDiscussionUnpinned",), - ".group_0534": ("WebhookFork",), - ".group_0535": ( + ".group_0529": ("WebhookDiscussionLabeled",), + ".group_0530": ("WebhookDiscussionLocked",), + ".group_0531": ("WebhookDiscussionPinned",), + ".group_0532": ("WebhookDiscussionReopened",), + ".group_0533": ("WebhookDiscussionTransferred",), + ".group_0534": ("WebhookDiscussionTransferredPropChanges",), + ".group_0535": ("WebhookDiscussionUnanswered",), + ".group_0536": ("WebhookDiscussionUnlabeled",), + ".group_0537": ("WebhookDiscussionUnlocked",), + ".group_0538": ("WebhookDiscussionUnpinned",), + ".group_0539": ("WebhookFork",), + ".group_0540": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0536": ( + ".group_0541": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0537": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0538": ( + ".group_0542": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0543": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0539": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0540": ( + ".group_0544": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0545": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0541": ("WebhookInstallationCreated",), - ".group_0542": ("WebhookInstallationDeleted",), - ".group_0543": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0544": ( + ".group_0546": ("WebhookInstallationCreated",), + ".group_0547": ("WebhookInstallationDeleted",), + ".group_0548": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0549": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0545": ( + ".group_0550": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0546": ("WebhookInstallationSuspend",), - ".group_0547": ( + ".group_0551": ("WebhookInstallationSuspend",), + ".group_0552": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0548": ("WebhookInstallationUnsuspend",), - ".group_0549": ("WebhookIssueCommentCreated",), - ".group_0550": ( + ".group_0553": ("WebhookInstallationUnsuspend",), + ".group_0554": ("WebhookIssueCommentCreated",), + ".group_0555": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0551": ( + ".group_0556": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0552": ( + ".group_0557": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0553": ( + ".group_0558": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0554": ( + ".group_0559": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0555": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0556": ( + ".group_0560": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0561": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0557": ( + ".group_0562": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0558": ( + ".group_0563": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0559": ( + ".group_0564": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -10256,43 +10312,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0560": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0561": ( + ".group_0565": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0566": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0562": ("WebhookIssueCommentDeleted",), - ".group_0563": ( + ".group_0567": ("WebhookIssueCommentDeleted",), + ".group_0568": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0564": ( + ".group_0569": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0565": ( + ".group_0570": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0566": ( + ".group_0571": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0567": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0568": ( + ".group_0572": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0573": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0569": ( + ".group_0574": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0570": ( + ".group_0575": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0571": ( + ".group_0576": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -10302,43 +10358,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0572": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0573": ( + ".group_0577": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0578": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0574": ("WebhookIssueCommentEdited",), - ".group_0575": ( + ".group_0579": ("WebhookIssueCommentEdited",), + ".group_0580": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0576": ( + ".group_0581": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0577": ( + ".group_0582": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0578": ( + ".group_0583": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0579": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0580": ( + ".group_0584": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0585": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0581": ( + ".group_0586": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0582": ( + ".group_0587": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0583": ( + ".group_0588": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -10348,13 +10404,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0584": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0585": ( + ".group_0589": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0590": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0586": ("WebhookIssuesAssigned",), - ".group_0587": ("WebhookIssuesClosed",), - ".group_0588": ( + ".group_0591": ("WebhookIssuesAssigned",), + ".group_0592": ("WebhookIssuesClosed",), + ".group_0593": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -10362,7 +10418,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0589": ( + ".group_0594": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -10370,18 +10426,18 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0590": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0591": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0592": ( + ".group_0595": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0596": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0597": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0593": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0594": ( + ".group_0598": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0599": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequest", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ), - ".group_0595": ( + ".group_0600": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -10391,10 +10447,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0596": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0597": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0598": ("WebhookIssuesDeleted",), - ".group_0599": ( + ".group_0601": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0602": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0603": ("WebhookIssuesDeleted",), + ".group_0604": ( "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", "WebhookIssuesDeletedPropIssuePropAssigneesItems", @@ -10409,8 +10465,8 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0600": ("WebhookIssuesDemilestoned",), - ".group_0601": ( + ".group_0605": ("WebhookIssuesDemilestoned",), + ".group_0606": ( "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", @@ -10425,13 +10481,13 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0602": ( + ".group_0607": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", "WebhookIssuesEditedPropChangesPropTitle", ), - ".group_0603": ( + ".group_0608": ( "WebhookIssuesEditedPropIssue", "WebhookIssuesEditedPropIssuePropAssignee", "WebhookIssuesEditedPropIssuePropAssigneesItems", @@ -10446,8 +10502,8 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummary", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0604": ("WebhookIssuesLabeled",), - ".group_0605": ( + ".group_0609": ("WebhookIssuesLabeled",), + ".group_0610": ( "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", "WebhookIssuesLabeledPropIssuePropAssigneesItems", @@ -10462,8 +10518,8 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0606": ("WebhookIssuesLocked",), - ".group_0607": ( + ".group_0611": ("WebhookIssuesLocked",), + ".group_0612": ( "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", "WebhookIssuesLockedPropIssuePropAssigneesItems", @@ -10478,8 +10534,8 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummary", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0608": ("WebhookIssuesMilestoned",), - ".group_0609": ( + ".group_0613": ("WebhookIssuesMilestoned",), + ".group_0614": ( "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", "WebhookIssuesMilestonedPropIssuePropAssigneesItems", @@ -10494,8 +10550,8 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0610": ("WebhookIssuesOpened",), - ".group_0611": ( + ".group_0615": ("WebhookIssuesOpened",), + ".group_0616": ( "WebhookIssuesOpenedPropChanges", "WebhookIssuesOpenedPropChangesPropOldRepository", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", @@ -10503,7 +10559,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0612": ( + ".group_0617": ( "WebhookIssuesOpenedPropChangesPropOldIssue", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", @@ -10518,7 +10574,7 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", ), - ".group_0613": ( + ".group_0618": ( "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", "WebhookIssuesOpenedPropIssuePropAssigneesItems", @@ -10533,9 +10589,9 @@ "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", "WebhookIssuesOpenedPropIssuePropUser", ), - ".group_0614": ("WebhookIssuesPinned",), - ".group_0615": ("WebhookIssuesReopened",), - ".group_0616": ( + ".group_0619": ("WebhookIssuesPinned",), + ".group_0620": ("WebhookIssuesReopened",), + ".group_0621": ( "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", "WebhookIssuesReopenedPropIssuePropAssigneesItems", @@ -10550,8 +10606,8 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0617": ("WebhookIssuesTransferred",), - ".group_0618": ( + ".group_0622": ("WebhookIssuesTransferred",), + ".group_0623": ( "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewRepository", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", @@ -10559,7 +10615,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0619": ( + ".group_0624": ( "WebhookIssuesTransferredPropChangesPropNewIssue", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", @@ -10574,11 +10630,11 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ), - ".group_0620": ("WebhookIssuesTyped",), - ".group_0621": ("WebhookIssuesUnassigned",), - ".group_0622": ("WebhookIssuesUnlabeled",), - ".group_0623": ("WebhookIssuesUnlocked",), - ".group_0624": ( + ".group_0625": ("WebhookIssuesTyped",), + ".group_0626": ("WebhookIssuesUnassigned",), + ".group_0627": ("WebhookIssuesUnlabeled",), + ".group_0628": ("WebhookIssuesUnlocked",), + ".group_0629": ( "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", "WebhookIssuesUnlockedPropIssuePropAssigneesItems", @@ -10593,104 +10649,104 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0625": ("WebhookIssuesUnpinned",), - ".group_0626": ("WebhookIssuesUntyped",), - ".group_0627": ("WebhookLabelCreated",), - ".group_0628": ("WebhookLabelDeleted",), - ".group_0629": ( + ".group_0630": ("WebhookIssuesUnpinned",), + ".group_0631": ("WebhookIssuesUntyped",), + ".group_0632": ("WebhookLabelCreated",), + ".group_0633": ("WebhookLabelDeleted",), + ".group_0634": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0630": ("WebhookMarketplacePurchaseCancelled",), - ".group_0631": ( + ".group_0635": ("WebhookMarketplacePurchaseCancelled",), + ".group_0636": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0632": ( + ".group_0637": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0633": ( + ".group_0638": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0634": ("WebhookMarketplacePurchasePurchased",), - ".group_0635": ( + ".group_0639": ("WebhookMarketplacePurchasePurchased",), + ".group_0640": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0636": ( + ".group_0641": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0637": ("WebhookMemberRemoved",), - ".group_0638": ( + ".group_0642": ("WebhookMemberRemoved",), + ".group_0643": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0639": ( + ".group_0644": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0640": ("WebhookMergeGroupChecksRequested",), - ".group_0641": ("WebhookMergeGroupDestroyed",), - ".group_0642": ( + ".group_0645": ("WebhookMergeGroupChecksRequested",), + ".group_0646": ("WebhookMergeGroupDestroyed",), + ".group_0647": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0643": ("WebhookMilestoneClosed",), - ".group_0644": ("WebhookMilestoneCreated",), - ".group_0645": ("WebhookMilestoneDeleted",), - ".group_0646": ( + ".group_0648": ("WebhookMilestoneClosed",), + ".group_0649": ("WebhookMilestoneCreated",), + ".group_0650": ("WebhookMilestoneDeleted",), + ".group_0651": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0647": ("WebhookMilestoneOpened",), - ".group_0648": ("WebhookOrgBlockBlocked",), - ".group_0649": ("WebhookOrgBlockUnblocked",), - ".group_0650": ("WebhookOrganizationDeleted",), - ".group_0651": ("WebhookOrganizationMemberAdded",), - ".group_0652": ( + ".group_0652": ("WebhookMilestoneOpened",), + ".group_0653": ("WebhookOrgBlockBlocked",), + ".group_0654": ("WebhookOrgBlockUnblocked",), + ".group_0655": ("WebhookOrganizationDeleted",), + ".group_0656": ("WebhookOrganizationMemberAdded",), + ".group_0657": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0653": ("WebhookOrganizationMemberRemoved",), - ".group_0654": ( + ".group_0658": ("WebhookOrganizationMemberRemoved",), + ".group_0659": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0655": ( + ".group_0660": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0656": ("WebhookPackagePublished",), - ".group_0657": ( + ".group_0661": ("WebhookPackagePublished",), + ".group_0662": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0658": ( + ".group_0663": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -10722,13 +10778,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0659": ("WebhookPackageUpdated",), - ".group_0660": ( + ".group_0664": ("WebhookPackageUpdated",), + ".group_0665": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0661": ( + ".group_0666": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -10737,75 +10793,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0662": ( + ".group_0667": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0663": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0664": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0665": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0666": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0667": ("WebhookPing",), - ".group_0668": ( + ".group_0668": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0669": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0670": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0671": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0672": ("WebhookPing",), + ".group_0673": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0669": ("WebhookPingFormEncoded",), - ".group_0670": ( + ".group_0674": ("WebhookPingFormEncoded",), + ".group_0675": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0671": ("WebhookProjectCardCreated",), - ".group_0672": ( + ".group_0676": ("WebhookProjectCardCreated",), + ".group_0677": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0673": ( + ".group_0678": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0674": ( + ".group_0679": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0675": ( + ".group_0680": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0676": ( + ".group_0681": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0677": ("WebhookProjectClosed",), - ".group_0678": ("WebhookProjectColumnCreated",), - ".group_0679": ("WebhookProjectColumnDeleted",), - ".group_0680": ( + ".group_0682": ("WebhookProjectClosed",), + ".group_0683": ("WebhookProjectColumnCreated",), + ".group_0684": ("WebhookProjectColumnDeleted",), + ".group_0685": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0681": ("WebhookProjectColumnMoved",), - ".group_0682": ("WebhookProjectCreated",), - ".group_0683": ("WebhookProjectDeleted",), - ".group_0684": ( + ".group_0686": ("WebhookProjectColumnMoved",), + ".group_0687": ("WebhookProjectCreated",), + ".group_0688": ("WebhookProjectDeleted",), + ".group_0689": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0685": ("WebhookProjectReopened",), - ".group_0686": ("WebhookProjectsV2ProjectClosed",), - ".group_0687": ("WebhookProjectsV2ProjectCreated",), - ".group_0688": ("WebhookProjectsV2ProjectDeleted",), - ".group_0689": ( + ".group_0690": ("WebhookProjectReopened",), + ".group_0691": ("WebhookProjectsV2ProjectClosed",), + ".group_0692": ("WebhookProjectsV2ProjectCreated",), + ".group_0693": ("WebhookProjectsV2ProjectDeleted",), + ".group_0694": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -10813,15 +10869,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0690": ("WebhookProjectsV2ItemArchived",), - ".group_0691": ( + ".group_0695": ("WebhookProjectsV2ItemArchived",), + ".group_0696": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0692": ("WebhookProjectsV2ItemCreated",), - ".group_0693": ("WebhookProjectsV2ItemDeleted",), - ".group_0694": ( + ".group_0697": ("WebhookProjectsV2ItemCreated",), + ".group_0698": ("WebhookProjectsV2ItemDeleted",), + ".group_0699": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", @@ -10830,16 +10886,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0695": ( + ".group_0700": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0696": ("WebhookProjectsV2ItemRestored",), - ".group_0697": ("WebhookProjectsV2ProjectReopened",), - ".group_0698": ("WebhookProjectsV2StatusUpdateCreated",), - ".group_0699": ("WebhookProjectsV2StatusUpdateDeleted",), - ".group_0700": ( + ".group_0701": ("WebhookProjectsV2ItemRestored",), + ".group_0702": ("WebhookProjectsV2ProjectReopened",), + ".group_0703": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0704": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0705": ( "WebhookProjectsV2StatusUpdateEdited", "WebhookProjectsV2StatusUpdateEditedPropChanges", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", @@ -10847,8 +10903,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ), - ".group_0701": ("WebhookPublic",), - ".group_0702": ( + ".group_0706": ("WebhookPublic",), + ".group_0707": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -10887,7 +10943,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0703": ( + ".group_0708": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -10926,7 +10982,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0704": ( + ".group_0709": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -10965,10 +11021,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0705": ("WebhookPullRequestClosed",), - ".group_0706": ("WebhookPullRequestConvertedToDraft",), - ".group_0707": ("WebhookPullRequestDemilestoned",), - ".group_0708": ( + ".group_0710": ("WebhookPullRequestClosed",), + ".group_0711": ("WebhookPullRequestConvertedToDraft",), + ".group_0712": ("WebhookPullRequestDemilestoned",), + ".group_0713": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -11007,7 +11063,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0709": ( + ".group_0714": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -11016,7 +11072,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0710": ( + ".group_0715": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -11055,7 +11111,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0711": ( + ".group_0716": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -11094,7 +11150,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0712": ( + ".group_0717": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -11133,11 +11189,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0713": ("WebhookPullRequestMilestoned",), - ".group_0714": ("WebhookPullRequestOpened",), - ".group_0715": ("WebhookPullRequestReadyForReview",), - ".group_0716": ("WebhookPullRequestReopened",), - ".group_0717": ( + ".group_0718": ("WebhookPullRequestMilestoned",), + ".group_0719": ("WebhookPullRequestOpened",), + ".group_0720": ("WebhookPullRequestReadyForReview",), + ".group_0721": ("WebhookPullRequestReopened",), + ".group_0722": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -11182,7 +11238,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0718": ( + ".group_0723": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -11220,7 +11276,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0719": ( + ".group_0724": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -11258,7 +11314,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0720": ( + ".group_0725": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -11301,7 +11357,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0721": ( + ".group_0726": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -11341,7 +11397,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0722": ( + ".group_0727": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -11381,7 +11437,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0723": ( + ".group_0728": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -11422,7 +11478,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0724": ( + ".group_0729": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -11462,7 +11518,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0725": ( + ".group_0730": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -11503,7 +11559,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0726": ( + ".group_0731": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -11541,7 +11597,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0727": ( + ".group_0732": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -11587,7 +11643,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0728": ( + ".group_0733": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -11633,7 +11689,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0729": ( + ".group_0734": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -11672,7 +11728,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0730": ( + ".group_0735": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -11711,7 +11767,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0731": ( + ".group_0736": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -11750,7 +11806,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0732": ( + ".group_0737": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -11789,7 +11845,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0733": ( + ".group_0738": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -11804,13 +11860,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0734": ("WebhookRegistryPackagePublished",), - ".group_0735": ( + ".group_0739": ("WebhookRegistryPackagePublished",), + ".group_0740": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0736": ( + ".group_0741": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -11841,13 +11897,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0737": ("WebhookRegistryPackageUpdated",), - ".group_0738": ( + ".group_0742": ("WebhookRegistryPackageUpdated",), + ".group_0743": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0739": ( + ".group_0744": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -11856,9 +11912,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0740": ("WebhookReleaseCreated",), - ".group_0741": ("WebhookReleaseDeleted",), - ".group_0742": ( + ".group_0745": ("WebhookReleaseCreated",), + ".group_0746": ("WebhookReleaseDeleted",), + ".group_0747": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", @@ -11866,7 +11922,7 @@ "WebhookReleaseEditedPropChangesPropTagName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0743": ( + ".group_0748": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -11874,19 +11930,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0744": ("WebhookReleasePublished",), - ".group_0745": ("WebhookReleaseReleased",), - ".group_0746": ("WebhookReleaseUnpublished",), - ".group_0747": ("WebhookRepositoryAdvisoryPublished",), - ".group_0748": ("WebhookRepositoryAdvisoryReported",), - ".group_0749": ("WebhookRepositoryArchived",), - ".group_0750": ("WebhookRepositoryCreated",), - ".group_0751": ("WebhookRepositoryDeleted",), - ".group_0752": ( + ".group_0749": ("WebhookReleasePublished",), + ".group_0750": ("WebhookReleaseReleased",), + ".group_0751": ("WebhookReleaseUnpublished",), + ".group_0752": ("WebhookRepositoryAdvisoryPublished",), + ".group_0753": ("WebhookRepositoryAdvisoryReported",), + ".group_0754": ("WebhookRepositoryArchived",), + ".group_0755": ("WebhookRepositoryCreated",), + ".group_0756": ("WebhookRepositoryDeleted",), + ".group_0757": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0753": ( + ".group_0758": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -11894,25 +11950,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0754": ("WebhookRepositoryImport",), - ".group_0755": ("WebhookRepositoryPrivatized",), - ".group_0756": ("WebhookRepositoryPublicized",), - ".group_0757": ( + ".group_0759": ("WebhookRepositoryImport",), + ".group_0760": ("WebhookRepositoryPrivatized",), + ".group_0761": ("WebhookRepositoryPublicized",), + ".group_0762": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0758": ("WebhookRepositoryRulesetCreated",), - ".group_0759": ("WebhookRepositoryRulesetDeleted",), - ".group_0760": ("WebhookRepositoryRulesetEdited",), - ".group_0761": ( + ".group_0763": ("WebhookRepositoryRulesetCreated",), + ".group_0764": ("WebhookRepositoryRulesetDeleted",), + ".group_0765": ("WebhookRepositoryRulesetEdited",), + ".group_0766": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0762": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0763": ( + ".group_0767": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0768": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -11920,15 +11976,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0764": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0765": ( + ".group_0769": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0770": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0766": ( + ".group_0771": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -11936,47 +11992,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0767": ("WebhookRepositoryUnarchived",), - ".group_0768": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0769": ( + ".group_0772": ("WebhookRepositoryUnarchived",), + ".group_0773": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0774": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0770": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0771": ( + ".group_0775": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0776": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0772": ("WebhookSecretScanningAlertCreated",), - ".group_0773": ( - "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", - ), - ".group_0774": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0775": ("WebhookSecretScanningAlertPubliclyLeaked",), - ".group_0776": ("WebhookSecretScanningAlertReopened",), - ".group_0777": ("WebhookSecretScanningAlertResolved",), - ".group_0778": ("WebhookSecretScanningAlertValidated",), - ".group_0779": ("WebhookSecretScanningScanCompleted",), - ".group_0780": ("WebhookSecurityAdvisoryPublished",), - ".group_0781": ("WebhookSecurityAdvisoryUpdated",), - ".group_0782": ("WebhookSecurityAdvisoryWithdrawn",), - ".group_0783": ( + ".group_0777": ("WebhookSecretScanningAlertCreated",), + ".group_0778": ("WebhookSecretScanningAlertLocationCreated",), + ".group_0779": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0780": ("WebhookSecretScanningAlertPubliclyLeaked",), + ".group_0781": ("WebhookSecretScanningAlertReopened",), + ".group_0782": ("WebhookSecretScanningAlertResolved",), + ".group_0783": ("WebhookSecretScanningAlertValidated",), + ".group_0784": ("WebhookSecretScanningScanCompleted",), + ".group_0785": ("WebhookSecurityAdvisoryPublished",), + ".group_0786": ("WebhookSecurityAdvisoryUpdated",), + ".group_0787": ("WebhookSecurityAdvisoryWithdrawn",), + ".group_0788": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", @@ -11986,22 +12026,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0784": ("WebhookSecurityAndAnalysis",), - ".group_0785": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0786": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0787": ("WebhookSponsorshipCancelled",), - ".group_0788": ("WebhookSponsorshipCreated",), - ".group_0789": ( + ".group_0789": ("WebhookSecurityAndAnalysis",), + ".group_0790": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0791": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0792": ("WebhookSponsorshipCancelled",), + ".group_0793": ("WebhookSponsorshipCreated",), + ".group_0794": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0790": ("WebhookSponsorshipPendingCancellation",), - ".group_0791": ("WebhookSponsorshipPendingTierChange",), - ".group_0792": ("WebhookSponsorshipTierChanged",), - ".group_0793": ("WebhookStarCreated",), - ".group_0794": ("WebhookStarDeleted",), - ".group_0795": ( + ".group_0795": ("WebhookSponsorshipPendingCancellation",), + ".group_0796": ("WebhookSponsorshipPendingTierChange",), + ".group_0797": ("WebhookSponsorshipTierChanged",), + ".group_0798": ("WebhookStarCreated",), + ".group_0799": ("WebhookStarDeleted",), + ".group_0800": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -12015,16 +12055,16 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0796": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0797": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0798": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0799": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0800": ("WebhookSubIssuesParentIssueAdded",), - ".group_0801": ("WebhookSubIssuesParentIssueRemoved",), - ".group_0802": ("WebhookSubIssuesSubIssueAdded",), - ".group_0803": ("WebhookSubIssuesSubIssueRemoved",), - ".group_0804": ("WebhookTeamAdd",), - ".group_0805": ( + ".group_0801": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0802": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0803": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0804": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0805": ("WebhookSubIssuesParentIssueAdded",), + ".group_0806": ("WebhookSubIssuesParentIssueRemoved",), + ".group_0807": ("WebhookSubIssuesSubIssueAdded",), + ".group_0808": ("WebhookSubIssuesSubIssueRemoved",), + ".group_0809": ("WebhookTeamAdd",), + ".group_0810": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -12032,7 +12072,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0806": ( + ".group_0811": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -12040,7 +12080,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0807": ( + ".group_0812": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -12048,7 +12088,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0808": ( + ".group_0813": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -12064,7 +12104,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0809": ( + ".group_0814": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -12072,48 +12112,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0810": ("WebhookWatchStarted",), - ".group_0811": ( + ".group_0815": ("WebhookWatchStarted",), + ".group_0816": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0812": ( + ".group_0817": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0813": ( + ".group_0818": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0814": ( + ".group_0819": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0815": ( + ".group_0820": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0816": ( + ".group_0821": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0817": ( + ".group_0822": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0818": ( + ".group_0823": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0819": ( + ".group_0824": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0820": ( + ".group_0825": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -12132,7 +12172,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0821": ( + ".group_0826": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -12151,7 +12191,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0822": ( + ".group_0827": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -12170,272 +12210,282 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0823": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0824": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0825": ("AppHookConfigPatchBody",), - ".group_0826": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0827": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0828": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0829": ("ApplicationsClientIdTokenPostBody",), - ".group_0830": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0831": ("ApplicationsClientIdTokenPatchBody",), - ".group_0832": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0833": ("CredentialsRevokePostBody",), - ".group_0834": ("EmojisGetResponse200",), - ".group_0835": ( + ".group_0828": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0829": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0830": ("AppHookConfigPatchBody",), + ".group_0831": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0832": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0833": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0834": ("ApplicationsClientIdTokenPostBody",), + ".group_0835": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0836": ("ApplicationsClientIdTokenPatchBody",), + ".group_0837": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0838": ("CredentialsRevokePostBody",), + ".group_0839": ("EmojisGetResponse200",), + ".group_0840": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0836": ( + ".group_0841": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ), - ".group_0837": ( + ".group_0842": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0838": ( + ".group_0843": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0839": ( + ".group_0844": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0840": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), - ".group_0841": ( + ".group_0845": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), + ".group_0846": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0842": ( + ".group_0847": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0843": ( + ".group_0848": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0844": ("GistsGistIdCommentsPostBody",), - ".group_0845": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0846": ("GistsGistIdStarGetResponse404",), - ".group_0847": ("InstallationRepositoriesGetResponse200",), - ".group_0848": ("MarkdownPostBody",), - ".group_0849": ("NotificationsPutBody",), - ".group_0850": ("NotificationsPutResponse202",), - ".group_0851": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0852": ("OrgsOrgPatchBody",), - ".group_0853": ( + ".group_0849": ("GistsGistIdCommentsPostBody",), + ".group_0850": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0851": ("GistsGistIdStarGetResponse404",), + ".group_0852": ("InstallationRepositoriesGetResponse200",), + ".group_0853": ("MarkdownPostBody",), + ".group_0854": ("NotificationsPutBody",), + ".group_0855": ("NotificationsPutResponse202",), + ".group_0856": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0857": ("OrganizationsOrgDependabotRepositoryAccessPatchBody",), + ".group_0858": ( + "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody", + ), + ".group_0859": ("OrgsOrgPatchBody",), + ".group_0860": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0854": ("OrgsOrgActionsHostedRunnersGetResponse200",), - ".group_0855": ( + ".group_0861": ("OrgsOrgActionsHostedRunnersGetResponse200",), + ".group_0862": ( "OrgsOrgActionsHostedRunnersPostBody", "OrgsOrgActionsHostedRunnersPostBodyPropImage", ), - ".group_0856": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), - ".group_0857": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), - ".group_0858": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), - ".group_0859": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), - ".group_0860": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), - ".group_0861": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0862": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0863": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0864": ( + ".group_0863": ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",), + ".group_0864": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",), + ".group_0865": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",), + ".group_0866": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",), + ".group_0867": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",), + ".group_0868": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0869": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0870": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0871": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0865": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0866": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0867": ( + ".group_0872": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0873": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0874": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200", ), - ".group_0868": ( + ".group_0875": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0869": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0870": ( + ".group_0876": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0877": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0871": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0872": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0873": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0874": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), - ".group_0875": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), - ".group_0876": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0877": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0878": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), - ".group_0879": ( + ".group_0878": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0879": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0880": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0881": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), + ".group_0882": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), + ".group_0883": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0884": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0885": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), + ".group_0886": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0880": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0881": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0882": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0883": ( + ".group_0887": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0888": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0889": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0890": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0884": ("OrgsOrgActionsVariablesPostBody",), - ".group_0885": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0886": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0887": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0888": ( + ".group_0891": ("OrgsOrgActionsVariablesPostBody",), + ".group_0892": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0893": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0894": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0895": ("OrgsOrgAttestationsBulkListPostBody",), + ".group_0896": ( + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", + ), + ".group_0897": ( "OrgsOrgAttestationsSubjectDigestGetResponse200", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_0889": ( + ".group_0898": ( "OrgsOrgCampaignsPostBody", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", ), - ".group_0890": ("OrgsOrgCampaignsCampaignNumberPatchBody",), - ".group_0891": ( + ".group_0899": ("OrgsOrgCampaignsCampaignNumberPatchBody",), + ".group_0900": ( "OrgsOrgCodeSecurityConfigurationsPostBody", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0892": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), - ".group_0893": ( + ".group_0901": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",), + ".group_0902": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", ), - ".group_0894": ( + ".group_0903": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", ), - ".group_0895": ( + ".group_0904": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ), - ".group_0896": ( + ".group_0905": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", ), - ".group_0897": ("OrgsOrgCodespacesGetResponse200",), - ".group_0898": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0899": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0900": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0901": ( + ".group_0906": ("OrgsOrgCodespacesGetResponse200",), + ".group_0907": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0908": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0909": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0910": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0902": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0903": ( + ".group_0911": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0912": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0904": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0905": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0906": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0907": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0908": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0909": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0910": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0911": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0912": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0913": ( + ".group_0913": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0914": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0915": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0916": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0917": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0918": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0919": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0920": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0921": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0922": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0914": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0915": ( + ".group_0923": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0924": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0916": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0917": ( + ".group_0925": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0926": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0918": ( + ".group_0927": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0919": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0920": ("OrgsOrgInstallationsGetResponse200",), - ".group_0921": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0922": ("OrgsOrgInvitationsPostBody",), - ".group_0923": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0924": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0925": ("OrgsOrgMigrationsPostBody",), - ".group_0926": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0927": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0928": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0929": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0930": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0931": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0932": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0933": ( + ".group_0928": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0929": ("OrgsOrgInstallationsGetResponse200",), + ".group_0930": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0931": ("OrgsOrgInvitationsPostBody",), + ".group_0932": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0933": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0934": ("OrgsOrgMigrationsPostBody",), + ".group_0935": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0936": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0937": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0938": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0939": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0940": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0941": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0942": ( "OrgsOrgPrivateRegistriesGetResponse200", "OrgPrivateRegistryConfiguration", ), - ".group_0934": ("OrgsOrgPrivateRegistriesPostBody",), - ".group_0935": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), - ".group_0936": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), - ".group_0937": ("OrgsOrgProjectsPostBody",), - ".group_0938": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0939": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0940": ( + ".group_0943": ("OrgsOrgPrivateRegistriesPostBody",), + ".group_0944": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",), + ".group_0945": ("OrgsOrgPrivateRegistriesSecretNamePatchBody",), + ".group_0946": ("OrgsOrgProjectsPostBody",), + ".group_0947": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0948": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0949": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0941": ("OrgsOrgRulesetsPostBody",), - ".group_0942": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0943": ( + ".group_0950": ("OrgsOrgRulesetsPostBody",), + ".group_0951": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0952": ( "OrgsOrgSettingsNetworkConfigurationsGetResponse200", "NetworkConfiguration", ), - ".group_0944": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), - ".group_0945": ( + ".group_0953": ("OrgsOrgSettingsNetworkConfigurationsPostBody",), + ".group_0954": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody", ), - ".group_0946": ("OrgsOrgTeamsPostBody",), - ".group_0947": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0948": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0949": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0950": ( + ".group_0955": ("OrgsOrgTeamsPostBody",), + ".group_0956": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0957": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0958": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0959": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0951": ( + ".group_0960": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0952": ( + ".group_0961": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0953": ( + ".group_0962": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0954": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0955": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0956": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0957": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0958": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0959": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0960": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0961": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0962": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0963": ( + ".group_0963": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0964": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0965": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0966": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0967": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0968": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0969": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0970": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0971": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0972": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0964": ( + ".group_0973": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0965": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0966": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0967": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0968": ( + ".group_0974": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0975": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0976": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0977": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0969": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0970": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0971": ("ProjectsProjectIdDeleteResponse403",), - ".group_0972": ("ProjectsProjectIdPatchBody",), - ".group_0973": ("ProjectsProjectIdPatchResponse403",), - ".group_0974": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0975": ("ProjectsProjectIdColumnsPostBody",), - ".group_0976": ("ReposOwnerRepoDeleteResponse403",), - ".group_0977": ( + ".group_0978": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0979": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0980": ("ProjectsProjectIdDeleteResponse403",), + ".group_0981": ("ProjectsProjectIdPatchBody",), + ".group_0982": ("ProjectsProjectIdPatchResponse403",), + ".group_0983": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0984": ("ProjectsProjectIdColumnsPostBody",), + ".group_0985": ("ReposOwnerRepoDeleteResponse403",), + ".group_0986": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", @@ -12445,55 +12495,55 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", ), - ".group_0978": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0979": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0980": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0981": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0982": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0983": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0984": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0985": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0986": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0987": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0988": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_0989": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_0990": ( + ".group_0987": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0988": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0989": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0990": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0991": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0992": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0993": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0994": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0995": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0996": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0997": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0998": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0999": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_0991": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_0992": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_0993": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_0994": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_0995": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_0996": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_0997": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_0998": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_0999": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_1000": ( + ".group_1000": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_1001": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_1002": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_1003": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_1004": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_1005": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_1006": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_1007": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_1008": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_1009": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_1001": ( + ".group_1010": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_1002": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_1003": ( + ".group_1011": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_1012": ( "ReposOwnerRepoAttestationsPostBody", "ReposOwnerRepoAttestationsPostBodyPropBundle", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ), - ".group_1004": ("ReposOwnerRepoAttestationsPostResponse201",), - ".group_1005": ( + ".group_1013": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_1014": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", ), - ".group_1006": ("ReposOwnerRepoAutolinksPostBody",), - ".group_1007": ( + ".group_1015": ("ReposOwnerRepoAutolinksPostBody",), + ".group_1016": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -12502,336 +12552,338 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_1008": ( + ".group_1017": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_1009": ( + ".group_1018": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_1010": ( + ".group_1019": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_1011": ( + ".group_1020": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_1012": ( + ".group_1021": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_1013": ( + ".group_1022": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody", ), - ".group_1014": ( + ".group_1023": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody", ), - ".group_1015": ( + ".group_1024": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody", ), - ".group_1016": ( + ".group_1025": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_1017": ( + ".group_1026": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_1018": ( + ".group_1027": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_1019": ( + ".group_1028": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody", ), - ".group_1020": ( + ".group_1029": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody", ), - ".group_1021": ( + ".group_1030": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody", ), - ".group_1022": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_1023": ( + ".group_1031": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_1032": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_1024": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_1025": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_1026": ( + ".group_1033": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_1034": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_1035": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_1027": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_1028": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_1029": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_1030": ( + ".group_1036": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_1037": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_1038": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_1039": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_1031": ( + ".group_1040": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_1032": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_1033": ( + ".group_1041": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_1042": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_1034": ( + ".group_1043": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_1035": ( + ".group_1044": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_1036": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_1037": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_1038": ("ReposOwnerRepoCodespacesPostBody",), - ".group_1039": ( + ".group_1045": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_1046": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_1047": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1048": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_1040": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_1041": ( + ".group_1049": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1050": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_1042": ( + ".group_1051": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_1043": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_1044": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_1045": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1046": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1047": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1048": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1049": ( + ".group_1052": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1053": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1054": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1055": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1056": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1057": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1058": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1050": ( + ".group_1059": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1051": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1052": ( + ".group_1060": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1061": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1053": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1054": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1055": ( + ".group_1062": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1063": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1064": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1056": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1057": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1058": ( + ".group_1065": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1066": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1067": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1059": ( + ".group_1068": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1060": ( + ".group_1069": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1061": ( + ".group_1070": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1062": ( + ".group_1071": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1063": ( + ".group_1072": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1064": ( + ".group_1073": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1065": ( + ".group_1074": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1066": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1067": ( + ".group_1075": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1076": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1068": ("ReposOwnerRepoForksPostBody",), - ".group_1069": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1070": ( + ".group_1077": ("ReposOwnerRepoForksPostBody",), + ".group_1078": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1079": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1071": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1072": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1073": ( + ".group_1080": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1081": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1082": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1074": ( + ".group_1083": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1075": ( + ".group_1084": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1076": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1077": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1078": ("ReposOwnerRepoImportPutBody",), - ".group_1079": ("ReposOwnerRepoImportPatchBody",), - ".group_1080": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1081": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1082": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1083": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1084": ( + ".group_1085": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1086": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1087": ("ReposOwnerRepoImportPutBody",), + ".group_1088": ("ReposOwnerRepoImportPatchBody",), + ".group_1089": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1090": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1091": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1092": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1093": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1085": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1086": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1087": ( + ".group_1094": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1095": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1096": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1088": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1089": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1090": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1091": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1092": ( + ".group_1097": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1098": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1099": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1100": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1101": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1093": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1094": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1095": ( + ".group_1102": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1103": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1104": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1096": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1097": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1098": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1099": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), - ".group_1100": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), - ".group_1101": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), - ".group_1102": ("ReposOwnerRepoKeysPostBody",), - ".group_1103": ("ReposOwnerRepoLabelsPostBody",), - ".group_1104": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1105": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1106": ("ReposOwnerRepoMergesPostBody",), - ".group_1107": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1108": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1109": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1110": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1111": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1112": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1113": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1114": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1115": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1116": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1117": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1118": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1119": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1120": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1121": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1122": ("ReposOwnerRepoProjectsPostBody",), - ".group_1123": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1124": ("ReposOwnerRepoPullsPostBody",), - ".group_1125": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1126": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1127": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1128": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1129": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1130": ( + ".group_1105": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1106": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1107": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1108": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",), + ".group_1109": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",), + ".group_1110": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",), + ".group_1111": ("ReposOwnerRepoKeysPostBody",), + ".group_1112": ("ReposOwnerRepoLabelsPostBody",), + ".group_1113": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1114": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1115": ("ReposOwnerRepoMergesPostBody",), + ".group_1116": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1117": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1118": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1119": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1120": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1121": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1122": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1126": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1127": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1128": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1129": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1130": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1131": ("ReposOwnerRepoProjectsPostBody",), + ".group_1132": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1133": ("ReposOwnerRepoPullsPostBody",), + ".group_1134": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1135": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1136": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1137": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1138": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1139": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1131": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1132": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1133": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1134": ( + ".group_1140": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1141": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1143": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1135": ( + ".group_1144": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1136": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1137": ( + ".group_1145": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1146": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1138": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1139": ( + ".group_1147": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1148": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1140": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1141": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1142": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1143": ("ReposOwnerRepoReleasesPostBody",), - ".group_1144": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1145": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1146": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1147": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1148": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1149": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1150": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1151": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), - ".group_1152": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1153": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1154": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1155": ("ReposOwnerRepoTopicsPutBody",), - ".group_1156": ("ReposOwnerRepoTransferPostBody",), - ".group_1157": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1158": ("TeamsTeamIdPatchBody",), - ".group_1159": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1160": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1161": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1162": ( + ".group_1149": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1150": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1151": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1152": ("ReposOwnerRepoReleasesPostBody",), + ".group_1153": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1154": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1155": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1156": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1157": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1158": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1159": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1160": ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",), + ".group_1161": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1162": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1163": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1164": ("ReposOwnerRepoTopicsPutBody",), + ".group_1165": ("ReposOwnerRepoTransferPostBody",), + ".group_1166": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1167": ("TeamsTeamIdPatchBody",), + ".group_1168": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1169": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1170": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1171": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1163": ( + ".group_1172": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1164": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1165": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1166": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1167": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1168": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1169": ("UserPatchBody",), - ".group_1170": ("UserCodespacesGetResponse200",), - ".group_1171": ("UserCodespacesPostBodyOneof0",), - ".group_1172": ( + ".group_1173": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1174": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1175": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1176": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1177": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1178": ("UserPatchBody",), + ".group_1179": ("UserCodespacesGetResponse200",), + ".group_1180": ("UserCodespacesPostBodyOneof0",), + ".group_1181": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1173": ( + ".group_1182": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1174": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1175": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1176": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1177": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1178": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1179": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1180": ("UserEmailVisibilityPatchBody",), - ".group_1181": ("UserEmailsPostBodyOneof0",), - ".group_1182": ("UserEmailsDeleteBodyOneof0",), - ".group_1183": ("UserGpgKeysPostBody",), - ".group_1184": ("UserInstallationsGetResponse200",), - ".group_1185": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1186": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1187": ("UserKeysPostBody",), - ".group_1188": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1189": ("UserMigrationsPostBody",), - ".group_1190": ("UserProjectsPostBody",), - ".group_1191": ("UserReposPostBody",), - ".group_1192": ("UserSocialAccountsPostBody",), - ".group_1193": ("UserSocialAccountsDeleteBody",), - ".group_1194": ("UserSshSigningKeysPostBody",), - ".group_1195": ( + ".group_1183": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1184": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1185": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1186": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1187": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1188": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1189": ("UserEmailVisibilityPatchBody",), + ".group_1190": ("UserEmailsPostBodyOneof0",), + ".group_1191": ("UserEmailsDeleteBodyOneof0",), + ".group_1192": ("UserGpgKeysPostBody",), + ".group_1193": ("UserInstallationsGetResponse200",), + ".group_1194": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1195": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1196": ("UserKeysPostBody",), + ".group_1197": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1198": ("UserMigrationsPostBody",), + ".group_1199": ("UserProjectsPostBody",), + ".group_1200": ("UserReposPostBody",), + ".group_1201": ("UserSocialAccountsPostBody",), + ".group_1202": ("UserSocialAccountsDeleteBody",), + ".group_1203": ("UserSshSigningKeysPostBody",), + ".group_1204": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",), + ".group_1205": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",), + ".group_1206": ( "UsersUsernameAttestationsSubjectDigestGetResponse200", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", diff --git a/githubkit/versions/v2022_11_28/models/group_0010.py b/githubkit/versions/v2022_11_28/models/group_0010.py index c5a0ce797..348e6f2b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0010.py +++ b/githubkit/versions/v2022_11_28/models/group_0010.py @@ -48,14 +48,13 @@ class actors within GitHub. permissions: IntegrationPropPermissions = Field( description="The set of permissions for the GitHub app" ) - events: list[str] = Field(description="The list of events for the GitHub app") + events: list[str] = Field( + description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." + ) installations_count: Missing[int] = Field( default=UNSET, - description="The number of installations associated with the GitHub app", + description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", ) - client_secret: Missing[str] = Field(default=UNSET) - webhook_secret: Missing[Union[str, None]] = Field(default=UNSET) - pem: Missing[str] = Field(default=UNSET) model_rebuild(Integration) diff --git a/githubkit/versions/v2022_11_28/models/group_0020.py b/githubkit/versions/v2022_11_28/models/group_0020.py index d2cd51e0b..d792fc704 100644 --- a/githubkit/versions/v2022_11_28/models/group_0020.py +++ b/githubkit/versions/v2022_11_28/models/group_0020.py @@ -185,6 +185,10 @@ class Repository(GitHubModel): default=UNSET, description="Whether anonymous git access is enabled for this repository", ) + code_search_index_status: Missing[RepositoryPropCodeSearchIndexStatus] = Field( + default=UNSET, + description="The status of the code search index for this repository", + ) class RepositoryPropPermissions(GitHubModel): @@ -197,10 +201,22 @@ class RepositoryPropPermissions(GitHubModel): maintain: Missing[bool] = Field(default=UNSET) +class RepositoryPropCodeSearchIndexStatus(GitHubModel): + """RepositoryPropCodeSearchIndexStatus + + The status of the code search index for this repository + """ + + lexical_search_ok: Missing[bool] = Field(default=UNSET) + lexical_commit_sha: Missing[str] = Field(default=UNSET) + + model_rebuild(Repository) model_rebuild(RepositoryPropPermissions) +model_rebuild(RepositoryPropCodeSearchIndexStatus) __all__ = ( "Repository", + "RepositoryPropCodeSearchIndexStatus", "RepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0038.py b/githubkit/versions/v2022_11_28/models/group_0038.py index 624c94077..33230057f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0038.py +++ b/githubkit/versions/v2022_11_28/models/group_0038.py @@ -9,111 +9,141 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0031 import SimpleRepository +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + end_line: float = Field( + description="Line number at which the secret ends in the file" ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET + end_line: float = Field( + description="Line number at which the secret ends in the file" ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment that was optionally added when this alert was closed", + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the secret was publicly leaked." + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." ) -model_rebuild(OrganizationSecretScanningAlert) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestReview) -__all__ = ("OrganizationSecretScanningAlert",) +__all__ = ( + "SecretScanningLocationCommit", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationWikiCommit", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0039.py b/githubkit/versions/v2022_11_28/models/group_0039.py index 5c7ac6985..a6d3ca865 100644 --- a/githubkit/versions/v2022_11_28/models/group_0039.py +++ b/githubkit/versions/v2022_11_28/models/group_0039.py @@ -9,42 +9,68 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser + +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) -class Milestone(GitHubModel): - """Milestone +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment - A collection of related issues and pull requests. + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. """ - url: str = Field() - html_url: str = Field() - labels_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - state: Literal["open", "closed"] = Field( - default="open", description="The state of the milestone." + pull_request_review_comment_url: str = Field( + description="The API URL to get the pull request review comment where the secret was detected." ) - title: str = Field(description="The title of the milestone.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - open_issues: int = Field() - closed_issues: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - due_on: Union[datetime, None] = Field() -model_rebuild(Milestone) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestReviewComment) -__all__ = ("Milestone",) +__all__ = ( + "SecretScanningLocationIssueComment", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationPullRequestReviewComment", + "SecretScanningLocationPullRequestTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0040.py b/githubkit/versions/v2022_11_28/models/group_0040.py index 699a0740c..a909a64f7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0040.py +++ b/githubkit/versions/v2022_11_28/models/group_0040.py @@ -9,47 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class IssueType(GitHubModel): - """Issue Type +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody - The type of issue. + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. """ - id: int = Field(description="The unique identifier of the issue type.") - node_id: str = Field(description="The node identifier of the issue type.") - name: str = Field(description="The name of the issue type.") - description: Union[str, None] = Field( - description="The description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="The color of the issue type.") - created_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type created." + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." ) - updated_at: Missing[datetime] = Field( - default=UNSET, description="The time the issue type last updated." - ) - is_enabled: Missing[bool] = Field( - default=UNSET, description="The enabled state of the issue type." + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." ) -model_rebuild(IssueType) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationPullRequestComment) -__all__ = ("IssueType",) +__all__ = ( + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationPullRequestComment", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0041.py b/githubkit/versions/v2022_11_28/models/group_0041.py index fd85f1373..b49721e79 100644 --- a/githubkit/versions/v2022_11_28/models/group_0041.py +++ b/githubkit/versions/v2022_11_28/models/group_0041.py @@ -9,26 +9,152 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0031 import SimpleRepository +from .group_0038 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0039 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0040 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -class ReactionRollup(GitHubModel): - """Reaction Rollup""" +class OrganizationSecretScanningAlert(GitHubModel): + """OrganizationSecretScanningAlert""" - url: str = Field() - total_count: int = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - laugh: int = Field() - confused: int = Field() - heart: int = Field() - hooray: int = Field() - eyes: int = Field() - rocket: int = Field() + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." + ) + repository: Missing[SimpleRepository] = Field( + default=UNSET, title="Simple Repository", description="A GitHub repository." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET + ) + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment that was optionally added when this alert was closed", + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or enterprise.", + ) + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", + ) -model_rebuild(ReactionRollup) +model_rebuild(OrganizationSecretScanningAlert) -__all__ = ("ReactionRollup",) +__all__ = ("OrganizationSecretScanningAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0042.py b/githubkit/versions/v2022_11_28/models/group_0042.py index 5f9579d15..5c7ac6985 100644 --- a/githubkit/versions/v2022_11_28/models/group_0042.py +++ b/githubkit/versions/v2022_11_28/models/group_0042.py @@ -15,128 +15,36 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0039 import Milestone -from .group_0040 import IssueType -from .group_0041 import ReactionRollup -class Issue(GitHubModel): - """Issue +class Milestone(GitHubModel): + """Milestone - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. + A collection of related issues and pull requests. """ + url: str = Field() + html_url: str = Field() + labels_url: str = Field() id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue") - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - number: int = Field( - description="Number uniquely identifying the issue within its repository" - ) - state: str = Field(description="State of the issue; either 'open' or 'closed'") - state_reason: Missing[ - Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - user: Union[None, SimpleUser] = Field() - labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( - description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" - ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + state: Literal["open", "closed"] = Field( + default="open", description="The state of the milestone." + ) + title: str = Field(description="The title of the milestone.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + open_issues: int = Field() + closed_issues: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - sub_issues_summary: Missing[SubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - - -class SubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - - -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() + closed_at: Union[datetime, None] = Field() + due_on: Union[datetime, None] = Field() -model_rebuild(Issue) -model_rebuild(SubIssuesSummary) -model_rebuild(IssuePropLabelsItemsOneof1) -model_rebuild(IssuePropPullRequest) +model_rebuild(Milestone) -__all__ = ( - "Issue", - "IssuePropLabelsItemsOneof1", - "IssuePropPullRequest", - "SubIssuesSummary", -) +__all__ = ("Milestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0043.py b/githubkit/versions/v2022_11_28/models/group_0043.py index 16f443646..699a0740c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0043.py +++ b/githubkit/versions/v2022_11_28/models/group_0043.py @@ -18,49 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0041 import ReactionRollup +class IssueType(GitHubModel): + """Issue Type -class IssueComment(GitHubModel): - """Issue Comment - - Comments provide a way for people to collaborate on an issue. + The type of issue. """ - id: int = Field(description="Unique identifier of the issue comment") - node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" + id: int = Field(description="The unique identifier of the issue type.") + node_id: str = Field(description="The node identifier of the issue type.") + name: str = Field(description="The name of the issue type.") + description: Union[str, None] = Field( + description="The description of the issue type." + ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="The color of the issue type.") + created_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type created." ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + updated_at: Missing[datetime] = Field( + default=UNSET, description="The time the issue type last updated." ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + is_enabled: Missing[bool] = Field( + default=UNSET, description="The enabled state of the issue type." ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(IssueComment) +model_rebuild(IssueType) -__all__ = ("IssueComment",) +__all__ = ("IssueType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0044.py b/githubkit/versions/v2022_11_28/models/group_0044.py index b634525c3..fd85f1373 100644 --- a/githubkit/versions/v2022_11_28/models/group_0044.py +++ b/githubkit/versions/v2022_11_28/models/group_0044.py @@ -9,95 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0042 import Issue -from .group_0043 import IssueComment - - -class EventPropPayload(GitHubModel): - """EventPropPayload""" - - action: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - comment: Missing[IssueComment] = Field( - default=UNSET, - title="Issue Comment", - description="Comments provide a way for people to collaborate on an issue.", - ) - pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) - - -class EventPropPayloadPropPagesItems(GitHubModel): - """EventPropPayloadPropPagesItems""" - - page_name: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - summary: Missing[Union[str, None]] = Field(default=UNSET) - action: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - - -class Event(GitHubModel): - """Event - - Event - """ - - id: str = Field() - type: Union[str, None] = Field() - actor: Actor = Field(title="Actor", description="Actor") - repo: EventPropRepo = Field() - org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") - payload: EventPropPayload = Field() - public: bool = Field() - created_at: Union[datetime, None] = Field() - - -class Actor(GitHubModel): - """Actor - - Actor - """ - - id: int = Field() - login: str = Field() - display_login: Missing[str] = Field(default=UNSET) - gravatar_id: Union[str, None] = Field() - url: str = Field() - avatar_url: str = Field() -class EventPropRepo(GitHubModel): - """EventPropRepo""" +class ReactionRollup(GitHubModel): + """Reaction Rollup""" - id: int = Field() - name: str = Field() url: str = Field() + total_count: int = Field() + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + laugh: int = Field() + confused: int = Field() + heart: int = Field() + hooray: int = Field() + eyes: int = Field() + rocket: int = Field() -model_rebuild(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(ReactionRollup) -__all__ = ( - "Actor", - "Event", - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "EventPropRepo", -) +__all__ = ("ReactionRollup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0045.py b/githubkit/versions/v2022_11_28/models/group_0045.py index a40a69c97..e779867a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0045.py +++ b/githubkit/versions/v2022_11_28/models/group_0045.py @@ -9,86 +9,134 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0042 import Milestone +from .group_0043 import IssueType +from .group_0044 import ReactionRollup -class Feed(GitHubModel): - """Feed - Feed - """ +class Issue(GitHubModel): + """Issue - timeline_url: str = Field() - user_url: str = Field() - current_user_public_url: Missing[str] = Field(default=UNSET) - current_user_url: Missing[str] = Field(default=UNSET) - current_user_actor_url: Missing[str] = Field(default=UNSET) - current_user_organization_url: Missing[str] = Field(default=UNSET) - current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) - security_advisories_url: Missing[str] = Field(default=UNSET) - repository_discussions_url: Missing[str] = Field( - default=UNSET, description="A feed of discussions for a given repository." - ) - repository_discussions_category_url: Missing[str] = Field( - default=UNSET, - description="A feed of discussions for a given repository and category.", - ) - links: FeedPropLinks = Field(alias="_links") - - -class FeedPropLinks(GitHubModel): - """FeedPropLinks""" + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. + """ - timeline: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" + id: int = Field() + node_id: str = Field() + url: str = Field(description="URL for the issue") + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" ) - user: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" ) - security_advisories: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + user: Union[None, SimpleUser] = Field() + labels: list[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." ) - current_user_public: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." ) - current_user_actor: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - current_user_organization: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) - repository_discussions: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - repository_discussions_category: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + sub_issues_summary: Missing[SubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" ) -class LinkWithType(GitHubModel): - """Link With Type +class SubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - Hypermedia Link with Type - """ + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssuePropLabelsItemsOneof1(GitHubModel): + """IssuePropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + + +class IssuePropPullRequest(GitHubModel): + """IssuePropPullRequest""" - href: str = Field() - type: str = Field() + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(Issue) +model_rebuild(SubIssuesSummary) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) __all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", + "SubIssuesSummary", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0046.py b/githubkit/versions/v2022_11_28/models/group_0046.py index f2be178a2..e6059e474 100644 --- a/githubkit/versions/v2022_11_28/models/group_0046.py +++ b/githubkit/versions/v2022_11_28/models/group_0046.py @@ -10,56 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0044 import ReactionRollup -class BaseGist(GitHubModel): - """Base Gist +class IssueComment(GitHubModel): + """Issue Comment - Base Gist + Comments provide a way for people to collaborate on an issue. """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() + id: int = Field(description="Unique identifier of the issue comment") node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) html_url: str = Field() - files: BaseGistPropFiles = Field() - public: bool = Field() + user: Union[None, SimpleUser] = Field() created_at: datetime = Field() updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) - - -class BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(IssueComment) -__all__ = ( - "BaseGist", - "BaseGistPropFiles", -) +__all__ = ("IssueComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0047.py b/githubkit/versions/v2022_11_28/models/group_0047.py index 825cce14c..63dff7cb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0047.py +++ b/githubkit/versions/v2022_11_28/models/group_0047.py @@ -10,79 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0045 import Issue +from .group_0046 import IssueComment -class GistHistory(GitHubModel): - """Gist History +class EventPropPayload(GitHubModel): + """EventPropPayload""" - Gist History - """ - - user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - committed_at: Missing[datetime] = Field(default=UNSET) - change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + comment: Missing[IssueComment] = Field( + default=UNSET, + title="Issue Comment", + description="Comments provide a way for people to collaborate on an issue.", + ) + pages: Missing[list[EventPropPayloadPropPagesItems]] = Field(default=UNSET) -class GistHistoryPropChangeStatus(GitHubModel): - """GistHistoryPropChangeStatus""" +class EventPropPayloadPropPagesItems(GitHubModel): + """EventPropPayloadPropPagesItems""" - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) + page_name: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + summary: Missing[Union[str, None]] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -class GistSimplePropForkOf(GitHubModel): - """Gist +class Event(GitHubModel): + """Event - Gist + Event """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() - html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[list[Any]] = Field(default=UNSET) - history: Missing[list[Any]] = Field(default=UNSET) + created_at: Union[datetime, None] = Field() -class GistSimplePropForkOfPropFiles(ExtraGitHubModel): - """GistSimplePropForkOfPropFiles""" +class Actor(GitHubModel): + """Actor + + Actor + """ + + id: int = Field() + login: str = Field() + display_login: Missing[str] = Field(default=UNSET) + gravatar_id: Union[str, None] = Field() + url: str = Field() + avatar_url: str = Field() + + +class EventPropRepo(GitHubModel): + """EventPropRepo""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(GistHistory) -model_rebuild(GistHistoryPropChangeStatus) -model_rebuild(GistSimplePropForkOf) -model_rebuild(GistSimplePropForkOfPropFiles) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) __all__ = ( - "GistHistory", - "GistHistoryPropChangeStatus", - "GistSimplePropForkOf", - "GistSimplePropForkOfPropFiles", + "Actor", + "Event", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "EventPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0048.py b/githubkit/versions/v2022_11_28/models/group_0048.py index 56b19c0e8..a40a69c97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0048.py +++ b/githubkit/versions/v2022_11_28/models/group_0048.py @@ -9,136 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0047 import GistHistory, GistSimplePropForkOf - -class GistSimple(GitHubModel): - """Gist Simple +class Feed(GitHubModel): + """Feed - Gist Simple + Feed """ - forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) - history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) - fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( - default=UNSET, title="Gist", description="Gist" + timeline_url: str = Field() + user_url: str = Field() + current_user_public_url: Missing[str] = Field(default=UNSET) + current_user_url: Missing[str] = Field(default=UNSET) + current_user_actor_url: Missing[str] = Field(default=UNSET) + current_user_organization_url: Missing[str] = Field(default=UNSET) + current_user_organization_urls: Missing[list[str]] = Field(default=UNSET) + security_advisories_url: Missing[str] = Field(default=UNSET) + repository_discussions_url: Missing[str] = Field( + default=UNSET, description="A feed of discussions for a given repository." ) - url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - git_pull_url: Missing[str] = Field(default=UNSET) - git_push_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - files: Missing[GistSimplePropFiles] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_enabled: Missing[bool] = Field(default=UNSET) - user: Missing[Union[str, None]] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository_discussions_category_url: Missing[str] = Field( + default=UNSET, + description="A feed of discussions for a given repository and category.", ) - truncated: Missing[bool] = Field(default=UNSET) - - -class GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" + links: FeedPropLinks = Field(alias="_links") -class GistSimplePropForksItems(GitHubModel): - """GistSimplePropForksItems""" +class FeedPropLinks(GitHubModel): + """FeedPropLinks""" - id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[PublicUser] = Field( - default=UNSET, title="Public User", description="Public User" + timeline: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + user: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + security_advisories: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_public: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_actor: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organization: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organizations: Missing[list[LinkWithType]] = Field(default=UNSET) + repository_discussions: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + repository_discussions_category: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) -class PublicUser(GitHubModel): - """Public User +class LinkWithType(GitHubModel): + """Link With Type - Public User + Hypermedia Link with Type """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() + href: str = Field() type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[PublicUserPropPlan] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - disk_usage: Missing[int] = Field(default=UNSET) - collaborators: Missing[int] = Field(default=UNSET) - - -class PublicUserPropPlan(GitHubModel): - """PublicUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() - - -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) + + +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) __all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", + "Feed", + "FeedPropLinks", + "LinkWithType", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0049.py b/githubkit/versions/v2022_11_28/models/group_0049.py index 429704889..f2be178a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0049.py +++ b/githubkit/versions/v2022_11_28/models/group_0049.py @@ -10,43 +10,56 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -class GistComment(GitHubModel): - """Gist Comment +class BaseGist(GitHubModel): + """Base Gist - A comment made to a gist. + Base Gist """ - id: int = Field() - node_id: str = Field() url: str = Field() - body: str = Field(max_length=65535, description="The comment text.") - user: Union[None, SimpleUser] = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: BaseGistPropFiles = Field() + public: bool = Field() created_at: datetime = Field() updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) + + +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" -model_rebuild(GistComment) +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) -__all__ = ("GistComment",) +__all__ = ( + "BaseGist", + "BaseGistPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0050.py b/githubkit/versions/v2022_11_28/models/group_0050.py index d417526bd..825cce14c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0050.py +++ b/githubkit/versions/v2022_11_28/models/group_0050.py @@ -10,42 +10,79 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Any, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -class GistCommit(GitHubModel): - """Gist Commit +class GistHistory(GitHubModel): + """Gist History - Gist Commit + Gist History """ - url: str = Field() - version: str = Field() - user: Union[None, SimpleUser] = Field() - change_status: GistCommitPropChangeStatus = Field() - committed_at: datetime = Field() + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + committed_at: Missing[datetime] = Field(default=UNSET) + change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class GistCommitPropChangeStatus(GitHubModel): - """GistCommitPropChangeStatus""" +class GistHistoryPropChangeStatus(GitHubModel): + """GistHistoryPropChangeStatus""" total: Missing[int] = Field(default=UNSET) additions: Missing[int] = Field(default=UNSET) deletions: Missing[int] = Field(default=UNSET) -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) +class GistSimplePropForkOf(GitHubModel): + """Gist + + Gist + """ + + url: str = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + description: Union[str, None] = Field() + comments: int = Field() + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[list[Any]] = Field(default=UNSET) + history: Missing[list[Any]] = Field(default=UNSET) + + +class GistSimplePropForkOfPropFiles(ExtraGitHubModel): + """GistSimplePropForkOfPropFiles""" + + +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) __all__ = ( - "GistCommit", - "GistCommitPropChangeStatus", + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0051.py b/githubkit/versions/v2022_11_28/models/group_0051.py index 68fca7a2b..91e899480 100644 --- a/githubkit/versions/v2022_11_28/models/group_0051.py +++ b/githubkit/versions/v2022_11_28/models/group_0051.py @@ -9,21 +9,136 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0050 import GistHistory, GistSimplePropForkOf -class GitignoreTemplate(GitHubModel): - """Gitignore Template +class GistSimple(GitHubModel): + """Gist Simple - Gitignore Template + Gist Simple """ + forks: Missing[Union[list[GistSimplePropForksItems], None]] = Field(default=UNSET) + history: Missing[Union[list[GistHistory], None]] = Field(default=UNSET) + fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( + default=UNSET, title="Gist", description="Gist" + ) + url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + git_pull_url: Missing[str] = Field(default=UNSET) + git_push_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + files: Missing[GistSimplePropFiles] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_enabled: Missing[bool] = Field(default=UNSET) + user: Missing[Union[str, None]] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + truncated: Missing[bool] = Field(default=UNSET) + + +class GistSimplePropFiles(ExtraGitHubModel): + """GistSimplePropFiles""" + + +class GistSimplePropForksItems(GitHubModel): + """GistSimplePropForksItems""" + + id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[PublicUser] = Field( + default=UNSET, title="Public User", description="Public User" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class PublicUser(GitHubModel): + """Public User + + Public User + """ + + login: str = Field() + id: int = Field() + user_view_type: Missing[str] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + plan: Missing[PublicUserPropPlan] = Field(default=UNSET) + private_gists: Missing[int] = Field(default=UNSET) + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + disk_usage: Missing[int] = Field(default=UNSET) + collaborators: Missing[int] = Field(default=UNSET) + + +class PublicUserPropPlan(GitHubModel): + """PublicUserPropPlan""" + + collaborators: int = Field() name: str = Field() - source: str = Field() + space: int = Field() + private_repos: int = Field() -model_rebuild(GitignoreTemplate) +model_rebuild(GistSimple) +model_rebuild(GistSimplePropFiles) +model_rebuild(GistSimplePropForksItems) +model_rebuild(PublicUser) +model_rebuild(PublicUserPropPlan) -__all__ = ("GitignoreTemplate",) +__all__ = ( + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0052.py b/githubkit/versions/v2022_11_28/models/group_0052.py index 783d62fbc..429704889 100644 --- a/githubkit/versions/v2022_11_28/models/group_0052.py +++ b/githubkit/versions/v2022_11_28/models/group_0052.py @@ -9,34 +9,44 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class License(GitHubModel): - """License - License +class GistComment(GitHubModel): + """Gist Comment + + A comment made to a gist. """ - key: str = Field() - name: str = Field() - spdx_id: Union[str, None] = Field() - url: Union[str, None] = Field() + id: int = Field() node_id: str = Field() - html_url: str = Field() - description: str = Field() - implementation: str = Field() - permissions: list[str] = Field() - conditions: list[str] = Field() - limitations: list[str] = Field() - body: str = Field() - featured: bool = Field() - - -model_rebuild(License) - -__all__ = ("License",) + url: str = Field() + body: str = Field(max_length=65535, description="The comment text.") + user: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +model_rebuild(GistComment) + +__all__ = ("GistComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0053.py b/githubkit/versions/v2022_11_28/models/group_0053.py index f13661e40..d417526bd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0053.py +++ b/githubkit/versions/v2022_11_28/models/group_0053.py @@ -9,34 +9,43 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistCommit(GitHubModel): + """Gist Commit + + Gist Commit """ url: str = Field() - accounts_url: str = Field() - id: int = Field() - number: int = Field() - name: str = Field() - description: str = Field() - monthly_price_in_cents: int = Field() - yearly_price_in_cents: int = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - has_free_trial: bool = Field() - unit_name: Union[str, None] = Field() - state: str = Field() - bullets: list[str] = Field() - - -model_rebuild(MarketplaceListingPlan) - -__all__ = ("MarketplaceListingPlan",) + version: str = Field() + user: Union[None, SimpleUser] = Field() + change_status: GistCommitPropChangeStatus = Field() + committed_at: datetime = Field() + + +class GistCommitPropChangeStatus(GitHubModel): + """GistCommitPropChangeStatus""" + + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + + +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) + +__all__ = ( + "GistCommit", + "GistCommitPropChangeStatus", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0054.py b/githubkit/versions/v2022_11_28/models/group_0054.py index 10cb3ce24..68fca7a2b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0054.py +++ b/githubkit/versions/v2022_11_28/models/group_0054.py @@ -9,38 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0055 import ( - MarketplacePurchasePropMarketplacePendingChange, - MarketplacePurchasePropMarketplacePurchase, -) -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase +class GitignoreTemplate(GitHubModel): + """Gitignore Template - Marketplace Purchase + Gitignore Template """ - url: str = Field() - type: str = Field() - id: int = Field() - login: str = Field() - organization_billing_email: Missing[str] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - marketplace_pending_change: Missing[ - Union[MarketplacePurchasePropMarketplacePendingChange, None] - ] = Field(default=UNSET) - marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() + name: str = Field() + source: str = Field() -model_rebuild(MarketplacePurchase) +model_rebuild(GitignoreTemplate) -__all__ = ("MarketplacePurchase",) +__all__ = ("GitignoreTemplate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0055.py b/githubkit/versions/v2022_11_28/models/group_0055.py index 95fd249e1..783d62fbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0055.py +++ b/githubkit/versions/v2022_11_28/models/group_0055.py @@ -14,47 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0053 import MarketplaceListingPlan - - -class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): - """MarketplacePurchasePropMarketplacePendingChange""" - - is_installed: Missing[bool] = Field(default=UNSET) - effective_date: Missing[str] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: Missing[str] = Field(default=UNSET) - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - is_installed: Missing[bool] = Field(default=UNSET) - unit_count: Missing[Union[int, None]] = Field(default=UNSET) - on_free_trial: Missing[bool] = Field(default=UNSET) - free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - plan: Missing[MarketplaceListingPlan] = Field( - default=UNSET, - title="Marketplace Listing Plan", - description="Marketplace Listing Plan", - ) - - -model_rebuild(MarketplacePurchasePropMarketplacePendingChange) -model_rebuild(MarketplacePurchasePropMarketplacePurchase) - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChange", - "MarketplacePurchasePropMarketplacePurchase", -) + + +class License(GitHubModel): + """License + + License + """ + + key: str = Field() + name: str = Field() + spdx_id: Union[str, None] = Field() + url: Union[str, None] = Field() + node_id: str = Field() + html_url: str = Field() + description: str = Field() + implementation: str = Field() + permissions: list[str] = Field() + conditions: list[str] = Field() + limitations: list[str] = Field() + body: str = Field() + featured: bool = Field() + + +model_rebuild(License) + +__all__ = ("License",) diff --git a/githubkit/versions/v2022_11_28/models/group_0056.py b/githubkit/versions/v2022_11_28/models/group_0056.py index b8030b113..f13661e40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0056.py +++ b/githubkit/versions/v2022_11_28/models/group_0056.py @@ -9,89 +9,34 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ApiOverview(GitHubModel): - """Api Overview +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan - Api Overview + Marketplace Listing Plan """ - verifiable_password_authentication: bool = Field() - ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( - default=UNSET - ) - ssh_keys: Missing[list[str]] = Field(default=UNSET) - hooks: Missing[list[str]] = Field(default=UNSET) - github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) - web: Missing[list[str]] = Field(default=UNSET) - api: Missing[list[str]] = Field(default=UNSET) - git: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - pages: Missing[list[str]] = Field(default=UNSET) - importer: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_macos: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - dependabot: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) - - -class ApiOverviewPropSshKeyFingerprints(GitHubModel): - """ApiOverviewPropSshKeyFingerprints""" - - sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") - sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") - sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") - sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") - - -class ApiOverviewPropDomains(GitHubModel): - """ApiOverviewPropDomains""" - - website: Missing[list[str]] = Field(default=UNSET) - codespaces: Missing[list[str]] = Field(default=UNSET) - copilot: Missing[list[str]] = Field(default=UNSET) - packages: Missing[list[str]] = Field(default=UNSET) - actions: Missing[list[str]] = Field(default=UNSET) - actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( - default=UNSET - ) - artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( - Field(default=UNSET) - ) - - -class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): - """ApiOverviewPropDomainsPropActionsInbound""" - - full_domains: Missing[list[str]] = Field(default=UNSET) - wildcard_domains: Missing[list[str]] = Field(default=UNSET) - - -class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: Missing[str] = Field(default=UNSET) - services: Missing[list[str]] = Field(default=UNSET) + url: str = Field() + accounts_url: str = Field() + id: int = Field() + number: int = Field() + name: str = Field() + description: str = Field() + monthly_price_in_cents: int = Field() + yearly_price_in_cents: int = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + has_free_trial: bool = Field() + unit_name: Union[str, None] = Field() + state: str = Field() + bullets: list[str] = Field() -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) -model_rebuild(ApiOverviewPropDomainsPropActionsInbound) -model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) +model_rebuild(MarketplaceListingPlan) -__all__ = ( - "ApiOverview", - "ApiOverviewPropDomains", - "ApiOverviewPropDomainsPropActionsInbound", - "ApiOverviewPropDomainsPropArtifactAttestations", - "ApiOverviewPropSshKeyFingerprints", -) +__all__ = ("MarketplaceListingPlan",) diff --git a/githubkit/versions/v2022_11_28/models/group_0057.py b/githubkit/versions/v2022_11_28/models/group_0057.py index a59ce48ac..14054a30e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0057.py +++ b/githubkit/versions/v2022_11_28/models/group_0057.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,98 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" - - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( - default=UNSET - ) - code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = Field( - default=UNSET, - description="Enable or disable Dependabot security updates for the repository.", - ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( - default=UNSET - ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - secret_scanning_non_provider_patterns: Missing[ - SecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field(default=UNSET) - secret_scanning_ai_detection: Missing[ - SecurityAndAnalysisPropSecretScanningAiDetection - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropCodeSecurity(GitHubModel): - """SecurityAndAnalysisPropCodeSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) +from .group_0058 import ( + MarketplacePurchasePropMarketplacePendingChange, + MarketplacePurchasePropMarketplacePurchase, +) -class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): - """SecurityAndAnalysisPropDependabotSecurityUpdates +class MarketplacePurchase(GitHubModel): + """Marketplace Purchase - Enable or disable Dependabot security updates for the repository. + Marketplace Purchase """ - status: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of Dependabot security updates for the repository.", - ) - - -class SecurityAndAnalysisPropSecretScanning(GitHubModel): - """SecurityAndAnalysisPropSecretScanning""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningAiDetection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + url: str = Field() + type: str = Field() + id: int = Field() + login: str = Field() + organization_billing_email: Missing[str] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + marketplace_pending_change: Missing[ + Union[MarketplacePurchasePropMarketplacePendingChange, None] + ] = Field(default=UNSET) + marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() -model_rebuild(SecurityAndAnalysis) -model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(SecurityAndAnalysisPropCodeSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) -model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) -model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) +model_rebuild(MarketplacePurchase) -__all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropCodeSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningAiDetection", - "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "SecurityAndAnalysisPropSecretScanningPushProtection", -) +__all__ = ("MarketplacePurchase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0058.py b/githubkit/versions/v2022_11_28/models/group_0058.py index 0db6bec60..053a66c35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0058.py +++ b/githubkit/versions/v2022_11_28/models/group_0058.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,155 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0057 import SecurityAndAnalysis - - -class MinimalRepository(GitHubModel): - """Minimal Repository - - Minimal Repository - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: str = Field() - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field( - default=UNSET, - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - ) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - created_at: Missing[Union[datetime, None]] = Field(default=UNSET) - updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) - permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - code_of_conduct: Missing[CodeOfConduct] = Field( - default=UNSET, title="Code Of Conduct", description="Code Of Conduct" - ) - license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( - default=UNSET, alias="license" - ) - forks: Missing[int] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET - ) - - -class CodeOfConduct(GitHubModel): - """Code Of Conduct +from .group_0056 import MarketplaceListingPlan - Code Of Conduct - """ - key: str = Field() - name: str = Field() - url: str = Field() - body: Missing[str] = Field(default=UNSET) - html_url: Union[str, None] = Field() +class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): + """MarketplacePurchasePropMarketplacePendingChange""" - -class MinimalRepositoryPropPermissions(GitHubModel): - """MinimalRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + effective_date: Missing[str] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -class MinimalRepositoryPropLicense(GitHubModel): - """MinimalRepositoryPropLicense""" +class MarketplacePurchasePropMarketplacePurchase(GitHubModel): + """MarketplacePurchasePropMarketplacePurchase""" - key: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - spdx_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + billing_cycle: Missing[str] = Field(default=UNSET) + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + on_free_trial: Missing[bool] = Field(default=UNSET) + free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -model_rebuild(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "CodeOfConduct", - "MinimalRepository", - "MinimalRepositoryPropLicense", - "MinimalRepositoryPropPermissions", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0059.py b/githubkit/versions/v2022_11_28/models/group_0059.py index cc1a6492b..b8030b113 100644 --- a/githubkit/versions/v2022_11_28/models/group_0059.py +++ b/githubkit/versions/v2022_11_28/models/group_0059.py @@ -9,47 +9,89 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0058 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Thread(GitHubModel): - """Thread +class ApiOverview(GitHubModel): + """Api Overview - Thread + Api Overview """ - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + verifiable_password_authentication: bool = Field() + ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( + default=UNSET + ) + ssh_keys: Missing[list[str]] = Field(default=UNSET) + hooks: Missing[list[str]] = Field(default=UNSET) + github_enterprise_importer: Missing[list[str]] = Field(default=UNSET) + web: Missing[list[str]] = Field(default=UNSET) + api: Missing[list[str]] = Field(default=UNSET) + git: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + pages: Missing[list[str]] = Field(default=UNSET) + importer: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_macos: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + dependabot: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) + + +class ApiOverviewPropSshKeyFingerprints(GitHubModel): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: Missing[str] = Field(default=UNSET, alias="SHA256_RSA") + sha256_dsa: Missing[str] = Field(default=UNSET, alias="SHA256_DSA") + sha256_ecdsa: Missing[str] = Field(default=UNSET, alias="SHA256_ECDSA") + sha256_ed25519: Missing[str] = Field(default=UNSET, alias="SHA256_ED25519") + + +class ApiOverviewPropDomains(GitHubModel): + """ApiOverviewPropDomains""" + + website: Missing[list[str]] = Field(default=UNSET) + codespaces: Missing[list[str]] = Field(default=UNSET) + copilot: Missing[list[str]] = Field(default=UNSET) + packages: Missing[list[str]] = Field(default=UNSET) + actions: Missing[list[str]] = Field(default=UNSET) + actions_inbound: Missing[ApiOverviewPropDomainsPropActionsInbound] = Field( + default=UNSET + ) + artifact_attestations: Missing[ApiOverviewPropDomainsPropArtifactAttestations] = ( + Field(default=UNSET) ) - subject: ThreadPropSubject = Field() - reason: str = Field() - unread: bool = Field() - updated_at: str = Field() - last_read_at: Union[str, None] = Field() - url: str = Field() - subscription_url: str = Field() -class ThreadPropSubject(GitHubModel): - """ThreadPropSubject""" +class ApiOverviewPropDomainsPropActionsInbound(GitHubModel): + """ApiOverviewPropDomainsPropActionsInbound""" + + full_domains: Missing[list[str]] = Field(default=UNSET) + wildcard_domains: Missing[list[str]] = Field(default=UNSET) + + +class ApiOverviewPropDomainsPropArtifactAttestations(GitHubModel): + """ApiOverviewPropDomainsPropArtifactAttestations""" - title: str = Field() - url: str = Field() - latest_comment_url: str = Field() - type: str = Field() + trust_domain: Missing[str] = Field(default=UNSET) + services: Missing[list[str]] = Field(default=UNSET) -model_rebuild(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) +model_rebuild(ApiOverviewPropDomainsPropActionsInbound) +model_rebuild(ApiOverviewPropDomainsPropArtifactAttestations) __all__ = ( - "Thread", - "ThreadPropSubject", + "ApiOverview", + "ApiOverviewPropDomains", + "ApiOverviewPropDomainsPropActionsInbound", + "ApiOverviewPropDomainsPropArtifactAttestations", + "ApiOverviewPropSshKeyFingerprints", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0060.py b/githubkit/versions/v2022_11_28/models/group_0060.py index 3f78547c4..a59ce48ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0060.py +++ b/githubkit/versions/v2022_11_28/models/group_0060.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -19,21 +18,97 @@ from githubkit.utils import UNSET -class ThreadSubscription(GitHubModel): - """Thread Subscription +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" - Thread Subscription + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + default=UNSET + ) + code_security: Missing[SecurityAndAnalysisPropCodeSecurity] = Field(default=UNSET) + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( + default=UNSET, + description="Enable or disable Dependabot security updates for the repository.", + ) + secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + default=UNSET + ) + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + secret_scanning_ai_detection: Missing[ + SecurityAndAnalysisPropSecretScanningAiDetection + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropCodeSecurity(GitHubModel): + """SecurityAndAnalysisPropCodeSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - subscribed: bool = Field() - ignored: bool = Field() - reason: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - url: str = Field() - thread_url: Missing[str] = Field(default=UNSET) - repository_url: Missing[str] = Field(default=UNSET) + status: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of Dependabot security updates for the repository.", + ) + + +class SecurityAndAnalysisPropSecretScanning(GitHubModel): + """SecurityAndAnalysisPropSecretScanning""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningAiDetection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningAiDetection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -model_rebuild(ThreadSubscription) +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropCodeSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) +model_rebuild(SecurityAndAnalysisPropSecretScanningAiDetection) -__all__ = ("ThreadSubscription",) +__all__ = ( + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropCodeSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningAiDetection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "SecurityAndAnalysisPropSecretScanningPushProtection", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0061.py b/githubkit/versions/v2022_11_28/models/group_0061.py index d86ab3170..f6b904541 100644 --- a/githubkit/versions/v2022_11_28/models/group_0061.py +++ b/githubkit/versions/v2022_11_28/models/group_0061.py @@ -9,33 +9,179 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0060 import SecurityAndAnalysis -class OrganizationSimple(GitHubModel): - """Organization Simple - A GitHub organization. +class MinimalRepository(GitHubModel): + """Minimal Repository + + Minimal Repository """ - login: str = Field() id: int = Field() node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() url: str = Field() - repos_url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() events_url: str = Field() - hooks_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: str = Field() + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field( + default=UNSET, + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", + ) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + created_at: Missing[Union[datetime, None]] = Field(default=UNSET) + updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) + permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + code_of_conduct: Missing[CodeOfConduct] = Field( + default=UNSET, title="Code Of Conduct", description="Code Of Conduct" + ) + license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( + default=UNSET, alias="license" + ) + forks: Missing[int] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + custom_properties: Missing[MinimalRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class CodeOfConduct(GitHubModel): + """Code Of Conduct + + Code Of Conduct + """ + + key: str = Field() + name: str = Field() + url: str = Field() + body: Missing[str] = Field(default=UNSET) + html_url: Union[str, None] = Field() + + +class MinimalRepositoryPropPermissions(GitHubModel): + """MinimalRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +class MinimalRepositoryPropLicense(GitHubModel): + """MinimalRepositoryPropLicense""" + + key: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + spdx_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + + +class MinimalRepositoryPropCustomProperties(ExtraGitHubModel): + """MinimalRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -model_rebuild(OrganizationSimple) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MinimalRepositoryPropCustomProperties) -__all__ = ("OrganizationSimple",) +__all__ = ( + "CodeOfConduct", + "MinimalRepository", + "MinimalRepositoryPropCustomProperties", + "MinimalRepositoryPropLicense", + "MinimalRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0062.py b/githubkit/versions/v2022_11_28/models/group_0062.py index 856ee3686..b423a9b25 100644 --- a/githubkit/versions/v2022_11_28/models/group_0062.py +++ b/githubkit/versions/v2022_11_28/models/group_0062.py @@ -9,55 +9,47 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0061 import MinimalRepository + + +class Thread(GitHubModel): + """Thread -class BillingUsageReport(GitHubModel): - """BillingUsageReport""" + Thread + """ - usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" + id: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) + subject: ThreadPropSubject = Field() + reason: str = Field() + unread: bool = Field() + updated_at: str = Field() + last_read_at: Union[str, None] = Field() + url: str = Field() + subscription_url: str = Field() -class BillingUsageReportPropUsageItemsItems(GitHubModel): - """BillingUsageReportPropUsageItemsItems""" +class ThreadPropSubject(GitHubModel): + """ThreadPropSubject""" - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - organization_name: str = Field( - alias="organizationName", description="Name of the organization." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) + title: str = Field() + url: str = Field() + latest_comment_url: str = Field() + type: str = Field() -model_rebuild(BillingUsageReport) -model_rebuild(BillingUsageReportPropUsageItemsItems) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) __all__ = ( - "BillingUsageReport", - "BillingUsageReportPropUsageItemsItems", + "Thread", + "ThreadPropSubject", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0063.py b/githubkit/versions/v2022_11_28/models/group_0063.py index ebb98c8af..3f78547c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0063.py +++ b/githubkit/versions/v2022_11_28/models/group_0063.py @@ -19,118 +19,21 @@ from githubkit.utils import UNSET -class OrganizationFull(GitHubModel): - """Organization Full +class ThreadSubscription(GitHubModel): + """Thread Subscription - Organization Full + Thread Subscription """ - login: str = Field() - id: int = Field() - node_id: str = Field() + subscribed: bool = Field() + ignored: bool = Field() + reason: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field( - default=UNSET, - description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", - ) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional URL string to display to contributors who are blocked from pushing a secret.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", - ) + thread_url: Missing[str] = Field(default=UNSET) + repository_url: Missing[str] = Field(default=UNSET) -class OrganizationFullPropPlan(GitHubModel): - """OrganizationFullPropPlan""" +model_rebuild(ThreadSubscription) - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) - - -model_rebuild(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) - -__all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", -) +__all__ = ("ThreadSubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0064.py b/githubkit/versions/v2022_11_28/models/group_0064.py index 0faeb8276..d86ab3170 100644 --- a/githubkit/versions/v2022_11_28/models/group_0064.py +++ b/githubkit/versions/v2022_11_28/models/group_0064.py @@ -9,22 +9,33 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsCacheUsageOrgEnterprise(GitHubModel): - """ActionsCacheUsageOrgEnterprise""" +class OrganizationSimple(GitHubModel): + """Organization Simple + + A GitHub organization. + """ - total_active_caches_count: int = Field( - description="The count of active caches across all repositories of an enterprise or an organization." - ) - total_active_caches_size_in_bytes: int = Field( - description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization." - ) + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() -model_rebuild(ActionsCacheUsageOrgEnterprise) +model_rebuild(OrganizationSimple) -__all__ = ("ActionsCacheUsageOrgEnterprise",) +__all__ = ("OrganizationSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0065.py b/githubkit/versions/v2022_11_28/models/group_0065.py index 76b6d2db7..2b58774a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0065.py +++ b/githubkit/versions/v2022_11_28/models/group_0065.py @@ -9,27 +9,33 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0031 import SimpleRepository -class ActionsHostedRunnerMachineSpec(GitHubModel): - """Github-owned VM details. +class DependabotRepositoryAccessDetails(GitHubModel): + """Dependabot Repository Access Details - Provides details of a particular machine spec. + Information about repositories that Dependabot is able to access in an + organization """ - id: str = Field( - description="The ID used for the `size` parameter when creating a new runner." + default_level: Missing[Union[None, Literal["public", "internal"]]] = Field( + default=UNSET, + description="The default repository access level for Dependabot updates.", ) - cpu_cores: int = Field(description="The number of cores.") - memory_gb: int = Field(description="The available RAM for the machine spec.") - storage_gb: int = Field( - description="The available SSD storage for the machine spec." + accessible_repositories: Missing[list[Union[None, SimpleRepository]]] = Field( + default=UNSET ) -model_rebuild(ActionsHostedRunnerMachineSpec) +model_rebuild(DependabotRepositoryAccessDetails) -__all__ = ("ActionsHostedRunnerMachineSpec",) +__all__ = ("DependabotRepositoryAccessDetails",) diff --git a/githubkit/versions/v2022_11_28/models/group_0066.py b/githubkit/versions/v2022_11_28/models/group_0066.py index e077ac74c..856ee3686 100644 --- a/githubkit/versions/v2022_11_28/models/group_0066.py +++ b/githubkit/versions/v2022_11_28/models/group_0066.py @@ -9,95 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0065 import ActionsHostedRunnerMachineSpec - -class ActionsHostedRunner(GitHubModel): - """GitHub-hosted hosted runner +class BillingUsageReport(GitHubModel): + """BillingUsageReport""" - A Github-hosted hosted runner. - """ - - id: int = Field(description="The unique identifier of the hosted runner.") - name: str = Field(description="The name of the hosted runner.") - runner_group_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the group that the hosted runner belongs to.", - ) - image_details: Union[None, ActionsHostedRunnerPoolImage] = Field() - machine_size_details: ActionsHostedRunnerMachineSpec = Field( - title="Github-owned VM details.", - description="Provides details of a particular machine spec.", - ) - status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] = Field( - description="The status of the runner." - ) - platform: str = Field(description="The operating system of the image.") - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.", - ) - public_ip_enabled: bool = Field( - description="Whether public IP is enabled for the hosted runners." - ) - public_ips: Missing[list[PublicIp]] = Field( - default=UNSET, - description="The public IP ranges when public IP is enabled for the hosted runners.", + usage_items: Missing[list[BillingUsageReportPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" ) - last_active_on: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time at which the runner was last used, in ISO 8601 format.", - ) - -class ActionsHostedRunnerPoolImage(GitHubModel): - """GitHub-hosted runner image details. - Provides details of a hosted runner image - """ +class BillingUsageReportPropUsageItemsItems(GitHubModel): + """BillingUsageReportPropUsageItemsItems""" - id: str = Field( - description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." ) - size_gb: int = Field(description="Image size in GB.") - display_name: str = Field(description="Display name for this image.") - source: Literal["github", "partner", "custom"] = Field( - description="The image provider." + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." ) - - -class PublicIp(GitHubModel): - """Public IP for a GitHub-hosted larger runners. - - Provides details of Public IP for a GitHub-hosted larger runners - """ - - enabled: Missing[bool] = Field( - default=UNSET, description="Whether public IP is enabled." + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." + ) + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." + ) + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." ) - prefix: Missing[str] = Field( - default=UNSET, description="The prefix for the public IP." + organization_name: str = Field( + alias="organizationName", description="Name of the organization." ) - length: Missing[int] = Field( - default=UNSET, description="The length of the IP prefix." + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." ) -model_rebuild(ActionsHostedRunner) -model_rebuild(ActionsHostedRunnerPoolImage) -model_rebuild(PublicIp) +model_rebuild(BillingUsageReport) +model_rebuild(BillingUsageReportPropUsageItemsItems) __all__ = ( - "ActionsHostedRunner", - "ActionsHostedRunnerPoolImage", - "PublicIp", + "BillingUsageReport", + "BillingUsageReportPropUsageItemsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0067.py b/githubkit/versions/v2022_11_28/models/group_0067.py index c1d2acd07..b2ee9387a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0067.py +++ b/githubkit/versions/v2022_11_28/models/group_0067.py @@ -9,30 +9,140 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsHostedRunnerImage(GitHubModel): - """GitHub-hosted runner image details. +class OrganizationFull(GitHubModel): + """Organization Full - Provides details of a hosted runner image + Organization Full """ - id: str = Field( - description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field( + default=UNSET, + description="The number of collaborators on private repositories.\n\nThis field may be null if the number of private repositories is over 50,000.", ) - platform: str = Field(description="The operating system of the image.") - size_gb: int = Field(description="Image size in GB.") - display_name: str = Field(description="Display name for this image.") - source: Literal["github", "partner", "custom"] = Field( - description="The image provider." + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + default_repository_branch: Missing[Union[str, None]] = Field( + default=UNSET, + description="The default branch for repositories created in this organization.", ) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_delete_repositories: Missing[bool] = Field(default=UNSET) + members_can_change_repo_visibility: Missing[bool] = Field(default=UNSET) + members_can_invite_outside_collaborators: Missing[bool] = Field(default=UNSET) + members_can_delete_issues: Missing[bool] = Field(default=UNSET) + display_commenter_full_name_setting_enabled: Missing[bool] = Field(default=UNSET) + readers_can_create_discussions: Missing[bool] = Field(default=UNSET) + members_can_create_teams: Missing[bool] = Field(default=UNSET) + members_can_view_dependency_insights: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional URL string to display to contributors who are blocked from pushing a secret.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + deploy_keys_enabled_for_repositories: Missing[bool] = Field( + default=UNSET, + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", + ) + + +class OrganizationFullPropPlan(GitHubModel): + """OrganizationFullPropPlan""" + + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(ActionsHostedRunnerImage) +model_rebuild(OrganizationFull) +model_rebuild(OrganizationFullPropPlan) -__all__ = ("ActionsHostedRunnerImage",) +__all__ = ( + "OrganizationFull", + "OrganizationFullPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0068.py b/githubkit/versions/v2022_11_28/models/group_0068.py index 423e6714f..0faeb8276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0068.py +++ b/githubkit/versions/v2022_11_28/models/group_0068.py @@ -14,33 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ActionsHostedRunnerLimits(GitHubModel): - """ActionsHostedRunnerLimits""" +class ActionsCacheUsageOrgEnterprise(GitHubModel): + """ActionsCacheUsageOrgEnterprise""" - public_ips: ActionsHostedRunnerLimitsPropPublicIps = Field( - title="Static public IP Limits for GitHub-hosted Hosted Runners.", - description="Provides details of static public IP limits for GitHub-hosted Hosted Runners", + total_active_caches_count: int = Field( + description="The count of active caches across all repositories of an enterprise or an organization." ) - - -class ActionsHostedRunnerLimitsPropPublicIps(GitHubModel): - """Static public IP Limits for GitHub-hosted Hosted Runners. - - Provides details of static public IP limits for GitHub-hosted Hosted Runners - """ - - maximum: int = Field( - description="The maximum number of static public IP addresses that can be used for Hosted Runners." - ) - current_usage: int = Field( - description="The current number of static public IP addresses in use by Hosted Runners." + total_active_caches_size_in_bytes: int = Field( + description="The total size in bytes of all active cache items across all repositories of an enterprise or an organization." ) -model_rebuild(ActionsHostedRunnerLimits) -model_rebuild(ActionsHostedRunnerLimitsPropPublicIps) +model_rebuild(ActionsCacheUsageOrgEnterprise) -__all__ = ( - "ActionsHostedRunnerLimits", - "ActionsHostedRunnerLimitsPropPublicIps", -) +__all__ = ("ActionsCacheUsageOrgEnterprise",) diff --git a/githubkit/versions/v2022_11_28/models/group_0069.py b/githubkit/versions/v2022_11_28/models/group_0069.py index e3255a143..76b6d2db7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0069.py +++ b/githubkit/versions/v2022_11_28/models/group_0069.py @@ -14,17 +14,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization +class ActionsHostedRunnerMachineSpec(GitHubModel): + """Github-owned VM details. - Actions OIDC Subject customization + Provides details of a particular machine spec. """ - include_claim_keys: list[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." + id: str = Field( + description="The ID used for the `size` parameter when creating a new runner." + ) + cpu_cores: int = Field(description="The number of cores.") + memory_gb: int = Field(description="The available RAM for the machine spec.") + storage_gb: int = Field( + description="The available SSD storage for the machine spec." ) -model_rebuild(OidcCustomSub) +model_rebuild(ActionsHostedRunnerMachineSpec) -__all__ = ("OidcCustomSub",) +__all__ = ("ActionsHostedRunnerMachineSpec",) diff --git a/githubkit/versions/v2022_11_28/models/group_0070.py b/githubkit/versions/v2022_11_28/models/group_0070.py index 3efa01ac1..328820c9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0070.py +++ b/githubkit/versions/v2022_11_28/models/group_0070.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,27 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0069 import ActionsHostedRunnerMachineSpec -class ActionsOrganizationPermissions(GitHubModel): - """ActionsOrganizationPermissions""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." +class ActionsHostedRunner(GitHubModel): + """GitHub-hosted hosted runner + + A Github-hosted hosted runner. + """ + + id: int = Field(description="The unique identifier of the hosted runner.") + name: str = Field(description="The name of the hosted runner.") + runner_group_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the group that the hosted runner belongs to.", + ) + image_details: Union[None, ActionsHostedRunnerPoolImage] = Field() + machine_size_details: ActionsHostedRunnerMachineSpec = Field( + title="Github-owned VM details.", + description="Provides details of a particular machine spec.", + ) + status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] = Field( + description="The status of the runner." ) - selected_repositories_url: Missing[str] = Field( + platform: str = Field(description="The operating system of the image.") + maximum_runners: Missing[int] = Field( default=UNSET, - description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", + description="The maximum amount of hosted runners. Runners will not scale automatically above this number. Use this setting to limit your cost.", ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + public_ip_enabled: bool = Field( + description="Whether public IP is enabled for the hosted runners." + ) + public_ips: Missing[list[PublicIp]] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="The public IP ranges when public IP is enabled for the hosted runners.", ) - selected_actions_url: Missing[str] = Field( + last_active_on: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + description="The time at which the runner was last used, in ISO 8601 format.", + ) + + +class ActionsHostedRunnerPoolImage(GitHubModel): + """GitHub-hosted runner image details. + + Provides details of a hosted runner image + """ + + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." + ) + size_gb: int = Field(description="Image size in GB.") + display_name: str = Field(description="Display name for this image.") + source: Literal["github", "partner", "custom"] = Field( + description="The image provider." + ) + + +class PublicIp(GitHubModel): + """Public IP for a GitHub-hosted larger runners. + + Provides details of Public IP for a GitHub-hosted larger runners + """ + + enabled: Missing[bool] = Field( + default=UNSET, description="Whether public IP is enabled." + ) + prefix: Missing[str] = Field( + default=UNSET, description="The prefix for the public IP." + ) + length: Missing[int] = Field( + default=UNSET, description="The length of the IP prefix." ) -model_rebuild(ActionsOrganizationPermissions) +model_rebuild(ActionsHostedRunner) +model_rebuild(ActionsHostedRunnerPoolImage) +model_rebuild(PublicIp) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ( + "ActionsHostedRunner", + "ActionsHostedRunnerPoolImage", + "PublicIp", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0071.py b/githubkit/versions/v2022_11_28/models/group_0071.py index 00b241299..c1d2acd07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0071.py +++ b/githubkit/versions/v2022_11_28/models/group_0071.py @@ -9,30 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class SelectedActions(GitHubModel): - """SelectedActions""" +class ActionsHostedRunnerImage(GitHubModel): + """GitHub-hosted runner image details. - github_owned_allowed: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.", - ) - verified_allowed: Missing[bool] = Field( - default=UNSET, - description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", + Provides details of a hosted runner image + """ + + id: str = Field( + description="The ID of the image. Use this ID for the `image` parameter when creating a new larger runner." ) - patterns_allowed: Missing[list[str]] = Field( - default=UNSET, - description="Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\n\n> [!NOTE]\n> The `patterns_allowed` setting only applies to public repositories.", + platform: str = Field(description="The operating system of the image.") + size_gb: int = Field(description="Image size in GB.") + display_name: str = Field(description="Display name for this image.") + source: Literal["github", "partner", "custom"] = Field( + description="The image provider." ) -model_rebuild(SelectedActions) +model_rebuild(ActionsHostedRunnerImage) -__all__ = ("SelectedActions",) +__all__ = ("ActionsHostedRunnerImage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0072.py b/githubkit/versions/v2022_11_28/models/group_0072.py index 0ec430210..423e6714f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0072.py +++ b/githubkit/versions/v2022_11_28/models/group_0072.py @@ -9,24 +9,38 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsGetDefaultWorkflowPermissions(GitHubModel): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsHostedRunnerLimits(GitHubModel): + """ActionsHostedRunnerLimits""" + + public_ips: ActionsHostedRunnerLimitsPropPublicIps = Field( + title="Static public IP Limits for GitHub-hosted Hosted Runners.", + description="Provides details of static public IP limits for GitHub-hosted Hosted Runners", + ) + + +class ActionsHostedRunnerLimitsPropPublicIps(GitHubModel): + """Static public IP Limits for GitHub-hosted Hosted Runners. + + Provides details of static public IP limits for GitHub-hosted Hosted Runners + """ - default_workflow_permissions: Literal["read", "write"] = Field( - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." + maximum: int = Field( + description="The maximum number of static public IP addresses that can be used for Hosted Runners." ) - can_approve_pull_request_reviews: bool = Field( - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." + current_usage: int = Field( + description="The current number of static public IP addresses in use by Hosted Runners." ) -model_rebuild(ActionsGetDefaultWorkflowPermissions) +model_rebuild(ActionsHostedRunnerLimits) +model_rebuild(ActionsHostedRunnerLimitsPropPublicIps) -__all__ = ("ActionsGetDefaultWorkflowPermissions",) +__all__ = ( + "ActionsHostedRunnerLimits", + "ActionsHostedRunnerLimitsPropPublicIps", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0073.py b/githubkit/versions/v2022_11_28/models/group_0073.py index b91f2faf0..e3255a143 100644 --- a/githubkit/versions/v2022_11_28/models/group_0073.py +++ b/githubkit/versions/v2022_11_28/models/group_0073.py @@ -9,28 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ActionsSetDefaultWorkflowPermissions(GitHubModel): - """ActionsSetDefaultWorkflowPermissions""" +class OidcCustomSub(GitHubModel): + """Actions OIDC Subject customization - default_workflow_permissions: Missing[Literal["read", "write"]] = Field( - default=UNSET, - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows.", - ) - can_approve_pull_request_reviews: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", + Actions OIDC Subject customization + """ + + include_claim_keys: list[str] = Field( + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." ) -model_rebuild(ActionsSetDefaultWorkflowPermissions) +model_rebuild(OidcCustomSub) -__all__ = ("ActionsSetDefaultWorkflowPermissions",) +__all__ = ("OidcCustomSub",) diff --git a/githubkit/versions/v2022_11_28/models/group_0074.py b/githubkit/versions/v2022_11_28/models/group_0074.py index 305c99aaa..3efa01ac1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0074.py +++ b/githubkit/versions/v2022_11_28/models/group_0074.py @@ -18,22 +18,26 @@ from githubkit.utils import UNSET -class RunnerLabel(GitHubModel): - """Self hosted runner label +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" - A label for a self hosted runner - """ - - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the label." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - name: str = Field(description="Name of the label.") - type: Missing[Literal["read-only", "custom"]] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The type of label. Read-only labels are applied automatically when the runner is configured.", + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) -model_rebuild(RunnerLabel) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ("RunnerLabel",) +__all__ = ("ActionsOrganizationPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0075.py b/githubkit/versions/v2022_11_28/models/group_0075.py index f7bae95d9..00b241299 100644 --- a/githubkit/versions/v2022_11_28/models/group_0075.py +++ b/githubkit/versions/v2022_11_28/models/group_0075.py @@ -15,27 +15,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0074 import RunnerLabel +class SelectedActions(GitHubModel): + """SelectedActions""" -class Runner(GitHubModel): - """Self hosted runners - - A self hosted runner - """ - - id: int = Field(description="The ID of the runner.") - runner_group_id: Missing[int] = Field( - default=UNSET, description="The ID of the runner group." + github_owned_allowed: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization.", + ) + verified_allowed: Missing[bool] = Field( + default=UNSET, + description="Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators.", + ) + patterns_allowed: Missing[list[str]] = Field( + default=UNSET, + description="Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\n\n> [!NOTE]\n> The `patterns_allowed` setting only applies to public repositories.", ) - name: str = Field(description="The name of the runner.") - os: str = Field(description="The Operating System of the runner.") - status: str = Field(description="The status of the runner.") - busy: bool = Field() - labels: list[RunnerLabel] = Field() - ephemeral: Missing[bool] = Field(default=UNSET) -model_rebuild(Runner) +model_rebuild(SelectedActions) -__all__ = ("Runner",) +__all__ = ("SelectedActions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0076.py b/githubkit/versions/v2022_11_28/models/group_0076.py index c4eff90af..0ec430210 100644 --- a/githubkit/versions/v2022_11_28/models/group_0076.py +++ b/githubkit/versions/v2022_11_28/models/group_0076.py @@ -9,30 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class RunnerApplication(GitHubModel): - """Runner Application - Runner Application - """ +class ActionsGetDefaultWorkflowPermissions(GitHubModel): + """ActionsGetDefaultWorkflowPermissions""" - os: str = Field() - architecture: str = Field() - download_url: str = Field() - filename: str = Field() - temp_download_token: Missing[str] = Field( - default=UNSET, - description="A short lived bearer token used to download the runner, if needed.", + default_workflow_permissions: Literal["read", "write"] = Field( + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." + ) + can_approve_pull_request_reviews: bool = Field( + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." ) - sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(RunnerApplication) +model_rebuild(ActionsGetDefaultWorkflowPermissions) -__all__ = ("RunnerApplication",) +__all__ = ("ActionsGetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0077.py b/githubkit/versions/v2022_11_28/models/group_0077.py index bb8ab2b85..b91f2faf0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0077.py +++ b/githubkit/versions/v2022_11_28/models/group_0077.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,40 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0020 import Repository +class ActionsSetDefaultWorkflowPermissions(GitHubModel): + """ActionsSetDefaultWorkflowPermissions""" -class AuthenticationToken(GitHubModel): - """Authentication Token - - Authentication Token - """ - - token: str = Field(description="The token used for authentication") - expires_at: datetime = Field(description="The time this token expires") - permissions: Missing[AuthenticationTokenPropPermissions] = Field(default=UNSET) - repositories: Missing[list[Repository]] = Field( - default=UNSET, description="The repositories this token has access to" + default_workflow_permissions: Missing[Literal["read", "write"]] = Field( + default=UNSET, + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows.", ) - single_file: Missing[Union[str, None]] = Field(default=UNSET) - repository_selection: Missing[Literal["all", "selected"]] = Field( + can_approve_pull_request_reviews: Missing[bool] = Field( default=UNSET, - description="Describe whether all repositories have been selected or there's a selection involved", + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", ) -class AuthenticationTokenPropPermissions(GitHubModel): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -model_rebuild(AuthenticationToken) -model_rebuild(AuthenticationTokenPropPermissions) +model_rebuild(ActionsSetDefaultWorkflowPermissions) -__all__ = ( - "AuthenticationToken", - "AuthenticationTokenPropPermissions", -) +__all__ = ("ActionsSetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0078.py b/githubkit/versions/v2022_11_28/models/group_0078.py index 9d8938959..305c99aaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0078.py +++ b/githubkit/versions/v2022_11_28/models/group_0078.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,20 +18,22 @@ from githubkit.utils import UNSET -class ActionsPublicKey(GitHubModel): - """ActionsPublicKey +class RunnerLabel(GitHubModel): + """Self hosted runner label - The public key used for setting Actions Secrets. + A label for a self hosted runner """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the label." + ) + name: str = Field(description="Name of the label.") + type: Missing[Literal["read-only", "custom"]] = Field( + default=UNSET, + description="The type of label. Read-only labels are applied automatically when the runner is configured.", + ) -model_rebuild(ActionsPublicKey) +model_rebuild(RunnerLabel) -__all__ = ("ActionsPublicKey",) +__all__ = ("RunnerLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0079.py b/githubkit/versions/v2022_11_28/models/group_0079.py index 51fd6a419..48310da0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0079.py +++ b/githubkit/versions/v2022_11_28/models/group_0079.py @@ -9,45 +9,33 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0078 import RunnerLabel + -class TeamSimple(GitHubModel): - """Team Simple +class Runner(GitHubModel): + """Self hosted runners - Groups of organization members that gives permissions on specified repositories. + A self hosted runner """ - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - description: Union[str, None] = Field(description="Description of the team") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Missing[str] = Field( - default=UNSET, description="The level of privacy this team should have" - ) - notification_setting: Missing[str] = Field( - default=UNSET, description="The notification setting the team has set" - ) - html_url: str = Field() - repositories_url: str = Field() - slug: str = Field() - ldap_dn: Missing[str] = Field( - default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + id: int = Field(description="The ID of the runner.") + runner_group_id: Missing[int] = Field( + default=UNSET, description="The ID of the runner group." ) + name: str = Field(description="The name of the runner.") + os: str = Field(description="The Operating System of the runner.") + status: str = Field(description="The status of the runner.") + busy: bool = Field() + labels: list[RunnerLabel] = Field() + ephemeral: Missing[bool] = Field(default=UNSET) -model_rebuild(TeamSimple) +model_rebuild(Runner) -__all__ = ("TeamSimple",) +__all__ = ("Runner",) diff --git a/githubkit/versions/v2022_11_28/models/group_0080.py b/githubkit/versions/v2022_11_28/models/group_0080.py index 043f176ae..c4eff90af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0080.py +++ b/githubkit/versions/v2022_11_28/models/group_0080.py @@ -9,53 +9,30 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0079 import TeamSimple - -class Team(GitHubModel): - """Team +class RunnerApplication(GitHubModel): + """Runner Application - Groups of organization members that gives permissions on specified repositories. + Runner Application """ - id: int = Field() - node_id: str = Field() - name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() - - -class TeamPropPermissions(GitHubModel): - """TeamPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() - - -model_rebuild(Team) -model_rebuild(TeamPropPermissions) - -__all__ = ( - "Team", - "TeamPropPermissions", -) + os: str = Field() + architecture: str = Field() + download_url: str = Field() + filename: str = Field() + temp_download_token: Missing[str] = Field( + default=UNSET, + description="A short lived bearer token used to download the runner, if needed.", + ) + sha256_checksum: Missing[str] = Field(default=UNSET) + + +model_rebuild(RunnerApplication) + +__all__ = ("RunnerApplication",) diff --git a/githubkit/versions/v2022_11_28/models/group_0081.py b/githubkit/versions/v2022_11_28/models/group_0081.py index 1d09d18d4..bb8ab2b85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0081.py +++ b/githubkit/versions/v2022_11_28/models/group_0081.py @@ -18,62 +18,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0080 import Team +from .group_0020 import Repository -class CampaignSummary(GitHubModel): - """Campaign summary +class AuthenticationToken(GitHubModel): + """Authentication Token - The campaign metadata and alert stats. + Authentication Token """ - number: int = Field(description="The number of the newly created campaign") - created_at: datetime = Field( - description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + token: str = Field(description="The token used for authentication") + expires_at: datetime = Field(description="The time this token expires") + permissions: Missing[AuthenticationTokenPropPermissions] = Field(default=UNSET) + repositories: Missing[list[Repository]] = Field( + default=UNSET, description="The repositories this token has access to" ) - updated_at: datetime = Field( - description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - name: Missing[str] = Field(default=UNSET, description="The campaign name") - description: str = Field(description="The campaign description") - managers: list[SimpleUser] = Field(description="The campaign managers") - team_managers: Missing[list[Team]] = Field( - default=UNSET, description="The campaign team managers" - ) - published_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - ends_at: datetime = Field( - description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - closed_at: Missing[Union[datetime, None]] = Field( + single_file: Missing[Union[str, None]] = Field(default=UNSET) + repository_selection: Missing[Literal["all", "selected"]] = Field( default=UNSET, - description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", - ) - state: Literal["open", "closed"] = Field( - title="Campaign state", - description="Indicates whether a campaign is open or closed", + description="Describe whether all repositories have been selected or there's a selection involved", ) - contact_link: Union[str, None] = Field( - description="The contact link of the campaign." - ) - alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) -class CampaignSummaryPropAlertStats(GitHubModel): - """CampaignSummaryPropAlertStats""" +class AuthenticationTokenPropPermissions(GitHubModel): + """AuthenticationTokenPropPermissions - open_count: int = Field(description="The number of open alerts") - closed_count: int = Field(description="The number of closed alerts") - in_progress_count: int = Field(description="The number of in-progress alerts") + Examples: + {'issues': 'read', 'deployments': 'write'} + """ -model_rebuild(CampaignSummary) -model_rebuild(CampaignSummaryPropAlertStats) +model_rebuild(AuthenticationToken) +model_rebuild(AuthenticationTokenPropPermissions) __all__ = ( - "CampaignSummary", - "CampaignSummaryPropAlertStats", + "AuthenticationToken", + "AuthenticationTokenPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0082.py b/githubkit/versions/v2022_11_28/models/group_0082.py index 7aa158d05..9d8938959 100644 --- a/githubkit/versions/v2022_11_28/models/group_0082.py +++ b/githubkit/versions/v2022_11_28/models/group_0082.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,43 +16,20 @@ from githubkit.utils import UNSET -class CodeScanningAlertRuleSummary(GitHubModel): - """CodeScanningAlertRuleSummary""" - - id: Missing[Union[str, None]] = Field( - default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." - ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( - default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="A description of the rule used to detect the alert." - ) - tags: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", - ) - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - - -model_rebuild(CodeScanningAlertRuleSummary) - -__all__ = ("CodeScanningAlertRuleSummary",) +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey + + The public key used for setting Actions Secrets. + """ + + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + + +model_rebuild(ActionsPublicKey) + +__all__ = ("ActionsPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0083.py b/githubkit/versions/v2022_11_28/models/group_0083.py index f49c4a62a..51fd6a419 100644 --- a/githubkit/versions/v2022_11_28/models/group_0083.py +++ b/githubkit/versions/v2022_11_28/models/group_0083.py @@ -18,23 +18,36 @@ from githubkit.utils import UNSET -class CodeScanningAnalysisTool(GitHubModel): - """CodeScanningAnalysisTool""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the tool used to generate the code scanning analysis.", +class TeamSimple(GitHubModel): + """Team Simple + + Groups of organization members that gives permissions on specified repositories. + """ + + id: int = Field(description="Unique identifier of the team") + node_id: str = Field() + url: str = Field(description="URL for the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + description: Union[str, None] = Field(description="Description of the team") + permission: str = Field( + description="Permission that the team will have for its repositories" ) - version: Missing[Union[str, None]] = Field( - default=UNSET, - description="The version of the tool used to generate the code scanning analysis.", + privacy: Missing[str] = Field( + default=UNSET, description="The level of privacy this team should have" + ) + notification_setting: Missing[str] = Field( + default=UNSET, description="The notification setting the team has set" ) - guid: Missing[Union[str, None]] = Field( + html_url: str = Field() + repositories_url: str = Field() + slug: str = Field() + ldap_dn: Missing[str] = Field( default=UNSET, - description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", + description="Distinguished Name (DN) that team maps to within LDAP environment", ) -model_rebuild(CodeScanningAnalysisTool) +model_rebuild(TeamSimple) -__all__ = ("CodeScanningAnalysisTool",) +__all__ = ("TeamSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0084.py b/githubkit/versions/v2022_11_28/models/group_0084.py index f0972b26d..ae950348b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0084.py +++ b/githubkit/versions/v2022_11_28/models/group_0084.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,72 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0083 import TeamSimple -class CodeScanningAlertInstance(GitHubModel): - """CodeScanningAlertInstance""" - - ref: Missing[str] = Field( - default=UNSET, - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", - ) - analysis_key: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.", - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( - default=UNSET, description="State of a code scanning alert." - ) - commit_sha: Missing[str] = Field(default=UNSET) - message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) - location: Missing[CodeScanningAlertLocation] = Field( - default=UNSET, description="Describe a region within a file for the alert." - ) - html_url: Missing[str] = Field(default=UNSET) - classifications: Missing[ - list[ - Union[ - None, Literal["source", "generated", "test", "library", "documentation"] - ] - ] - ] = Field( - default=UNSET, - description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", - ) - - -class CodeScanningAlertLocation(GitHubModel): - """CodeScanningAlertLocation - - Describe a region within a file for the alert. + +class Team(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. """ - path: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - end_column: Missing[int] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamPropPermissions] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() -class CodeScanningAlertInstancePropMessage(GitHubModel): - """CodeScanningAlertInstancePropMessage""" +class TeamPropPermissions(GitHubModel): + """TeamPropPermissions""" - text: Missing[str] = Field(default=UNSET) + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() -model_rebuild(CodeScanningAlertInstance) -model_rebuild(CodeScanningAlertLocation) -model_rebuild(CodeScanningAlertInstancePropMessage) +model_rebuild(Team) +model_rebuild(TeamPropPermissions) __all__ = ( - "CodeScanningAlertInstance", - "CodeScanningAlertInstancePropMessage", - "CodeScanningAlertLocation", + "Team", + "TeamPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0085.py b/githubkit/versions/v2022_11_28/models/group_0085.py index 2855a03fd..a01a7893c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0085.py +++ b/githubkit/versions/v2022_11_28/models/group_0085.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,59 +19,61 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0031 import SimpleRepository -from .group_0082 import CodeScanningAlertRuleSummary -from .group_0083 import CodeScanningAnalysisTool -from .group_0084 import CodeScanningAlertInstance +from .group_0084 import Team -class CodeScanningOrganizationAlertItems(GitHubModel): - """CodeScanningOrganizationAlertItems""" +class CampaignSummary(GitHubModel): + """Campaign summary - number: int = Field(description="The security alert number.") + The campaign metadata and alert stats. + """ + + number: int = Field(description="The number of the newly created campaign") created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The date and time the campaign was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." + updated_at: datetime = Field( + description="The date and time the campaign was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." + name: Missing[str] = Field(default=UNSET, description="The campaign name") + description: str = Field(description="The campaign description") + managers: list[SimpleUser] = Field(description="The campaign managers") + team_managers: Missing[list[Team]] = Field( + default=UNSET, description="The campaign team managers" ) - fixed_at: Missing[Union[datetime, None]] = Field( + published_at: Missing[datetime] = Field( default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The date and time the campaign was published, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ends_at: datetime = Field( + description="The date and time the campaign has ended, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + closed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The date and time the campaign was closed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the campaign is still open.", ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + state: Literal["open", "closed"] = Field( + title="Campaign state", + description="Indicates whether a campaign is open or closed", ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + contact_link: Union[str, None] = Field( + description="The contact link of the campaign." ) - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + alert_stats: Missing[CampaignSummaryPropAlertStats] = Field(default=UNSET) + + +class CampaignSummaryPropAlertStats(GitHubModel): + """CampaignSummaryPropAlertStats""" + + open_count: int = Field(description="The number of open alerts") + closed_count: int = Field(description="The number of closed alerts") + in_progress_count: int = Field(description="The number of in-progress alerts") -model_rebuild(CodeScanningOrganizationAlertItems) +model_rebuild(CampaignSummary) +model_rebuild(CampaignSummaryPropAlertStats) -__all__ = ("CodeScanningOrganizationAlertItems",) +__all__ = ( + "CampaignSummary", + "CampaignSummaryPropAlertStats", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0086.py b/githubkit/versions/v2022_11_28/models/group_0086.py index db250979c..7aa158d05 100644 --- a/githubkit/versions/v2022_11_28/models/group_0086.py +++ b/githubkit/versions/v2022_11_28/models/group_0086.py @@ -14,31 +14,47 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespaceMachine(GitHubModel): - """Codespace machine +class CodeScanningAlertRuleSummary(GitHubModel): + """CodeScanningAlertRuleSummary""" - A description of the machine powering a codespace. - """ - - name: str = Field(description="The name of the machine.") - display_name: str = Field( - description="The display name of the machine includes cores, memory, and storage." + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", + ) + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." + ) + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." + ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( + default=UNSET, + description="A short description of the rule used to detect the alert.", + ) + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the alert." ) - operating_system: str = Field(description="The operating system of the machine.") - storage_in_bytes: int = Field( - description="How much storage is available to the codespace." + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." + help_: Missing[Union[str, None]] = Field( + default=UNSET, + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", ) - cpus: int = Field(description="How many cores are available to the codespace.") - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( - description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", ) -model_rebuild(CodespaceMachine) +model_rebuild(CodeScanningAlertRuleSummary) -__all__ = ("CodespaceMachine",) +__all__ = ("CodeScanningAlertRuleSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0087.py b/githubkit/versions/v2022_11_28/models/group_0087.py index 3b3835540..f49c4a62a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0087.py +++ b/githubkit/versions/v2022_11_28/models/group_0087.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,157 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0058 import MinimalRepository -from .group_0086 import CodespaceMachine +class CodeScanningAnalysisTool(GitHubModel): + """CodeScanningAnalysisTool""" -class Codespace(GitHubModel): - """Codespace - - A codespace. - """ - - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespacePropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( + name: Missing[str] = Field( default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + description="The name of the tool used to generate the code scanning analysis.", ) - retention_period_minutes: Missing[Union[int, None]] = Field( + version: Missing[Union[str, None]] = Field( default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + description="The version of the tool used to generate the code scanning analysis.", ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) - last_known_stop_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", - ) - - -class CodespacePropGitStatus(GitHubModel): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class CodespacePropRuntimeConstraints(GitHubModel): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + guid: Missing[Union[str, None]] = Field( default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", + description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", ) -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(CodeScanningAnalysisTool) -__all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", -) +__all__ = ("CodeScanningAnalysisTool",) diff --git a/githubkit/versions/v2022_11_28/models/group_0088.py b/githubkit/versions/v2022_11_28/models/group_0088.py index 1a40b558a..f0972b26d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0088.py +++ b/githubkit/versions/v2022_11_28/models/group_0088.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,20 +18,71 @@ from githubkit.utils import UNSET -class CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey +class CodeScanningAlertInstance(GitHubModel): + """CodeScanningAlertInstance""" + + ref: Missing[str] = Field( + default=UNSET, + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", + ) + analysis_key: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.", + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + ) + state: Missing[Union[None, Literal["open", "dismissed", "fixed"]]] = Field( + default=UNSET, description="State of a code scanning alert." + ) + commit_sha: Missing[str] = Field(default=UNSET) + message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) + location: Missing[CodeScanningAlertLocation] = Field( + default=UNSET, description="Describe a region within a file for the alert." + ) + html_url: Missing[str] = Field(default=UNSET) + classifications: Missing[ + list[ + Union[ + None, Literal["source", "generated", "test", "library", "documentation"] + ] + ] + ] = Field( + default=UNSET, + description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", + ) + + +class CodeScanningAlertLocation(GitHubModel): + """CodeScanningAlertLocation - The public key used for setting Codespaces secrets. + Describe a region within a file for the alert. """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + end_column: Missing[int] = Field(default=UNSET) + + +class CodeScanningAlertInstancePropMessage(GitHubModel): + """CodeScanningAlertInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) -model_rebuild(CodespacesPublicKey) +model_rebuild(CodeScanningAlertInstance) +model_rebuild(CodeScanningAlertLocation) +model_rebuild(CodeScanningAlertInstancePropMessage) -__all__ = ("CodespacesPublicKey",) +__all__ = ( + "CodeScanningAlertInstance", + "CodeScanningAlertInstancePropMessage", + "CodeScanningAlertLocation", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0089.py b/githubkit/versions/v2022_11_28/models/group_0089.py index 5c75bf257..3963ff2a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0089.py +++ b/githubkit/versions/v2022_11_28/models/group_0089.py @@ -9,85 +9,69 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0031 import SimpleRepository +from .group_0086 import CodeScanningAlertRuleSummary +from .group_0087 import CodeScanningAnalysisTool +from .group_0088 import CodeScanningAlertInstance -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. - """ +class CodeScanningOrganizationAlertItems(GitHubModel): + """CodeScanningOrganizationAlertItems""" - seat_breakdown: CopilotOrganizationSeatBreakdown = Field( - title="Copilot Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( - description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." - ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + updated_at: Missing[datetime] = Field( default=UNSET, - description="The organization policy for allowing or disallowing Copilot Chat in the IDE.", + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing Copilot in the CLI.", + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - plan_type: Missing[Literal["business", "enterprise"]] = Field( - default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", - ) - - -class CopilotOrganizationSeatBreakdown(GitHubModel): - """Copilot Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: Missing[int] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - pending_cancellation: Missing[int] = Field( - default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." ) - pending_invitation: Missing[int] = Field( - default=UNSET, - description="The number of users who have been invited to receive a Copilot seat through this organization.", + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) - active_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", - ) - inactive_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotOrganizationSeatBreakdown) +model_rebuild(CodeScanningOrganizationAlertItems) -__all__ = ( - "CopilotOrganizationDetails", - "CopilotOrganizationSeatBreakdown", -) +__all__ = ("CodeScanningOrganizationAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0090.py b/githubkit/versions/v2022_11_28/models/group_0090.py index b5837fa66..db250979c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0090.py +++ b/githubkit/versions/v2022_11_28/models/group_0090.py @@ -9,93 +9,36 @@ from __future__ import annotations -from datetime import date, datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0061 import OrganizationSimple -from .group_0080 import Team +class CodespaceMachine(GitHubModel): + """Codespace machine -class CopilotSeatDetails(GitHubModel): - """Copilot Business Seat Detail - - Information about a Copilot Business seat assignment for a user, team, or - organization. + A description of the machine powering a codespace. """ - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) - assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( - default=UNSET, - description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", - ) - pending_cancellation_date: Missing[Union[date, None]] = Field( - default=UNSET, - description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", - ) - last_activity_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", - ) - last_activity_editor: Missing[Union[str, None]] = Field( - default=UNSET, - description="Last editor that was used by the user for a GitHub Copilot completion.", + name: str = Field(description="The name of the machine.") + display_name: str = Field( + description="The display name of the machine includes cores, memory, and storage." ) - created_at: datetime = Field( - description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." + operating_system: str = Field(description="The operating system of the machine.") + storage_in_bytes: int = Field( + description="How much storage is available to the codespace." ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + memory_in_bytes: int = Field( + description="How much memory is available to the codespace." ) - plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( - default=UNSET, - description="The Copilot plan of the organization, or the parent enterprise, when applicable.", - ) - - -class EnterpriseTeam(GitHubModel): - """Enterprise Team - - Group of enterprise owners and/or members - """ - - id: int = Field() - name: str = Field() - slug: str = Field() - url: str = Field() - sync_to_organizations: str = Field() - group_id: Missing[Union[str, None]] = Field(default=UNSET) - group_name: Missing[Union[str, None]] = Field(default=UNSET) - html_url: str = Field() - members_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: Missing[int] = Field( - default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + cpus: int = Field(description="How many cores are available to the codespace.") + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( + description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' ) - seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(CopilotSeatDetails) -model_rebuild(EnterpriseTeam) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(CodespaceMachine) -__all__ = ( - "CopilotSeatDetails", - "EnterpriseTeam", - "OrgsOrgCopilotBillingSeatsGetResponse200", -) +__all__ = ("CodespaceMachine",) diff --git a/githubkit/versions/v2022_11_28/models/group_0091.py b/githubkit/versions/v2022_11_28/models/group_0091.py index b2ecce70b..ad4487be8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0091.py +++ b/githubkit/versions/v2022_11_28/models/group_0091.py @@ -9,350 +9,166 @@ from __future__ import annotations -from datetime import date -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0061 import MinimalRepository +from .group_0090 import CodespaceMachine -class CopilotUsageMetricsDay(ExtraGitHubModel): - """Copilot Usage Metrics - - Copilot usage metrics for a given day. - """ - - date: date = Field( - description="The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format." - ) - total_active_users: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", - ) - copilot_ide_code_completions: Missing[Union[CopilotIdeCodeCompletions, None]] = ( - Field( - default=UNSET, - description="Usage metrics for Copilot editor code completions in the IDE.", - ) - ) - copilot_ide_chat: Missing[Union[CopilotIdeChat, None]] = Field( - default=UNSET, description="Usage metrics for Copilot Chat in the IDE." - ) - copilot_dotcom_chat: Missing[Union[CopilotDotcomChat, None]] = Field( - default=UNSET, description="Usage metrics for Copilot Chat in GitHub.com" - ) - copilot_dotcom_pull_requests: Missing[Union[CopilotDotcomPullRequests, None]] = ( - Field(default=UNSET, description="Usage metrics for Copilot for pull requests.") - ) +class Codespace(GitHubModel): + """Codespace -class CopilotDotcomChat(ExtraGitHubModel): - """CopilotDotcomChat - - Usage metrics for Copilot Chat in GitHub.com + A codespace. """ - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once.", - ) - models: Missing[list[CopilotDotcomChatPropModelsItems]] = Field( - default=UNSET, - description="List of model metrics for a custom models and the default model.", - ) - - -class CopilotDotcomChatPropModelsItems(GitHubModel): - """CopilotDotcomChatPropModelsItems""" - - name: Missing[str] = Field( - default=UNSET, - description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, - description="The training date for the custom model (if applicable).", + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="Total number of chats initiated by users on github.com.", - ) - - -class CopilotIdeChat(ExtraGitHubModel): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Total number of users who prompted Copilot Chat in the IDE.", + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." ) - editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) - - -class CopilotIdeChatPropEditorsItems(GitHubModel): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the specified editor.", + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." ) - models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - - -class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( default=UNSET, - description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." + description="Path to devcontainer.json from repo root used to create Codespace.", ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who prompted Copilot Chat in the given editor and model.", - ) - total_chats: Missing[int] = Field( - default=UNSET, - description="The total number of chats initiated by users in the given editor and model.", + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." ) - total_chat_insertion_events: Missing[int] = Field( - default=UNSET, - description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespacePropGitStatus = Field( + description="Details about the codespace's git repository." ) - total_chat_copy_events: Missing[int] = Field( - default=UNSET, - description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." ) - - -class CopilotDotcomPullRequests(ExtraGitHubModel): - """CopilotDotcomPullRequests - - Usage metrics for Copilot for pull requests. - """ - - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." ) - repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( - default=UNSET, - description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." ) - - -class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItems""" - - name: Missing[str] = Field(default=UNSET, description="Repository name") - total_engaged_users: Missing[int] = Field( + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", + description="API URL to publish this codespace to a new repository.", ) - models: Missing[ - list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] - ] = Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." ) - - -class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): - """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" - - name: Missing[str] = Field( + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( default=UNSET, - description="Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." - ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", ) - total_pr_summaries_created: Missing[int] = Field( + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( default=UNSET, - description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", + description="Text to show user when codespace is disabled by a pending operation", ) - total_engaged_users: Missing[int] = Field( + idle_timeout_notice: Missing[Union[str, None]] = Field( default=UNSET, - description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", ) - - -class CopilotIdeCodeCompletions(ExtraGitHubModel): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: Missing[int] = Field( + retention_period_minutes: Missing[Union[int, None]] = Field( default=UNSET, - description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", - ) - languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( - default=UNSET, description="Code completion metrics for active languages." + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) - editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( - default=UNSET - ) - - -class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): - """CopilotIdeCodeCompletionsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ - - name: Missing[str] = Field( + retention_expires_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Name of the language used for Copilot code completion suggestions.", + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', ) - total_engaged_users: Missing[int] = Field( + last_known_stop_notice: Missing[Union[str, None]] = Field( default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", + description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", ) -class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItems +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus - Copilot code completion metrics for active editors. + Details about the codespace's git repository. """ - name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") - total_engaged_users: Missing[int] = Field( + ahead: Missing[int] = Field( default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", + description="The number of commits the local repository is ahead of the remote.", ) - models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( - Field( - default=UNSET, - description="List of model metrics for custom models and the default model.", - ) - ) - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: Missing[str] = Field( + behind: Missing[int] = Field( default=UNSET, - description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", - ) - is_custom_model: Missing[bool] = Field( - default=UNSET, description="Indicates whether a model is custom or default." + description="The number of commits the local repository is behind the remote.", ) - custom_model_training_date: Missing[Union[str, None]] = Field( - default=UNSET, description="The training date for the custom model." + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." ) - total_engaged_users: Missing[int] = Field( + has_uncommitted_changes: Missing[bool] = Field( default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", + description="Whether the local repository has uncommitted changes.", ) - languages: Missing[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] - ] = Field( + ref: Missing[str] = Field( default=UNSET, - description="Code completion metrics for active languages, for the given editor.", + description="The current branch (or SHA if in detached HEAD state) of the local repository.", ) -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( - GitHubModel -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" - name: Missing[str] = Field( - default=UNSET, - description="Name of the language used for Copilot code completion suggestions, for the given editor.", - ) - total_engaged_users: Missing[int] = Field( - default=UNSET, - description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_suggestions: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions generated for the given editor, for the given language.", - ) - total_code_acceptances: Missing[int] = Field( - default=UNSET, - description="The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances.", - ) - total_code_lines_suggested: Missing[int] = Field( + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( default=UNSET, - description="The number of lines of code suggested by Copilot code completions for the given editor, for the given language.", - ) - total_code_lines_accepted: Missing[int] = Field( - default=UNSET, - description="The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language.", + description="The privacy settings a user can select from when forwarding a port.", ) -model_rebuild(CopilotUsageMetricsDay) -model_rebuild(CopilotDotcomChat) -model_rebuild(CopilotDotcomChatPropModelsItems) -model_rebuild(CopilotIdeChat) -model_rebuild(CopilotIdeChatPropEditorsItems) -model_rebuild(CopilotIdeChatPropEditorsItemsPropModelsItems) -model_rebuild(CopilotDotcomPullRequests) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItems) -model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems) -model_rebuild(CopilotIdeCodeCompletions) -model_rebuild(CopilotIdeCodeCompletionsPropLanguagesItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItems) -model_rebuild(CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems) -model_rebuild( - CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems -) +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) __all__ = ( - "CopilotDotcomChat", - "CopilotDotcomChatPropModelsItems", - "CopilotDotcomPullRequests", - "CopilotDotcomPullRequestsPropRepositoriesItems", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", - "CopilotIdeChat", - "CopilotIdeChatPropEditorsItems", - "CopilotIdeChatPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletions", - "CopilotIdeCodeCompletionsPropEditorsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", - "CopilotIdeCodeCompletionsPropLanguagesItems", - "CopilotUsageMetricsDay", + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0092.py b/githubkit/versions/v2022_11_28/models/group_0092.py index a7dfe2e7d..1a40b558a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0092.py +++ b/githubkit/versions/v2022_11_28/models/group_0092.py @@ -12,18 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class DependabotPublicKey(GitHubModel): - """DependabotPublicKey +class CodespacesPublicKey(GitHubModel): + """CodespacesPublicKey - The public key used for setting Dependabot Secrets. + The public key used for setting Codespaces secrets. """ key_id: str = Field(description="The identifier for the key.") key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) -model_rebuild(DependabotPublicKey) +model_rebuild(CodespacesPublicKey) -__all__ = ("DependabotPublicKey",) +__all__ = ("CodespacesPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0093.py b/githubkit/versions/v2022_11_28/models/group_0093.py index 108ea0c55..5c75bf257 100644 --- a/githubkit/versions/v2022_11_28/models/group_0093.py +++ b/githubkit/versions/v2022_11_28/models/group_0093.py @@ -9,40 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0058 import MinimalRepository +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Organization Details -class Package(GitHubModel): - """Package + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. + """ + + seat_breakdown: CopilotOrganizationSeatBreakdown = Field( + title="Copilot Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", + ) + public_code_suggestions: Literal["allow", "block", "unconfigured"] = Field( + description="The organization policy for allowing or blocking suggestions matching public code (duplication detection filter)." + ) + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot Chat in the IDE.", + ) + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot features on GitHub.com.", + ) + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing Copilot in the CLI.", + ) + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] = Field(description="The mode of assigning new seats.") + plan_type: Missing[Literal["business", "enterprise"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + ) + + +class CopilotOrganizationSeatBreakdown(GitHubModel): + """Copilot Seat Breakdown - A software package + The breakdown of Copilot Business seats for the organization. """ - id: int = Field(description="Unique identifier of the package.") - name: str = Field(description="The name of the package.") - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - url: str = Field() - html_url: str = Field() - version_count: int = Field(description="The number of versions of the package.") - visibility: Literal["private", "public"] = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() + total: Missing[int] = Field( + default=UNSET, + description="The total number of seats being billed for the organization as of the current billing cycle.", + ) + added_this_cycle: Missing[int] = Field( + default=UNSET, description="Seats added during the current billing cycle." + ) + pending_cancellation: Missing[int] = Field( + default=UNSET, + description="The number of seats that are pending cancellation at the end of the current billing cycle.", + ) + pending_invitation: Missing[int] = Field( + default=UNSET, + description="The number of users who have been invited to receive a Copilot seat through this organization.", + ) + active_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have used Copilot during the current billing cycle.", + ) + inactive_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have not used Copilot during the current billing cycle.", + ) -model_rebuild(Package) +model_rebuild(CopilotOrganizationDetails) +model_rebuild(CopilotOrganizationSeatBreakdown) -__all__ = ("Package",) +__all__ = ( + "CopilotOrganizationDetails", + "CopilotOrganizationSeatBreakdown", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0094.py b/githubkit/versions/v2022_11_28/models/group_0094.py index a7a2456e5..ef9354a7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0094.py +++ b/githubkit/versions/v2022_11_28/models/group_0094.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import date, datetime +from typing import Literal, Union from pydantic import Field @@ -18,28 +19,85 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0064 import OrganizationSimple +from .group_0084 import Team -class OrganizationInvitation(GitHubModel): - """Organization Invitation +class CopilotSeatDetails(GitHubModel): + """Copilot Business Seat Detail - Organization Invitation + Information about a Copilot Business seat assignment for a user, team, or + organization. + """ + + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + organization: Missing[Union[None, OrganizationSimple]] = Field(default=UNSET) + assigning_team: Missing[Union[Team, EnterpriseTeam, None]] = Field( + default=UNSET, + description="The team through which the assignee is granted access to GitHub Copilot, if applicable.", + ) + pending_cancellation_date: Missing[Union[date, None]] = Field( + default=UNSET, + description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", + ) + last_activity_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", + ) + last_activity_editor: Missing[Union[str, None]] = Field( + default=UNSET, + description="Last editor that was used by the user for a GitHub Copilot completion.", + ) + created_at: datetime = Field( + description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="**Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + ) + plan_type: Missing[Literal["business", "enterprise", "unknown"]] = Field( + default=UNSET, + description="The Copilot plan of the organization, or the parent enterprise, when applicable.", + ) + + +class EnterpriseTeam(GitHubModel): + """Enterprise Team + + Group of enterprise owners and/or members """ id: int = Field() - login: Union[str, None] = Field() - email: Union[str, None] = Field() - role: str = Field() - created_at: str = Field() - failed_at: Missing[Union[str, None]] = Field(default=UNSET) - failed_reason: Missing[Union[str, None]] = Field(default=UNSET) - inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team_count: int = Field() - node_id: str = Field() - invitation_teams_url: str = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrganizationInvitation) - -__all__ = ("OrganizationInvitation",) + name: str = Field() + description: Missing[str] = Field(default=UNSET) + slug: str = Field() + url: str = Field() + sync_to_organizations: Missing[str] = Field(default=UNSET) + organization_selection_type: Missing[str] = Field(default=UNSET) + group_id: Missing[Union[str, None]] = Field(default=UNSET) + group_name: Missing[Union[str, None]] = Field(default=UNSET) + html_url: str = Field() + members_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + + total_seats: Missing[int] = Field( + default=UNSET, + description="Total number of Copilot seats for the organization currently being billed.", + ) + seats: Missing[list[CopilotSeatDetails]] = Field(default=UNSET) + + +model_rebuild(CopilotSeatDetails) +model_rebuild(EnterpriseTeam) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) + +__all__ = ( + "CopilotSeatDetails", + "EnterpriseTeam", + "OrgsOrgCopilotBillingSeatsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0095.py b/githubkit/versions/v2022_11_28/models/group_0095.py index c07e88da1..b2ecce70b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0095.py +++ b/githubkit/versions/v2022_11_28/models/group_0095.py @@ -9,47 +9,350 @@ from __future__ import annotations -from datetime import datetime +from datetime import date +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgHook(GitHubModel): - """Org Hook +class CopilotUsageMetricsDay(ExtraGitHubModel): + """Copilot Usage Metrics - Org Hook + Copilot usage metrics for a given day. """ - id: int = Field() - url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - name: str = Field() - events: list[str] = Field() - active: bool = Field() - config: OrgHookPropConfig = Field() - updated_at: datetime = Field() - created_at: datetime = Field() - type: str = Field() + date: date = Field( + description="The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format." + ) + total_active_users: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint.", + ) + copilot_ide_code_completions: Missing[Union[CopilotIdeCodeCompletions, None]] = ( + Field( + default=UNSET, + description="Usage metrics for Copilot editor code completions in the IDE.", + ) + ) + copilot_ide_chat: Missing[Union[CopilotIdeChat, None]] = Field( + default=UNSET, description="Usage metrics for Copilot Chat in the IDE." + ) + copilot_dotcom_chat: Missing[Union[CopilotDotcomChat, None]] = Field( + default=UNSET, description="Usage metrics for Copilot Chat in GitHub.com" + ) + copilot_dotcom_pull_requests: Missing[Union[CopilotDotcomPullRequests, None]] = ( + Field(default=UNSET, description="Usage metrics for Copilot for pull requests.") + ) -class OrgHookPropConfig(GitHubModel): - """OrgHookPropConfig""" +class CopilotDotcomChat(ExtraGitHubModel): + """CopilotDotcomChat + + Usage metrics for Copilot Chat in GitHub.com + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once.", + ) + models: Missing[list[CopilotDotcomChatPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for a custom models and the default model.", + ) + + +class CopilotDotcomChatPropModelsItems(GitHubModel): + """CopilotDotcomChatPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, + description="The training date for the custom model (if applicable).", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat on github.com at least once for each model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="Total number of chats initiated by users on github.com.", + ) + + +class CopilotIdeChat(ExtraGitHubModel): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Total number of users who prompted Copilot Chat in the IDE.", + ) + editors: Missing[list[CopilotIdeChatPropEditorsItems]] = Field(default=UNSET) + + +class CopilotIdeChatPropEditorsItems(GitHubModel): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the specified editor.", + ) + models: Missing[list[CopilotIdeChatPropEditorsItemsPropModelsItems]] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + + +class CopilotIdeChatPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot Chat. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who prompted Copilot Chat in the given editor and model.", + ) + total_chats: Missing[int] = Field( + default=UNSET, + description="The total number of chats initiated by users in the given editor and model.", + ) + total_chat_insertion_events: Missing[int] = Field( + default=UNSET, + description="The number of times users accepted a code suggestion from Copilot Chat using the 'Insert Code' UI element, for the given editor.", + ) + total_chat_copy_events: Missing[int] = Field( + default=UNSET, + description="The number of times users copied a code suggestion from Copilot Chat using the keyboard, or the 'Copy' UI element, for the given editor.", + ) + + +class CopilotDotcomPullRequests(ExtraGitHubModel): + """CopilotDotcomPullRequests + + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once.", + ) + repositories: Missing[list[CopilotDotcomPullRequestsPropRepositoriesItems]] = Field( + default=UNSET, + description="Repositories in which users used Copilot for Pull Requests to generate pull request summaries", + ) + + +class CopilotDotcomPullRequestsPropRepositoriesItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: Missing[str] = Field(default=UNSET, description="Repository name") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository.", + ) + models: Missing[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems] + ] = Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) - url: Missing[str] = Field(default=UNSET) - insecure_ssl: Missing[str] = Field(default=UNSET) - content_type: Missing[str] = Field(default=UNSET) - secret: Missing[str] = Field(default=UNSET) +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems(GitHubModel): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" -model_rebuild(OrgHook) -model_rebuild(OrgHookPropConfig) + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot pull request summaries. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_pr_summaries_created: Missing[int] = Field( + default=UNSET, + description="The number of pull request summaries generated using Copilot for Pull Requests in the given repository.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="The number of users who generated pull request summaries using Copilot for Pull Requests in the given repository and model.", + ) + + +class CopilotIdeCodeCompletions(ExtraGitHubModel): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. + """ + + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances.", + ) + languages: Missing[list[CopilotIdeCodeCompletionsPropLanguagesItems]] = Field( + default=UNSET, description="Code completion metrics for active languages." + ) + editors: Missing[list[CopilotIdeCodeCompletionsPropEditorsItems]] = Field( + default=UNSET + ) + + +class CopilotIdeCodeCompletionsPropLanguagesItems(GitHubModel): + """CopilotIdeCodeCompletionsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: Missing[str] = Field( + default=UNSET, + description="Name of the language used for Copilot code completion suggestions.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given language. Includes both full and partial acceptances.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItems(ExtraGitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItems + + Copilot code completion metrics for active editors. + """ + + name: Missing[str] = Field(default=UNSET, description="Name of the given editor.") + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor. Includes both full and partial acceptances.", + ) + models: Missing[list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems]] = ( + Field( + default=UNSET, + description="List of model metrics for custom models and the default model.", + ) + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems(GitHubModel): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" + + name: Missing[str] = Field( + default=UNSET, + description="Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'.", + ) + is_custom_model: Missing[bool] = Field( + default=UNSET, description="Indicates whether a model is custom or default." + ) + custom_model_training_date: Missing[Union[str, None]] = Field( + default=UNSET, description="The training date for the custom model." + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language and model. Includes both full and partial acceptances.", + ) + languages: Missing[ + list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems] + ] = Field( + default=UNSET, + description="Code completion metrics for active languages, for the given editor.", + ) + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems( + GitHubModel +): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: Missing[str] = Field( + default=UNSET, + description="Name of the language used for Copilot code completion suggestions, for the given editor.", + ) + total_engaged_users: Missing[int] = Field( + default=UNSET, + description="Number of users who accepted at least one Copilot code completion suggestion for the given editor, for the given language. Includes both full and partial acceptances.", + ) + total_code_suggestions: Missing[int] = Field( + default=UNSET, + description="The number of Copilot code suggestions generated for the given editor, for the given language.", + ) + total_code_acceptances: Missing[int] = Field( + default=UNSET, + description="The number of Copilot code suggestions accepted for the given editor, for the given language. Includes both full and partial acceptances.", + ) + total_code_lines_suggested: Missing[int] = Field( + default=UNSET, + description="The number of lines of code suggested by Copilot code completions for the given editor, for the given language.", + ) + total_code_lines_accepted: Missing[int] = Field( + default=UNSET, + description="The number of lines of code accepted from Copilot code suggestions for the given editor, for the given language.", + ) + + +model_rebuild(CopilotUsageMetricsDay) +model_rebuild(CopilotDotcomChat) +model_rebuild(CopilotDotcomChatPropModelsItems) +model_rebuild(CopilotIdeChat) +model_rebuild(CopilotIdeChatPropEditorsItems) +model_rebuild(CopilotIdeChatPropEditorsItemsPropModelsItems) +model_rebuild(CopilotDotcomPullRequests) +model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItems) +model_rebuild(CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems) +model_rebuild(CopilotIdeCodeCompletions) +model_rebuild(CopilotIdeCodeCompletionsPropLanguagesItems) +model_rebuild(CopilotIdeCodeCompletionsPropEditorsItems) +model_rebuild(CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems) +model_rebuild( + CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems +) __all__ = ( - "OrgHook", - "OrgHookPropConfig", + "CopilotDotcomChat", + "CopilotDotcomChatPropModelsItems", + "CopilotDotcomPullRequests", + "CopilotDotcomPullRequestsPropRepositoriesItems", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems", + "CopilotIdeChat", + "CopilotIdeChatPropEditorsItems", + "CopilotIdeChatPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletions", + "CopilotIdeCodeCompletionsPropEditorsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems", + "CopilotIdeCodeCompletionsPropLanguagesItems", + "CopilotUsageMetricsDay", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0096.py b/githubkit/versions/v2022_11_28/models/group_0096.py index 0a96c6c73..a7dfe2e7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0096.py +++ b/githubkit/versions/v2022_11_28/models/group_0096.py @@ -9,34 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ApiInsightsRouteStatsItems(GitHubModel): - """ApiInsightsRouteStatsItems""" +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey + + The public key used for setting Dependabot Secrets. + """ - http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") - api_route: Missing[str] = Field( - default=UNSET, description="The API path's route template" - ) - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", - ) - rate_limited_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests that were rate limited within the queried time period", - ) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(ApiInsightsRouteStatsItems) +model_rebuild(DependabotPublicKey) -__all__ = ("ApiInsightsRouteStatsItems",) +__all__ = ("DependabotPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0097.py b/githubkit/versions/v2022_11_28/models/group_0097.py index 4d268bc1d..cc7ce9f88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0097.py +++ b/githubkit/versions/v2022_11_28/models/group_0097.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,19 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0061 import MinimalRepository -class ApiInsightsSubjectStatsItems(GitHubModel): - """ApiInsightsSubjectStatsItems""" - subject_type: Missing[str] = Field(default=UNSET) - subject_name: Missing[str] = Field(default=UNSET) - subject_id: Missing[int] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) - last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) - last_request_timestamp: Missing[str] = Field(default=UNSET) +class Package(GitHubModel): + """Package + A software package + """ -model_rebuild(ApiInsightsSubjectStatsItems) + id: int = Field(description="Unique identifier of the package.") + name: str = Field(description="The name of the package.") + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + url: str = Field() + html_url: str = Field() + version_count: int = Field(description="The number of versions of the package.") + visibility: Literal["private", "public"] = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() -__all__ = ("ApiInsightsSubjectStatsItems",) + +model_rebuild(Package) + +__all__ = ("Package",) diff --git a/githubkit/versions/v2022_11_28/models/group_0098.py b/githubkit/versions/v2022_11_28/models/group_0098.py index 43562dec3..a7a2456e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0098.py +++ b/githubkit/versions/v2022_11_28/models/group_0098.py @@ -9,29 +9,37 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser + -class ApiInsightsSummaryStats(GitHubModel): - """Summary Stats +class OrganizationInvitation(GitHubModel): + """Organization Invitation - API Insights usage summary stats for an organization + Organization Invitation """ - total_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests within the queried time period", - ) - rate_limited_request_count: Missing[int] = Field( - default=UNSET, - description="The total number of requests that were rate limited within the queried time period", - ) + id: int = Field() + login: Union[str, None] = Field() + email: Union[str, None] = Field() + role: str = Field() + created_at: str = Field() + failed_at: Missing[Union[str, None]] = Field(default=UNSET) + failed_reason: Missing[Union[str, None]] = Field(default=UNSET) + inviter: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team_count: int = Field() + node_id: str = Field() + invitation_teams_url: str = Field() + invitation_source: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsSummaryStats) +model_rebuild(OrganizationInvitation) -__all__ = ("ApiInsightsSummaryStats",) +__all__ = ("OrganizationInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0099.py b/githubkit/versions/v2022_11_28/models/group_0099.py index 1e53263ef..c07e88da1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0099.py +++ b/githubkit/versions/v2022_11_28/models/group_0099.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,14 +18,38 @@ from githubkit.utils import UNSET -class ApiInsightsTimeStatsItems(GitHubModel): - """ApiInsightsTimeStatsItems""" +class OrgHook(GitHubModel): + """Org Hook + + Org Hook + """ + + id: int = Field() + url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + name: str = Field() + events: list[str] = Field() + active: bool = Field() + config: OrgHookPropConfig = Field() + updated_at: datetime = Field() + created_at: datetime = Field() + type: str = Field() + + +class OrgHookPropConfig(GitHubModel): + """OrgHookPropConfig""" - timestamp: Missing[str] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + insecure_ssl: Missing[str] = Field(default=UNSET) + content_type: Missing[str] = Field(default=UNSET) + secret: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsTimeStatsItems) +model_rebuild(OrgHook) +model_rebuild(OrgHookPropConfig) -__all__ = ("ApiInsightsTimeStatsItems",) +__all__ = ( + "OrgHook", + "OrgHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0100.py b/githubkit/versions/v2022_11_28/models/group_0100.py index 3b86770cc..0a96c6c73 100644 --- a/githubkit/versions/v2022_11_28/models/group_0100.py +++ b/githubkit/versions/v2022_11_28/models/group_0100.py @@ -18,20 +18,25 @@ from githubkit.utils import UNSET -class ApiInsightsUserStatsItems(GitHubModel): - """ApiInsightsUserStatsItems""" - - actor_type: Missing[str] = Field(default=UNSET) - actor_name: Missing[str] = Field(default=UNSET) - actor_id: Missing[int] = Field(default=UNSET) - integration_id: Missing[Union[int, None]] = Field(default=UNSET) - oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) - total_request_count: Missing[int] = Field(default=UNSET) - rate_limited_request_count: Missing[int] = Field(default=UNSET) +class ApiInsightsRouteStatsItems(GitHubModel): + """ApiInsightsRouteStatsItems""" + + http_method: Missing[str] = Field(default=UNSET, description="The HTTP method") + api_route: Missing[str] = Field( + default=UNSET, description="The API path's route template" + ) + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", + ) + rate_limited_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests that were rate limited within the queried time period", + ) last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(ApiInsightsUserStatsItems) +model_rebuild(ApiInsightsRouteStatsItems) -__all__ = ("ApiInsightsUserStatsItems",) +__all__ = ("ApiInsightsRouteStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0101.py b/githubkit/versions/v2022_11_28/models/group_0101.py index 1f7c3f84d..4d268bc1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0101.py +++ b/githubkit/versions/v2022_11_28/models/group_0101.py @@ -9,27 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class InteractionLimitResponse(GitHubModel): - """Interaction Limits +class ApiInsightsSubjectStatsItems(GitHubModel): + """ApiInsightsSubjectStatsItems""" - Interaction limit settings. - """ + subject_type: Missing[str] = Field(default=UNSET) + subject_name: Missing[str] = Field(default=UNSET) + subject_id: Missing[int] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - origin: str = Field() - expires_at: datetime = Field() +model_rebuild(ApiInsightsSubjectStatsItems) -model_rebuild(InteractionLimitResponse) - -__all__ = ("InteractionLimitResponse",) +__all__ = ("ApiInsightsSubjectStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0102.py b/githubkit/versions/v2022_11_28/models/group_0102.py index 341c1cb09..43562dec3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0102.py +++ b/githubkit/versions/v2022_11_28/models/group_0102.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,23 +16,22 @@ from githubkit.utils import UNSET -class InteractionLimit(GitHubModel): - """Interaction Restrictions +class ApiInsightsSummaryStats(GitHubModel): + """Summary Stats - Limit interactions to a specific type of user for a specified duration + API Insights usage summary stats for an organization """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." + total_request_count: Missing[int] = Field( + default=UNSET, + description="The total number of requests within the queried time period", ) - expiry: Missing[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] = Field( + rate_limited_request_count: Missing[int] = Field( default=UNSET, - description="The duration of the interaction restriction. Default: `one_day`.", + description="The total number of requests that were rate limited within the queried time period", ) -model_rebuild(InteractionLimit) +model_rebuild(ApiInsightsSummaryStats) -__all__ = ("InteractionLimit",) +__all__ = ("ApiInsightsSummaryStats",) diff --git a/githubkit/versions/v2022_11_28/models/group_0103.py b/githubkit/versions/v2022_11_28/models/group_0103.py index 427838689..1e53263ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0103.py +++ b/githubkit/versions/v2022_11_28/models/group_0103.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,14 @@ from githubkit.utils import UNSET -class OrganizationCreateIssueType(GitHubModel): - """OrganizationCreateIssueType""" +class ApiInsightsTimeStatsItems(GitHubModel): + """ApiInsightsTimeStatsItems""" - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") + timestamp: Missing[str] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) -model_rebuild(OrganizationCreateIssueType) +model_rebuild(ApiInsightsTimeStatsItems) -__all__ = ("OrganizationCreateIssueType",) +__all__ = ("ApiInsightsTimeStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0104.py b/githubkit/versions/v2022_11_28/models/group_0104.py index 35d9a70f4..3b86770cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0104.py +++ b/githubkit/versions/v2022_11_28/models/group_0104.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,26 +18,20 @@ from githubkit.utils import UNSET -class OrganizationUpdateIssueType(GitHubModel): - """OrganizationUpdateIssueType""" +class ApiInsightsUserStatsItems(GitHubModel): + """ApiInsightsUserStatsItems""" - name: str = Field(description="Name of the issue type.") - is_enabled: bool = Field( - description="Whether or not the issue type is enabled at the organization level." - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the issue type." - ) - color: Missing[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] = Field(default=UNSET, description="Color for the issue type.") + actor_type: Missing[str] = Field(default=UNSET) + actor_name: Missing[str] = Field(default=UNSET) + actor_id: Missing[int] = Field(default=UNSET) + integration_id: Missing[Union[int, None]] = Field(default=UNSET) + oauth_application_id: Missing[Union[int, None]] = Field(default=UNSET) + total_request_count: Missing[int] = Field(default=UNSET) + rate_limited_request_count: Missing[int] = Field(default=UNSET) + last_rate_limited_timestamp: Missing[Union[str, None]] = Field(default=UNSET) + last_request_timestamp: Missing[str] = Field(default=UNSET) -model_rebuild(OrganizationUpdateIssueType) +model_rebuild(ApiInsightsUserStatsItems) -__all__ = ("OrganizationUpdateIssueType",) +__all__ = ("ApiInsightsUserStatsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0105.py b/githubkit/versions/v2022_11_28/models/group_0105.py index 5b75518fb..1f7c3f84d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0105.py +++ b/githubkit/versions/v2022_11_28/models/group_0105.py @@ -9,49 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0061 import OrganizationSimple +class InteractionLimitResponse(GitHubModel): + """Interaction Limits -class OrgMembership(GitHubModel): - """Org Membership - - Org Membership + Interaction limit settings. """ - url: str = Field() - state: Literal["active", "pending"] = Field( - description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." - ) - role: Literal["admin", "member", "billing_manager"] = Field( - description="The user's membership type in the organization." - ) - organization_url: str = Field() - organization: OrganizationSimple = Field( - title="Organization Simple", description="A GitHub organization." + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - user: Union[None, SimpleUser] = Field() - permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) - - -class OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" - - can_create_repository: bool = Field() + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(OrgMembership) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(InteractionLimitResponse) -__all__ = ( - "OrgMembership", - "OrgMembershipPropPermissions", -) +__all__ = ("InteractionLimitResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0106.py b/githubkit/versions/v2022_11_28/models/group_0106.py index 64aae139a..341c1cb09 100644 --- a/githubkit/versions/v2022_11_28/models/group_0106.py +++ b/githubkit/versions/v2022_11_28/models/group_0106.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,41 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository +class InteractionLimit(GitHubModel): + """Interaction Restrictions -class Migration(GitHubModel): - """Migration - - A migration. + Limit interactions to a specific type of user for a specified duration """ - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: list[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - node_id: str = Field() - archive_url: Missing[str] = Field(default=UNSET) - exclude: Missing[list[str]] = Field( + expiry: Missing[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] = Field( default=UNSET, - description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', + description="The duration of the interaction restriction. Default: `one_day`.", ) -model_rebuild(Migration) +model_rebuild(InteractionLimit) -__all__ = ("Migration",) +__all__ = ("InteractionLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0107.py b/githubkit/versions/v2022_11_28/models/group_0107.py index c78f983ac..427838689 100644 --- a/githubkit/versions/v2022_11_28/models/group_0107.py +++ b/githubkit/versions/v2022_11_28/models/group_0107.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,60 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class OrganizationCreateIssueType(GitHubModel): + """OrganizationCreateIssueType""" -class OrganizationRole(GitHubModel): - """Organization Role - - Organization roles - """ - - id: int = Field(description="The unique identifier of the role.") - name: str = Field(description="The name of the role.") - description: Missing[Union[str, None]] = Field( - default=UNSET, - description="A short description about who this role is for or what permissions it grants.", - ) - base_role: Missing[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] = Field( - default=UNSET, - description="The system role from which this role inherits permissions.", - ) - source: Missing[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] - ] = Field( - default=UNSET, - description='Source answers the question, "where did this role come from?"', - ) - permissions: list[str] = Field( - description="A list of permissions included in this role." + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." ) - organization: Union[None, SimpleUser] = Field() - created_at: datetime = Field(description="The date and time the role was created.") - updated_at: datetime = Field( - description="The date and time the role was last updated." - ) - - -class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, - description="The total number of organization roles available to the organization.", - ) - roles: Missing[list[OrganizationRole]] = Field( - default=UNSET, - description="The list of organization roles available to the organization.", + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(OrganizationRole) -model_rebuild(OrgsOrgOrganizationRolesGetResponse200) +model_rebuild(OrganizationCreateIssueType) -__all__ = ( - "OrganizationRole", - "OrgsOrgOrganizationRolesGetResponse200", -) +__all__ = ("OrganizationCreateIssueType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0108.py b/githubkit/versions/v2022_11_28/models/group_0108.py index 00fc1a584..35d9a70f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0108.py +++ b/githubkit/versions/v2022_11_28/models/group_0108.py @@ -17,49 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0079 import TeamSimple +class OrganizationUpdateIssueType(GitHubModel): + """OrganizationUpdateIssueType""" -class TeamRoleAssignment(GitHubModel): - """A Role Assignment for a Team - - The Relationship a Team has with a role. - """ - - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( - default=UNSET, - description="Determines if the team has a direct, indirect, or mixed relationship to a role", + name: str = Field(description="Name of the issue type.") + is_enabled: bool = Field( + description="Whether or not the issue type is enabled at the organization level." ) - id: int = Field() - node_id: str = Field() - name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() - - -class TeamRoleAssignmentPropPermissions(GitHubModel): - """TeamRoleAssignmentPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the issue type." + ) + color: Missing[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] = Field(default=UNSET, description="Color for the issue type.") -model_rebuild(TeamRoleAssignment) -model_rebuild(TeamRoleAssignmentPropPermissions) +model_rebuild(OrganizationUpdateIssueType) -__all__ = ( - "TeamRoleAssignment", - "TeamRoleAssignmentPropPermissions", -) +__all__ = ("OrganizationUpdateIssueType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0109.py b/githubkit/versions/v2022_11_28/models/group_0109.py index 400b919c8..51d13246c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0109.py +++ b/githubkit/versions/v2022_11_28/models/group_0109.py @@ -17,46 +17,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0079 import TeamSimple +from .group_0003 import SimpleUser +from .group_0064 import OrganizationSimple -class UserRoleAssignment(GitHubModel): - """A Role Assignment for a User +class OrgMembership(GitHubModel): + """Org Membership - The Relationship a User has with a role. + Org Membership """ - assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( - default=UNSET, - description="Determines if the user has a direct, indirect, or mixed relationship to a role", + url: str = Field() + state: Literal["active", "pending"] = Field( + description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." ) - inherited_from: Missing[list[TeamSimple]] = Field( - default=UNSET, description="Team the user has gotten the role through" + role: Literal["admin", "member", "billing_manager"] = Field( + description="The user's membership type in the organization." ) - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - starred_at: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(UserRoleAssignment) - -__all__ = ("UserRoleAssignment",) + organization_url: str = Field() + organization: OrganizationSimple = Field( + title="Organization Simple", description="A GitHub organization." + ) + user: Union[None, SimpleUser] = Field() + permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) + + +class OrgMembershipPropPermissions(GitHubModel): + """OrgMembershipPropPermissions""" + + can_create_repository: bool = Field() + + +model_rebuild(OrgMembership) +model_rebuild(OrgMembershipPropPermissions) + +__all__ = ( + "OrgMembership", + "OrgMembershipPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0110.py b/githubkit/versions/v2022_11_28/models/group_0110.py index fe0d0f426..64aae139a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0110.py +++ b/githubkit/versions/v2022_11_28/models/group_0110.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Union from pydantic import Field @@ -18,62 +18,41 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0020 import Repository -class PackageVersion(GitHubModel): - """Package Version - A version of a software package +class Migration(GitHubModel): + """Migration + + A migration. """ - id: int = Field(description="Unique identifier of the package version.") - name: str = Field(description="The name of the package version.") + id: int = Field() + owner: Union[None, SimpleUser] = Field() + guid: str = Field() + state: str = Field() + lock_repositories: bool = Field() + exclude_metadata: bool = Field() + exclude_git_data: bool = Field() + exclude_attachments: bool = Field() + exclude_releases: bool = Field() + exclude_owner_projects: bool = Field() + org_metadata_only: bool = Field() + repositories: list[Repository] = Field( + description="The repositories included in the migration. Only returned for export migrations." + ) url: str = Field() - package_html_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - description: Missing[str] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - metadata: Missing[PackageVersionPropMetadata] = Field( - default=UNSET, title="Package Version Metadata" - ) - - -class PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" - - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" - ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" + node_id: str = Field() + archive_url: Missing[str] = Field(default=UNSET) + exclude: Missing[list[str]] = Field( + default=UNSET, + description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', ) -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: list[str] = Field() - - -class PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" - - tag: Missing[list[str]] = Field(default=UNSET) - - -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(Migration) -__all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", -) +__all__ = ("Migration",) diff --git a/githubkit/versions/v2022_11_28/models/group_0111.py b/githubkit/versions/v2022_11_28/models/group_0111.py index c7a2781c2..c78f983ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0111.py +++ b/githubkit/versions/v2022_11_28/models/group_0111.py @@ -9,103 +9,69 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request +class OrganizationRole(GitHubModel): + """Organization Role - Minimal representation of an organization programmatic access grant request for - enumerations + Organization roles """ - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." + id: int = Field(description="The unique identifier of the role.") + name: str = Field(description="The name of the role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", ) - reason: Union[str, None] = Field(description="Reason for requesting access.") - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." + base_role: Missing[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] + ] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", ) - repositories_url: str = Field( - description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." + source: Missing[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] + ] = Field( + default=UNSET, + description='Source answers the question, "where did this role come from?"', ) - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( - description="Permissions requested, categorized by type of permission." + permissions: list[str] = Field( + description="A list of permissions included in this role." ) - created_at: str = Field( - description="Date and time when the request for access was created." + organization: Union[None, SimpleUser] = Field() + created_at: datetime = Field(description="The date and time the role was created.") + updated_at: datetime = Field( + description="The date and time the role was last updated." ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - -class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. - """ - organization: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther - ] = Field(default=UNSET) +class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): + """OrgsOrgOrganizationRolesGetResponse200""" - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization roles available to the organization.", + ) + roles: Missing[list[OrganizationRole]] = Field( + default=UNSET, + description="The list of organization roles available to the organization.", + ) -model_rebuild(OrganizationProgrammaticAccessGrantRequest) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) __all__ = ( - "OrganizationProgrammaticAccessGrantRequest", - "OrganizationProgrammaticAccessGrantRequestPropPermissions", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0112.py b/githubkit/versions/v2022_11_28/models/group_0112.py index 9cc3f78de..be41f869c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0112.py +++ b/githubkit/versions/v2022_11_28/models/group_0112.py @@ -13,96 +13,53 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0083 import TeamSimple -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team - Minimal representation of an organization programmatic access grant for - enumerations + The Relationship a Team has with a role. """ - id: int = Field( - description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( + default=UNSET, + description="Determines if the team has a direct, indirect, or mixed relationship to a role", ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repositories_url: str = Field( - description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." - ) - permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( - description="Permissions requested, categorized by type of permission." - ) - access_granted_at: str = Field( - description="Date and time when the fine-grained personal access token was approved to access the organization." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( - default=UNSET - ) - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" - - -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) + id: int = Field() + node_id: str = Field() + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() + + +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" + + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() + + +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0113.py b/githubkit/versions/v2022_11_28/models/group_0113.py index e458bf37e..fb6a35820 100644 --- a/githubkit/versions/v2022_11_28/models/group_0113.py +++ b/githubkit/versions/v2022_11_28/models/group_0113.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,30 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0083 import TeamSimple -class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): - """Organization private registry - Private registry configuration for an organization +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User + + The Relationship a User has with a role. """ - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[str] = Field( + assignment: Missing[Literal["direct", "indirect", "mixed"]] = Field( default=UNSET, - description="The username to use when authenticating with the private registry.", - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + description="Determines if the user has a direct, indirect, or mixed relationship to a role", ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", + inherited_from: Missing[list[TeamSimple]] = Field( + default=UNSET, description="Team the user has gotten the role through" ) - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) - -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) + name: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + starred_at: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(UserRoleAssignment) + +__all__ = ("UserRoleAssignment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0114.py b/githubkit/versions/v2022_11_28/models/group_0114.py index a7a52f64e..fe0d0f426 100644 --- a/githubkit/versions/v2022_11_28/models/group_0114.py +++ b/githubkit/versions/v2022_11_28/models/group_0114.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,38 +18,62 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class PackageVersion(GitHubModel): + """Package Version -class Project(GitHubModel): - """Project - - Projects are a way to organize columns and cards of work. + A version of a software package """ - owner_url: str = Field() + id: int = Field(description="Unique identifier of the package version.") + name: str = Field(description="The name of the package version.") url: str = Field() - html_url: str = Field() - columns_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="Name of the project") - body: Union[str, None] = Field(description="Body of the project") - number: int = Field() - state: str = Field(description="State of the project; either 'open' or 'closed'") - creator: Union[None, SimpleUser] = Field() + package_html_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + description: Missing[str] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + deleted_at: Missing[datetime] = Field(default=UNSET) + metadata: Missing[PackageVersionPropMetadata] = Field( + default=UNSET, title="Package Version Metadata" + ) + + +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" + + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + container: Missing[PackageVersionPropMetadataPropContainer] = Field( + default=UNSET, title="Container Metadata" ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + docker: Missing[PackageVersionPropMetadataPropDocker] = Field( + default=UNSET, title="Docker Metadata" ) -model_rebuild(Project) +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + + tags: list[str] = Field() + + +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" + + tag: Missing[list[str]] = Field(default=UNSET) + + +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) -__all__ = ("Project",) +__all__ = ( + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0115.py b/githubkit/versions/v2022_11_28/models/group_0115.py index e7f7856d5..c7a2781c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0115.py +++ b/githubkit/versions/v2022_11_28/models/group_0115.py @@ -9,58 +9,103 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class CustomProperty(GitHubModel): - """Organization Custom Property - Custom property defined on an organization +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations """ - property_name: str = Field(description="The name of the property") - url: Missing[str] = Field( - default=UNSET, - description="The URL that can be used to fetch, update, or delete info about this property via the API.", + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." + ) + reason: Union[str, None] = Field(description="Reason for requesting access.") + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repositories_url: str = Field( + description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( + description="Permissions requested, categorized by type of permission." ) - source_type: Missing[Literal["organization", "enterprise"]] = Field( - default=UNSET, description="The source type of the property" + created_at: str = Field( + description="Date and time when the request for access was created." ) - value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( - Field(description="The type of the value for the property") + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." ) - default_value: Missing[Union[str, list[str], None]] = Field( - default=UNSET, description="Default value of the property" + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." ) - allowed_values: Missing[ - Union[ - Annotated[ - list[Annotated[str, Field(max_length=75)]], - Field(max_length=200 if PYDANTIC_V2 else None), - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." ) - values_editable_by: Missing[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(CustomProperty) +class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther + ] = Field(default=UNSET) + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + + +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) -__all__ = ("CustomProperty",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0116.py b/githubkit/versions/v2022_11_28/models/group_0116.py index e20487da9..9cc3f78de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0116.py +++ b/githubkit/versions/v2022_11_28/models/group_0116.py @@ -9,50 +9,100 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class CustomPropertySetPayload(GitHubModel): - """Custom Property Set Payload - Custom property set payload +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations """ - value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( - Field(description="The type of the value for the property") + id: int = Field( + description="Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repositories_url: str = Field( + description="URL to the list of repositories the fine-grained personal access token can access. Only follow when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + access_granted_at: str = Field( + description="Date and time when the fine-grained personal access token was approved to access the organization." ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." ) - default_value: Missing[Union[str, list[str], None]] = Field( - default=UNSET, description="Default value of the property" + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." ) - allowed_values: Missing[ - Union[ - Annotated[ - list[Annotated[str, Field(max_length=75)]], - Field(max_length=200 if PYDANTIC_V2 else None), - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( + default=UNSET ) - values_editable_by: Missing[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(CustomPropertySetPayload) +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + + +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("CustomPropertySetPayload",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0117.py b/githubkit/versions/v2022_11_28/models/group_0117.py index 323c1ba32..a034d5582 100644 --- a/githubkit/versions/v2022_11_28/models/group_0117.py +++ b/githubkit/versions/v2022_11_28/models/group_0117.py @@ -9,25 +9,41 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CustomPropertyValue(GitHubModel): - """Custom Property Value +class OrgPrivateRegistryConfigurationWithSelectedRepositories(GitHubModel): + """Organization private registry - Custom property name and associated value + Private registry configuration for an organization """ - property_name: str = Field(description="The name of the property") - value: Union[str, list[str], None] = Field( - description="The value assigned to the property" + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( + description="The registry type." ) + username: Missing[str] = Field( + default=UNSET, + description="The username to use when authenticating with the private registry.", + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(CustomPropertyValue) +model_rebuild(OrgPrivateRegistryConfigurationWithSelectedRepositories) -__all__ = ("CustomPropertyValue",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositories",) diff --git a/githubkit/versions/v2022_11_28/models/group_0118.py b/githubkit/versions/v2022_11_28/models/group_0118.py index fee07dfc1..a7a52f64e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0118.py +++ b/githubkit/versions/v2022_11_28/models/group_0118.py @@ -9,27 +9,47 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0117 import CustomPropertyValue +from .group_0003 import SimpleUser -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class Project(GitHubModel): + """Project - List of custom property values for a repository + Projects are a way to organize columns and cards of work. """ - repository_id: int = Field() - repository_name: str = Field() - repository_full_name: str = Field() - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values" + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="Name of the project") + body: Union[str, None] = Field(description="Body of the project") + number: int = Field() + state: str = Field(description="State of the project; either 'open' or 'closed'") + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", ) -model_rebuild(OrgRepoCustomPropertyValues) +model_rebuild(Project) -__all__ = ("OrgRepoCustomPropertyValues",) +__all__ = ("Project",) diff --git a/githubkit/versions/v2022_11_28/models/group_0119.py b/githubkit/versions/v2022_11_28/models/group_0119.py index 35b60a16d..e7f7856d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0119.py +++ b/githubkit/versions/v2022_11_28/models/group_0119.py @@ -9,25 +9,58 @@ from __future__ import annotations -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple +class CustomProperty(GitHubModel): + """Organization Custom Property - Code of Conduct Simple + Custom property defined on an organization """ - url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() + property_name: str = Field(description="The name of the property") + url: Missing[str] = Field( + default=UNSET, + description="The URL that can be used to fetch, update, or delete info about this property via the API.", + ) + source_type: Missing[Literal["organization", "enterprise"]] = Field( + default=UNSET, description="The source type of the property" + ) + value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( + Field(description="The type of the value for the property") + ) + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." + ) + default_value: Missing[Union[str, list[str], None]] = Field( + default=UNSET, description="Default value of the property" + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" + ) + allowed_values: Missing[ + Union[ + Annotated[ + list[Annotated[str, Field(max_length=75)]], + Field(max_length=200 if PYDANTIC_V2 else None), + ], + None, + ] + ] = Field( + default=UNSET, + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + ) + values_editable_by: Missing[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] + ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(CodeOfConductSimple) +model_rebuild(CustomProperty) -__all__ = ("CodeOfConductSimple",) +__all__ = ("CustomProperty",) diff --git a/githubkit/versions/v2022_11_28/models/group_0120.py b/githubkit/versions/v2022_11_28/models/group_0120.py index 8ba3c5e09..e20487da9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0120.py +++ b/githubkit/versions/v2022_11_28/models/group_0120.py @@ -9,196 +9,50 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Annotated, Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0020 import Repository -from .group_0057 import SecurityAndAnalysis -from .group_0119 import CodeOfConductSimple +class CustomPropertySetPayload(GitHubModel): + """Custom Property Set Payload -class FullRepository(GitHubModel): - """Full Repository - - Full Repository + Custom property set payload """ - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( + Field(description="The type of the value for the property") ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + default_value: Missing[Union[str, list[str], None]] = Field( + default=UNSET, description="Default value of the property" ) - pushed_at: datetime = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + allowed_values: Missing[ + Union[ + Annotated[ + list[Annotated[str, Field(max_length=75)]], + Field(max_length=200 if PYDANTIC_V2 else None), + ], + None, + ] ] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." - ) - code_of_conduct: Missing[CodeOfConductSimple] = Field( - default=UNSET, - title="Code Of Conduct Simple", - description="Code of Conduct Simple", + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET - ) - custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class FullRepositoryPropPermissions(GitHubModel): - """FullRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -class FullRepositoryPropCustomProperties(ExtraGitHubModel): - """FullRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + values_editable_by: Missing[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] + ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(CustomPropertySetPayload) -__all__ = ( - "FullRepository", - "FullRepositoryPropCustomProperties", - "FullRepositoryPropPermissions", -) +__all__ = ("CustomPropertySetPayload",) diff --git a/githubkit/versions/v2022_11_28/models/group_0121.py b/githubkit/versions/v2022_11_28/models/group_0121.py index 72e9651e6..323c1ba32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0121.py +++ b/githubkit/versions/v2022_11_28/models/group_0121.py @@ -9,34 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRulesetBypassActor(GitHubModel): - """Repository Ruleset Bypass Actor +class CustomPropertyValue(GitHubModel): + """Custom Property Value - An actor that can bypass rules in a ruleset + Custom property name and associated value """ - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, - description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.", - ) - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] = Field(description="The type of actor that can bypass a ruleset.") - bypass_mode: Missing[Literal["always", "pull_request"]] = Field( - default=UNSET, - description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + property_name: str = Field(description="The name of the property") + value: Union[str, list[str], None] = Field( + description="The value assigned to the property" ) -model_rebuild(RepositoryRulesetBypassActor) +model_rebuild(CustomPropertyValue) -__all__ = ("RepositoryRulesetBypassActor",) +__all__ = ("CustomPropertyValue",) diff --git a/githubkit/versions/v2022_11_28/models/group_0122.py b/githubkit/versions/v2022_11_28/models/group_0122.py index 342e2fec9..94a427751 100644 --- a/githubkit/versions/v2022_11_28/models/group_0122.py +++ b/githubkit/versions/v2022_11_28/models/group_0122.py @@ -12,21 +12,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0123 import RepositoryRulesetConditionsPropRefName +from .group_0121 import CustomPropertyValue -class RepositoryRulesetConditions(GitHubModel): - """Repository ruleset conditions for ref names +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values - Parameters for a repository ruleset ref name condition + List of custom property values for a repository """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: int = Field() + repository_name: str = Field() + repository_full_name: str = Field() + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values" + ) -model_rebuild(RepositoryRulesetConditions) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ("RepositoryRulesetConditions",) +__all__ = ("OrgRepoCustomPropertyValues",) diff --git a/githubkit/versions/v2022_11_28/models/group_0123.py b/githubkit/versions/v2022_11_28/models/group_0123.py index 1ca843cd5..35b60a16d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0123.py +++ b/githubkit/versions/v2022_11_28/models/group_0123.py @@ -9,26 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRulesetConditionsPropRefName(GitHubModel): - """RepositoryRulesetConditionsPropRefName""" +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple + + Code of Conduct Simple + """ - include: Missing[list[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", - ) - exclude: Missing[list[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", - ) + url: str = Field() + key: str = Field() + name: str = Field() + html_url: Union[str, None] = Field() -model_rebuild(RepositoryRulesetConditionsPropRefName) +model_rebuild(CodeOfConductSimple) -__all__ = ("RepositoryRulesetConditionsPropRefName",) +__all__ = ("CodeOfConductSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0124.py b/githubkit/versions/v2022_11_28/models/group_0124.py index 8ae619b25..72d37adfb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0124.py +++ b/githubkit/versions/v2022_11_28/models/group_0124.py @@ -9,24 +9,196 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0125 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0020 import Repository +from .group_0060 import SecurityAndAnalysis +from .group_0123 import CodeOfConductSimple -class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): - """Repository ruleset conditions for repository names +class FullRepository(GitHubModel): + """Full Repository - Parameters for a repository name condition + Full Repository """ - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field() + open_issues_count: int = Field() + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: bool = Field() + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: datetime = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + subscribers_count: int = Field() + network_count: int = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + parent: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + source: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + forks: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, description="Whether anonymous git access is allowed." + ) + code_of_conduct: Missing[CodeOfConductSimple] = Field( + default=UNSET, + title="Code Of Conduct Simple", + description="Code of Conduct Simple", + ) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class FullRepositoryPropPermissions(GitHubModel): + """FullRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) +class FullRepositoryPropCustomProperties(ExtraGitHubModel): + """FullRepositoryPropCustomProperties -__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) + +__all__ = ( + "FullRepository", + "FullRepositoryPropCustomProperties", + "FullRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0125.py b/githubkit/versions/v2022_11_28/models/group_0125.py index 45d8e8310..72e9651e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0125.py +++ b/githubkit/versions/v2022_11_28/models/group_0125.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,23 +18,25 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class RepositoryRulesetBypassActor(GitHubModel): + """Repository Ruleset Bypass Actor - include: Missing[list[str]] = Field( - default=UNSET, - description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", - ) - exclude: Missing[list[str]] = Field( + An actor that can bypass rules in a ruleset + """ + + actor_id: Missing[Union[int, None]] = Field( default=UNSET, - description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", + description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.", ) - protected: Missing[bool] = Field( + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] = Field(description="The type of actor that can bypass a ruleset.") + bypass_mode: Missing[Literal["always", "pull_request"]] = Field( default=UNSET, - description="Whether renaming of target repositories is prevented.", + description="When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) +model_rebuild(RepositoryRulesetBypassActor) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) +__all__ = ("RepositoryRulesetBypassActor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0126.py b/githubkit/versions/v2022_11_28/models/group_0126.py index 0375350ae..93bfcd33e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0126.py +++ b/githubkit/versions/v2022_11_28/models/group_0126.py @@ -12,21 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0127 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +from .group_0127 import RepositoryRulesetConditionsPropRefName -class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetConditions(GitHubModel): + """Repository ruleset conditions for ref names - Parameters for a repository ID condition + Parameters for a repository ruleset ref name condition """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() - ) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) +model_rebuild(RepositoryRulesetConditions) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) +__all__ = ("RepositoryRulesetConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0127.py b/githubkit/versions/v2022_11_28/models/group_0127.py index fd9df3d90..1ca843cd5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0127.py +++ b/githubkit/versions/v2022_11_28/models/group_0127.py @@ -16,15 +16,19 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRulesetConditionsPropRefName(GitHubModel): + """RepositoryRulesetConditionsPropRefName""" - repository_ids: Missing[list[int]] = Field( + include: Missing[list[str]] = Field( default=UNSET, - description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", + description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", + ) + exclude: Missing[list[str]] = Field( + default=UNSET, + description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) +model_rebuild(RepositoryRulesetConditionsPropRefName) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) +__all__ = ("RepositoryRulesetConditionsPropRefName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0128.py b/githubkit/versions/v2022_11_28/models/group_0128.py index 071656eb7..07f739fca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0128.py +++ b/githubkit/versions/v2022_11_28/models/group_0128.py @@ -14,19 +14,19 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0129 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) -class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): - """Repository ruleset conditions for repository properties +class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): + """Repository ruleset conditions for repository names - Parameters for a repository property condition + Parameters for a repository name condition """ - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0129.py b/githubkit/versions/v2022_11_28/models/group_0129.py index de1e60e46..45d8e8310 100644 --- a/githubkit/versions/v2022_11_28/models/group_0129.py +++ b/githubkit/versions/v2022_11_28/models/group_0129.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,41 +16,23 @@ from githubkit.utils import UNSET -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( - GitHubModel -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + include: Missing[list[str]] = Field( default=UNSET, - description="The repository properties and values to include. All of these properties must match for the condition to pass.", + description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", ) - exclude: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + exclude: Missing[list[str]] = Field( default=UNSET, - description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", - ) - - -class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): - """Repository ruleset property targeting definition - - Parameters for a targeting a repository property - """ - - name: str = Field(description="The name of the repository property to target") - property_values: list[str] = Field( - description="The values to match for the repository property" + description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", ) - source: Missing[Literal["custom", "system"]] = Field( + protected: Missing[bool] = Field( default=UNSET, - description="The source of the repository property. Defaults to 'custom' if not specified.", + description="Whether renaming of target repositories is prevented.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpec", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0130.py b/githubkit/versions/v2022_11_28/models/group_0130.py index 9d6851577..2cc1a9a4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0130.py +++ b/githubkit/versions/v2022_11_28/models/group_0130.py @@ -12,25 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0123 import RepositoryRulesetConditionsPropRefName -from .group_0125 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +from .group_0131 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class OrgRulesetConditionsOneof0(GitHubModel): - """repository_name_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by name and refs by name + Parameters for a repository ID condition """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() + ) -model_rebuild(OrgRulesetConditionsOneof0) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) -__all__ = ("OrgRulesetConditionsOneof0",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0131.py b/githubkit/versions/v2022_11_28/models/group_0131.py index 0923b4292..fd9df3d90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0131.py +++ b/githubkit/versions/v2022_11_28/models/group_0131.py @@ -15,22 +15,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0123 import RepositoryRulesetConditionsPropRefName -from .group_0127 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class OrgRulesetConditionsOneof1(GitHubModel): - """repository_id_and_ref_name - - Conditions to target repositories by id and refs by name - """ - - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", ) -model_rebuild(OrgRulesetConditionsOneof1) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) -__all__ = ("OrgRulesetConditionsOneof1",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) diff --git a/githubkit/versions/v2022_11_28/models/group_0132.py b/githubkit/versions/v2022_11_28/models/group_0132.py index bcab1e90c..0fce04cd4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0132.py +++ b/githubkit/versions/v2022_11_28/models/group_0132.py @@ -12,25 +12,21 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0123 import RepositoryRulesetConditionsPropRefName -from .group_0129 import ( +from .group_0133 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) -class OrgRulesetConditionsOneof2(GitHubModel): - """repository_property_and_ref_name +class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): + """Repository ruleset conditions for repository properties - Conditions to target repositories by property and refs by name + Parameters for a repository property condition """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(OrgRulesetConditionsOneof2) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) -__all__ = ("OrgRulesetConditionsOneof2",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0133.py b/githubkit/versions/v2022_11_28/models/group_0133.py index d7ce200e3..de1e60e46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0133.py +++ b/githubkit/versions/v2022_11_28/models/group_0133.py @@ -14,52 +14,45 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleCreation(GitHubModel): - """creation +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( + GitHubModel +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] = Field() - - -class RepositoryRuleDeletion(GitHubModel): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] = Field() - - -class RepositoryRuleRequiredSignatures(GitHubModel): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] = Field() + include: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to include. All of these properties must match for the condition to pass.", + ) + exclude: Missing[list[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", + ) -class RepositoryRuleNonFastForward(GitHubModel): - """non_fast_forward +class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): + """Repository ruleset property targeting definition - Prevent users with push access from force pushing to refs. + Parameters for a targeting a repository property """ - type: Literal["non_fast_forward"] = Field() + name: str = Field(description="The name of the repository property to target") + property_values: list[str] = Field( + description="The values to match for the repository property" + ) + source: Missing[Literal["custom", "system"]] = Field( + default=UNSET, + description="The source of the repository property. Defaults to 'custom' if not specified.", + ) -model_rebuild(RepositoryRuleCreation) -model_rebuild(RepositoryRuleDeletion) -model_rebuild(RepositoryRuleRequiredSignatures) -model_rebuild(RepositoryRuleNonFastForward) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) __all__ = ( - "RepositoryRuleCreation", - "RepositoryRuleDeletion", - "RepositoryRuleNonFastForward", - "RepositoryRuleRequiredSignatures", + "RepositoryRulesetConditionsRepositoryPropertySpec", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0134.py b/githubkit/versions/v2022_11_28/models/group_0134.py index 46684edcb..32e2efdc1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0134.py +++ b/githubkit/versions/v2022_11_28/models/group_0134.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0135 import RepositoryRuleUpdatePropParameters +from .group_0127 import RepositoryRulesetConditionsPropRefName +from .group_0129 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRuleUpdate(GitHubModel): - """update +class OrgRulesetConditionsOneof0(GitHubModel): + """repository_name_and_ref_name - Only allow users with bypass permission to update matching refs. + Conditions to target repositories by name and refs by name """ - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(RepositoryRuleUpdate) +model_rebuild(OrgRulesetConditionsOneof0) -__all__ = ("RepositoryRuleUpdate",) +__all__ = ("OrgRulesetConditionsOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0135.py b/githubkit/versions/v2022_11_28/models/group_0135.py index 24be869ac..531b263c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0135.py +++ b/githubkit/versions/v2022_11_28/models/group_0135.py @@ -12,16 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0127 import RepositoryRulesetConditionsPropRefName +from .group_0131 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class RepositoryRuleUpdatePropParameters(GitHubModel): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool = Field( - description="Branch can pull changes from its upstream repository" +class OrgRulesetConditionsOneof1(GitHubModel): + """repository_id_and_ref_name + + Conditions to target repositories by id and refs by name + """ + + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() ) -model_rebuild(RepositoryRuleUpdatePropParameters) +model_rebuild(OrgRulesetConditionsOneof1) -__all__ = ("RepositoryRuleUpdatePropParameters",) +__all__ = ("OrgRulesetConditionsOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0136.py b/githubkit/versions/v2022_11_28/models/group_0136.py index 5a1b53ca6..11f6c424c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0136.py +++ b/githubkit/versions/v2022_11_28/models/group_0136.py @@ -9,22 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0127 import RepositoryRulesetConditionsPropRefName +from .group_0133 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleRequiredLinearHistory(GitHubModel): - """required_linear_history +class OrgRulesetConditionsOneof2(GitHubModel): + """repository_property_and_ref_name - Prevent merge commits from being pushed to matching refs. + Conditions to target repositories by property and refs by name """ - type: Literal["required_linear_history"] = Field() + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(RepositoryRuleRequiredLinearHistory) +model_rebuild(OrgRulesetConditionsOneof2) -__all__ = ("RepositoryRuleRequiredLinearHistory",) +__all__ = ("OrgRulesetConditionsOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0137.py b/githubkit/versions/v2022_11_28/models/group_0137.py index c2625e75c..d7ce200e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0137.py +++ b/githubkit/versions/v2022_11_28/models/group_0137.py @@ -14,22 +14,52 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0138 import RepositoryRuleMergeQueuePropParameters +class RepositoryRuleCreation(GitHubModel): + """creation -class RepositoryRuleMergeQueue(GitHubModel): - """merge_queue + Only allow users with bypass permission to create matching refs. + """ + + type: Literal["creation"] = Field() + + +class RepositoryRuleDeletion(GitHubModel): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] = Field() + + +class RepositoryRuleRequiredSignatures(GitHubModel): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] = Field() + + +class RepositoryRuleNonFastForward(GitHubModel): + """non_fast_forward - Merges must be performed via a merge queue. + Prevent users with push access from force pushing to refs. """ - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) + type: Literal["non_fast_forward"] = Field() -model_rebuild(RepositoryRuleMergeQueue) +model_rebuild(RepositoryRuleCreation) +model_rebuild(RepositoryRuleDeletion) +model_rebuild(RepositoryRuleRequiredSignatures) +model_rebuild(RepositoryRuleNonFastForward) -__all__ = ("RepositoryRuleMergeQueue",) +__all__ = ( + "RepositoryRuleCreation", + "RepositoryRuleDeletion", + "RepositoryRuleNonFastForward", + "RepositoryRuleRequiredSignatures", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0138.py b/githubkit/versions/v2022_11_28/models/group_0138.py index 152d1eb45..1cbf0ff8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0138.py +++ b/githubkit/versions/v2022_11_28/models/group_0138.py @@ -14,40 +14,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0139 import RepositoryRuleUpdatePropParameters -class RepositoryRuleMergeQueuePropParameters(GitHubModel): - """RepositoryRuleMergeQueuePropParameters""" - - check_response_timeout_minutes: int = Field( - le=360.0, - ge=1.0, - description="Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed", - ) - grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] = Field( - description="When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." - ) - max_entries_to_build: int = Field( - le=100.0, - description="Limit the number of queued pull requests requesting checks and workflow runs at the same time.", - ) - max_entries_to_merge: int = Field( - le=100.0, - description="The maximum number of PRs that will be merged together in a group.", - ) - merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( - description="Method to use when merging changes from queued pull requests." - ) - min_entries_to_merge: int = Field( - le=100.0, - description="The minimum number of PRs that will be merged together in a group.", - ) - min_entries_to_merge_wait_minutes: int = Field( - le=360.0, - description="The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.", - ) - - -model_rebuild(RepositoryRuleMergeQueuePropParameters) - -__all__ = ("RepositoryRuleMergeQueuePropParameters",) + +class RepositoryRuleUpdate(GitHubModel): + """update + + Only allow users with bypass permission to update matching refs. + """ + + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + + +model_rebuild(RepositoryRuleUpdate) + +__all__ = ("RepositoryRuleUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0139.py b/githubkit/versions/v2022_11_28/models/group_0139.py index f0759f954..24be869ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0139.py +++ b/githubkit/versions/v2022_11_28/models/group_0139.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0140 import RepositoryRuleRequiredDeploymentsPropParameters - -class RepositoryRuleRequiredDeployments(GitHubModel): - """required_deployments - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. - """ +class RepositoryRuleUpdatePropParameters(GitHubModel): + """RepositoryRuleUpdatePropParameters""" - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET + update_allows_fetch_and_merge: bool = Field( + description="Branch can pull changes from its upstream repository" ) -model_rebuild(RepositoryRuleRequiredDeployments) +model_rebuild(RepositoryRuleUpdatePropParameters) -__all__ = ("RepositoryRuleRequiredDeployments",) +__all__ = ("RepositoryRuleUpdatePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0140.py b/githubkit/versions/v2022_11_28/models/group_0140.py index d174bdf82..5a1b53ca6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0140.py +++ b/githubkit/versions/v2022_11_28/models/group_0140.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleRequiredLinearHistory(GitHubModel): + """required_linear_history + + Prevent merge commits from being pushed to matching refs. + """ - required_deployment_environments: list[str] = Field( - description="The environments that must be successfully deployed to before branches can be merged." - ) + type: Literal["required_linear_history"] = Field() -model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) +model_rebuild(RepositoryRuleRequiredLinearHistory) -__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) +__all__ = ("RepositoryRuleRequiredLinearHistory",) diff --git a/githubkit/versions/v2022_11_28/models/group_0141.py b/githubkit/versions/v2022_11_28/models/group_0141.py index ea8b1f632..e97be87a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0141.py +++ b/githubkit/versions/v2022_11_28/models/group_0141.py @@ -14,42 +14,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0142 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): - """RequiredReviewerConfiguration - A reviewing team, and file patterns describing which files they must approve - changes to. - """ - - file_patterns: list[str] = Field( - description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." - ) - minimum_approvals: int = Field( - description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." - ) - reviewer: RepositoryRuleParamsReviewer = Field( - title="Reviewer", description="A required reviewing team" - ) - - -class RepositoryRuleParamsReviewer(GitHubModel): - """Reviewer +class RepositoryRuleMergeQueue(GitHubModel): + """merge_queue - A required reviewing team + Merges must be performed via a merge queue. """ - id: int = Field( - description="ID of the reviewer which must review changes to matching files." - ) - type: Literal["Team"] = Field(description="The type of the reviewer") + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) -model_rebuild(RepositoryRuleParamsReviewer) +model_rebuild(RepositoryRuleMergeQueue) -__all__ = ( - "RepositoryRuleParamsRequiredReviewerConfiguration", - "RepositoryRuleParamsReviewer", -) +__all__ = ("RepositoryRuleMergeQueue",) diff --git a/githubkit/versions/v2022_11_28/models/group_0142.py b/githubkit/versions/v2022_11_28/models/group_0142.py index b18d88887..152d1eb45 100644 --- a/githubkit/versions/v2022_11_28/models/group_0142.py +++ b/githubkit/versions/v2022_11_28/models/group_0142.py @@ -14,23 +14,40 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0143 import RepositoryRulePullRequestPropParameters - -class RepositoryRulePullRequest(GitHubModel): - """pull_request - - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. - """ - - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) - - -model_rebuild(RepositoryRulePullRequest) - -__all__ = ("RepositoryRulePullRequest",) +class RepositoryRuleMergeQueuePropParameters(GitHubModel): + """RepositoryRuleMergeQueuePropParameters""" + + check_response_timeout_minutes: int = Field( + le=360.0, + ge=1.0, + description="Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed", + ) + grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] = Field( + description="When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge." + ) + max_entries_to_build: int = Field( + le=100.0, + description="Limit the number of queued pull requests requesting checks and workflow runs at the same time.", + ) + max_entries_to_merge: int = Field( + le=100.0, + description="The maximum number of PRs that will be merged together in a group.", + ) + merge_method: Literal["MERGE", "SQUASH", "REBASE"] = Field( + description="Method to use when merging changes from queued pull requests." + ) + min_entries_to_merge: int = Field( + le=100.0, + description="The minimum number of PRs that will be merged together in a group.", + ) + min_entries_to_merge_wait_minutes: int = Field( + le=360.0, + description="The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged.", + ) + + +model_rebuild(RepositoryRuleMergeQueuePropParameters) + +__all__ = ("RepositoryRuleMergeQueuePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0143.py b/githubkit/versions/v2022_11_28/models/group_0143.py index 6e5c94812..04e062929 100644 --- a/githubkit/versions/v2022_11_28/models/group_0143.py +++ b/githubkit/versions/v2022_11_28/models/group_0143.py @@ -17,36 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0144 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRulePullRequestPropParameters(GitHubModel): - """RepositoryRulePullRequestPropParameters""" - allowed_merge_methods: Missing[list[Literal["merge", "squash", "rebase"]]] = Field( - default=UNSET, - description="Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.", - ) - automatic_copilot_code_review_enabled: Missing[bool] = Field( - default=UNSET, - description="Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review.", - ) - dismiss_stale_reviews_on_push: bool = Field( - description="New, reviewable commits pushed will dismiss previous pull request review approvals." - ) - require_code_owner_review: bool = Field( - description="Require an approving review in pull requests that modify files that have a designated code owner." - ) - require_last_push_approval: bool = Field( - description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." - ) - required_approving_review_count: int = Field( - le=10.0, - description="The number of approving reviews that are required before a pull request can be merged.", - ) - required_review_thread_resolution: bool = Field( - description="All conversations on code must be resolved before a pull request can be merged." +class RepositoryRuleRequiredDeployments(GitHubModel): + """required_deployments + + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. + """ + + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRulePullRequestPropParameters) +model_rebuild(RepositoryRuleRequiredDeployments) -__all__ = ("RepositoryRulePullRequestPropParameters",) +__all__ = ("RepositoryRuleRequiredDeployments",) diff --git a/githubkit/versions/v2022_11_28/models/group_0144.py b/githubkit/versions/v2022_11_28/models/group_0144.py index 196ed4df1..d174bdf82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0144.py +++ b/githubkit/versions/v2022_11_28/models/group_0144.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0145 import RepositoryRuleRequiredStatusChecksPropParameters - -class RepositoryRuleRequiredStatusChecks(GitHubModel): - """required_status_checks - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. - """ +class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): + """RepositoryRuleRequiredDeploymentsPropParameters""" - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET + required_deployment_environments: list[str] = Field( + description="The environments that must be successfully deployed to before branches can be merged." ) -model_rebuild(RepositoryRuleRequiredStatusChecks) +model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) -__all__ = ("RepositoryRuleRequiredStatusChecks",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0145.py b/githubkit/versions/v2022_11_28/models/group_0145.py index 83288089b..ea8b1f632 100644 --- a/githubkit/versions/v2022_11_28/models/group_0145.py +++ b/githubkit/versions/v2022_11_28/models/group_0145.py @@ -9,47 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleParamsRequiredReviewerConfiguration(GitHubModel): + """RequiredReviewerConfiguration + + A reviewing team, and file patterns describing which files they must approve + changes to. + """ - do_not_enforce_on_create: Missing[bool] = Field( - default=UNSET, - description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + file_patterns: list[str] = Field( + description="Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use the same syntax as `.gitignore` files." ) - required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( - description="Status checks that are required." + minimum_approvals: int = Field( + description="Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional." ) - strict_required_status_checks_policy: bool = Field( - description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." + reviewer: RepositoryRuleParamsReviewer = Field( + title="Reviewer", description="A required reviewing team" ) -class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): - """StatusCheckConfiguration +class RepositoryRuleParamsReviewer(GitHubModel): + """Reviewer - Required status check + A required reviewing team """ - context: str = Field( - description="The status check context name that must be present on the commit." - ) - integration_id: Missing[int] = Field( - default=UNSET, - description="The optional integration ID that this status check must originate from.", + id: int = Field( + description="ID of the reviewer which must review changes to matching files." ) + type: Literal["Team"] = Field(description="The type of the reviewer") -model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) -model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) +model_rebuild(RepositoryRuleParamsRequiredReviewerConfiguration) +model_rebuild(RepositoryRuleParamsReviewer) __all__ = ( - "RepositoryRuleParamsStatusCheckConfiguration", - "RepositoryRuleRequiredStatusChecksPropParameters", + "RepositoryRuleParamsRequiredReviewerConfiguration", + "RepositoryRuleParamsReviewer", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0146.py b/githubkit/versions/v2022_11_28/models/group_0146.py index 34c12ddec..e66183933 100644 --- a/githubkit/versions/v2022_11_28/models/group_0146.py +++ b/githubkit/versions/v2022_11_28/models/group_0146.py @@ -17,21 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0147 import RepositoryRulePullRequestPropParameters -class RepositoryRuleCommitMessagePattern(GitHubModel): - """commit_message_pattern +class RepositoryRulePullRequest(GitHubModel): + """pull_request - Parameters to be used for the commit_message_pattern rule + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleCommitMessagePattern) +model_rebuild(RepositoryRulePullRequest) -__all__ = ("RepositoryRuleCommitMessagePattern",) +__all__ = ("RepositoryRulePullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0147.py b/githubkit/versions/v2022_11_28/models/group_0147.py index 982c7c60e..6e5c94812 100644 --- a/githubkit/versions/v2022_11_28/models/group_0147.py +++ b/githubkit/versions/v2022_11_28/models/group_0147.py @@ -18,21 +18,35 @@ from githubkit.utils import UNSET -class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRulePullRequestPropParameters(GitHubModel): + """RepositoryRulePullRequestPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." + allowed_merge_methods: Missing[list[Literal["merge", "squash", "rebase"]]] = Field( + default=UNSET, + description="Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.", ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." + automatic_copilot_code_review_enabled: Missing[bool] = Field( + default=UNSET, + description="Automatically request review from Copilot for new pull requests, if the author has access to Copilot code review.", ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." + dismiss_stale_reviews_on_push: bool = Field( + description="New, reviewable commits pushed will dismiss previous pull request review approvals." + ) + require_code_owner_review: bool = Field( + description="Require an approving review in pull requests that modify files that have a designated code owner." + ) + require_last_push_approval: bool = Field( + description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." + ) + required_approving_review_count: int = Field( + le=10.0, + description="The number of approving reviews that are required before a pull request can be merged.", + ) + required_review_thread_resolution: bool = Field( + description="All conversations on code must be resolved before a pull request can be merged." ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) +model_rebuild(RepositoryRulePullRequestPropParameters) -__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) +__all__ = ("RepositoryRulePullRequestPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0148.py b/githubkit/versions/v2022_11_28/models/group_0148.py index 52ef57a09..938a4f3c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0148.py +++ b/githubkit/versions/v2022_11_28/models/group_0148.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0149 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): - """commit_author_email_pattern +class RepositoryRuleRequiredStatusChecks(GitHubModel): + """required_status_checks - Parameters to be used for the commit_author_email_pattern rule + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. """ - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitAuthorEmailPattern) +model_rebuild(RepositoryRuleRequiredStatusChecks) -__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) +__all__ = ("RepositoryRuleRequiredStatusChecks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0149.py b/githubkit/versions/v2022_11_28/models/group_0149.py index a402d7764..83288089b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0149.py +++ b/githubkit/versions/v2022_11_28/models/group_0149.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,21 +16,40 @@ from githubkit.utils import UNSET -class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" +class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): + """RepositoryRuleRequiredStatusChecksPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." + do_not_enforce_on_create: Missing[bool] = Field( + default=UNSET, + description="Allow repositories and branches to be created if a check would otherwise prohibit it.", + ) + required_status_checks: list[RepositoryRuleParamsStatusCheckConfiguration] = Field( + description="Status checks that are required." ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." + strict_required_status_checks_policy: bool = Field( + description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." + ) + + +class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): + """StatusCheckConfiguration + + Required status check + """ + + context: str = Field( + description="The status check context name that must be present on the commit." ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." + integration_id: Missing[int] = Field( + default=UNSET, + description="The optional integration ID that this status check must originate from.", ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) +model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) +model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) +__all__ = ( + "RepositoryRuleParamsStatusCheckConfiguration", + "RepositoryRuleRequiredStatusChecksPropParameters", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0150.py b/githubkit/versions/v2022_11_28/models/group_0150.py index 597cd329f..046edbf10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0150.py +++ b/githubkit/versions/v2022_11_28/models/group_0150.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0151 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0151 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleCommitterEmailPattern(GitHubModel): - """committer_email_pattern +class RepositoryRuleCommitMessagePattern(GitHubModel): + """commit_message_pattern - Parameters to be used for the committer_email_pattern rule + Parameters to be used for the commit_message_pattern rule """ - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitterEmailPattern) +model_rebuild(RepositoryRuleCommitMessagePattern) -__all__ = ("RepositoryRuleCommitterEmailPattern",) +__all__ = ("RepositoryRuleCommitMessagePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0151.py b/githubkit/versions/v2022_11_28/models/group_0151.py index 7652318a1..982c7c60e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0151.py +++ b/githubkit/versions/v2022_11_28/models/group_0151.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitterEmailPatternPropParameters""" +class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): + """RepositoryRuleCommitMessagePatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) +model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) -__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0152.py b/githubkit/versions/v2022_11_28/models/group_0152.py index e4d99a393..b9f882998 100644 --- a/githubkit/versions/v2022_11_28/models/group_0152.py +++ b/githubkit/versions/v2022_11_28/models/group_0152.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0153 import RepositoryRuleBranchNamePatternPropParameters +from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleBranchNamePattern(GitHubModel): - """branch_name_pattern +class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): + """commit_author_email_pattern - Parameters to be used for the branch_name_pattern rule + Parameters to be used for the commit_author_email_pattern rule """ - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleBranchNamePattern) +model_rebuild(RepositoryRuleCommitAuthorEmailPattern) -__all__ = ("RepositoryRuleBranchNamePattern",) +__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0153.py b/githubkit/versions/v2022_11_28/models/group_0153.py index b85419b00..a402d7764 100644 --- a/githubkit/versions/v2022_11_28/models/group_0153.py +++ b/githubkit/versions/v2022_11_28/models/group_0153.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): - """RepositoryRuleBranchNamePatternPropParameters""" +class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) -__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0154.py b/githubkit/versions/v2022_11_28/models/group_0154.py index adbb6f239..8c03cee73 100644 --- a/githubkit/versions/v2022_11_28/models/group_0154.py +++ b/githubkit/versions/v2022_11_28/models/group_0154.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0155 import RepositoryRuleTagNamePatternPropParameters +from .group_0155 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleTagNamePattern(GitHubModel): - """tag_name_pattern +class RepositoryRuleCommitterEmailPattern(GitHubModel): + """committer_email_pattern - Parameters to be used for the tag_name_pattern rule + Parameters to be used for the committer_email_pattern rule """ - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleTagNamePattern) +model_rebuild(RepositoryRuleCommitterEmailPattern) -__all__ = ("RepositoryRuleTagNamePattern",) +__all__ = ("RepositoryRuleCommitterEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0155.py b/githubkit/versions/v2022_11_28/models/group_0155.py index c8e4fb0a0..7652318a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0155.py +++ b/githubkit/versions/v2022_11_28/models/group_0155.py @@ -18,8 +18,8 @@ from githubkit.utils import UNSET -class RepositoryRuleTagNamePatternPropParameters(GitHubModel): - """RepositoryRuleTagNamePatternPropParameters""" +class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitterEmailPatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleTagNamePatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) -__all__ = ("RepositoryRuleTagNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0156.py b/githubkit/versions/v2022_11_28/models/group_0156.py index d30a7f8b9..5306d4e01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0156.py +++ b/githubkit/versions/v2022_11_28/models/group_0156.py @@ -17,23 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0157 import RepositoryRuleFilePathRestrictionPropParameters +from .group_0157 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleFilePathRestriction(GitHubModel): - """file_path_restriction +class RepositoryRuleBranchNamePattern(GitHubModel): + """branch_name_pattern - Prevent commits that include changes in specified file and folder paths from - being pushed to the commit graph. This includes absolute paths that contain file - names. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleFilePathRestriction) +model_rebuild(RepositoryRuleBranchNamePattern) -__all__ = ("RepositoryRuleFilePathRestriction",) +__all__ = ("RepositoryRuleBranchNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0157.py b/githubkit/versions/v2022_11_28/models/group_0157.py index 3965a83fb..b85419b00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0157.py +++ b/githubkit/versions/v2022_11_28/models/group_0157.py @@ -9,19 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleFilePathRestrictionPropParameters(GitHubModel): - """RepositoryRuleFilePathRestrictionPropParameters""" +class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): + """RepositoryRuleBranchNamePatternPropParameters""" - restricted_file_paths: list[str] = Field( - description="The file paths that are restricted from being pushed to the commit graph." + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleFilePathRestrictionPropParameters) +model_rebuild(RepositoryRuleBranchNamePatternPropParameters) -__all__ = ("RepositoryRuleFilePathRestrictionPropParameters",) +__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0158.py b/githubkit/versions/v2022_11_28/models/group_0158.py index fdedca5f2..57cbb725b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0158.py +++ b/githubkit/versions/v2022_11_28/models/group_0158.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0159 import RepositoryRuleMaxFilePathLengthPropParameters +from .group_0159 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleMaxFilePathLength(GitHubModel): - """max_file_path_length +class RepositoryRuleTagNamePattern(GitHubModel): + """tag_name_pattern - Prevent commits that include file paths that exceed the specified character - limit from being pushed to the commit graph. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleMaxFilePathLength) +model_rebuild(RepositoryRuleTagNamePattern) -__all__ = ("RepositoryRuleMaxFilePathLength",) +__all__ = ("RepositoryRuleTagNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0159.py b/githubkit/versions/v2022_11_28/models/group_0159.py index ebe317cee..c8e4fb0a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0159.py +++ b/githubkit/versions/v2022_11_28/models/group_0159.py @@ -9,21 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleMaxFilePathLengthPropParameters(GitHubModel): - """RepositoryRuleMaxFilePathLengthPropParameters""" +class RepositoryRuleTagNamePatternPropParameters(GitHubModel): + """RepositoryRuleTagNamePatternPropParameters""" - max_file_path_length: int = Field( - le=256.0, - ge=1.0, - description="The maximum amount of characters allowed in file paths.", + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleMaxFilePathLengthPropParameters) +model_rebuild(RepositoryRuleTagNamePatternPropParameters) -__all__ = ("RepositoryRuleMaxFilePathLengthPropParameters",) +__all__ = ("RepositoryRuleTagNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0160.py b/githubkit/versions/v2022_11_28/models/group_0160.py index 161f0a0cc..890fd7c9d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0160.py +++ b/githubkit/versions/v2022_11_28/models/group_0160.py @@ -17,22 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0161 import RepositoryRuleFileExtensionRestrictionPropParameters +from .group_0161 import RepositoryRuleFilePathRestrictionPropParameters -class RepositoryRuleFileExtensionRestriction(GitHubModel): - """file_extension_restriction +class RepositoryRuleFilePathRestriction(GitHubModel): + """file_path_restriction - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Prevent commits that include changes in specified file and folder paths from + being pushed to the commit graph. This includes absolute paths that contain file + names. """ - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleFileExtensionRestriction) +model_rebuild(RepositoryRuleFilePathRestriction) -__all__ = ("RepositoryRuleFileExtensionRestriction",) +__all__ = ("RepositoryRuleFilePathRestriction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0161.py b/githubkit/versions/v2022_11_28/models/group_0161.py index 9da9478a2..3965a83fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0161.py +++ b/githubkit/versions/v2022_11_28/models/group_0161.py @@ -14,14 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleFileExtensionRestrictionPropParameters(GitHubModel): - """RepositoryRuleFileExtensionRestrictionPropParameters""" +class RepositoryRuleFilePathRestrictionPropParameters(GitHubModel): + """RepositoryRuleFilePathRestrictionPropParameters""" - restricted_file_extensions: list[str] = Field( - description="The file extensions that are restricted from being pushed to the commit graph." + restricted_file_paths: list[str] = Field( + description="The file paths that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleFileExtensionRestrictionPropParameters) +model_rebuild(RepositoryRuleFilePathRestrictionPropParameters) -__all__ = ("RepositoryRuleFileExtensionRestrictionPropParameters",) +__all__ = ("RepositoryRuleFilePathRestrictionPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0162.py b/githubkit/versions/v2022_11_28/models/group_0162.py index 5fc0fbe98..f802ef781 100644 --- a/githubkit/versions/v2022_11_28/models/group_0162.py +++ b/githubkit/versions/v2022_11_28/models/group_0162.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0163 import RepositoryRuleMaxFileSizePropParameters +from .group_0163 import RepositoryRuleMaxFilePathLengthPropParameters -class RepositoryRuleMaxFileSize(GitHubModel): - """max_file_size +class RepositoryRuleMaxFilePathLength(GitHubModel): + """max_file_path_length - Prevent commits with individual files that exceed the specified limit from being - pushed to the commit graph. + Prevent commits that include file paths that exceed the specified character + limit from being pushed to the commit graph. """ - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleMaxFileSize) +model_rebuild(RepositoryRuleMaxFilePathLength) -__all__ = ("RepositoryRuleMaxFileSize",) +__all__ = ("RepositoryRuleMaxFilePathLength",) diff --git a/githubkit/versions/v2022_11_28/models/group_0163.py b/githubkit/versions/v2022_11_28/models/group_0163.py index b2a41a5e2..ebe317cee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0163.py +++ b/githubkit/versions/v2022_11_28/models/group_0163.py @@ -14,16 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleMaxFileSizePropParameters(GitHubModel): - """RepositoryRuleMaxFileSizePropParameters""" +class RepositoryRuleMaxFilePathLengthPropParameters(GitHubModel): + """RepositoryRuleMaxFilePathLengthPropParameters""" - max_file_size: int = Field( - le=100.0, + max_file_path_length: int = Field( + le=256.0, ge=1.0, - description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", + description="The maximum amount of characters allowed in file paths.", ) -model_rebuild(RepositoryRuleMaxFileSizePropParameters) +model_rebuild(RepositoryRuleMaxFilePathLengthPropParameters) -__all__ = ("RepositoryRuleMaxFileSizePropParameters",) +__all__ = ("RepositoryRuleMaxFilePathLengthPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0164.py b/githubkit/versions/v2022_11_28/models/group_0164.py index 2482237a7..56efe1c8e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0164.py +++ b/githubkit/versions/v2022_11_28/models/group_0164.py @@ -9,23 +9,30 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParameters + -class RepositoryRuleParamsRestrictedCommits(GitHubModel): - """RestrictedCommits +class RepositoryRuleFileExtensionRestriction(GitHubModel): + """file_extension_restriction - Restricted commit + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. """ - oid: str = Field(description="Full or abbreviated commit hash to reject") - reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleParamsRestrictedCommits) +model_rebuild(RepositoryRuleFileExtensionRestriction) -__all__ = ("RepositoryRuleParamsRestrictedCommits",) +__all__ = ("RepositoryRuleFileExtensionRestriction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0165.py b/githubkit/versions/v2022_11_28/models/group_0165.py index ef9235cfd..9da9478a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0165.py +++ b/githubkit/versions/v2022_11_28/models/group_0165.py @@ -9,28 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0166 import RepositoryRuleWorkflowsPropParameters - -class RepositoryRuleWorkflows(GitHubModel): - """workflows - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. - """ +class RepositoryRuleFileExtensionRestrictionPropParameters(GitHubModel): + """RepositoryRuleFileExtensionRestrictionPropParameters""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + restricted_file_extensions: list[str] = Field( + description="The file extensions that are restricted from being pushed to the commit graph." + ) -model_rebuild(RepositoryRuleWorkflows) +model_rebuild(RepositoryRuleFileExtensionRestrictionPropParameters) -__all__ = ("RepositoryRuleWorkflows",) +__all__ = ("RepositoryRuleFileExtensionRestrictionPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0166.py b/githubkit/versions/v2022_11_28/models/group_0166.py index 56d86ff5b..2a969a49e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0166.py +++ b/githubkit/versions/v2022_11_28/models/group_0166.py @@ -9,47 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0167 import RepositoryRuleMaxFileSizePropParameters + -class RepositoryRuleWorkflowsPropParameters(GitHubModel): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleMaxFileSize(GitHubModel): + """max_file_size - do_not_enforce_on_create: Missing[bool] = Field( - default=UNSET, - description="Allow repositories and branches to be created if a check would otherwise prohibit it.", - ) - workflows: list[RepositoryRuleParamsWorkflowFileReference] = Field( - description="Workflows that must pass for this rule to pass." - ) + Prevent commits with individual files that exceed the specified limit from being + pushed to the commit graph. + """ + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) -class RepositoryRuleParamsWorkflowFileReference(GitHubModel): - """WorkflowFileReference - A workflow that must run for this rule to pass - """ +model_rebuild(RepositoryRuleMaxFileSize) - path: str = Field(description="The path to the workflow file") - ref: Missing[str] = Field( - default=UNSET, description="The ref (branch or tag) of the workflow file to use" - ) - repository_id: int = Field( - description="The ID of the repository where the workflow is defined" - ) - sha: Missing[str] = Field( - default=UNSET, description="The commit SHA of the workflow file to use" - ) - - -model_rebuild(RepositoryRuleWorkflowsPropParameters) -model_rebuild(RepositoryRuleParamsWorkflowFileReference) - -__all__ = ( - "RepositoryRuleParamsWorkflowFileReference", - "RepositoryRuleWorkflowsPropParameters", -) +__all__ = ("RepositoryRuleMaxFileSize",) diff --git a/githubkit/versions/v2022_11_28/models/group_0167.py b/githubkit/versions/v2022_11_28/models/group_0167.py index d0d71f839..b2a41a5e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0167.py +++ b/githubkit/versions/v2022_11_28/models/group_0167.py @@ -9,29 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0168 import RepositoryRuleCodeScanningPropParameters - -class RepositoryRuleCodeScanning(GitHubModel): - """code_scanning - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. - """ +class RepositoryRuleMaxFileSizePropParameters(GitHubModel): + """RepositoryRuleMaxFileSizePropParameters""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + max_file_size: int = Field( + le=100.0, + ge=1.0, + description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", + ) -model_rebuild(RepositoryRuleCodeScanning) +model_rebuild(RepositoryRuleMaxFileSizePropParameters) -__all__ = ("RepositoryRuleCodeScanning",) +__all__ = ("RepositoryRuleMaxFileSizePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0168.py b/githubkit/versions/v2022_11_28/models/group_0168.py index 7ef71df16..2482237a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0168.py +++ b/githubkit/versions/v2022_11_28/models/group_0168.py @@ -9,42 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryRuleCodeScanningPropParameters(GitHubModel): - """RepositoryRuleCodeScanningPropParameters""" - - code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( - description="Tools that must provide code scanning results for this rule to pass." - ) - - -class RepositoryRuleParamsCodeScanningTool(GitHubModel): - """CodeScanningTool +class RepositoryRuleParamsRestrictedCommits(GitHubModel): + """RestrictedCommits - A tool that must provide code scanning results for this rule to pass. + Restricted commit """ - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( - description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' - ) - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] = Field( - description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' - ) - tool: str = Field(description="The name of a code scanning tool") + oid: str = Field(description="Full or abbreviated commit hash to reject") + reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") -model_rebuild(RepositoryRuleCodeScanningPropParameters) -model_rebuild(RepositoryRuleParamsCodeScanningTool) +model_rebuild(RepositoryRuleParamsRestrictedCommits) -__all__ = ( - "RepositoryRuleCodeScanningPropParameters", - "RepositoryRuleParamsCodeScanningTool", -) +__all__ = ("RepositoryRuleParamsRestrictedCommits",) diff --git a/githubkit/versions/v2022_11_28/models/group_0169.py b/githubkit/versions/v2022_11_28/models/group_0169.py index 8cbd28892..9bc9446a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0169.py +++ b/githubkit/versions/v2022_11_28/models/group_0169.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,137 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0121 import RepositoryRulesetBypassActor -from .group_0122 import RepositoryRulesetConditions -from .group_0130 import OrgRulesetConditionsOneof0 -from .group_0131 import OrgRulesetConditionsOneof1 -from .group_0132 import OrgRulesetConditionsOneof2 -from .group_0133 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0134 import RepositoryRuleUpdate -from .group_0136 import RepositoryRuleRequiredLinearHistory -from .group_0137 import RepositoryRuleMergeQueue -from .group_0139 import RepositoryRuleRequiredDeployments -from .group_0142 import RepositoryRulePullRequest -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0156 import RepositoryRuleFilePathRestriction -from .group_0158 import RepositoryRuleMaxFilePathLength -from .group_0160 import RepositoryRuleFileExtensionRestriction -from .group_0162 import RepositoryRuleMaxFileSize -from .group_0165 import RepositoryRuleWorkflows -from .group_0167 import RepositoryRuleCodeScanning +from .group_0170 import RepositoryRuleWorkflowsPropParameters -class RepositoryRuleset(GitHubModel): - """Repository ruleset +class RepositoryRuleWorkflows(GitHubModel): + """workflows - A set of rules to apply when specified conditions are met. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - id: int = Field(description="The ID of the ruleset") - name: str = Field(description="The name of the ruleset") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( - default=UNSET, description="The type of the source of the ruleset" - ) - source: str = Field(description="The name of the source") - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - current_user_can_bypass: Missing[ - Literal["always", "pull_requests_only", "never"] - ] = Field( - default=UNSET, - description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", - ) - node_id: Missing[str] = Field(default=UNSET) - links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") - conditions: Missing[ - Union[ - RepositoryRulesetConditions, - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - None, - ] - ] = Field(default=UNSET) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) -class RepositoryRulesetPropLinks(GitHubModel): - """RepositoryRulesetPropLinks""" +model_rebuild(RepositoryRuleWorkflows) - self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( - default=UNSET, alias="self" - ) - html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( - default=UNSET - ) - - -class RepositoryRulesetPropLinksPropSelf(GitHubModel): - """RepositoryRulesetPropLinksPropSelf""" - - href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") - - -class RepositoryRulesetPropLinksPropHtml(GitHubModel): - """RepositoryRulesetPropLinksPropHtml""" - - href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") - - -model_rebuild(RepositoryRuleset) -model_rebuild(RepositoryRulesetPropLinks) -model_rebuild(RepositoryRulesetPropLinksPropSelf) -model_rebuild(RepositoryRulesetPropLinksPropHtml) - -__all__ = ( - "RepositoryRuleset", - "RepositoryRulesetPropLinks", - "RepositoryRulesetPropLinksPropHtml", - "RepositoryRulesetPropLinksPropSelf", -) +__all__ = ("RepositoryRuleWorkflows",) diff --git a/githubkit/versions/v2022_11_28/models/group_0170.py b/githubkit/versions/v2022_11_28/models/group_0170.py index a9156b530..56d86ff5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0170.py +++ b/githubkit/versions/v2022_11_28/models/group_0170.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,46 +16,40 @@ from githubkit.utils import UNSET -class RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" +class RepositoryRuleWorkflowsPropParameters(GitHubModel): + """RepositoryRuleWorkflowsPropParameters""" - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[int] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[str] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." + do_not_enforce_on_create: Missing[bool] = Field( + default=UNSET, + description="Allow repositories and branches to be created if a check would otherwise prohibit it.", ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." + workflows: list[RepositoryRuleParamsWorkflowFileReference] = Field( + description="Workflows that must pass for this rule to pass." ) + + +class RepositoryRuleParamsWorkflowFileReference(GitHubModel): + """WorkflowFileReference + + A workflow that must run for this rule to pass + """ + + path: str = Field(description="The path to the workflow file") ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", + default=UNSET, description="The ref (branch or tag) of the workflow file to use" ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", + repository_id: int = Field( + description="The ID of the repository where the workflow is defined" ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", + sha: Missing[str] = Field( + default=UNSET, description="The commit SHA of the workflow file to use" ) -model_rebuild(RuleSuitesItems) +model_rebuild(RepositoryRuleWorkflowsPropParameters) +model_rebuild(RepositoryRuleParamsWorkflowFileReference) -__all__ = ("RuleSuitesItems",) +__all__ = ( + "RepositoryRuleParamsWorkflowFileReference", + "RepositoryRuleWorkflowsPropParameters", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0171.py b/githubkit/versions/v2022_11_28/models/group_0171.py index 41bb0279e..b011c827b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0171.py +++ b/githubkit/versions/v2022_11_28/models/group_0171.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,91 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0172 import RepositoryRuleCodeScanningPropParameters -class RuleSuite(GitHubModel): - """Rule Suite - Response - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", - ) - rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( - default=UNSET, description="Details on the evaluated rules." - ) - - -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRuleCodeScanning(GitHubModel): + """code_scanning - rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( - default=UNSET - ) - enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( - default=UNSET, description="The enforcement level of this rule source." - ) - result: Missing[Literal["pass", "fail"]] = Field( - default=UNSET, - description="The result of the evaluation of the individual rule.", - ) - rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") - details: Missing[Union[str, None]] = Field( - default=UNSET, - description="The detailed failure message for the rule. Null if the rule passed.", - ) - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ - type: Missing[str] = Field(default=UNSET, description="The type of rule source.") - id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of the rule source." - ) - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the rule source." - ) + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) -model_rebuild(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(RepositoryRuleCodeScanning) -__all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", -) +__all__ = ("RepositoryRuleCodeScanning",) diff --git a/githubkit/versions/v2022_11_28/models/group_0172.py b/githubkit/versions/v2022_11_28/models/group_0172.py index abe88384e..7ef71df16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0172.py +++ b/githubkit/versions/v2022_11_28/models/group_0172.py @@ -9,28 +9,42 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0173 import RulesetVersionPropActor +class RepositoryRuleCodeScanningPropParameters(GitHubModel): + """RepositoryRuleCodeScanningPropParameters""" + + code_scanning_tools: list[RepositoryRuleParamsCodeScanningTool] = Field( + description="Tools that must provide code scanning results for this rule to pass." + ) -class RulesetVersion(GitHubModel): - """Ruleset version - The historical version of a ruleset +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - version_id: int = Field(description="The ID of the previous version of the ruleset") - actor: RulesetVersionPropActor = Field( - description="The actor who updated the ruleset" + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( + description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + ) + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" + ] = Field( + description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' ) - updated_at: datetime = Field() + tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RulesetVersion) +model_rebuild(RepositoryRuleCodeScanningPropParameters) +model_rebuild(RepositoryRuleParamsCodeScanningTool) -__all__ = ("RulesetVersion",) +__all__ = ( + "RepositoryRuleCodeScanningPropParameters", + "RepositoryRuleParamsCodeScanningTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0173.py b/githubkit/versions/v2022_11_28/models/group_0173.py index e9dbd595b..20f4faf91 100644 --- a/githubkit/versions/v2022_11_28/models/group_0173.py +++ b/githubkit/versions/v2022_11_28/models/group_0173.py @@ -9,23 +9,146 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0125 import RepositoryRulesetBypassActor +from .group_0126 import RepositoryRulesetConditions +from .group_0134 import OrgRulesetConditionsOneof0 +from .group_0135 import OrgRulesetConditionsOneof1 +from .group_0136 import OrgRulesetConditionsOneof2 +from .group_0137 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0138 import RepositoryRuleUpdate +from .group_0140 import RepositoryRuleRequiredLinearHistory +from .group_0141 import RepositoryRuleMergeQueue +from .group_0143 import RepositoryRuleRequiredDeployments +from .group_0146 import RepositoryRulePullRequest +from .group_0148 import RepositoryRuleRequiredStatusChecks +from .group_0150 import RepositoryRuleCommitMessagePattern +from .group_0152 import RepositoryRuleCommitAuthorEmailPattern +from .group_0154 import RepositoryRuleCommitterEmailPattern +from .group_0156 import RepositoryRuleBranchNamePattern +from .group_0158 import RepositoryRuleTagNamePattern +from .group_0160 import RepositoryRuleFilePathRestriction +from .group_0162 import RepositoryRuleMaxFilePathLength +from .group_0164 import RepositoryRuleFileExtensionRestriction +from .group_0166 import RepositoryRuleMaxFileSize +from .group_0169 import RepositoryRuleWorkflows +from .group_0171 import RepositoryRuleCodeScanning + -class RulesetVersionPropActor(GitHubModel): - """RulesetVersionPropActor +class RepositoryRuleset(GitHubModel): + """Repository ruleset - The actor who updated the ruleset + A set of rules to apply when specified conditions are met. """ - id: Missing[int] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + id: int = Field(description="The ID of the ruleset") + name: str = Field(description="The name of the ruleset") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + source_type: Missing[Literal["Repository", "Organization", "Enterprise"]] = Field( + default=UNSET, description="The type of the source of the ruleset" + ) + source: str = Field(description="The name of the source") + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + current_user_can_bypass: Missing[ + Literal["always", "pull_requests_only", "never"] + ] = Field( + default=UNSET, + description="The bypass type of the user making the API request for this ruleset. This field is only returned when\nquerying the repository-level endpoint.", + ) + node_id: Missing[str] = Field(default=UNSET) + links: Missing[RepositoryRulesetPropLinks] = Field(default=UNSET, alias="_links") + conditions: Missing[ + Union[ + RepositoryRulesetConditions, + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + None, + ] + ] = Field(default=UNSET) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class RepositoryRulesetPropLinks(GitHubModel): + """RepositoryRulesetPropLinks""" + + self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( + default=UNSET, alias="self" + ) + html: Missing[Union[RepositoryRulesetPropLinksPropHtml, None]] = Field( + default=UNSET + ) + + +class RepositoryRulesetPropLinksPropSelf(GitHubModel): + """RepositoryRulesetPropLinksPropSelf""" + + href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") + + +class RepositoryRulesetPropLinksPropHtml(GitHubModel): + """RepositoryRulesetPropLinksPropHtml""" + + href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") -model_rebuild(RulesetVersionPropActor) +model_rebuild(RepositoryRuleset) +model_rebuild(RepositoryRulesetPropLinks) +model_rebuild(RepositoryRulesetPropLinksPropSelf) +model_rebuild(RepositoryRulesetPropLinksPropHtml) -__all__ = ("RulesetVersionPropActor",) +__all__ = ( + "RepositoryRuleset", + "RepositoryRulesetPropLinks", + "RepositoryRulesetPropLinksPropHtml", + "RepositoryRulesetPropLinksPropSelf", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0174.py b/githubkit/versions/v2022_11_28/models/group_0174.py index 20da899a0..a9156b530 100644 --- a/githubkit/versions/v2022_11_28/models/group_0174.py +++ b/githubkit/versions/v2022_11_28/models/group_0174.py @@ -10,28 +10,55 @@ from __future__ import annotations from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0173 import RulesetVersionPropActor -from .group_0176 import RulesetVersionWithStateAllof1PropState +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" -class RulesetVersionWithState(GitHubModel): - """RulesetVersionWithState""" - - version_id: int = Field(description="The ID of the previous version of the ruleset") - actor: RulesetVersionPropActor = Field( - description="The actor who updated the ruleset" + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", ) - updated_at: datetime = Field() - state: RulesetVersionWithStateAllof1PropState = Field( - description="The state of the ruleset version" + evaluation_result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) -model_rebuild(RulesetVersionWithState) +model_rebuild(RuleSuitesItems) -__all__ = ("RulesetVersionWithState",) +__all__ = ("RuleSuitesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0175.py b/githubkit/versions/v2022_11_28/models/group_0175.py index a6a5f3deb..41bb0279e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0175.py +++ b/githubkit/versions/v2022_11_28/models/group_0175.py @@ -9,21 +9,100 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0176 import RulesetVersionWithStateAllof1PropState +class RuleSuite(GitHubModel): + """Rule Suite -class RulesetVersionWithStateAllof1(GitHubModel): - """RulesetVersionWithStateAllof1""" + Response + """ - state: RulesetVersionWithStateAllof1PropState = Field( - description="The state of the ruleset version" + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Union[None, Literal["pass", "fail", "bypass"]]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run.", + ) + rule_evaluations: Missing[list[RuleSuitePropRuleEvaluationsItems]] = Field( + default=UNSET, description="Details on the evaluated rules." + ) + + +class RuleSuitePropRuleEvaluationsItems(GitHubModel): + """RuleSuitePropRuleEvaluationsItems""" + + rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( + default=UNSET + ) + enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( + default=UNSET, description="The enforcement level of this rule source." + ) + result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the evaluation of the individual rule.", + ) + rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") + details: Missing[Union[str, None]] = Field( + default=UNSET, + description="The detailed failure message for the rule. Null if the rule passed.", + ) + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: Missing[str] = Field(default=UNSET, description="The type of rule source.") + id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of the rule source." + ) + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the rule source." ) -model_rebuild(RulesetVersionWithStateAllof1) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) -__all__ = ("RulesetVersionWithStateAllof1",) +__all__ = ( + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0176.py b/githubkit/versions/v2022_11_28/models/group_0176.py index 004126d69..43182ea6e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0176.py +++ b/githubkit/versions/v2022_11_28/models/group_0176.py @@ -9,16 +9,28 @@ from __future__ import annotations +from datetime import datetime + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0177 import RulesetVersionPropActor -class RulesetVersionWithStateAllof1PropState(GitHubModel): - """RulesetVersionWithStateAllof1PropState - The state of the ruleset version +class RulesetVersion(GitHubModel): + """Ruleset version + + The historical version of a ruleset """ + version_id: int = Field(description="The ID of the previous version of the ruleset") + actor: RulesetVersionPropActor = Field( + description="The actor who updated the ruleset" + ) + updated_at: datetime = Field() + -model_rebuild(RulesetVersionWithStateAllof1PropState) +model_rebuild(RulesetVersion) -__all__ = ("RulesetVersionWithStateAllof1PropState",) +__all__ = ("RulesetVersion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0177.py b/githubkit/versions/v2022_11_28/models/group_0177.py index 6eb920317..e9dbd595b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0177.py +++ b/githubkit/versions/v2022_11_28/models/group_0177.py @@ -9,39 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0003 import SimpleUser +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit +class RulesetVersionPropActor(GitHubModel): + """RulesetVersionPropActor - A credit given to a user for a repository security advisory. + The actor who updated the ruleset """ - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - state: Literal["accepted", "declined", "pending"] = Field( - description="The state of the user's acceptance of the credit." - ) - - -model_rebuild(RepositoryAdvisoryCredit) - -__all__ = ("RepositoryAdvisoryCredit",) + id: Missing[int] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +model_rebuild(RulesetVersionPropActor) + +__all__ = ("RulesetVersionPropActor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0178.py b/githubkit/versions/v2022_11_28/models/group_0178.py index 8f308e2fa..1af8a9d95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0178.py +++ b/githubkit/versions/v2022_11_28/models/group_0178.py @@ -10,199 +10,28 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0001 import CvssSeverities -from .group_0003 import SimpleUser -from .group_0080 import Team -from .group_0177 import RepositoryAdvisoryCredit +from .group_0177 import RulesetVersionPropActor +from .group_0180 import RulesetVersionWithStateAllof1PropState -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory +class RulesetVersionWithState(GitHubModel): + """RulesetVersionWithState""" - A repository security advisory. - """ - - ghsa_id: str = Field(description="The GitHub Security Advisory ID.") - cve_id: Union[str, None] = Field( - description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - url: str = Field(description="The API URL for the advisory.") - html_url: str = Field(description="The URL for the advisory.") - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: Union[Annotated[str, Field(max_length=65535)], None] = Field( - description="A detailed description of what the advisory entails." - ) - severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( - description="The severity of the advisory." - ) - author: None = Field(description="The author of the advisory.") - publisher: None = Field(description="The publisher of the advisory.") - identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() - state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( - description="The state of the advisory." - ) - created_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was created, in ISO 8601 format." - ) - updated_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." - ) - published_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." - ) - closed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was closed, in ISO 8601 format." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." - ) - submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() - vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() - cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() - cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") - credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( - alias="credits" - ) - credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() - collaborating_users: Union[list[SimpleUser], None] = Field( - description="A list of users that collaborate on the advisory." - ) - collaborating_teams: Union[list[Team], None] = Field( - description="A list of teams that collaborate on the advisory." - ) - private_fork: None = Field( - description="A temporary private fork of the advisory's repository for collaborating on a fix." - ) - - -class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") - value: str = Field(description="The identifier value.") - - -class RepositoryAdvisoryPropSubmission(GitHubModel): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool = Field( - description="Whether a private vulnerability report was accepted by the repository's administrators." - ) - - -class RepositoryAdvisoryPropCvss(GitHubModel): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] = Field(description="The CVSS vector.") - score: Union[Annotated[float, Field(le=10.0)], None] = Field( - description="The CVSS score." - ) - - -class RepositoryAdvisoryPropCwesItems(GitHubModel): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") - name: str = Field(description="The name of the CWE.") - - -class RepositoryAdvisoryPropCreditsItems(GitHubModel): - """RepositoryAdvisoryPropCreditsItems""" - - login: Missing[str] = Field( - default=UNSET, description="The username of the user credited." - ) - type: Missing[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] = Field(default=UNSET, description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryVulnerability(GitHubModel): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Union[str, None] = Field( - description="The range of the package versions affected by the vulnerability." - ) - patched_versions: Union[str, None] = Field( - description="The package version(s) that resolve the vulnerability." + version_id: int = Field(description="The ID of the previous version of the ruleset") + actor: RulesetVersionPropActor = Field( + description="The actor who updated the ruleset" ) - vulnerable_functions: Union[list[str], None] = Field( - description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." + updated_at: datetime = Field() + state: RulesetVersionWithStateAllof1PropState = Field( + description="The state of the ruleset version" ) -model_rebuild(RepositoryAdvisory) -model_rebuild(RepositoryAdvisoryPropIdentifiersItems) -model_rebuild(RepositoryAdvisoryPropSubmission) -model_rebuild(RepositoryAdvisoryPropCvss) -model_rebuild(RepositoryAdvisoryPropCwesItems) -model_rebuild(RepositoryAdvisoryPropCreditsItems) -model_rebuild(RepositoryAdvisoryVulnerability) -model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) +model_rebuild(RulesetVersionWithState) -__all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", -) +__all__ = ("RulesetVersionWithState",) diff --git a/githubkit/versions/v2022_11_28/models/group_0179.py b/githubkit/versions/v2022_11_28/models/group_0179.py index 6546dd05e..c2c64978e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0179.py +++ b/githubkit/versions/v2022_11_28/models/group_0179.py @@ -12,96 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0180 import RulesetVersionWithStateAllof1PropState -class ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" - total_minutes_used: int = Field( - description="The sum of the free and paid GitHub Actions minutes used." - ) - total_paid_minutes_used: int = Field( - description="The total paid GitHub Actions minutes used." - ) - included_minutes: int = Field( - description="The amount of free GitHub Actions minutes available." - ) - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() - - -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" +class RulesetVersionWithStateAllof1(GitHubModel): + """RulesetVersionWithStateAllof1""" - ubuntu: Missing[int] = Field( - default=UNSET, - alias="UBUNTU", - description="Total minutes used on Ubuntu runner machines.", - ) - macos: Missing[int] = Field( - default=UNSET, - alias="MACOS", - description="Total minutes used on macOS runner machines.", - ) - windows: Missing[int] = Field( - default=UNSET, - alias="WINDOWS", - description="Total minutes used on Windows runner machines.", - ) - ubuntu_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 4 core runner machines.", - ) - ubuntu_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 8 core runner machines.", - ) - ubuntu_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 16 core runner machines.", - ) - ubuntu_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 32 core runner machines.", - ) - ubuntu_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 64 core runner machines.", - ) - windows_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 4 core runner machines.", - ) - windows_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 8 core runner machines.", - ) - windows_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 16 core runner machines.", - ) - windows_32_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 32 core runner machines.", - ) - windows_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 64 core runner machines.", - ) - macos_12_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on macOS 12 core runner machines.", - ) - total: Missing[int] = Field( - default=UNSET, description="Total minutes used on all runner machines." + state: RulesetVersionWithStateAllof1PropState = Field( + description="The state of the ruleset version" ) -model_rebuild(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +model_rebuild(RulesetVersionWithStateAllof1) -__all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", -) +__all__ = ("RulesetVersionWithStateAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0180.py b/githubkit/versions/v2022_11_28/models/group_0180.py index b7be403af..004126d69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0180.py +++ b/githubkit/versions/v2022_11_28/models/group_0180.py @@ -9,25 +9,16 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" +class RulesetVersionWithStateAllof1PropState(GitHubModel): + """RulesetVersionWithStateAllof1PropState - total_gigabytes_bandwidth_used: int = Field( - description="Sum of the free and paid storage space (GB) for GitHuub Packages." - ) - total_paid_gigabytes_bandwidth_used: int = Field( - description="Total paid storage space (GB) for GitHuub Packages." - ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." - ) + The state of the ruleset version + """ -model_rebuild(PackagesBillingUsage) +model_rebuild(RulesetVersionWithStateAllof1PropState) -__all__ = ("PackagesBillingUsage",) +__all__ = ("RulesetVersionWithStateAllof1PropState",) diff --git a/githubkit/versions/v2022_11_28/models/group_0181.py b/githubkit/versions/v2022_11_28/models/group_0181.py index 7f2b2b444..6eb920317 100644 --- a/githubkit/versions/v2022_11_28/models/group_0181.py +++ b/githubkit/versions/v2022_11_28/models/group_0181.py @@ -9,25 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" - - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." - ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." - ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." +from .group_0003 import SimpleUser + + +class RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit + + A credit given to a user for a repository security advisory. + """ + + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + state: Literal["accepted", "declined", "pending"] = Field( + description="The state of the user's acceptance of the credit." ) -model_rebuild(CombinedBillingUsage) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ("CombinedBillingUsage",) +__all__ = ("RepositoryAdvisoryCredit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0182.py b/githubkit/versions/v2022_11_28/models/group_0182.py index cd1bede75..18d05d9db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0182.py +++ b/githubkit/versions/v2022_11_28/models/group_0182.py @@ -9,35 +9,200 @@ from __future__ import annotations +from datetime import datetime +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0084 import Team +from .group_0181 import RepositoryAdvisoryCredit + -class NetworkSettings(GitHubModel): - """Hosted compute network settings resource +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory - A hosted compute network settings resource. + A repository security advisory. """ - id: str = Field( - description="The unique identifier of the network settings resource." + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( + description="The severity of the advisory." + ) + author: None = Field(description="The author of the advisory.") + publisher: None = Field(description="The publisher of the advisory.") + identifiers: list[RepositoryAdvisoryPropIdentifiersItems] = Field() + state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( + description="The state of the advisory." + ) + created_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was created, in ISO 8601 format." + ) + updated_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + published_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + closed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was closed, in ISO 8601 format." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() + vulnerabilities: Union[list[RepositoryAdvisoryVulnerability], None] = Field() + cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: Union[list[RepositoryAdvisoryPropCwesItems], None] = Field() + cwe_ids: Union[list[str], None] = Field(description="A list of only the CWE IDs.") + credits_: Union[list[RepositoryAdvisoryPropCreditsItems], None] = Field( + alias="credits" ) - network_configuration_id: Missing[str] = Field( - default=UNSET, - description="The identifier of the network configuration that is using this settings resource.", + credits_detailed: Union[list[RepositoryAdvisoryCredit], None] = Field() + collaborating_users: Union[list[SimpleUser], None] = Field( + description="A list of users that collaborate on the advisory." ) - name: str = Field(description="The name of the network settings resource.") - subnet_id: str = Field( - description="The subnet this network settings resource is configured for." + collaborating_teams: Union[list[Team], None] = Field( + description="A list of teams that collaborate on the advisory." ) - region: str = Field( - description="The location of the subnet this network settings resource is configured for." + private_fork: None = Field( + description="A temporary private fork of the advisory's repository for collaborating on a fix." + ) + + +class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") + + +class RepositoryAdvisoryPropSubmission(GitHubModel): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool = Field( + description="Whether a private vulnerability report was accepted by the repository's administrators." + ) + + +class RepositoryAdvisoryPropCvss(GitHubModel): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class RepositoryAdvisoryPropCwesItems(GitHubModel): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class RepositoryAdvisoryPropCreditsItems(GitHubModel): + """RepositoryAdvisoryPropCreditsItems""" + + login: Missing[str] = Field( + default=UNSET, description="The username of the user credited." + ) + type: Missing[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] = Field(default=UNSET, description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryVulnerability(GitHubModel): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + patched_versions: Union[str, None] = Field( + description="The package version(s) that resolve the vulnerability." + ) + vulnerable_functions: Union[list[str], None] = Field( + description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." ) -model_rebuild(NetworkSettings) +model_rebuild(RepositoryAdvisory) +model_rebuild(RepositoryAdvisoryPropIdentifiersItems) +model_rebuild(RepositoryAdvisoryPropSubmission) +model_rebuild(RepositoryAdvisoryPropCvss) +model_rebuild(RepositoryAdvisoryPropCwesItems) +model_rebuild(RepositoryAdvisoryPropCreditsItems) +model_rebuild(RepositoryAdvisoryVulnerability) +model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) -__all__ = ("NetworkSettings",) +__all__ = ( + "RepositoryAdvisory", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0183.py b/githubkit/versions/v2022_11_28/models/group_0183.py index 87fe7c357..6546dd05e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0183.py +++ b/githubkit/versions/v2022_11_28/models/group_0183.py @@ -9,131 +9,99 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0079 import TeamSimple - - -class TeamFull(GitHubModel): - """Full Team - Groups of organization members that gives permissions on specified repositories. - """ +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - html_url: str = Field() - name: str = Field(description="Name of the team") - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[Literal["closed", "secret"]] = Field( - default=UNSET, description="The level of privacy this team should have" - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET, description="The notification setting the team has set") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - members_url: str = Field() - repositories_url: str = Field() - parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) - members_count: int = Field() - repos_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization: TeamOrganization = Field( - title="Team Organization", description="Team Organization" - ) - ldap_dn: Missing[str] = Field( - default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." ) + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." + ) + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." + ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -class TeamOrganization(GitHubModel): - """Team Organization - - Team Organization - """ - - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - created_at: datetime = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field(default=UNSET) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - - -class TeamOrganizationPropPlan(GitHubModel): - """TeamOrganizationPropPlan""" +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + ubuntu: Missing[int] = Field( + default=UNSET, + alias="UBUNTU", + description="Total minutes used on Ubuntu runner machines.", + ) + macos: Missing[int] = Field( + default=UNSET, + alias="MACOS", + description="Total minutes used on macOS runner machines.", + ) + windows: Missing[int] = Field( + default=UNSET, + alias="WINDOWS", + description="Total minutes used on Windows runner machines.", + ) + ubuntu_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 4 core runner machines.", + ) + ubuntu_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 8 core runner machines.", + ) + ubuntu_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 16 core runner machines.", + ) + ubuntu_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 32 core runner machines.", + ) + ubuntu_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 64 core runner machines.", + ) + windows_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 4 core runner machines.", + ) + windows_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 8 core runner machines.", + ) + windows_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 16 core runner machines.", + ) + windows_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 32 core runner machines.", + ) + windows_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 64 core runner machines.", + ) + macos_12_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on macOS 12 core runner machines.", + ) + total: Missing[int] = Field( + default=UNSET, description="Total minutes used on all runner machines." + ) -model_rebuild(TeamFull) -model_rebuild(TeamOrganization) -model_rebuild(TeamOrganizationPropPlan) +model_rebuild(ActionsBillingUsage) +model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) __all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", + "ActionsBillingUsage", + "ActionsBillingUsagePropMinutesUsedBreakdown", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0184.py b/githubkit/versions/v2022_11_28/models/group_0184.py index 9672019b9..b7be403af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0184.py +++ b/githubkit/versions/v2022_11_28/models/group_0184.py @@ -9,52 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0041 import ReactionRollup - -class TeamDiscussion(GitHubModel): - """Team Discussion - A team discussion is a persistent record of a free-form conversation within a - team. - """ +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the discussion.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." ) - comments_count: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field(description="The unique sequence number of a team discussion.") - pinned: bool = Field( - description="Whether or not this discussion should be pinned for easy retrieval." + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." ) - team_url: str = Field() - title: str = Field(description="The title of the discussion.") - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussion) +model_rebuild(PackagesBillingUsage) -__all__ = ("TeamDiscussion",) +__all__ = ("PackagesBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0185.py b/githubkit/versions/v2022_11_28/models/group_0185.py index ceec523c2..7f2b2b444 100644 --- a/githubkit/versions/v2022_11_28/models/group_0185.py +++ b/githubkit/versions/v2022_11_28/models/group_0185.py @@ -9,44 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0041 import ReactionRollup -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - A reply to a discussion within a team. - """ - - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the comment.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." + ) + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." ) - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field( - description="The unique sequence number of a team discussion comment." + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." ) - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussionComment) +model_rebuild(CombinedBillingUsage) -__all__ = ("TeamDiscussionComment",) +__all__ = ("CombinedBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0186.py b/githubkit/versions/v2022_11_28/models/group_0186.py index b14e4e21d..cd1bede75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0186.py +++ b/githubkit/versions/v2022_11_28/models/group_0186.py @@ -9,32 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0003 import SimpleUser +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Reaction(GitHubModel): - """Reaction +class NetworkSettings(GitHubModel): + """Hosted compute network settings resource - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + A hosted compute network settings resource. """ - id: int = Field() - node_id: str = Field() - user: Union[None, SimpleUser] = Field() - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field(description="The reaction to use") - created_at: datetime = Field() - - -model_rebuild(Reaction) - -__all__ = ("Reaction",) + id: str = Field( + description="The unique identifier of the network settings resource." + ) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of the network configuration that is using this settings resource.", + ) + name: str = Field(description="The name of the network settings resource.") + subnet_id: str = Field( + description="The subnet this network settings resource is configured for." + ) + region: str = Field( + description="The location of the subnet this network settings resource is configured for." + ) + + +model_rebuild(NetworkSettings) + +__all__ = ("NetworkSettings",) diff --git a/githubkit/versions/v2022_11_28/models/group_0187.py b/githubkit/versions/v2022_11_28/models/group_0187.py index bf5d392cb..6ad2e2dec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0187.py +++ b/githubkit/versions/v2022_11_28/models/group_0187.py @@ -9,28 +9,131 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0083 import TeamSimple -class TeamMembership(GitHubModel): - """Team Membership - Team Membership +class TeamFull(GitHubModel): + """Full Team + + Groups of organization members that gives permissions on specified repositories. """ - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the team." + id: int = Field(description="Unique identifier of the team") + node_id: str = Field() + url: str = Field(description="URL for the team") + html_url: str = Field() + name: str = Field(description="Name of the team") + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[Literal["closed", "secret"]] = Field( + default=UNSET, description="The level of privacy this team should have" + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET, description="The notification setting the team has set") + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + members_url: str = Field() + repositories_url: str = Field() + parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) + members_count: int = Field() + repos_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization: TeamOrganization = Field( + title="Team Organization", description="Team Organization" ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + ldap_dn: Missing[str] = Field( + default=UNSET, + description="Distinguished Name (DN) that team maps to within LDAP environment", + ) + + +class TeamOrganization(GitHubModel): + """Team Organization + + Team Organization + """ + + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + created_at: datetime = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field(default=UNSET) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + + +class TeamOrganizationPropPlan(GitHubModel): + """TeamOrganizationPropPlan""" + + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(TeamMembership) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) -__all__ = ("TeamMembership",) +__all__ = ( + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0188.py b/githubkit/versions/v2022_11_28/models/group_0188.py index 0c9701f5f..fdecd711f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0188.py +++ b/githubkit/versions/v2022_11_28/models/group_0188.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -18,50 +19,42 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0044 import ReactionRollup -class TeamProject(GitHubModel): - """Team Project +class TeamDiscussion(GitHubModel): + """Team Discussion - A team's access to a project. + A team discussion is a persistent record of a free-form conversation within a + team. """ - owner_url: str = Field() - url: str = Field() + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the discussion.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) + comments_count: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() html_url: str = Field() - columns_url: str = Field() - id: int = Field() node_id: str = Field() - name: str = Field() - body: Union[str, None] = Field() - number: int = Field() - state: str = Field() - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: str = Field() - updated_at: str = Field() - organization_permission: Missing[str] = Field( - default=UNSET, - description="The organization permission for this project. Only present when owner is an organization.", + number: int = Field(description="The unique sequence number of a team discussion.") + pinned: bool = Field( + description="Whether or not this discussion should be pinned for easy retrieval." ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether the project is private or not. Only present when owner is an organization.", + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." ) - permissions: TeamProjectPropPermissions = Field() - - -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" - - read: bool = Field() - write: bool = Field() - admin: bool = Field() + team_url: str = Field() + title: str = Field(description="The title of the discussion.") + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamProject) -model_rebuild(TeamProjectPropPermissions) +model_rebuild(TeamDiscussion) -__all__ = ( - "TeamProject", - "TeamProjectPropPermissions", -) +__all__ = ("TeamDiscussion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0189.py b/githubkit/versions/v2022_11_28/models/group_0189.py index 640d1e96a..ff0160e36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0189.py +++ b/githubkit/versions/v2022_11_28/models/group_0189.py @@ -19,153 +19,34 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple +from .group_0044 import ReactionRollup -class TeamRepository(GitHubModel): - """Team Repository +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment - A team's access to a repository. + A reply to a discussion within a team. """ - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - private: bool = Field( - default=False, description="Whether the repository is private or public." + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the comment.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." ) + created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() + discussion_url: str = Field() html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field() - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + node_id: str = Field() + number: int = Field( + description="The unique sequence number of a team discussion comment." ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - - -class TeamRepositoryPropPermissions(GitHubModel): - """TeamRepositoryPropPermissions""" - - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamRepository) -model_rebuild(TeamRepositoryPropPermissions) +model_rebuild(TeamDiscussionComment) -__all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", -) +__all__ = ("TeamDiscussionComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0190.py b/githubkit/versions/v2022_11_28/models/group_0190.py index 8cdb479b9..b14e4e21d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0190.py +++ b/githubkit/versions/v2022_11_28/models/group_0190.py @@ -10,40 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -class ProjectCard(GitHubModel): - """Project Card +class Reaction(GitHubModel): + """Reaction - Project cards represent a scope of work. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - url: str = Field() - id: int = Field(description="The project card's ID") + id: int = Field() node_id: str = Field() - note: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() + user: Union[None, SimpleUser] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field(description="The reaction to use") created_at: datetime = Field() - updated_at: datetime = Field() - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" - ) - column_name: Missing[str] = Field(default=UNSET) - project_id: Missing[str] = Field(default=UNSET) - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - project_url: str = Field() -model_rebuild(ProjectCard) +model_rebuild(Reaction) -__all__ = ("ProjectCard",) +__all__ = ("Reaction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0191.py b/githubkit/versions/v2022_11_28/models/group_0191.py index 08e6fd84f..bf5d392cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0191.py +++ b/githubkit/versions/v2022_11_28/models/group_0191.py @@ -9,29 +9,28 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectColumn(GitHubModel): - """Project Column +class TeamMembership(GitHubModel): + """Team Membership - Project columns contain cards of work. + Team Membership """ url: str = Field() - project_url: str = Field() - cards_url: str = Field() - id: int = Field(description="The unique identifier of the project column") - node_id: str = Field() - name: str = Field(description="Name of the project column") - created_at: datetime = Field() - updated_at: datetime = Field() + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the team." + ) + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." + ) -model_rebuild(ProjectColumn) +model_rebuild(TeamMembership) -__all__ = ("ProjectColumn",) +__all__ = ("TeamMembership",) diff --git a/githubkit/versions/v2022_11_28/models/group_0192.py b/githubkit/versions/v2022_11_28/models/group_0192.py index 8665206a9..0c9701f5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0192.py +++ b/githubkit/versions/v2022_11_28/models/group_0192.py @@ -14,20 +14,54 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser -class ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission +class TeamProject(GitHubModel): + """Team Project - Project Collaborator Permission + A team's access to a project. """ - permission: str = Field() - user: Union[None, SimpleUser] = Field() + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + body: Union[str, None] = Field() + number: int = Field() + state: str = Field() + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: str = Field() + updated_at: str = Field() + organization_permission: Missing[str] = Field( + default=UNSET, + description="The organization permission for this project. Only present when owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether the project is private or not. Only present when owner is an organization.", + ) + permissions: TeamProjectPropPermissions = Field() -model_rebuild(ProjectCollaboratorPermission) +class TeamProjectPropPermissions(GitHubModel): + """TeamProjectPropPermissions""" -__all__ = ("ProjectCollaboratorPermission",) + read: bool = Field() + write: bool = Field() + admin: bool = Field() + + +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) + +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0193.py b/githubkit/versions/v2022_11_28/models/group_0193.py index 335b1a1b9..640d1e96a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0193.py +++ b/githubkit/versions/v2022_11_28/models/group_0193.py @@ -9,20 +9,163 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple + + +class TeamRepository(GitHubModel): + """Team Repository + + A team's access to a repository. + """ + + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) -class RateLimit(GitHubModel): - """Rate Limit""" +class TeamRepositoryPropPermissions(GitHubModel): + """TeamRepositoryPropPermissions""" - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) -model_rebuild(RateLimit) +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) -__all__ = ("RateLimit",) +__all__ = ( + "TeamRepository", + "TeamRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0194.py b/githubkit/versions/v2022_11_28/models/group_0194.py index 470601a5a..8cdb479b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0194.py +++ b/githubkit/versions/v2022_11_28/models/group_0194.py @@ -9,24 +9,41 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0193 import RateLimit -from .group_0195 import RateLimitOverviewPropResources +from .group_0003 import SimpleUser -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class ProjectCard(GitHubModel): + """Project Card - Rate Limit Overview + Project cards represent a scope of work. """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") - - -model_rebuild(RateLimitOverview) - -__all__ = ("RateLimitOverview",) + url: str = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) + column_name: Missing[str] = Field(default=UNSET) + project_id: Missing[str] = Field(default=UNSET) + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + project_url: str = Field() + + +model_rebuild(ProjectCard) + +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/v2022_11_28/models/group_0195.py b/githubkit/versions/v2022_11_28/models/group_0195.py index ae91a576a..08e6fd84f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0195.py +++ b/githubkit/versions/v2022_11_28/models/group_0195.py @@ -9,33 +9,29 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0193 import RateLimit +class ProjectColumn(GitHubModel): + """Project Column -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + Project columns contain cards of work. + """ - core: RateLimit = Field(title="Rate Limit") - graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - search: RateLimit = Field(title="Rate Limit") - code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - actions_runner_registration: Missing[RateLimit] = Field( - default=UNSET, title="Rate Limit" - ) - scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + url: str = Field() + project_url: str = Field() + cards_url: str = Field() + id: int = Field(description="The unique identifier of the project column") + node_id: str = Field() + name: str = Field(description="Name of the project column") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(RateLimitOverviewPropResources) +model_rebuild(ProjectColumn) -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ("ProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0196.py b/githubkit/versions/v2022_11_28/models/group_0196.py index 5d2abd8b6..8665206a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0196.py +++ b/githubkit/versions/v2022_11_28/models/group_0196.py @@ -9,53 +9,25 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class Artifact(GitHubModel): - """Artifact - An artifact +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission + + Project Collaborator Permission """ - id: int = Field() - node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") - url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") - created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - digest: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", - ) - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) - - -class ArtifactPropWorkflowRun(GitHubModel): - """ArtifactPropWorkflowRun""" - - id: Missing[int] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - head_repository_id: Missing[int] = Field(default=UNSET) - head_branch: Missing[str] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) - - -model_rebuild(Artifact) -model_rebuild(ArtifactPropWorkflowRun) - -__all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", -) + permission: str = Field() + user: Union[None, SimpleUser] = Field() + + +model_rebuild(ProjectCollaboratorPermission) + +__all__ = ("ProjectCollaboratorPermission",) diff --git a/githubkit/versions/v2022_11_28/models/group_0197.py b/githubkit/versions/v2022_11_28/models/group_0197.py index e8023d141..335b1a1b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0197.py +++ b/githubkit/versions/v2022_11_28/models/group_0197.py @@ -9,43 +9,20 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ActionsCacheList(GitHubModel): - """Repository actions caches - - Repository actions caches - """ - - total_count: int = Field(description="Total number of caches") - actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" - ) -class ActionsCacheListPropActionsCachesItems(GitHubModel): - """ActionsCacheListPropActionsCachesItems""" +class RateLimit(GitHubModel): + """Rate Limit""" - id: Missing[int] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET) - key: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - last_accessed_at: Missing[datetime] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - size_in_bytes: Missing[int] = Field(default=UNSET) + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = Field() -model_rebuild(ActionsCacheList) -model_rebuild(ActionsCacheListPropActionsCachesItems) +model_rebuild(RateLimit) -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("RateLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0198.py b/githubkit/versions/v2022_11_28/models/group_0198.py index 2a7eb2be6..5ff5c5493 100644 --- a/githubkit/versions/v2022_11_28/models/group_0198.py +++ b/githubkit/versions/v2022_11_28/models/group_0198.py @@ -9,102 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class Job(GitHubModel): - """Job +from .group_0197 import RateLimit +from .group_0199 import RateLimitOverviewPropResources - Information of a job execution in a workflow run - """ - id: int = Field(description="The id of the job.") - run_id: int = Field(description="The id of the associated workflow run.") - run_url: str = Field() - run_attempt: Missing[int] = Field( - default=UNSET, - description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", - ) - node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") - url: str = Field() - html_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field(description="The phase of the lifecycle that the job is currently in.") - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field(description="The outcome of the job.") - created_at: datetime = Field( - description="The time that the job created, in ISO 8601 format." - ) - started_at: datetime = Field( - description="The time that the job started, in ISO 8601 format." - ) - completed_at: Union[datetime, None] = Field( - description="The time that the job finished, in ISO 8601 format." - ) - name: str = Field(description="The name of the job.") - steps: Missing[list[JobPropStepsItems]] = Field( - default=UNSET, description="Steps in this job." - ) - check_run_url: str = Field() - labels: list[str] = Field( - description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_name: Union[str, None] = Field( - description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") +class RateLimitOverview(GitHubModel): + """Rate Limit Overview + Rate Limit Overview + """ -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] = Field( - description="The phase of the lifecycle that the job is currently in." - ) - conclusion: Union[str, None] = Field(description="The outcome of the job.") - name: str = Field(description="The name of the job.") - number: int = Field() - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the step started, in ISO 8601 format." - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the job finished, in ISO 8601 format." - ) + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") -model_rebuild(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(RateLimitOverview) -__all__ = ( - "Job", - "JobPropStepsItems", -) +__all__ = ("RateLimitOverview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0199.py b/githubkit/versions/v2022_11_28/models/group_0199.py index cceb6bb55..7ec373828 100644 --- a/githubkit/versions/v2022_11_28/models/group_0199.py +++ b/githubkit/versions/v2022_11_28/models/group_0199.py @@ -15,22 +15,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0197 import RateLimit -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[list[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + core: RateLimit = Field(title="Rate Limit") + graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + search: RateLimit = Field(title="Rate Limit") + code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + actions_runner_registration: Missing[RateLimit] = Field( + default=UNSET, title="Rate Limit" ) + scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_autofix: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") -model_rebuild(OidcCustomSubRepo) +model_rebuild(RateLimitOverviewPropResources) -__all__ = ("OidcCustomSubRepo",) +__all__ = ("RateLimitOverviewPropResources",) diff --git a/githubkit/versions/v2022_11_28/models/group_0200.py b/githubkit/versions/v2022_11_28/models/group_0200.py index 4e5c3a572..5d2abd8b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0200.py +++ b/githubkit/versions/v2022_11_28/models/group_0200.py @@ -10,23 +10,52 @@ from __future__ import annotations from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsSecret(GitHubModel): - """Actions Secret +class Artifact(GitHubModel): + """Artifact - Set secrets for GitHub Actions. + An artifact """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(ActionsSecret) - -__all__ = ("ActionsSecret",) + id: int = Field() + node_id: str = Field() + name: str = Field(description="The name of the artifact.") + size_in_bytes: int = Field(description="The size in bytes of the artifact.") + url: str = Field() + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + digest: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.", + ) + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) + + +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" + + id: Missing[int] = Field(default=UNSET) + repository_id: Missing[int] = Field(default=UNSET) + head_repository_id: Missing[int] = Field(default=UNSET) + head_branch: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) + + +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) + +__all__ = ( + "Artifact", + "ArtifactPropWorkflowRun", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0201.py b/githubkit/versions/v2022_11_28/models/group_0201.py index cb0c0f09c..e8023d141 100644 --- a/githubkit/versions/v2022_11_28/models/group_0201.py +++ b/githubkit/versions/v2022_11_28/models/group_0201.py @@ -14,21 +14,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ActionsVariable(GitHubModel): - """Actions Variable""" +class ActionsCacheList(GitHubModel): + """Repository actions caches - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + Repository actions caches + """ + + total_count: int = Field(description="Total number of caches") + actions_caches: list[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" ) -model_rebuild(ActionsVariable) +class ActionsCacheListPropActionsCachesItems(GitHubModel): + """ActionsCacheListPropActionsCachesItems""" + + id: Missing[int] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET) + key: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + last_accessed_at: Missing[datetime] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + size_in_bytes: Missing[int] = Field(default=UNSET) + + +model_rebuild(ActionsCacheList) +model_rebuild(ActionsCacheListPropActionsCachesItems) -__all__ = ("ActionsVariable",) +__all__ = ( + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0202.py b/githubkit/versions/v2022_11_28/models/group_0202.py index 5079bcff0..2a7eb2be6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0202.py +++ b/githubkit/versions/v2022_11_28/models/group_0202.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,22 +19,92 @@ from githubkit.utils import UNSET -class ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" +class Job(GitHubModel): + """Job - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + Information of a job execution in a workflow run + """ + + id: int = Field(description="The id of the job.") + run_id: int = Field(description="The id of the associated workflow run.") + run_url: str = Field() + run_attempt: Missing[int] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + node_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being run.") + url: str = Field() + html_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field(description="The phase of the lifecycle that the job is currently in.") + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field(description="The outcome of the job.") + created_at: datetime = Field( + description="The time that the job created, in ISO 8601 format." + ) + started_at: datetime = Field( + description="The time that the job started, in ISO 8601 format." + ) + completed_at: Union[datetime, None] = Field( + description="The time that the job finished, in ISO 8601 format." + ) + name: str = Field(description="The name of the job.") + steps: Missing[list[JobPropStepsItems]] = Field( + default=UNSET, description="Steps in this job." + ) + check_run_url: str = Field() + labels: list[str] = Field( + description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_name: Union[str, None] = Field( + description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + head_branch: Union[str, None] = Field(description="The name of the current branch.") + + +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] = Field( + description="The phase of the lifecycle that the job is currently in." + ) + conclusion: Union[str, None] = Field(description="The outcome of the job.") + name: str = Field(description="The name of the job.") + number: int = Field() + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the step started, in ISO 8601 format." + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the job finished, in ISO 8601 format." ) -model_rebuild(ActionsRepositoryPermissions) +model_rebuild(Job) +model_rebuild(JobPropStepsItems) -__all__ = ("ActionsRepositoryPermissions",) +__all__ = ( + "Job", + "JobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0203.py b/githubkit/versions/v2022_11_28/models/group_0203.py index 3a917b352..cceb6bb55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0203.py +++ b/githubkit/versions/v2022_11_28/models/group_0203.py @@ -9,21 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" + Actions OIDC subject customization for a repository + """ - access_level: Literal["none", "user", "organization"] = Field( - description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization." + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[list[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", ) -model_rebuild(ActionsWorkflowAccessToRepository) +model_rebuild(OidcCustomSubRepo) -__all__ = ("ActionsWorkflowAccessToRepository",) +__all__ = ("OidcCustomSubRepo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0204.py b/githubkit/versions/v2022_11_28/models/group_0204.py index 7ce075884..4e5c3a572 100644 --- a/githubkit/versions/v2022_11_28/models/group_0204.py +++ b/githubkit/versions/v2022_11_28/models/group_0204.py @@ -9,63 +9,24 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PullRequestMinimal(GitHubModel): - """Pull Request Minimal""" - - id: int = Field() - number: int = Field() - url: str = Field() - head: PullRequestMinimalPropHead = Field() - base: PullRequestMinimalPropBase = Field() - - -class PullRequestMinimalPropHead(GitHubModel): - """PullRequestMinimalPropHead""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropHeadPropRepo = Field() - - -class PullRequestMinimalPropHeadPropRepo(GitHubModel): - """PullRequestMinimalPropHeadPropRepo""" - - id: int = Field() - url: str = Field() - name: str = Field() - - -class PullRequestMinimalPropBase(GitHubModel): - """PullRequestMinimalPropBase""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropBasePropRepo = Field() - +class ActionsSecret(GitHubModel): + """Actions Secret -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" + Set secrets for GitHub Actions. + """ - id: int = Field() - url: str = Field() - name: str = Field() + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(ActionsSecret) -__all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", -) +__all__ = ("ActionsSecret",) diff --git a/githubkit/versions/v2022_11_28/models/group_0205.py b/githubkit/versions/v2022_11_28/models/group_0205.py index 29f15097a..cb0c0f09c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0205.py +++ b/githubkit/versions/v2022_11_28/models/group_0205.py @@ -10,57 +10,25 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class SimpleCommit(GitHubModel): - """Simple Commit +class ActionsVariable(GitHubModel): + """Actions Variable""" - A commit. - """ - - id: str = Field(description="SHA for the commit") - tree_id: str = Field(description="SHA for the commit's tree") - message: str = Field(description="Message describing the purpose of the commit") - timestamp: datetime = Field(description="Timestamp of the commit") - author: Union[SimpleCommitPropAuthor, None] = Field( - description="Information about the Git author" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - committer: Union[SimpleCommitPropCommitter, None] = Field( - description="Information about the Git committer" + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) -class SimpleCommitPropAuthor(GitHubModel): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str = Field(description="Name of the commit's author") - email: str = Field(description="Git email address of the commit's author") - - -class SimpleCommitPropCommitter(GitHubModel): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str = Field(description="Name of the commit's committer") - email: str = Field(description="Git email address of the commit's committer") - - -model_rebuild(SimpleCommit) -model_rebuild(SimpleCommitPropAuthor) -model_rebuild(SimpleCommitPropCommitter) +model_rebuild(ActionsVariable) -__all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", -) +__all__ = ("ActionsVariable",) diff --git a/githubkit/versions/v2022_11_28/models/group_0206.py b/githubkit/versions/v2022_11_28/models/group_0206.py index 7c4e6702d..5079bcff0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0206.py +++ b/githubkit/versions/v2022_11_28/models/group_0206.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,107 +17,23 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0058 import MinimalRepository -from .group_0204 import PullRequestMinimal -from .group_0205 import SimpleCommit +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" -class WorkflowRun(GitHubModel): - """Workflow Run - - An invocation of a workflow - """ - - id: int = Field(description="The ID of the workflow run.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow run." - ) - node_id: str = Field() - check_suite_id: Missing[int] = Field( - default=UNSET, description="The ID of the associated check suite." - ) - check_suite_node_id: Missing[str] = Field( - default=UNSET, description="The node ID of the associated check suite." - ) - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that points to the version of the workflow being run." + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." ) - path: str = Field(description="The full path of the workflow") - run_number: int = Field( - description="The auto incrementing run number for the workflow run." - ) - run_attempt: Missing[int] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", - ) - referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( - default=UNSET - ) - event: str = Field() - status: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - workflow_id: int = Field(description="The ID of the parent workflow.") - url: str = Field(description="The URL to the workflow run.") - html_url: str = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - triggering_actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - run_started_at: Missing[datetime] = Field( - default=UNSET, description="The start time of the latest run. Resets on re-run." - ) - jobs_url: str = Field(description="The URL to the jobs for the workflow run.") - logs_url: str = Field( - description="The URL to download the logs for the workflow run." - ) - check_suite_url: str = Field(description="The URL to the associated check suite.") - artifacts_url: str = Field( - description="The URL to the artifacts for the workflow run." - ) - cancel_url: str = Field(description="The URL to cancel the workflow run.") - rerun_url: str = Field(description="The URL to rerun the workflow run.") - previous_attempt_url: Missing[Union[str, None]] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The URL to the previous attempted run of this workflow, if one exists.", - ) - workflow_url: str = Field(description="The URL to the workflow.") - head_commit: Union[None, SimpleCommit] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) - head_repository_id: Missing[int] = Field(default=UNSET) - display_title: str = Field( - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." - ) - - -class ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() - sha: str = Field() - ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ( - "ReferencedWorkflow", - "WorkflowRun", -) +__all__ = ("ActionsRepositoryPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0207.py b/githubkit/versions/v2022_11_28/models/group_0207.py index f9c274d60..3a917b352 100644 --- a/githubkit/versions/v2022_11_28/models/group_0207.py +++ b/githubkit/versions/v2022_11_28/models/group_0207.py @@ -9,58 +9,21 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" -class EnvironmentApprovals(GitHubModel): - """Environment Approval - - An entry in the reviews log for environment deployments - """ - - environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( - description="The list of environments that were approved or rejected" - ) - state: Literal["approved", "rejected", "pending"] = Field( - description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - comment: str = Field(description="The comment submitted with the deployment review") - - -class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was created, in ISO 8601 format.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was last updated, in ISO 8601 format.", + access_level: Literal["none", "user", "organization"] = Field( + description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization." ) -model_rebuild(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(ActionsWorkflowAccessToRepository) -__all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", -) +__all__ = ("ActionsWorkflowAccessToRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0208.py b/githubkit/versions/v2022_11_28/models/group_0208.py index 831ca354e..7ce075884 100644 --- a/githubkit/versions/v2022_11_28/models/group_0208.py +++ b/githubkit/versions/v2022_11_28/models/group_0208.py @@ -14,17 +14,58 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" +class PullRequestMinimal(GitHubModel): + """Pull Request Minimal""" - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" - ) + id: int = Field() + number: int = Field() + url: str = Field() + head: PullRequestMinimalPropHead = Field() + base: PullRequestMinimalPropBase = Field() -model_rebuild(ReviewCustomGatesCommentRequired) +class PullRequestMinimalPropHead(GitHubModel): + """PullRequestMinimalPropHead""" -__all__ = ("ReviewCustomGatesCommentRequired",) + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropHeadPropRepo = Field() + + +class PullRequestMinimalPropHeadPropRepo(GitHubModel): + """PullRequestMinimalPropHeadPropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +class PullRequestMinimalPropBase(GitHubModel): + """PullRequestMinimalPropBase""" + + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropBasePropRepo = Field() + + +class PullRequestMinimalPropBasePropRepo(GitHubModel): + """PullRequestMinimalPropBasePropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) + +__all__ = ( + "PullRequestMinimal", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0209.py b/githubkit/versions/v2022_11_28/models/group_0209.py index 382e4485a..29f15097a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0209.py +++ b/githubkit/versions/v2022_11_28/models/group_0209.py @@ -9,29 +9,58 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" +class SimpleCommit(GitHubModel): + """Simple Commit - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + A commit. + """ + + id: str = Field(description="SHA for the commit") + tree_id: str = Field(description="SHA for the commit's tree") + message: str = Field(description="Message describing the purpose of the commit") + timestamp: datetime = Field(description="Timestamp of the commit") + author: Union[SimpleCommitPropAuthor, None] = Field( + description="Information about the Git author" ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." + committer: Union[SimpleCommitPropCommitter, None] = Field( + description="Information about the Git committer" ) -model_rebuild(ReviewCustomGatesStateRequired) +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor + + Information about the Git author + """ + + name: str = Field(description="Name of the commit's author") + email: str = Field(description="Git email address of the commit's author") + + +class SimpleCommitPropCommitter(GitHubModel): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str = Field(description="Name of the commit's committer") + email: str = Field(description="Git email address of the commit's committer") + + +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ( + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0210.py b/githubkit/versions/v2022_11_28/models/group_0210.py index 0e9b3928b..56a6959f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0210.py +++ b/githubkit/versions/v2022_11_28/models/group_0210.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,55 +19,106 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0080 import Team +from .group_0061 import MinimalRepository +from .group_0208 import PullRequestMinimal +from .group_0209 import SimpleCommit -class PendingDeploymentPropReviewersItems(GitHubModel): - """PendingDeploymentPropReviewersItems""" +class WorkflowRun(GitHubModel): + """Workflow Run - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) - - -class PendingDeployment(GitHubModel): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass + An invocation of a workflow """ - environment: PendingDeploymentPropEnvironment = Field() - wait_timer: int = Field(description="The set duration of the wait timer") - wait_timer_started_at: Union[datetime, None] = Field( - description="The time that the wait timer began." + id: int = Field(description="The ID of the workflow run.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow run." + ) + node_id: str = Field() + check_suite_id: Missing[int] = Field( + default=UNSET, description="The ID of the associated check suite." + ) + check_suite_node_id: Missing[str] = Field( + default=UNSET, description="The node ID of the associated check suite." + ) + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that points to the version of the workflow being run." + ) + path: str = Field(description="The full path of the workflow") + run_number: int = Field( + description="The auto incrementing run number for the workflow run." + ) + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", + ) + referenced_workflows: Missing[Union[list[ReferencedWorkflow], None]] = Field( + default=UNSET + ) + event: str = Field() + status: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + workflow_id: int = Field(description="The ID of the parent workflow.") + url: str = Field(description="The URL to the workflow run.") + html_url: str = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." ) - current_user_can_approve: bool = Field( - description="Whether the currently authenticated user can approve the deployment" + created_at: datetime = Field() + updated_at: datetime = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - reviewers: list[PendingDeploymentPropReviewersItems] = Field( - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + triggering_actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + run_started_at: Missing[datetime] = Field( + default=UNSET, description="The start time of the latest run. Resets on re-run." + ) + jobs_url: str = Field(description="The URL to the jobs for the workflow run.") + logs_url: str = Field( + description="The URL to download the logs for the workflow run." + ) + check_suite_url: str = Field(description="The URL to the associated check suite.") + artifacts_url: str = Field( + description="The URL to the artifacts for the workflow run." + ) + cancel_url: str = Field(description="The URL to cancel the workflow run.") + rerun_url: str = Field(description="The URL to rerun the workflow run.") + previous_attempt_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The URL to the previous attempted run of this workflow, if one exists.", + ) + workflow_url: str = Field(description="The URL to the workflow.") + head_commit: Union[None, SimpleCommit] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository_id: Missing[int] = Field(default=UNSET) + display_title: str = Field( + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." ) -class PendingDeploymentPropEnvironment(GitHubModel): - """PendingDeploymentPropEnvironment""" +class ReferencedWorkflow(GitHubModel): + """Referenced workflow - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + A workflow referenced/reused by the initial caller workflow + """ + + path: str = Field() + sha: str = Field() + ref: Missing[str] = Field(default=UNSET) -model_rebuild(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) __all__ = ( - "PendingDeployment", - "PendingDeploymentPropEnvironment", - "PendingDeploymentPropReviewersItems", + "ReferencedWorkflow", + "WorkflowRun", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0211.py b/githubkit/versions/v2022_11_28/models/group_0211.py index 37c49059f..f9c274d60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0211.py +++ b/githubkit/versions/v2022_11_28/models/group_0211.py @@ -10,62 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -class Deployment(GitHubModel): - """Deployment +class EnvironmentApprovals(GitHubModel): + """Environment Approval - A request for a specific ref(branch,sha,tag) to be deployed + An entry in the reviews log for environment deployments """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - sha: str = Field() - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or sha." + environments: list[EnvironmentApprovalsPropEnvironmentsItems] = Field( + description="The list of environments that were approved or rejected" ) - task: str = Field(description="Parameter to specify a task to execute") - payload: Union[DeploymentPropPayloadOneof0, str] = Field() - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + state: Literal["approved", "rejected", "pending"] = Field( + description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + comment: str = Field(description="The comment submitted with the deployment review") + + +class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) - production_environment: Missing[bool] = Field( + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field( default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + description="The time that the environment was created, in ISO 8601 format.", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" - - -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) __all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0212.py b/githubkit/versions/v2022_11_28/models/group_0212.py index c81b4fcb7..831ca354e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0212.py +++ b/githubkit/versions/v2022_11_28/models/group_0212.py @@ -12,101 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowRunUsagePropBillable(GitHubModel): - """WorkflowRunUsagePropBillable""" - - ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" - ) - macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" - ) - windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" - ) - - -class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) - ) - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropMacos(GitHubModel): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( - Field(default=UNSET) + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropWindows(GitHubModel): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( - Field(default=UNSET) + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -model_rebuild(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", -) +__all__ = ("ReviewCustomGatesCommentRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0213.py b/githubkit/versions/v2022_11_28/models/group_0213.py index f5831c47a..382e4485a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0213.py +++ b/githubkit/versions/v2022_11_28/models/group_0213.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,57 +18,20 @@ from githubkit.utils import UNSET -class WorkflowUsage(GitHubModel): - """Workflow Usage - - Workflow Usage - """ - - billable: WorkflowUsagePropBillable = Field() - +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" - - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) -class WorkflowUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropMacos(GitHubModel): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropWindows(GitHubModel): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: Missing[int] = Field(default=UNSET) - - -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropWindows", -) +__all__ = ("ReviewCustomGatesStateRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0214.py b/githubkit/versions/v2022_11_28/models/group_0214.py index 49966c29c..e81f1b74d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0214.py +++ b/githubkit/versions/v2022_11_28/models/group_0214.py @@ -15,35 +15,59 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0084 import Team -class Activity(GitHubModel): - """Activity +class PendingDeploymentPropReviewersItems(GitHubModel): + """PendingDeploymentPropReviewersItems""" - Activity + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) + + +class PendingDeployment(GitHubModel): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - id: int = Field() - node_id: str = Field() - before: str = Field(description="The SHA of the commit before the activity.") - after: str = Field(description="The SHA of the commit after the activity.") - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + environment: PendingDeploymentPropEnvironment = Field() + wait_timer: int = Field(description="The set duration of the wait timer") + wait_timer_started_at: Union[datetime, None] = Field( + description="The time that the wait timer began." + ) + current_user_can_approve: bool = Field( + description="Whether the currently authenticated user can approve the deployment" + ) + reviewers: list[PendingDeploymentPropReviewersItems] = Field( + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + ) + + +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) - timestamp: datetime = Field(description="The time when the activity occurred.") - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] = Field(description="The type of the activity that was performed.") - actor: Union[None, SimpleUser] = Field() + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -model_rebuild(Activity) +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) -__all__ = ("Activity",) +__all__ = ( + "PendingDeployment", + "PendingDeploymentPropEnvironment", + "PendingDeploymentPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0215.py b/githubkit/versions/v2022_11_28/models/group_0215.py index 245d14611..37c49059f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0215.py +++ b/githubkit/versions/v2022_11_28/models/group_0215.py @@ -9,27 +9,63 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0010 import Integration -class Autolink(GitHubModel): - """Autolink reference +class Deployment(GitHubModel): + """Deployment - An autolink reference. + A request for a specific ref(branch,sha,tag) to be deployed """ - id: int = Field() - key_prefix: str = Field(description="The prefix of a key that is linkified.") - url_template: str = Field( - description="A template for the target URL that is generated if a key was found." + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + sha: str = Field() + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or sha." + ) + task: str = Field(description="Parameter to specify a task to execute") + payload: Union[DeploymentPropPayloadOneof0, str] = Field() + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + + +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" -model_rebuild(Autolink) +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) -__all__ = ("Autolink",) +__all__ = ( + "Deployment", + "DeploymentPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0216.py b/githubkit/versions/v2022_11_28/models/group_0216.py index 481ac164d..c81b4fcb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0216.py +++ b/githubkit/versions/v2022_11_28/models/group_0216.py @@ -12,22 +12,101 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Dependabot security updates +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage - Check Dependabot security updates + Workflow Run Usage """ - enabled: bool = Field( - description="Whether Dependabot security updates are enabled for the repository." + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" + + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - paused: bool = Field( - description="Whether Dependabot security updates are paused for the repository." + windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(CheckAutomatedSecurityFixes) +class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropMacos(GitHubModel): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropWindows(GitHubModel): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +model_rebuild(WorkflowRunUsage) +model_rebuild(WorkflowRunUsagePropBillable) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropMacos) +model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropWindows) +model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ( + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0217.py b/githubkit/versions/v2022_11_28/models/group_0217.py index e834f6262..f5831c47a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0217.py +++ b/githubkit/versions/v2022_11_28/models/group_0217.py @@ -15,37 +15,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0218 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, - ProtectedBranchPullRequestReviewPropDismissalRestrictions, -) - -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review +class WorkflowUsage(GitHubModel): + """Workflow Usage - Protected Branch Pull Request Review + Workflow Usage """ - url: Missing[str] = Field(default=UNSET) - dismissal_restrictions: Missing[ - ProtectedBranchPullRequestReviewPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + billable: WorkflowUsagePropBillable = Field() + + +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" + + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - dismiss_stale_reviews: bool = Field() - require_code_owner_reviews: bool = Field() - required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(ProtectedBranchPullRequestReview) +class WorkflowUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: Missing[int] = Field(default=UNSET) + -__all__ = ("ProtectedBranchPullRequestReview",) +class WorkflowUsagePropBillablePropMacos(GitHubModel): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowUsagePropBillablePropWindows(GitHubModel): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: Missing[int] = Field(default=UNSET) + + +model_rebuild(WorkflowUsage) +model_rebuild(WorkflowUsagePropBillable) +model_rebuild(WorkflowUsagePropBillablePropUbuntu) +model_rebuild(WorkflowUsagePropBillablePropMacos) +model_rebuild(WorkflowUsagePropBillablePropWindows) + +__all__ = ( + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropWindows", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0218.py b/githubkit/versions/v2022_11_28/models/group_0218.py index 939e196e4..49966c29c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0218.py +++ b/githubkit/versions/v2022_11_28/models/group_0218.py @@ -9,60 +9,41 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0080 import Team -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class Activity(GitHubModel): + """Activity - users: Missing[list[SimpleUser]] = Field( - default=UNSET, description="The list of users with review dismissal access." - ) - teams: Missing[list[Team]] = Field( - default=UNSET, description="The list of teams with review dismissal access." - ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, description="The list of apps with review dismissal access." - ) - url: Missing[str] = Field(default=UNSET) - users_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + Activity """ - users: Missing[list[SimpleUser]] = Field( - default=UNSET, - description="The list of users allowed to bypass pull request requirements.", - ) - teams: Missing[list[Team]] = Field( - default=UNSET, - description="The list of teams allowed to bypass pull request requirements.", - ) - apps: Missing[list[Union[Integration, None]]] = Field( - default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", + id: int = Field() + node_id: str = Field() + before: str = Field(description="The SHA of the commit before the activity.") + after: str = Field(description="The SHA of the commit after the activity.") + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) + timestamp: datetime = Field(description="The time when the activity occurred.") + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] = Field(description="The type of the activity that was performed.") + actor: Union[None, SimpleUser] = Field() -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +model_rebuild(Activity) -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", -) +__all__ = ("Activity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0219.py b/githubkit/versions/v2022_11_28/models/group_0219.py index b02082cc4..245d14611 100644 --- a/githubkit/versions/v2022_11_28/models/group_0219.py +++ b/githubkit/versions/v2022_11_28/models/group_0219.py @@ -9,142 +9,27 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class BranchRestrictionPolicy(GitHubModel): - """Branch Restriction Policy +class Autolink(GitHubModel): + """Autolink reference - Branch Restriction Policy + An autolink reference. """ - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - apps_url: str = Field() - users: list[BranchRestrictionPolicyPropUsersItems] = Field() - teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() - apps: list[BranchRestrictionPolicyPropAppsItems] = Field() - - -class BranchRestrictionPolicyPropUsersItems(GitHubModel): - """BranchRestrictionPolicyPropUsersItems""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropTeamsItems(GitHubModel): - """BranchRestrictionPolicyPropTeamsItems""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - parent: Missing[Union[str, None]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItems(GitHubModel): - """BranchRestrictionPolicyPropAppsItems""" - - id: Missing[int] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - client_id: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - external_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( - default=UNSET + id: int = Field() + key_prefix: str = Field(description="The prefix of a key that is linkified.") + url_template: str = Field( + description="A template for the target URL that is generated if a key was found." + ) + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." ) - events: Missing[list[str]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - issues: Missing[str] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) -model_rebuild(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) +model_rebuild(Autolink) -__all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropUsersItems", -) +__all__ = ("Autolink",) diff --git a/githubkit/versions/v2022_11_28/models/group_0220.py b/githubkit/versions/v2022_11_28/models/group_0220.py index 6df808b59..481ac164d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0220.py +++ b/githubkit/versions/v2022_11_28/models/group_0220.py @@ -9,184 +9,25 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0217 import ProtectedBranchPullRequestReview -from .group_0219 import BranchRestrictionPolicy -class BranchProtection(GitHubModel): - """Branch Protection +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Dependabot security updates - Branch Protection + Check Dependabot security updates """ - url: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( - default=UNSET, - title="Protected Branch Required Status Check", - description="Protected Branch Required Status Check", - ) - enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( - default=UNSET, - title="Protected Branch Admin Enforced", - description="Protected Branch Admin Enforced", - ) - required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( - default=UNSET, - title="Protected Branch Pull Request Review", - description="Protected Branch Pull Request Review", - ) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( - default=UNSET + enabled: bool = Field( + description="Whether Dependabot security updates are enabled for the repository." ) - allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) - block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) - required_conversation_resolution: Missing[ - BranchProtectionPropRequiredConversationResolution - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - protection_url: Missing[str] = Field(default=UNSET) - required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( - default=UNSET + paused: bool = Field( + description="Whether Dependabot security updates are paused for the repository." ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: list[str] = Field() - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ( - "BranchProtection", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowForkSyncing", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropLockBranch", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropRequiredSignatures", - "ProtectedBranchAdminEnforced", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", -) +__all__ = ("CheckAutomatedSecurityFixes",) diff --git a/githubkit/versions/v2022_11_28/models/group_0221.py b/githubkit/versions/v2022_11_28/models/group_0221.py index e8b1508d5..7f7815e28 100644 --- a/githubkit/versions/v2022_11_28/models/group_0221.py +++ b/githubkit/versions/v2022_11_28/models/group_0221.py @@ -15,35 +15,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0220 import BranchProtection +from .group_0222 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, + ProtectedBranchPullRequestReviewPropDismissalRestrictions, +) -class ShortBranch(GitHubModel): - """Short Branch +class ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review - Short Branch + Protected Branch Pull Request Review """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" + url: Missing[str] = Field(default=UNSET) + dismissal_restrictions: Missing[ + ProtectedBranchPullRequestReviewPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + dismiss_stale_reviews: bool = Field() + require_code_owner_reviews: bool = Field() + required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() - url: str = Field() -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) +model_rebuild(ProtectedBranchPullRequestReview) -__all__ = ( - "ShortBranch", - "ShortBranchPropCommit", -) +__all__ = ("ProtectedBranchPullRequestReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0222.py b/githubkit/versions/v2022_11_28/models/group_0222.py index 1a688a15a..f27d82d2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0222.py +++ b/githubkit/versions/v2022_11_28/models/group_0222.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field @@ -17,18 +17,52 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0084 import Team -class GitUser(GitHubModel): - """Git User - Metaproperties for Git author/committer information. +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: Missing[list[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." + ) + teams: Missing[list[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." + ) + url: Missing[str] = Field(default=UNSET) + users_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - date: Missing[datetime] = Field(default=UNSET) + users: Missing[list[SimpleUser]] = Field( + default=UNSET, + description="The list of users allowed to bypass pull request requirements.", + ) + teams: Missing[list[Team]] = Field( + default=UNSET, + description="The list of teams allowed to bypass pull request requirements.", + ) + apps: Missing[list[Union[Integration, None]]] = Field( + default=UNSET, + description="The list of apps allowed to bypass pull request requirements.", + ) -model_rebuild(GitUser) +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) -__all__ = ("GitUser",) +__all__ = ( + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0223.py b/githubkit/versions/v2022_11_28/models/group_0223.py index 1c8f9d7fa..b02082cc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0223.py +++ b/githubkit/versions/v2022_11_28/models/group_0223.py @@ -14,18 +14,137 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class Verification(GitHubModel): - """Verification""" +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy - verified: bool = Field() - reason: str = Field() - payload: Union[str, None] = Field() - signature: Union[str, None] = Field() - verified_at: Union[str, None] = Field() + Branch Restriction Policy + """ + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + apps_url: str = Field() + users: list[BranchRestrictionPolicyPropUsersItems] = Field() + teams: list[BranchRestrictionPolicyPropTeamsItems] = Field() + apps: list[BranchRestrictionPolicyPropAppsItems] = Field() -model_rebuild(Verification) -__all__ = ("Verification",) +class BranchRestrictionPolicyPropUsersItems(GitHubModel): + """BranchRestrictionPolicyPropUsersItems""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropTeamsItems(GitHubModel): + """BranchRestrictionPolicyPropTeamsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + parent: Missing[Union[str, None]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItems(GitHubModel): + """BranchRestrictionPolicyPropAppsItems""" + + id: Missing[int] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + owner: Missing[BranchRestrictionPolicyPropAppsItemsPropOwner] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + client_id: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + external_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( + default=UNSET + ) + events: Missing[list[str]] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + issues: Missing[str] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) + + +model_rebuild(BranchRestrictionPolicy) +model_rebuild(BranchRestrictionPolicyPropUsersItems) +model_rebuild(BranchRestrictionPolicyPropTeamsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) + +__all__ = ( + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropUsersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0224.py b/githubkit/versions/v2022_11_28/models/group_0224.py index 3625474ad..810587e3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0224.py +++ b/githubkit/versions/v2022_11_28/models/group_0224.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,28 +17,176 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0221 import ProtectedBranchPullRequestReview +from .group_0223 import BranchRestrictionPolicy -class DiffEntry(GitHubModel): - """Diff Entry - Diff Entry +class BranchProtection(GitHubModel): + """Branch Protection + + Branch Protection + """ + + url: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( + default=UNSET, + title="Protected Branch Required Status Check", + description="Protected Branch Required Status Check", + ) + enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( + default=UNSET, + title="Protected Branch Admin Enforced", + description="Protected Branch Admin Enforced", + ) + required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( + default=UNSET, + title="Protected Branch Pull Request Review", + description="Protected Branch Pull Request Review", + ) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) + block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) + required_conversation_resolution: Missing[ + BranchProtectionPropRequiredConversationResolution + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + protection_url: Missing[str] = Field(default=UNSET) + required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( + default=UNSET + ) + lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchAdminEnforced(GitHubModel): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropRequiredLinearHistory(GitHubModel): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForcePushes(GitHubModel): + """BranchProtectionPropAllowForcePushes""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowDeletions(GitHubModel): + """BranchProtectionPropAllowDeletions""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropBlockCreations(GitHubModel): + """BranchProtectionPropBlockCreations""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredConversationResolution(GitHubModel): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredSignatures(GitHubModel): + """BranchProtectionPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropLockBranch(GitHubModel): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. """ - sha: Union[str, None] = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: Union[str, None] = Field() - raw_url: Union[str, None] = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForkSyncing(GitHubModel): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheck(GitHubModel): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: Missing[str] = Field(default=UNSET) + enforcement_level: Missing[str] = Field(default=UNSET) + contexts: list[str] = Field() + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() + contexts_url: Missing[str] = Field(default=UNSET) + strict: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(DiffEntry) +model_rebuild(BranchProtection) +model_rebuild(ProtectedBranchAdminEnforced) +model_rebuild(BranchProtectionPropRequiredLinearHistory) +model_rebuild(BranchProtectionPropAllowForcePushes) +model_rebuild(BranchProtectionPropAllowDeletions) +model_rebuild(BranchProtectionPropBlockCreations) +model_rebuild(BranchProtectionPropRequiredConversationResolution) +model_rebuild(BranchProtectionPropRequiredSignatures) +model_rebuild(BranchProtectionPropLockBranch) +model_rebuild(BranchProtectionPropAllowForkSyncing) +model_rebuild(ProtectedBranchRequiredStatusCheck) +model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) -__all__ = ("DiffEntry",) +__all__ = ( + "BranchProtection", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowForkSyncing", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropLockBranch", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropRequiredSignatures", + "ProtectedBranchAdminEnforced", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0225.py b/githubkit/versions/v2022_11_28/models/group_0225.py index 9ba353f79..2708ad81d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0225.py +++ b/githubkit/versions/v2022_11_28/models/group_0225.py @@ -9,69 +9,41 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0224 import DiffEntry -from .group_0226 import CommitPropCommit +from .group_0224 import BranchProtection -class Commit(GitHubModel): - """Commit +class ShortBranch(GitHubModel): + """Short Branch - Commit + Short Branch """ - url: str = Field() - sha: str = Field() - node_id: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitPropCommit = Field() - author: Union[SimpleUser, EmptyObject, None] = Field() - committer: Union[SimpleUser, EmptyObject, None] = Field() - parents: list[CommitPropParentsItems] = Field() - stats: Missing[CommitPropStats] = Field(default=UNSET) - files: Missing[list[DiffEntry]] = Field(default=UNSET) - - -class EmptyObject(GitHubModel): - """Empty Object - - An object without any properties. - """ + name: str = Field() + commit: ShortBranchPropCommit = Field() + protected: bool = Field() + protection: Missing[BranchProtection] = Field( + default=UNSET, title="Branch Protection", description="Branch Protection" + ) + protection_url: Missing[str] = Field(default=UNSET) -class CommitPropParentsItems(GitHubModel): - """CommitPropParentsItems""" +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" sha: str = Field() url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - - -class CommitPropStats(GitHubModel): - """CommitPropStats""" - - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - total: Missing[int] = Field(default=UNSET) -model_rebuild(Commit) -model_rebuild(EmptyObject) -model_rebuild(CommitPropParentsItems) -model_rebuild(CommitPropStats) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) __all__ = ( - "Commit", - "CommitPropParentsItems", - "CommitPropStats", - "EmptyObject", + "ShortBranch", + "ShortBranchPropCommit", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0226.py b/githubkit/versions/v2022_11_28/models/group_0226.py index da6aaf0f5..1a688a15a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0226.py +++ b/githubkit/versions/v2022_11_28/models/group_0226.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field @@ -17,33 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0222 import GitUser -from .group_0223 import Verification +class GitUser(GitHubModel): + """Git User -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" + Metaproperties for Git author/committer information. + """ - url: str = Field() - author: Union[None, GitUser] = Field() - committer: Union[None, GitUser] = Field() - message: str = Field() - comment_count: int = Field() - tree: CommitPropCommitPropTree = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) -class CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" +model_rebuild(GitUser) - sha: str = Field() - url: str = Field() - - -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) - -__all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", -) +__all__ = ("GitUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0227.py b/githubkit/versions/v2022_11_28/models/group_0227.py index 0e086e512..1c8f9d7fa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0227.py +++ b/githubkit/versions/v2022_11_28/models/group_0227.py @@ -9,45 +9,23 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0220 import BranchProtection -from .group_0225 import Commit - - -class BranchWithProtection(GitHubModel): - """Branch With Protection - - Branch With Protection - """ - - name: str = Field() - commit: Commit = Field(title="Commit", description="Commit") - links: BranchWithProtectionPropLinks = Field(alias="_links") - protected: bool = Field() - protection: BranchProtection = Field( - title="Branch Protection", description="Branch Protection" - ) - protection_url: str = Field() - pattern: Missing[str] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" +class Verification(GitHubModel): + """Verification""" - html: str = Field() - self_: str = Field(alias="self") + verified: bool = Field() + reason: str = Field() + payload: Union[str, None] = Field() + signature: Union[str, None] = Field() + verified_at: Union[str, None] = Field() -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(Verification) -__all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", -) +__all__ = ("Verification",) diff --git a/githubkit/versions/v2022_11_28/models/group_0228.py b/githubkit/versions/v2022_11_28/models/group_0228.py index 5503e255c..3625474ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0228.py +++ b/githubkit/versions/v2022_11_28/models/group_0228.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,161 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0219 import BranchRestrictionPolicy -from .group_0229 import ProtectedBranchPropRequiredPullRequestReviews +class DiffEntry(GitHubModel): + """Diff Entry -class ProtectedBranch(GitHubModel): - """Protected Branch - - Branch protections protect branches - """ - - url: str = Field() - required_status_checks: Missing[StatusCheckPolicy] = Field( - default=UNSET, title="Status Check Policy", description="Status Check Policy" - ) - required_pull_request_reviews: Missing[ - ProtectedBranchPropRequiredPullRequestReviews - ] = Field(default=UNSET) - required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( - default=UNSET - ) - enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) - required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_conversation_resolution: Missing[ - ProtectedBranchPropRequiredConversationResolution - ] = Field(default=UNSET) - block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) - lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropEnforceAdmins(GitHubModel): - """ProtectedBranchPropEnforceAdmins""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropRequiredLinearHistory(GitHubModel): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowForcePushes(GitHubModel): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowDeletions(GitHubModel): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool = Field() - - -class ProtectedBranchPropRequiredConversationResolution(GitHubModel): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropBlockCreations(GitHubModel): - """ProtectedBranchPropBlockCreations""" - - enabled: bool = Field() - - -class ProtectedBranchPropLockBranch(GitHubModel): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropAllowForkSyncing(GitHubModel): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class StatusCheckPolicy(GitHubModel): - """Status Check Policy - - Status Check Policy + Diff Entry """ - url: str = Field() - strict: bool = Field() - contexts: list[str] = Field() - checks: list[StatusCheckPolicyPropChecksItems] = Field() - contexts_url: str = Field() - - -class StatusCheckPolicyPropChecksItems(GitHubModel): - """StatusCheckPolicyPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() + sha: Union[str, None] = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: Union[str, None] = Field() + raw_url: Union[str, None] = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) -model_rebuild(ProtectedBranch) -model_rebuild(ProtectedBranchPropRequiredSignatures) -model_rebuild(ProtectedBranchPropEnforceAdmins) -model_rebuild(ProtectedBranchPropRequiredLinearHistory) -model_rebuild(ProtectedBranchPropAllowForcePushes) -model_rebuild(ProtectedBranchPropAllowDeletions) -model_rebuild(ProtectedBranchPropRequiredConversationResolution) -model_rebuild(ProtectedBranchPropBlockCreations) -model_rebuild(ProtectedBranchPropLockBranch) -model_rebuild(ProtectedBranchPropAllowForkSyncing) -model_rebuild(StatusCheckPolicy) -model_rebuild(StatusCheckPolicyPropChecksItems) +model_rebuild(DiffEntry) -__all__ = ( - "ProtectedBranch", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowForkSyncing", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropRequiredSignatures", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", -) +__all__ = ("DiffEntry",) diff --git a/githubkit/versions/v2022_11_28/models/group_0229.py b/githubkit/versions/v2022_11_28/models/group_0229.py index 3e3a31a47..2557d7fb6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0229.py +++ b/githubkit/versions/v2022_11_28/models/group_0229.py @@ -9,37 +9,69 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0230 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, -) +from .group_0003 import SimpleUser +from .group_0228 import DiffEntry +from .group_0230 import CommitPropCommit + +class Commit(GitHubModel): + """Commit -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" + Commit + """ url: str = Field() - dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) - require_code_owner_reviews: Missing[bool] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", - ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) - - -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) + sha: str = Field() + node_id: str = Field() + html_url: str = Field() + comments_url: str = Field() + commit: CommitPropCommit = Field() + author: Union[SimpleUser, EmptyObject, None] = Field() + committer: Union[SimpleUser, EmptyObject, None] = Field() + parents: list[CommitPropParentsItems] = Field() + stats: Missing[CommitPropStats] = Field(default=UNSET) + files: Missing[list[DiffEntry]] = Field(default=UNSET) + + +class EmptyObject(GitHubModel): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItems(GitHubModel): + """CommitPropParentsItems""" + + sha: str = Field() + url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + + +class CommitPropStats(GitHubModel): + """CommitPropStats""" + + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) + + +model_rebuild(Commit) +model_rebuild(EmptyObject) +model_rebuild(CommitPropParentsItems) +model_rebuild(CommitPropStats) + +__all__ = ( + "Commit", + "CommitPropParentsItems", + "CommitPropStats", + "EmptyObject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0230.py b/githubkit/versions/v2022_11_28/models/group_0230.py index 942b24d42..cd87ef2cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0230.py +++ b/githubkit/versions/v2022_11_28/models/group_0230.py @@ -17,40 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0080 import Team +from .group_0226 import GitUser +from .group_0227 import Verification -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" url: str = Field() - users_url: str = Field() - teams_url: str = Field() - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + author: Union[None, GitUser] = Field() + committer: Union[None, GitUser] = Field() + message: str = Field() + comment_count: int = Field() + tree: CommitPropCommitPropTree = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" - users: list[SimpleUser] = Field() - teams: list[Team] = Field() - apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + sha: str = Field() + url: str = Field() -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) +model_rebuild(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", + "CommitPropCommit", + "CommitPropCommitPropTree", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0231.py b/githubkit/versions/v2022_11_28/models/group_0231.py index 7a0f9e876..7f39de866 100644 --- a/githubkit/versions/v2022_11_28/models/group_0231.py +++ b/githubkit/versions/v2022_11_28/models/group_0231.py @@ -9,49 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration +from .group_0224 import BranchProtection +from .group_0229 import Commit -class DeploymentSimple(GitHubModel): - """Deployment +class BranchWithProtection(GitHubModel): + """Branch With Protection - A deployment created as the result of an Actions check run from a workflow that - references an environment + Branch With Protection """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - task: str = Field(description="Parameter to specify a task to execute") - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + name: str = Field() + commit: Commit = Field(title="Commit", description="Commit") + links: BranchWithProtectionPropLinks = Field(alias="_links") + protected: bool = Field() + protection: BranchProtection = Field( + title="Branch Protection", description="Branch Protection" ) + protection_url: str = Field() + pattern: Missing[str] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + + +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" + + html: str = Field() + self_: str = Field(alias="self") -model_rebuild(DeploymentSimple) +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) -__all__ = ("DeploymentSimple",) +__all__ = ( + "BranchWithProtection", + "BranchWithProtectionPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0232.py b/githubkit/versions/v2022_11_28/models/group_0232.py index 041cc5a0f..ad4bbe521 100644 --- a/githubkit/versions/v2022_11_28/models/group_0232.py +++ b/githubkit/versions/v2022_11_28/models/group_0232.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,79 +17,161 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0204 import PullRequestMinimal -from .group_0231 import DeploymentSimple +from .group_0223 import BranchRestrictionPolicy +from .group_0233 import ProtectedBranchPropRequiredPullRequestReviews -class CheckRun(GitHubModel): - """CheckRun +class ProtectedBranch(GitHubModel): + """Protected Branch - A check performed on the code of a given code change + Branch protections protect branches """ - id: int = Field(description="The id of the check.") - head_sha: str = Field(description="The SHA of the commit that is being checked.") - node_id: str = Field() - external_id: Union[str, None] = Field() url: str = Field() - html_url: Union[str, None] = Field() - details_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field( - description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." + required_status_checks: Missing[StatusCheckPolicy] = Field( + default=UNSET, title="Status Check Policy", description="Status Check Policy" ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - started_at: Union[datetime, None] = Field() - completed_at: Union[datetime, None] = Field() - output: CheckRunPropOutput = Field() - name: str = Field(description="The name of the check.") - check_suite: Union[CheckRunPropCheckSuite, None] = Field() - app: Union[None, Integration, None] = Field() - pull_requests: list[PullRequestMinimal] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." + required_pull_request_reviews: Missing[ + ProtectedBranchPropRequiredPullRequestReviews + ] = Field(default=UNSET) + required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( + default=UNSET ) - deployment: Missing[DeploymentSimple] = Field( + enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) + required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_conversation_resolution: Missing[ + ProtectedBranchPropRequiredConversationResolution + ] = Field(default=UNSET) + block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) + lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", ) -class CheckRunPropOutput(GitHubModel): - """CheckRunPropOutput""" +class ProtectedBranchPropRequiredSignatures(GitHubModel): + """ProtectedBranchPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropRequiredLinearHistory(GitHubModel): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowForcePushes(GitHubModel): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowDeletions(GitHubModel): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool = Field() - title: Union[str, None] = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - annotations_count: int = Field() - annotations_url: str = Field() + +class ProtectedBranchPropRequiredConversationResolution(GitHubModel): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropBlockCreations(GitHubModel): + """ProtectedBranchPropBlockCreations""" + + enabled: bool = Field() + + +class ProtectedBranchPropLockBranch(GitHubModel): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropAllowForkSyncing(GitHubModel): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class StatusCheckPolicy(GitHubModel): + """Status Check Policy + + Status Check Policy + """ + + url: str = Field() + strict: bool = Field() + contexts: list[str] = Field() + checks: list[StatusCheckPolicyPropChecksItems] = Field() + contexts_url: str = Field() -class CheckRunPropCheckSuite(GitHubModel): - """CheckRunPropCheckSuite""" +class StatusCheckPolicyPropChecksItems(GitHubModel): + """StatusCheckPolicyPropChecksItems""" - id: int = Field() + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(CheckRun) -model_rebuild(CheckRunPropOutput) -model_rebuild(CheckRunPropCheckSuite) +model_rebuild(ProtectedBranch) +model_rebuild(ProtectedBranchPropRequiredSignatures) +model_rebuild(ProtectedBranchPropEnforceAdmins) +model_rebuild(ProtectedBranchPropRequiredLinearHistory) +model_rebuild(ProtectedBranchPropAllowForcePushes) +model_rebuild(ProtectedBranchPropAllowDeletions) +model_rebuild(ProtectedBranchPropRequiredConversationResolution) +model_rebuild(ProtectedBranchPropBlockCreations) +model_rebuild(ProtectedBranchPropLockBranch) +model_rebuild(ProtectedBranchPropAllowForkSyncing) +model_rebuild(StatusCheckPolicy) +model_rebuild(StatusCheckPolicyPropChecksItems) __all__ = ( - "CheckRun", - "CheckRunPropCheckSuite", - "CheckRunPropOutput", + "ProtectedBranch", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowForkSyncing", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropRequiredSignatures", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0233.py b/githubkit/versions/v2022_11_28/models/group_0233.py index 2dfb0cd0e..2cee6eba0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0233.py +++ b/githubkit/versions/v2022_11_28/models/group_0233.py @@ -9,31 +9,37 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0234 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, +) -class CheckAnnotation(GitHubModel): - """Check Annotation - Check Annotation - """ +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() + url: str = Field() + dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) + require_code_owner_reviews: Missing[bool] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", + ) + dismissal_restrictions: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field(default=UNSET) -model_rebuild(CheckAnnotation) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) -__all__ = ("CheckAnnotation",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) diff --git a/githubkit/versions/v2022_11_28/models/group_0234.py b/githubkit/versions/v2022_11_28/models/group_0234.py index 72b94dec3..43ac5351d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0234.py +++ b/githubkit/versions/v2022_11_28/models/group_0234.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,74 +17,40 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0058 import MinimalRepository -from .group_0204 import PullRequestMinimal -from .group_0205 import SimpleCommit - - -class CheckSuite(GitHubModel): - """CheckSuite - - A suite of checks performed on the code of a given code change - """ - - id: int = Field() - node_id: str = Field() - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] = Field( - description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." - ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] = Field() - url: Union[str, None] = Field() - before: Union[str, None] = Field() - after: Union[str, None] = Field() - pull_requests: Union[list[PullRequestMinimal], None] = Field() - app: Union[None, Integration, None] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") - latest_check_runs_count: int = Field() - check_runs_url: str = Field() - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - - -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - - total_count: int = Field() - check_suites: list[CheckSuite] = Field() - - -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) +from .group_0084 import Team + + +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" + + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + apps: Missing[list[Union[Integration, None]]] = Field(default=UNSET) + + +model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) +model_rebuild( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) __all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0235.py b/githubkit/versions/v2022_11_28/models/group_0235.py index f2ae0d1e4..7a0f9e876 100644 --- a/githubkit/versions/v2022_11_28/models/group_0235.py +++ b/githubkit/versions/v2022_11_28/models/group_0235.py @@ -9,48 +9,49 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0058 import MinimalRepository +from .group_0010 import Integration -class CheckSuitePreference(GitHubModel): - """Check Suite Preference +class DeploymentSimple(GitHubModel): + """Deployment - Check suite configuration preferences for a repository. + A deployment created as the result of an Actions check run from a workflow that + references an environment """ - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + task: str = Field(description="Parameter to specify a task to execute") + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + ) + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: Missing[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] - ] = Field(default=UNSET) - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int = Field() - setting: bool = Field() - - -model_rebuild(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(DeploymentSimple) -__all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", -) +__all__ = ("DeploymentSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0236.py b/githubkit/versions/v2022_11_28/models/group_0236.py index 3984d9af3..5fc111335 100644 --- a/githubkit/versions/v2022_11_28/models/group_0236.py +++ b/githubkit/versions/v2022_11_28/models/group_0236.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -18,56 +18,79 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0082 import CodeScanningAlertRuleSummary -from .group_0083 import CodeScanningAnalysisTool -from .group_0084 import CodeScanningAlertInstance +from .group_0010 import Integration +from .group_0208 import PullRequestMinimal +from .group_0235 import DeploymentSimple -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" +class CheckRun(GitHubModel): + """CheckRun - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." + A check performed on the code of a given code change + """ + + id: int = Field(description="The id of the check.") + head_sha: str = Field(description="The SHA of the commit that is being checked.") + node_id: str = Field() + external_id: Union[str, None] = Field() + url: str = Field() + html_url: Union[str, None] = Field() + details_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field( + description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + started_at: Union[datetime, None] = Field() + completed_at: Union[datetime, None] = Field() + output: CheckRunPropOutput = Field() + name: str = Field(description="The name of the check.") + check_suite: Union[CheckRunPropCheckSuite, None] = Field() + app: Union[None, Integration, None] = Field() + pull_requests: list[PullRequestMinimal] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." ) - fixed_at: Missing[Union[datetime, None]] = Field( + deployment: Missing[DeploymentSimple] = Field( default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CodeScanningAlertItems) +class CheckRunPropOutput(GitHubModel): + """CheckRunPropOutput""" + + title: Union[str, None] = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + annotations_count: int = Field() + annotations_url: str = Field() + + +class CheckRunPropCheckSuite(GitHubModel): + """CheckRunPropCheckSuite""" + + id: int = Field() + + +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) -__all__ = ("CodeScanningAlertItems",) +__all__ = ( + "CheckRun", + "CheckRunPropCheckSuite", + "CheckRunPropOutput", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0237.py b/githubkit/versions/v2022_11_28/models/group_0237.py index 847ec8af9..2dfb0cd0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0237.py +++ b/githubkit/versions/v2022_11_28/models/group_0237.py @@ -9,105 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0083 import CodeScanningAnalysisTool -from .group_0084 import CodeScanningAlertInstance +class CheckAnnotation(GitHubModel): + """Check Annotation -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" + Check Annotation + """ - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() - dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + path: str = Field() + start_line: int = Field() + end_line: int = Field() + start_column: Union[int, None] = Field() + end_column: Union[int, None] = Field() + annotation_level: Union[str, None] = Field() + title: Union[str, None] = Field() + message: Union[str, None] = Field() + raw_details: Union[str, None] = Field() + blob_href: str = Field() -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" +model_rebuild(CheckAnnotation) - id: Missing[Union[str, None]] = Field( - default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." - ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( - default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="A description of the rule used to detect the alert." - ) - tags: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", - ) - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - - -model_rebuild(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) - -__all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", -) +__all__ = ("CheckAnnotation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0238.py b/githubkit/versions/v2022_11_28/models/group_0238.py index 9ae48ea96..183f2ec3d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0238.py +++ b/githubkit/versions/v2022_11_28/models/group_0238.py @@ -15,20 +15,77 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0061 import MinimalRepository +from .group_0208 import PullRequestMinimal +from .group_0209 import SimpleCommit -class CodeScanningAutofix(GitHubModel): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] = Field( - description="The status of an autofix." +class CheckSuite(GitHubModel): + """CheckSuite + + A suite of checks performed on the code of a given code change + """ + + id: int = Field() + node_id: str = Field() + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] = Field( + description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." ) - description: Union[str, None] = Field(description="The description of an autofix.") - started_at: datetime = Field( - description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] = Field() + url: Union[str, None] = Field() + before: Union[str, None] = Field() + after: Union[str, None] = Field() + pull_requests: Union[list[PullRequestMinimal], None] = Field() + app: Union[None, Integration, None] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + latest_check_runs_count: int = Field() + check_runs_url: str = Field() + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: list[CheckSuite] = Field() -model_rebuild(CodeScanningAutofix) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAutofix",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0239.py b/githubkit/versions/v2022_11_28/models/group_0239.py index c0777bd5b..a9b887288 100644 --- a/githubkit/versions/v2022_11_28/models/group_0239.py +++ b/githubkit/versions/v2022_11_28/models/group_0239.py @@ -15,22 +15,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0061 import MinimalRepository -class CodeScanningAutofixCommits(GitHubModel): - """CodeScanningAutofixCommits - Commit an autofix for a code scanning alert +class CheckSuitePreference(GitHubModel): + """Check Suite Preference + + Check suite configuration preferences for a repository. """ - target_ref: Missing[str] = Field( - default=UNSET, - description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', - ) - message: Missing[str] = Field( - default=UNSET, description="Commit message to be used." + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) -model_rebuild(CodeScanningAutofixCommits) +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: Missing[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() + + +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) -__all__ = ("CodeScanningAutofixCommits",) +__all__ = ( + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0240.py b/githubkit/versions/v2022_11_28/models/group_0240.py index 02e796aba..1086ec034 100644 --- a/githubkit/versions/v2022_11_28/models/group_0240.py +++ b/githubkit/versions/v2022_11_28/models/group_0240.py @@ -9,23 +9,65 @@ from __future__ import annotations +from datetime import datetime +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0086 import CodeScanningAlertRuleSummary +from .group_0087 import CodeScanningAnalysisTool +from .group_0088 import CodeScanningAlertInstance + -class CodeScanningAutofixCommitsResponse(GitHubModel): - """CodeScanningAutofixCommitsResponse""" +class CodeScanningAlertItems(GitHubModel): + """CodeScanningAlertItems""" - target_ref: Missing[str] = Field( + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) - sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) -model_rebuild(CodeScanningAutofixCommitsResponse) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningAutofixCommitsResponse",) +__all__ = ("CodeScanningAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0241.py b/githubkit/versions/v2022_11_28/models/group_0241.py index 6f3eec428..37922a3fa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0241.py +++ b/githubkit/versions/v2022_11_28/models/group_0241.py @@ -10,6 +10,7 @@ from __future__ import annotations from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,49 +18,96 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0083 import CodeScanningAnalysisTool +from .group_0003 import SimpleUser +from .group_0087 import CodeScanningAnalysisTool +from .group_0088 import CodeScanningAlertInstance -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - ref: str = Field( - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." ) - environment: str = Field( - description="Identifies the variable values associated with the environment in which this analysis was performed." + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert." ) - category: Missing[str] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - error: str = Field() - created_at: datetime = Field( - description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - results_count: int = Field( - description="The total number of results in the analysis." + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." ) - rules_count: int = Field( - description="The total number of rules used in the analysis." + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) - id: int = Field(description="Unique identifier for this analysis.") - url: str = Field(description="The REST API URL of the analysis resource.") - sarif_id: str = Field(description="An identifier for the upload.") + rule: CodeScanningAlertRule = Field() tool: CodeScanningAnalysisTool = Field() - deletable: bool = Field() - warning: str = Field(description="Warning generated when processing the analysis") + most_recent_instance: CodeScanningAlertInstance = Field() + dismissal_approved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + + +class CodeScanningAlertRule(GitHubModel): + """CodeScanningAlertRule""" + + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", + ) + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." + ) + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." + ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( + default=UNSET, + description="A short description of the rule used to detect the alert.", + ) + full_description: Missing[str] = Field( + default=UNSET, description="A description of the rule used to detect the alert." + ) + tags: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." + ) + help_: Missing[Union[str, None]] = Field( + default=UNSET, + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", + ) + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) -model_rebuild(CodeScanningAnalysis) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningAnalysis",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0242.py b/githubkit/versions/v2022_11_28/models/group_0242.py index d589823d8..9ae48ea96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0242.py +++ b/githubkit/versions/v2022_11_28/models/group_0242.py @@ -9,27 +9,26 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion +class CodeScanningAutofix(GitHubModel): + """CodeScanningAutofix""" - Successful deletion of a code scanning analysis - """ - - next_analysis_url: Union[str, None] = Field( - description="Next deletable analysis in chain, without last analysis deletion confirmation" + status: Literal["pending", "error", "success", "outdated"] = Field( + description="The status of an autofix." ) - confirm_delete_url: Union[str, None] = Field( - description="Next deletable analysis in chain, with last analysis deletion confirmation" + description: Union[str, None] = Field(description="The description of an autofix.") + started_at: datetime = Field( + description="The start time of an autofix in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) -model_rebuild(CodeScanningAnalysisDeletion) +model_rebuild(CodeScanningAutofix) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ("CodeScanningAutofix",) diff --git a/githubkit/versions/v2022_11_28/models/group_0243.py b/githubkit/versions/v2022_11_28/models/group_0243.py index 03bb03a35..c0777bd5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0243.py +++ b/githubkit/versions/v2022_11_28/models/group_0243.py @@ -9,45 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CodeScanningAutofixCommits(GitHubModel): + """CodeScanningAutofixCommits - A CodeQL database. + Commit an autofix for a code scanning alert """ - id: int = Field(description="The ID of the CodeQL database.") - name: str = Field(description="The name of the CodeQL database.") - language: str = Field(description="The language of the CodeQL database.") - uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") - content_type: str = Field(description="The MIME type of the CodeQL database file.") - size: int = Field(description="The size of the CodeQL database file in bytes.") - created_at: datetime = Field( - description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - url: str = Field( - description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." - ) - commit_oid: Missing[Union[str, None]] = Field( + target_ref: Missing[str] = Field( default=UNSET, - description="The commit SHA of the repository at the time the CodeQL database was created.", + description='The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', + ) + message: Missing[str] = Field( + default=UNSET, description="Commit message to be used." ) -model_rebuild(CodeScanningCodeqlDatabase) +model_rebuild(CodeScanningAutofixCommits) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ("CodeScanningAutofixCommits",) diff --git a/githubkit/versions/v2022_11_28/models/group_0244.py b/githubkit/versions/v2022_11_28/models/group_0244.py index 4561ffbb1..02e796aba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0244.py +++ b/githubkit/versions/v2022_11_28/models/group_0244.py @@ -9,30 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier - - Repository Identifier - """ +class CodeScanningAutofixCommitsResponse(GitHubModel): + """CodeScanningAutofixCommitsResponse""" - id: int = Field(description="A unique identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." + target_ref: Missing[str] = Field( + default=UNSET, + description='The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation.', ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() + sha: Missing[str] = Field(default=UNSET, description="SHA of commit with autofix.") -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAutofixCommitsResponse) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ("CodeScanningAutofixCommitsResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0245.py b/githubkit/versions/v2022_11_28/models/group_0245.py index c43182c6a..d60923de9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0245.py +++ b/githubkit/versions/v2022_11_28/models/group_0245.py @@ -9,24 +9,57 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0244 import CodeScanningVariantAnalysisRepository +from .group_0087 import CodeScanningAnalysisTool -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." + ) + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + environment: str = Field( + description="Identifies the variable values associated with the environment in which this analysis was performed." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + ) + error: str = Field() + created_at: datetime = Field( + description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + results_count: int = Field( + description="The total number of results in the analysis." ) - repositories: list[CodeScanningVariantAnalysisRepository] = Field( - description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." + rules_count: int = Field( + description="The total number of rules used in the analysis." ) + id: int = Field(description="Unique identifier for this analysis.") + url: str = Field(description="The REST API URL of the analysis resource.") + sarif_id: str = Field(description="An identifier for the upload.") + tool: CodeScanningAnalysisTool = Field() + deletable: bool = Field() + warning: str = Field(description="Warning generated when processing the analysis") -model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningAnalysis) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ("CodeScanningAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0246.py b/githubkit/versions/v2022_11_28/models/group_0246.py index 484aa0ee1..d589823d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0246.py +++ b/githubkit/versions/v2022_11_28/models/group_0246.py @@ -9,70 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0031 import SimpleRepository -from .group_0247 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -from .group_0248 import CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Successful deletion of a code scanning analysis """ - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", - ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( - default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", - ) - failure_reason: Missing[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] = Field( - default=UNSET, - description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", + next_analysis_url: Union[str, None] = Field( + description="Next deletable analysis in chain, without last analysis deletion confirmation" ) - scanned_repositories: Missing[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] - ] = Field(default=UNSET) - skipped_repositories: Missing[ - CodeScanningVariantAnalysisPropSkippedRepositories - ] = Field( - default=UNSET, - description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", + confirm_delete_url: Union[str, None] = Field( + description="Next deletable analysis in chain, with last analysis deletion confirmation" ) -model_rebuild(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningAnalysisDeletion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0247.py b/githubkit/versions/v2022_11_28/models/group_0247.py index eccf6268d..03bb03a35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0247.py +++ b/githubkit/versions/v2022_11_28/models/group_0247.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,34 +18,36 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0244 import CodeScanningVariantAnalysisRepository +from .group_0003 import SimpleUser -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database - repository: CodeScanningVariantAnalysisRepository = Field( - title="Repository Identifier", description="Repository Identifier" - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." + A CodeQL database. + """ + + id: int = Field(description="The ID of the CodeQL database.") + name: str = Field(description="The name of the CodeQL database.") + language: str = Field(description="The language of the CodeQL database.") + uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") + content_type: str = Field(description="The MIME type of the CodeQL database file.") + size: int = Field(description="The size of the CodeQL database file in bytes.") + created_at: datetime = Field( + description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + updated_at: datetime = Field( + description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", + url: str = Field( + description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." ) - failure_message: Missing[str] = Field( + commit_oid: Missing[Union[str, None]] = Field( default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + description="The commit SHA of the repository at the time the CodeQL database was created.", ) -model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningCodeqlDatabase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0248.py b/githubkit/versions/v2022_11_28/models/group_0248.py index c6743e12b..4561ffbb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0248.py +++ b/githubkit/versions/v2022_11_28/models/group_0248.py @@ -9,41 +9,30 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0245 import CodeScanningVariantAnalysisSkippedRepoGroup - -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Repository Identifier """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." - ) - repository_full_names: list[str] = Field( - description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." + id: int = Field(description="A unique identifier of the repository.") + name: str = Field(description="The name of the repository.") + full_name: str = Field( + description="The full, globally unique, name of the repository." ) + private: bool = Field(description="Whether the repository is private.") + stargazers_count: int = Field() + updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningVariantAnalysisRepository) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningVariantAnalysisRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0249.py b/githubkit/versions/v2022_11_28/models/group_0249.py index cd4b0204d..cf74b95d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0249.py +++ b/githubkit/versions/v2022_11_28/models/group_0249.py @@ -9,54 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0031 import SimpleRepository +from .group_0248 import CodeScanningVariantAnalysisRepository -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", - ) - failure_message: Missing[str] = Field( - default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", - ) - database_commit_sha: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", - ) - source_location_prefix: Missing[str] = Field( - default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + repositories: list[CodeScanningVariantAnalysisRepository] = Field( + description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." ) -model_rebuild(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0250.py b/githubkit/versions/v2022_11_28/models/group_0250.py index db0cf7ba2..b7abb7524 100644 --- a/githubkit/versions/v2022_11_28/models/group_0250.py +++ b/githubkit/versions/v2022_11_28/models/group_0250.py @@ -18,52 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0031 import SimpleRepository +from .group_0251 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +from .group_0252 import CodeScanningVariantAnalysisPropSkippedRepositories -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: Missing[Literal["configured", "not-configured"]] = Field( + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( default=UNSET, - description="Code scanning default setup has been configured or not.", + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] = Field(default=UNSET, description="Languages to be analyzed.") - runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( - default=UNSET, description="Runner type to be used." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - runner_label: Missing[Union[str, None]] = Field( + completed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Runner label to be used if the runner type is labeled.", + description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() + actions_workflow_run_id: Missing[int] = Field( + default=UNSET, + description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." + failure_reason: Missing[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] = Field( + default=UNSET, + description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic analysis." + scanned_repositories: Missing[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItems] + ] = Field(default=UNSET) + skipped_repositories: Missing[ + CodeScanningVariantAnalysisPropSkippedRepositories + ] = Field( + default=UNSET, + description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", ) -model_rebuild(CodeScanningDefaultSetup) +model_rebuild(CodeScanningVariantAnalysis) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ("CodeScanningVariantAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0251.py b/githubkit/versions/v2022_11_28/models/group_0251.py index 089b0befc..a5200b0f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0251.py +++ b/githubkit/versions/v2022_11_28/models/group_0251.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,43 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0248 import CodeScanningVariantAnalysisRepository -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. - """ +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." + repository: CodeScanningVariantAnalysisRepository = Field( + title="Repository Identifier", description="Repository Identifier" ) - runner_type: Missing[Literal["standard", "labeled"]] = Field( - default=UNSET, description="Runner type to be used." + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." ) - runner_label: Missing[Union[str, None]] = Field( + result_count: Missing[int] = Field( default=UNSET, - description="Runner label to be used if the runner type is labeled.", + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", ) - languages: Missing[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] - ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") - - -model_rebuild(CodeScanningDefaultSetupUpdate) - -__all__ = ("CodeScanningDefaultSetupUpdate",) + + +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) + +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0252.py b/githubkit/versions/v2022_11_28/models/group_0252.py index 4bb252bf7..bfcecc9b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0252.py +++ b/githubkit/versions/v2022_11_28/models/group_0252.py @@ -12,26 +12,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0249 import CodeScanningVariantAnalysisSkippedRepoGroup -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories + + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + repository_full_names: list[str] = Field( + description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0253.py b/githubkit/versions/v2022_11_28/models/group_0253.py index a7508c529..cd4b0204d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0253.py +++ b/githubkit/versions/v2022_11_28/models/group_0253.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0031 import SimpleRepository + -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." + ) + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + result_count: Missing[int] = Field( + default=UNSET, + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + ) + database_commit_sha: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", + ) + source_location_prefix: Missing[str] = Field( + default=UNSET, + description="The source location prefix to use. This is only available for successful analyses.", + ) + artifact_url: Missing[str] = Field( default=UNSET, - description="The REST API URL for checking the status of the upload.", + description="The URL of the artifact. This is only available for successful analyses.", ) -model_rebuild(CodeScanningSarifsReceipt) +model_rebuild(CodeScanningVariantAnalysisRepoTask) -__all__ = ("CodeScanningSarifsReceipt",) +__all__ = ("CodeScanningVariantAnalysisRepoTask",) diff --git a/githubkit/versions/v2022_11_28/models/group_0254.py b/githubkit/versions/v2022_11_28/models/group_0254.py index 525bd5e50..3bf43d51a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0254.py +++ b/githubkit/versions/v2022_11_28/models/group_0254.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,23 +19,55 @@ from githubkit.utils import UNSET -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + Configuration for code scanning default setup. + """ + + state: Missing[Literal["configured", "not-configured"]] = Field( default=UNSET, - description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + description="Code scanning default setup has been configured or not.", + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] = Field(default=UNSET, description="Languages to be analyzed.") + runner_type: Missing[Union[None, Literal["standard", "labeled"]]] = Field( + default=UNSET, description="Runner type to be used." ) - analyses_url: Missing[Union[str, None]] = Field( + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="The REST API URL for getting the analyses associated with the upload.", + description="Runner label to be used if the runner type is labeled.", + ) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." ) - errors: Missing[Union[list[str], None]] = Field( + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." + ) + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ("CodeScanningDefaultSetup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0255.py b/githubkit/versions/v2022_11_28/models/group_0255.py index a6444ae1e..05b0b46a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0255.py +++ b/githubkit/versions/v2022_11_28/models/group_0255.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,35 +17,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0028 import CodeSecurityConfiguration +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate -class CodeSecurityConfigurationForRepository(GitHubModel): - """CodeSecurityConfigurationForRepository - - Code security configuration associated with a repository and attachment status + Configuration for code scanning default setup. """ - status: Missing[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", - ] - ] = Field( + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." + ) + runner_type: Missing[Literal["standard", "labeled"]] = Field( + default=UNSET, description="Runner type to be used." + ) + runner_label: Missing[Union[str, None]] = Field( default=UNSET, - description="The attachment status of the code security configuration on the repository.", + description="Runner label to be used if the runner type is labeled.", ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." ) + threat_model: Missing[Literal["remote", "remote_and_local"]] = Field( + default=UNSET, + description="Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input.", + ) + languages: Missing[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] = Field(default=UNSET, description="CodeQL languages to be analyzed.") -model_rebuild(CodeSecurityConfigurationForRepository) +model_rebuild(CodeScanningDefaultSetupUpdate) -__all__ = ("CodeSecurityConfigurationForRepository",) +__all__ = ("CodeScanningDefaultSetupUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0256.py b/githubkit/versions/v2022_11_28/models/group_0256.py index b356aafc8..4bb252bf7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0256.py +++ b/githubkit/versions/v2022_11_28/models/group_0256.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,38 +16,22 @@ from githubkit.utils import UNSET -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - A list of errors found in a repo's CODEOWNERS file + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - errors: list[CodeownersErrorsPropErrorsItems] = Field() - - -class CodeownersErrorsPropErrorsItems(GitHubModel): - """CodeownersErrorsPropErrorsItems""" - - line: int = Field(description="The line number where this errors occurs.") - column: int = Field(description="The column number where this errors occurs.") - source: Missing[str] = Field( - default=UNSET, description="The contents of the line where the error occurs." - ) - kind: str = Field(description="The type of error.") - suggestion: Missing[Union[str, None]] = Field( - default=UNSET, - description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + run_id: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." ) - message: str = Field( - description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." ) - path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0257.py b/githubkit/versions/v2022_11_28/models/group_0257.py index de6f0cf08..a7508c529 100644 --- a/githubkit/versions/v2022_11_28/models/group_0257.py +++ b/githubkit/versions/v2022_11_28/models/group_0257.py @@ -12,19 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - Permission check result for a given devcontainer config. - """ - - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = Field( + default=UNSET, + description="The REST API URL for checking the status of the upload.", ) -model_rebuild(CodespacesPermissionsCheckForDevcontainer) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) +__all__ = ("CodeScanningSarifsReceipt",) diff --git a/githubkit/versions/v2022_11_28/models/group_0258.py b/githubkit/versions/v2022_11_28/models/group_0258.py index f681c9d8b..525bd5e50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0258.py +++ b/githubkit/versions/v2022_11_28/models/group_0258.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,34 +17,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0058 import MinimalRepository +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" -class RepositoryInvitation(GitHubModel): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. - """ - - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + default=UNSET, + description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", ) - invitee: Union[None, SimpleUser] = Field() - inviter: Union[None, SimpleUser] = Field() - permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( - description="The permission associated with the invitation." + analyses_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The REST API URL for getting the analyses associated with the upload.", ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + errors: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() -model_rebuild(RepositoryInvitation) +model_rebuild(CodeScanningSarifsStatus) -__all__ = ("RepositoryInvitation",) +__all__ = ("CodeScanningSarifsStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0259.py b/githubkit/versions/v2022_11_28/models/group_0259.py index ba71473fc..a6444ae1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0259.py +++ b/githubkit/versions/v2022_11_28/models/group_0259.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,65 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0028 import CodeSecurityConfiguration -class RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission - - Repository Collaborator Permission - """ - - permission: str = Field() - role_name: str = Field() - user: Union[None, Collaborator] = Field() +class CodeSecurityConfigurationForRepository(GitHubModel): + """CodeSecurityConfigurationForRepository -class Collaborator(GitHubModel): - """Collaborator - - Collaborator + Code security configuration associated with a repository and attachment status """ - login: str = Field() - id: int = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) - role_name: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class CollaboratorPropPermissions(GitHubModel): - """CollaboratorPropPermissions""" - - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - admin: bool = Field() - - -model_rebuild(RepositoryCollaboratorPermission) -model_rebuild(Collaborator) -model_rebuild(CollaboratorPropPermissions) - -__all__ = ( - "Collaborator", - "CollaboratorPropPermissions", - "RepositoryCollaboratorPermission", -) + status: Missing[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] = Field( + default=UNSET, + description="The attachment status of the code security configuration on the repository.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) + + +model_rebuild(CodeSecurityConfigurationForRepository) + +__all__ = ("CodeSecurityConfigurationForRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0260.py b/githubkit/versions/v2022_11_28/models/group_0260.py index 273b36caf..b356aafc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0260.py +++ b/githubkit/versions/v2022_11_28/models/group_0260.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,60 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0041 import ReactionRollup +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors -class CommitComment(GitHubModel): - """Commit Comment - - Commit Comment + A list of errors found in a repo's CODEOWNERS file """ - html_url: str = Field() - url: str = Field() - id: int = Field() - node_id: str = Field() - body: str = Field() - path: Union[str, None] = Field() - position: Union[int, None] = Field() - line: Union[int, None] = Field() - commit_id: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - + errors: list[CodeownersErrorsPropErrorsItems] = Field() -class TimelineCommitCommentedEvent(GitHubModel): - """Timeline Commit Commented Event - Timeline Commit Commented Event - """ +class CodeownersErrorsPropErrorsItems(GitHubModel): + """CodeownersErrorsPropErrorsItems""" - event: Missing[Literal["commit_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - commit_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[CommitComment]] = Field(default=UNSET) + line: int = Field(description="The line number where this errors occurs.") + column: int = Field(description="The column number where this errors occurs.") + source: Missing[str] = Field( + default=UNSET, description="The contents of the line where the error occurs." + ) + kind: str = Field(description="The type of error.") + suggestion: Missing[Union[str, None]] = Field( + default=UNSET, + description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + ) + message: str = Field( + description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + ) + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) __all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0261.py b/githubkit/versions/v2022_11_28/models/group_0261.py index 1899117e7..de6f0cf08 100644 --- a/githubkit/versions/v2022_11_28/models/group_0261.py +++ b/githubkit/versions/v2022_11_28/models/group_0261.py @@ -14,28 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class BranchShort(GitHubModel): - """Branch Short +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - Branch Short + Permission check result for a given devcontainer config. """ - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" + ) -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" +model_rebuild(CodespacesPermissionsCheckForDevcontainer) - sha: str = Field() - url: str = Field() - - -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) - -__all__ = ( - "BranchShort", - "BranchShortPropCommit", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0262.py b/githubkit/versions/v2022_11_28/models/group_0262.py index b537858f8..56e9d6086 100644 --- a/githubkit/versions/v2022_11_28/models/group_0262.py +++ b/githubkit/versions/v2022_11_28/models/group_0262.py @@ -9,20 +9,43 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0061 import MinimalRepository -class Link(GitHubModel): - """Link - - Hypermedia Link - """ - href: str = Field() +class RepositoryInvitation(GitHubModel): + """Repository Invitation + Repository invitations let you manage who you collaborate with. + """ -model_rebuild(Link) - -__all__ = ("Link",) + id: int = Field(description="Unique identifier of the repository invitation.") + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + invitee: Union[None, SimpleUser] = Field() + inviter: Union[None, SimpleUser] = Field() + permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( + description="The permission associated with the invitation." + ) + created_at: datetime = Field() + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" + ) + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() + node_id: str = Field() + + +model_rebuild(RepositoryInvitation) + +__all__ = ("RepositoryInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0263.py b/githubkit/versions/v2022_11_28/models/group_0263.py index 48491e4bb..ba71473fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0263.py +++ b/githubkit/versions/v2022_11_28/models/group_0263.py @@ -9,33 +9,73 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission -class AutoMerge(GitHubModel): - """Auto merge + Repository Collaborator Permission + """ + + permission: str = Field() + role_name: str = Field() + user: Union[None, Collaborator] = Field() + + +class Collaborator(GitHubModel): + """Collaborator - The status of auto merging a pull request. + Collaborator """ - enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) + login: str = Field() + id: int = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) + role_name: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class CollaboratorPropPermissions(GitHubModel): + """CollaboratorPropPermissions""" + + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + admin: bool = Field() -model_rebuild(AutoMerge) +model_rebuild(RepositoryCollaboratorPermission) +model_rebuild(Collaborator) +model_rebuild(CollaboratorPropPermissions) -__all__ = ("AutoMerge",) +__all__ = ( + "Collaborator", + "CollaboratorPropPermissions", + "RepositoryCollaboratorPermission", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0264.py b/githubkit/versions/v2022_11_28/models/group_0264.py index b67178c1d..abe3c19d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0264.py +++ b/githubkit/versions/v2022_11_28/models/group_0264.py @@ -19,52 +19,27 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0039 import Milestone -from .group_0080 import Team -from .group_0263 import AutoMerge -from .group_0265 import PullRequestSimplePropBase, PullRequestSimplePropHead -from .group_0266 import PullRequestSimplePropLinks +from .group_0044 import ReactionRollup -class PullRequestSimple(GitHubModel): - """Pull Request Simple +class CommitComment(GitHubModel): + """Commit Comment - Pull Request Simple + Commit Comment """ + html_url: str = Field() url: str = Field() id: int = Field() node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field() - state: str = Field() - locked: bool = Field() - title: str = Field() + body: str = Field() + path: Union[str, None] = Field() + position: Union[int, None] = Field() + line: Union[int, None] = Field() + commit_id: str = Field() user: Union[None, SimpleUser] = Field() - body: Union[str, None] = Field() - labels: list[PullRequestSimplePropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) - head: PullRequestSimplePropHead = Field() - base: PullRequestSimplePropBase = Field() - links: PullRequestSimplePropLinks = Field(alias="_links") author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -78,31 +53,25 @@ class PullRequestSimple(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class PullRequestSimplePropLabelsItems(GitHubModel): - """PullRequestSimplePropLabelsItems""" +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + Timeline Commit Commented Event + """ + + event: Missing[Literal["commit_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + commit_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[CommitComment]] = Field(default=UNSET) -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) __all__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", + "CommitComment", + "TimelineCommitCommentedEvent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0265.py b/githubkit/versions/v2022_11_28/models/group_0265.py index f7a7c23e6..1899117e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0265.py +++ b/githubkit/versions/v2022_11_28/models/group_0265.py @@ -9,40 +9,33 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0020 import Repository +class BranchShort(GitHubModel): + """Branch Short -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" + Branch Short + """ - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() -class PullRequestSimplePropBase(GitHubModel): - """PullRequestSimplePropBase""" +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") sha: str = Field() - user: Union[None, SimpleUser] = Field() + url: str = Field() -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) __all__ = ( - "PullRequestSimplePropBase", - "PullRequestSimplePropHead", + "BranchShort", + "BranchShortPropCommit", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0266.py b/githubkit/versions/v2022_11_28/models/group_0266.py index c130c9910..b537858f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0266.py +++ b/githubkit/versions/v2022_11_28/models/group_0266.py @@ -13,22 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0262 import Link +class Link(GitHubModel): + """Link -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" + Hypermedia Link + """ - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + href: str = Field() -model_rebuild(PullRequestSimplePropLinks) +model_rebuild(Link) -__all__ = ("PullRequestSimplePropLinks",) +__all__ = ("Link",) diff --git a/githubkit/versions/v2022_11_28/models/group_0267.py b/githubkit/versions/v2022_11_28/models/group_0267.py index 2777128f7..48491e4bb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0267.py +++ b/githubkit/versions/v2022_11_28/models/group_0267.py @@ -9,55 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0058 import MinimalRepository +from .group_0003 import SimpleUser -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class AutoMerge(GitHubModel): + """Auto merge - Combined Commit Status + The status of auto merging a pull request. """ - state: str = Field() - statuses: list[SimpleCommitStatus] = Field() - sha: str = Field() - total_count: int = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." ) - commit_url: str = Field() - url: str = Field() - - -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" - - description: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - state: str = Field() - context: str = Field() - target_url: Union[str, None] = Field() - required: Missing[Union[bool, None]] = Field(default=UNSET) - avatar_url: Union[str, None] = Field() - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) +model_rebuild(AutoMerge) -__all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", -) +__all__ = ("AutoMerge",) diff --git a/githubkit/versions/v2022_11_28/models/group_0268.py b/githubkit/versions/v2022_11_28/models/group_0268.py index d233ecff0..ea622022b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0268.py +++ b/githubkit/versions/v2022_11_28/models/group_0268.py @@ -9,34 +9,100 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0042 import Milestone +from .group_0084 import Team +from .group_0267 import AutoMerge +from .group_0269 import PullRequestSimplePropBase, PullRequestSimplePropHead +from .group_0270 import PullRequestSimplePropLinks -class Status(GitHubModel): - """Status +class PullRequestSimple(GitHubModel): + """Pull Request Simple - The status of a commit. + Pull Request Simple """ url: str = Field() - avatar_url: Union[str, None] = Field() id: int = Field() node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field() state: str = Field() + locked: bool = Field() + title: str = Field() + user: Union[None, SimpleUser] = Field() + body: Union[str, None] = Field() + labels: list[PullRequestSimplePropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[Team], None]] = Field(default=UNSET) + head: PullRequestSimplePropHead = Field() + base: PullRequestSimplePropBase = Field() + links: PullRequestSimplePropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + + +class PullRequestSimplePropLabelsItems(GitHubModel): + """PullRequestSimplePropLabelsItems""" + + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() description: Union[str, None] = Field() - target_url: Union[str, None] = Field() - context: str = Field() - created_at: str = Field() - updated_at: str = Field() - creator: Union[None, SimpleUser] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(Status) +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) -__all__ = ("Status",) +__all__ = ( + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0269.py b/githubkit/versions/v2022_11_28/models/group_0269.py index 62120d62f..f7a7c23e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0269.py +++ b/githubkit/versions/v2022_11_28/models/group_0269.py @@ -9,58 +9,40 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0019 import LicenseSimple -from .group_0119 import CodeOfConductSimple +from .group_0003 import SimpleUser +from .group_0020 import Repository -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" - code_of_conduct: Union[None, CodeOfConductSimple] = Field() - code_of_conduct_file: Union[None, CommunityHealthFile] = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - contributing: Union[None, CommunityHealthFile] = Field() - readme: Union[None, CommunityHealthFile] = Field() - issue_template: Union[None, CommunityHealthFile] = Field() - pull_request_template: Union[None, CommunityHealthFile] = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class CommunityHealthFile(GitHubModel): - """Community Health File""" +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" - url: str = Field() - html_url: str = Field() + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class CommunityProfile(GitHubModel): - """Community Profile - - Community Profile - """ - - health_percentage: int = Field() - description: Union[str, None] = Field() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) - - -model_rebuild(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) __all__ = ( - "CommunityHealthFile", - "CommunityProfile", - "CommunityProfilePropFiles", + "PullRequestSimplePropBase", + "PullRequestSimplePropHead", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0270.py b/githubkit/versions/v2022_11_28/models/group_0270.py index d0fbefbf9..94fa7c3c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0270.py +++ b/githubkit/versions/v2022_11_28/models/group_0270.py @@ -9,39 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0224 import DiffEntry -from .group_0225 import Commit +from .group_0266 import Link -class CommitComparison(GitHubModel): - """Commit Comparison - Commit Comparison - """ +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - url: str = Field() - html_url: str = Field() - permalink_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - base_commit: Commit = Field(title="Commit", description="Commit") - merge_base_commit: Commit = Field(title="Commit", description="Commit") - status: Literal["diverged", "ahead", "behind", "identical"] = Field() - ahead_by: int = Field() - behind_by: int = Field() - total_commits: int = Field() - commits: list[Commit] = Field() - files: Missing[list[DiffEntry]] = Field(default=UNSET) + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(CommitComparison) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ("CommitComparison",) +__all__ = ("PullRequestSimplePropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0271.py b/githubkit/versions/v2022_11_28/models/group_0271.py index 95b9b271c..24078af6a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0271.py +++ b/githubkit/versions/v2022_11_28/models/group_0271.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -17,67 +18,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0061 import MinimalRepository -class ContentTree(GitHubModel): - """Content Tree - Content Tree +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status + + Combined Commit Status """ - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() + state: str = Field() + statuses: list[SimpleCommitStatus] = Field() sha: str = Field() - content: Missing[str] = Field(default=UNSET) + total_count: int = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + commit_url: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) - encoding: Missing[str] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") - - -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") -class ContentTreePropEntriesItems(GitHubModel): - """ContentTreePropEntriesItems""" +class SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() + description: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + context: str = Field() + target_url: Union[str, None] = Field() + required: Missing[Union[bool, None]] = Field(default=UNSET) + avatar_url: Union[str, None] = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") - - -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "ContentTree", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", - "ContentTreePropLinks", + "CombinedCommitStatus", + "SimpleCommitStatus", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0272.py b/githubkit/versions/v2022_11_28/models/group_0272.py index b3b3e9366..d233ecff0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0272.py +++ b/githubkit/versions/v2022_11_28/models/group_0272.py @@ -9,43 +9,34 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ContentDirectoryItems(GitHubModel): - """ContentDirectoryItems""" - - type: Literal["dir", "file", "submodule", "symlink"] = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: Missing[str] = Field(default=UNSET) - sha: str = Field() - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentDirectoryItemsPropLinks = Field(alias="_links") +class Status(GitHubModel): + """Status -class ContentDirectoryItemsPropLinks(GitHubModel): - """ContentDirectoryItemsPropLinks""" + The status of a commit. + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + url: str = Field() + avatar_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + description: Union[str, None] = Field() + target_url: Union[str, None] = Field() + context: str = Field() + created_at: str = Field() + updated_at: str = Field() + creator: Union[None, SimpleUser] = Field() -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) +model_rebuild(Status) -__all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", -) +__all__ = ("Status",) diff --git a/githubkit/versions/v2022_11_28/models/group_0273.py b/githubkit/versions/v2022_11_28/models/group_0273.py index 15cd134fc..1282b54d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0273.py +++ b/githubkit/versions/v2022_11_28/models/group_0273.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,41 +18,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0019 import LicenseSimple +from .group_0123 import CodeOfConductSimple -class ContentFile(GitHubModel): - """Content File - Content File - """ +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimple] = Field() + code_of_conduct_file: Union[None, CommunityHealthFile] = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + contributing: Union[None, CommunityHealthFile] = Field() + readme: Union[None, CommunityHealthFile] = Field() + issue_template: Union[None, CommunityHealthFile] = Field() + pull_request_template: Union[None, CommunityHealthFile] = Field() + + +class CommunityHealthFile(GitHubModel): + """Community Health File""" - type: Literal["file"] = Field() - encoding: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() + +class CommunityProfile(GitHubModel): + """Community Profile -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" + Community Profile + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + health_percentage: int = Field() + description: Union[str, None] = Field() + documentation: Union[str, None] = Field() + files: CommunityProfilePropFiles = Field() + updated_at: Union[datetime, None] = Field() + content_reports_enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(ContentFile) -model_rebuild(ContentFilePropLinks) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "ContentFile", - "ContentFilePropLinks", + "CommunityHealthFile", + "CommunityProfile", + "CommunityProfilePropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0274.py b/githubkit/versions/v2022_11_28/models/group_0274.py index bc90348f6..1de2e6135 100644 --- a/githubkit/versions/v2022_11_28/models/group_0274.py +++ b/githubkit/versions/v2022_11_28/models/group_0274.py @@ -9,44 +9,39 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0228 import DiffEntry +from .group_0229 import Commit -class ContentSymlink(GitHubModel): - """Symlink Content - An object describing a symlink +class CommitComparison(GitHubModel): + """Commit Comparison + + Commit Comparison """ - type: Literal["symlink"] = Field() - target: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSymlinkPropLinks = Field(alias="_links") - - -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) - -__all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", -) + html_url: str = Field() + permalink_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + base_commit: Commit = Field(title="Commit", description="Commit") + merge_base_commit: Commit = Field(title="Commit", description="Commit") + status: Literal["diverged", "ahead", "behind", "identical"] = Field() + ahead_by: int = Field() + behind_by: int = Field() + total_commits: int = Field() + commits: list[Commit] = Field() + files: Missing[list[DiffEntry]] = Field(default=UNSET) + + +model_rebuild(CommitComparison) + +__all__ = ("CommitComparison",) diff --git a/githubkit/versions/v2022_11_28/models/group_0275.py b/githubkit/versions/v2022_11_28/models/group_0275.py index 99580ae80..95b9b271c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0275.py +++ b/githubkit/versions/v2022_11_28/models/group_0275.py @@ -9,44 +9,75 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ContentSubmodule(GitHubModel): - """Submodule Content +class ContentTree(GitHubModel): + """Content Tree - An object describing a submodule + Content Tree """ - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() + type: str = Field() size: int = Field() name: str = Field() path: str = Field() sha: str = Field() + content: Missing[str] = Field(default=UNSET) url: str = Field() git_url: Union[str, None] = Field() html_url: Union[str, None] = Field() download_url: Union[str, None] = Field() - links: ContentSubmodulePropLinks = Field(alias="_links") + entries: Missing[list[ContentTreePropEntriesItems]] = Field(default=UNSET) + encoding: Missing[str] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) +class ContentTreePropEntriesItems(GitHubModel): + """ContentTreePropEntriesItems""" + + type: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") + + +class ContentTreePropEntriesItemsPropLinks(GitHubModel): + """ContentTreePropEntriesItemsPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentTree) +model_rebuild(ContentTreePropLinks) +model_rebuild(ContentTreePropEntriesItems) +model_rebuild(ContentTreePropEntriesItemsPropLinks) __all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", + "ContentTree", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", + "ContentTreePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0276.py b/githubkit/versions/v2022_11_28/models/group_0276.py index 446b6612c..b3b3e9366 100644 --- a/githubkit/versions/v2022_11_28/models/group_0276.py +++ b/githubkit/versions/v2022_11_28/models/group_0276.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,115 +18,34 @@ from githubkit.utils import UNSET -class FileCommit(GitHubModel): - """File Commit +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" - File Commit - """ + type: Literal["dir", "file", "submodule", "symlink"] = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: Missing[str] = Field(default=UNSET) + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentDirectoryItemsPropLinks = Field(alias="_links") - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" -class FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") - name: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - links: Missing[FileCommitPropContentPropLinks] = Field( - default=UNSET, alias="_links" - ) - -class FileCommitPropContentPropLinks(GitHubModel): - """FileCommitPropContentPropLinks""" - - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" - - sha: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) - committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) - parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) - verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) - - -class FileCommitPropCommitPropAuthor(GitHubModel): - """FileCommitPropCommitPropAuthor""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropCommitter(GitHubModel): - """FileCommitPropCommitPropCommitter""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropTree(GitHubModel): - """FileCommitPropCommitPropTree""" - - url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropParentsItems(GitHubModel): - """FileCommitPropCommitPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropVerification(GitHubModel): - """FileCommitPropCommitPropVerification""" - - verified: Missing[bool] = Field(default=UNSET) - reason: Missing[str] = Field(default=UNSET) - signature: Missing[Union[str, None]] = Field(default=UNSET) - payload: Missing[Union[str, None]] = Field(default=UNSET) - verified_at: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(FileCommit) -model_rebuild(FileCommitPropContent) -model_rebuild(FileCommitPropContentPropLinks) -model_rebuild(FileCommitPropCommit) -model_rebuild(FileCommitPropCommitPropAuthor) -model_rebuild(FileCommitPropCommitPropCommitter) -model_rebuild(FileCommitPropCommitPropTree) -model_rebuild(FileCommitPropCommitPropParentsItems) -model_rebuild(FileCommitPropCommitPropVerification) +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) __all__ = ( - "FileCommit", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropVerification", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0277.py b/githubkit/versions/v2022_11_28/models/group_0277.py index 97c97b542..15cd134fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0277.py +++ b/githubkit/versions/v2022_11_28/models/group_0277.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,60 +18,40 @@ from githubkit.utils import UNSET -class RepositoryRuleViolationError(GitHubModel): - """RepositoryRuleViolationError +class ContentFile(GitHubModel): + """Content File - Repository rule violation was detected + Content File """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) - - -class RepositoryRuleViolationErrorPropMetadata(GitHubModel): - """RepositoryRuleViolationErrorPropMetadata""" + type: Literal["file"] = Field() + encoding: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) - secret_scanning: Missing[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanning - ] = Field(default=UNSET) +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" -class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") - bypass_placeholders: Missing[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems - ] - ] = Field(default=UNSET) - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( - GitHubModel -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: Missing[str] = Field( - default=UNSET, - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", - ) - token_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(RepositoryRuleViolationError) -model_rebuild(RepositoryRuleViolationErrorPropMetadata) -model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) -model_rebuild( - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems -) +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) __all__ = ( - "RepositoryRuleViolationError", - "RepositoryRuleViolationErrorPropMetadata", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", + "ContentFile", + "ContentFilePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0278.py b/githubkit/versions/v2022_11_28/models/group_0278.py index fcc5e341f..bc90348f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0278.py +++ b/githubkit/versions/v2022_11_28/models/group_0278.py @@ -9,45 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Contributor(GitHubModel): - """Contributor +class ContentSymlink(GitHubModel): + """Symlink Content - Contributor + An object describing a symlink """ - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: str = Field() - site_admin: Missing[bool] = Field(default=UNSET) - contributions: int = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(Contributor) - -__all__ = ("Contributor",) + type: Literal["symlink"] = Field() + target: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSymlinkPropLinks = Field(alias="_links") + + +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) + +__all__ = ( + "ContentSymlink", + "ContentSymlinkPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0279.py b/githubkit/versions/v2022_11_28/models/group_0279.py index 94ae06183..99580ae80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0279.py +++ b/githubkit/versions/v2022_11_28/models/group_0279.py @@ -9,70 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0034 import DependabotAlertSecurityVulnerability -from .group_0035 import DependabotAlertSecurityAdvisory -from .group_0280 import DependabotAlertPropDependency +class ContentSubmodule(GitHubModel): + """Submodule Content -class DependabotAlert(GitHubModel): - """DependabotAlert - - A Dependabot alert. + An object describing a submodule """ - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." - ) - dependency: DependabotAlertPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(DependabotAlert) - -__all__ = ("DependabotAlert",) + type: Literal["submodule"] = Field() + submodule_git_url: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSubmodulePropLinks = Field(alias="_links") + + +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) + +__all__ = ( + "ContentSubmodule", + "ContentSubmodulePropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0280.py b/githubkit/versions/v2022_11_28/models/group_0280.py index 07187e12b..446b6612c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0280.py +++ b/githubkit/versions/v2022_11_28/models/group_0280.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -17,33 +17,116 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0033 import DependabotAlertPackage +class FileCommit(GitHubModel): + """File Commit -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + File Commit """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) - relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( - Field( - default=UNSET, - description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', - ) + content: Union[FileCommitPropContent, None] = Field() + commit: FileCommitPropCommit = Field() + + +class FileCommitPropContent(GitHubModel): + """FileCommitPropContent""" + + name: Missing[str] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + links: Missing[FileCommitPropContentPropLinks] = Field( + default=UNSET, alias="_links" ) -model_rebuild(DependabotAlertPropDependency) +class FileCommitPropContentPropLinks(GitHubModel): + """FileCommitPropContentPropLinks""" + + self_: Missing[str] = Field(default=UNSET, alias="self") + git: Missing[str] = Field(default=UNSET) + html: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommit(GitHubModel): + """FileCommitPropCommit""" + + sha: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) + committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) + parents: Missing[list[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) + verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) + + +class FileCommitPropCommitPropAuthor(GitHubModel): + """FileCommitPropCommitPropAuthor""" + + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropCommitter(GitHubModel): + """FileCommitPropCommitPropCommitter""" + + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropTree(GitHubModel): + """FileCommitPropCommitPropTree""" + + url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropParentsItems(GitHubModel): + """FileCommitPropCommitPropParentsItems""" + + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + + +class FileCommitPropCommitPropVerification(GitHubModel): + """FileCommitPropCommitPropVerification""" + + verified: Missing[bool] = Field(default=UNSET) + reason: Missing[str] = Field(default=UNSET) + signature: Missing[Union[str, None]] = Field(default=UNSET) + payload: Missing[Union[str, None]] = Field(default=UNSET) + verified_at: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(FileCommit) +model_rebuild(FileCommitPropContent) +model_rebuild(FileCommitPropContentPropLinks) +model_rebuild(FileCommitPropCommit) +model_rebuild(FileCommitPropCommitPropAuthor) +model_rebuild(FileCommitPropCommitPropCommitter) +model_rebuild(FileCommitPropCommitPropTree) +model_rebuild(FileCommitPropCommitPropParentsItems) +model_rebuild(FileCommitPropCommitPropVerification) -__all__ = ("DependabotAlertPropDependency",) +__all__ = ( + "FileCommit", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropVerification", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0281.py b/githubkit/versions/v2022_11_28/models/group_0281.py index 9f05df69c..97c97b542 100644 --- a/githubkit/versions/v2022_11_28/models/group_0281.py +++ b/githubkit/versions/v2022_11_28/models/group_0281.py @@ -9,43 +9,67 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class DependencyGraphDiffItems(GitHubModel): - """DependencyGraphDiffItems""" - - change_type: Literal["added", "removed"] = Field() - manifest: str = Field() - ecosystem: str = Field() - name: str = Field() - version: str = Field() - package_url: Union[str, None] = Field() - license_: Union[str, None] = Field(alias="license") - source_repository_url: Union[str, None] = Field() - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() - scope: Literal["unknown", "runtime", "development"] = Field( - description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." - ) +class RepositoryRuleViolationError(GitHubModel): + """RepositoryRuleViolationError + + Repository rule violation was detected + """ + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + metadata: Missing[RepositoryRuleViolationErrorPropMetadata] = Field(default=UNSET) + + +class RepositoryRuleViolationErrorPropMetadata(GitHubModel): + """RepositoryRuleViolationErrorPropMetadata""" + secret_scanning: Missing[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanning + ] = Field(default=UNSET) -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = Field() +class RepositoryRuleViolationErrorPropMetadataPropSecretScanning(GitHubModel): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + bypass_placeholders: Missing[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems + ] + ] = Field(default=UNSET) -model_rebuild(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems( + GitHubModel +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: Missing[str] = Field( + default=UNSET, + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes.", + ) + token_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(RepositoryRuleViolationError) +model_rebuild(RepositoryRuleViolationErrorPropMetadata) +model_rebuild(RepositoryRuleViolationErrorPropMetadataPropSecretScanning) +model_rebuild( + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems +) __all__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", + "RepositoryRuleViolationError", + "RepositoryRuleViolationErrorPropMetadata", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanning", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0282.py b/githubkit/versions/v2022_11_28/models/group_0282.py index b7506354d..fcc5e341f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0282.py +++ b/githubkit/versions/v2022_11_28/models/group_0282.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,153 +18,36 @@ from githubkit.utils import UNSET -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM +class Contributor(GitHubModel): + """Contributor - A schema for the SPDX JSON format returned by the Dependency Graph. + Contributor """ - sbom: DependencyGraphSpdxSbomPropSbom = Field() - - -class DependencyGraphSpdxSbomPropSbom(GitHubModel): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str = Field( - alias="SPDXID", description="The SPDX identifier for the SPDX document." - ) - spdx_version: str = Field( - alias="spdxVersion", - description="The version of the SPDX specification that this document conforms to.", - ) - comment: Missing[str] = Field( - default=UNSET, description="An optional comment about the SPDX document." - ) - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( - alias="creationInfo" - ) - name: str = Field(description="The name of the SPDX document.") - data_license: str = Field( - alias="dataLicense", - description="The license under which the SPDX document is licensed.", - ) - document_namespace: str = Field( - alias="documentNamespace", description="The namespace for the SPDX document." - ) - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() - relationships: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] - ] = Field(default=UNSET) - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str = Field(description="The date and time the SPDX document was created.") - creators: list[str] = Field( - description="The tools that were used to generate the SPDX document." - ) - - -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - - relationship_type: Missing[str] = Field( - default=UNSET, - alias="relationshipType", - description="The type of relationship between the two SPDX elements.", - ) - spdx_element_id: Missing[str] = Field( - default=UNSET, - alias="spdxElementId", - description="The SPDX identifier of the package that is the source of the relationship.", - ) - related_spdx_element: Missing[str] = Field( - default=UNSET, - alias="relatedSpdxElement", - description="The SPDX identifier of the package that is the target of the relationship.", - ) - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: Missing[str] = Field( - default=UNSET, - alias="SPDXID", - description="A unique SPDX identifier for the package.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the package.") - version_info: Missing[str] = Field( - default=UNSET, - alias="versionInfo", - description="The version of the package. If the package does not have an exact version specified,\na version range is given.", - ) - download_location: Missing[str] = Field( - default=UNSET, - alias="downloadLocation", - description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", - ) - files_analyzed: Missing[bool] = Field( - default=UNSET, - alias="filesAnalyzed", - description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", - ) - license_concluded: Missing[str] = Field( - default=UNSET, - alias="licenseConcluded", - description="The license of the package as determined while creating the SPDX document.", - ) - license_declared: Missing[str] = Field( - default=UNSET, - alias="licenseDeclared", - description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", - ) - supplier: Missing[str] = Field( - default=UNSET, - description="The distribution source of this package, or NOASSERTION if this was not determined.", - ) - copyright_text: Missing[str] = Field( - default=UNSET, - alias="copyrightText", - description="The copyright holders of the package, and any dates present with those notices, if available.", - ) - external_refs: Missing[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] - ] = Field(default=UNSET, alias="externalRefs") - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( - GitHubModel -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - - reference_category: str = Field( - alias="referenceCategory", - description="The category of reference to an external resource this reference refers to.", - ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", - ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", - ) - - -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) - -__all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", -) + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: str = Field() + site_admin: Missing[bool] = Field(default=UNSET) + contributions: int = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(Contributor) + +__all__ = ("Contributor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0283.py b/githubkit/versions/v2022_11_28/models/group_0283.py index ffac1fb50..0d4a7fad7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0283.py +++ b/githubkit/versions/v2022_11_28/models/group_0283.py @@ -9,17 +9,70 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from datetime import datetime +from typing import Annotated, Literal, Union +from pydantic import Field -class Metadata(ExtraGitHubModel): - """metadata +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +from .group_0003 import SimpleUser +from .group_0034 import DependabotAlertSecurityVulnerability +from .group_0035 import DependabotAlertSecurityAdvisory +from .group_0284 import DependabotAlertPropDependency + + +class DependabotAlert(GitHubModel): + """DependabotAlert + + A Dependabot alert. """ + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." + ) + dependency: DependabotAlertPropDependency = Field( + description="Details for the vulnerable dependency." + ) + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." + ) + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + -model_rebuild(Metadata) +model_rebuild(DependabotAlert) -__all__ = ("Metadata",) +__all__ = ("DependabotAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0284.py b/githubkit/versions/v2022_11_28/models/group_0284.py index d7ba681ea..07187e12b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0284.py +++ b/githubkit/versions/v2022_11_28/models/group_0284.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,36 +17,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0283 import Metadata +from .group_0033 import DependabotAlertPackage -class Dependency(GitHubModel): - """Dependency""" +class DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency - package_url: Missing[str] = Field( - pattern="^pkg", - default=UNSET, - description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", - ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + Details for the vulnerable dependency. + """ + + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - relationship: Missing[Literal["direct", "indirect"]] = Field( + manifest_path: Missing[str] = Field( default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - scope: Missing[Literal["runtime", "development"]] = Field( - default=UNSET, - description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) - dependencies: Missing[list[str]] = Field( - default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", + relationship: Missing[Union[None, Literal["unknown", "direct", "transitive"]]] = ( + Field( + default=UNSET, + description='The vulnerable dependency\'s relationship to your project.\n\n> [!NOTE]\n> We are rolling out support for dependency relationship across ecosystems. This value will be "unknown" for all dependencies in unsupported ecosystems.\n', + ) ) -model_rebuild(Dependency) +model_rebuild(DependabotAlertPropDependency) -__all__ = ("Dependency",) +__all__ = ("DependabotAlertPropDependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0285.py b/githubkit/versions/v2022_11_28/models/group_0285.py index a28795bec..9f05df69c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0285.py +++ b/githubkit/versions/v2022_11_28/models/group_0285.py @@ -9,52 +9,43 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0283 import Metadata - +from typing import Literal, Union -class Manifest(GitHubModel): - """Manifest""" +from pydantic import Field - name: str = Field(description="The name of the manifest.") - file: Missing[ManifestPropFile] = Field(default=UNSET) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - resolved: Missing[ManifestPropResolved] = Field( - default=UNSET, description="A collection of resolved package dependencies." - ) +from githubkit.compat import GitHubModel, model_rebuild -class ManifestPropFile(GitHubModel): - """ManifestPropFile""" +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" - source_location: Missing[str] = Field( - default=UNSET, - description="The path of the manifest file relative to the root of the Git repository.", + change_type: Literal["added", "removed"] = Field() + manifest: str = Field() + ecosystem: str = Field() + name: str = Field() + version: str = Field() + package_url: Union[str, None] = Field() + license_: Union[str, None] = Field(alias="license") + source_repository_url: Union[str, None] = Field() + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() + scope: Literal["unknown", "runtime", "development"] = Field( + description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." ) -class ManifestPropResolved(ExtraGitHubModel): - """ManifestPropResolved +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - A collection of resolved package dependencies. - """ + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) __all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0286.py b/githubkit/versions/v2022_11_28/models/group_0286.py index c2f6821ce..b7506354d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0286.py +++ b/githubkit/versions/v2022_11_28/models/group_0286.py @@ -9,88 +9,160 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0283 import Metadata - -class Snapshot(GitHubModel): - """snapshot +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM - Create a new snapshot of a repository's dependencies. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - version: int = Field( - description="The version of the repository snapshot submission." + sbom: DependencyGraphSpdxSbomPropSbom = Field() + + +class DependencyGraphSpdxSbomPropSbom(GitHubModel): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str = Field( + alias="SPDXID", description="The SPDX identifier for the SPDX document." ) - job: SnapshotPropJob = Field() - sha: str = Field( - min_length=40, - max_length=40, - description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + spdx_version: str = Field( + alias="spdxVersion", + description="The version of the SPDX specification that this document conforms to.", ) - ref: str = Field( - pattern="^refs/", - description="The repository branch that triggered this snapshot.", + comment: Missing[str] = Field( + default=UNSET, description="An optional comment about the SPDX document." ) - detector: SnapshotPropDetector = Field( - description="A description of the detector used." + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( + alias="creationInfo" ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + name: str = Field(description="The name of the SPDX document.") + data_license: str = Field( + alias="dataLicense", + description="The license under which the SPDX document is licensed.", ) - manifests: Missing[SnapshotPropManifests] = Field( - default=UNSET, - description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + document_namespace: str = Field( + alias="documentNamespace", description="The namespace for the SPDX document." ) - scanned: datetime = Field(description="The time at which the snapshot was scanned.") + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() + relationships: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItems] + ] = Field(default=UNSET) -class SnapshotPropJob(GitHubModel): - """SnapshotPropJob""" +class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - id: str = Field(description="The external ID of the job.") - correlator: str = Field( - description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + created: str = Field(description="The date and time the SPDX document was created.") + creators: list[str] = Field( + description="The tools that were used to generate the SPDX document." ) - html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") -class SnapshotPropDetector(GitHubModel): - """SnapshotPropDetector +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - A description of the detector used. - """ + relationship_type: Missing[str] = Field( + default=UNSET, + alias="relationshipType", + description="The type of relationship between the two SPDX elements.", + ) + spdx_element_id: Missing[str] = Field( + default=UNSET, + alias="spdxElementId", + description="The SPDX identifier of the package that is the source of the relationship.", + ) + related_spdx_element: Missing[str] = Field( + default=UNSET, + alias="relatedSpdxElement", + description="The SPDX identifier of the package that is the target of the relationship.", + ) - name: str = Field(description="The name of the detector used.") - version: str = Field(description="The version of the detector used.") - url: str = Field(description="The url of the detector used.") + +class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: Missing[str] = Field( + default=UNSET, + alias="SPDXID", + description="A unique SPDX identifier for the package.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( + default=UNSET, + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", + ) + download_location: Missing[str] = Field( + default=UNSET, + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", + ) + files_analyzed: Missing[bool] = Field( + default=UNSET, + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", + ) + license_concluded: Missing[str] = Field( + default=UNSET, + alias="licenseConcluded", + description="The license of the package as determined while creating the SPDX document.", + ) + license_declared: Missing[str] = Field( + default=UNSET, + alias="licenseDeclared", + description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", + ) + supplier: Missing[str] = Field( + default=UNSET, + description="The distribution source of this package, or NOASSERTION if this was not determined.", + ) + copyright_text: Missing[str] = Field( + default=UNSET, + alias="copyrightText", + description="The copyright holders of the package, and any dates present with those notices, if available.", + ) + external_refs: Missing[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] + ] = Field(default=UNSET, alias="externalRefs") -class SnapshotPropManifests(ExtraGitHubModel): - """SnapshotPropManifests +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( + GitHubModel +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ + reference_category: str = Field( + alias="referenceCategory", + description="The category of reference to an external resource this reference refers to.", + ) + reference_locator: str = Field( + alias="referenceLocator", + description="A locator for the particular external resource this reference refers to.", + ) + reference_type: str = Field( + alias="referenceType", + description="The category of reference to an external resource this reference refers to.", + ) -model_rebuild(Snapshot) -model_rebuild(SnapshotPropJob) -model_rebuild(SnapshotPropDetector) -model_rebuild(SnapshotPropManifests) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropRelationshipsItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) __all__ = ( - "Snapshot", - "SnapshotPropDetector", - "SnapshotPropJob", - "SnapshotPropManifests", + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0287.py b/githubkit/versions/v2022_11_28/models/group_0287.py index 38a74a74a..ffac1fb50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0287.py +++ b/githubkit/versions/v2022_11_28/models/group_0287.py @@ -9,58 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class Metadata(ExtraGitHubModel): + """metadata -from .group_0003 import SimpleUser -from .group_0010 import Integration - - -class DeploymentStatus(GitHubModel): - """Deployment Status - - The status of a deployment. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ - url: str = Field() - id: int = Field() - node_id: str = Field() - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] = Field(description="The state of the status.") - creator: Union[None, SimpleUser] = Field() - description: str = Field( - max_length=140, default="", description="A short description of the status." - ) - environment: Missing[str] = Field( - default=UNSET, - description="The environment of the deployment that the status is for.", - ) - target_url: str = Field( - default="", - description="Closing down notice: the URL to associate with this status.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - deployment_url: str = Field() - repository_url: str = Field() - environment_url: Missing[str] = Field( - default=UNSET, description="The URL for accessing your environment." - ) - log_url: Missing[str] = Field( - default=UNSET, description="The URL to associate with this status." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - -model_rebuild(DeploymentStatus) +model_rebuild(Metadata) -__all__ = ("DeploymentStatus",) +__all__ = ("Metadata",) diff --git a/githubkit/versions/v2022_11_28/models/group_0288.py b/githubkit/versions/v2022_11_28/models/group_0288.py index 2969bea8b..a1966631d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0288.py +++ b/githubkit/versions/v2022_11_28/models/group_0288.py @@ -9,26 +9,44 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0287 import Metadata -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ +class Dependency(GitHubModel): + """Dependency""" - protected_branches: bool = Field( - description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." + package_url: Missing[str] = Field( + pattern="^pkg", + default=UNSET, + description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", + ) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + relationship: Missing[Literal["direct", "indirect"]] = Field( + default=UNSET, + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + ) + scope: Missing[Literal["runtime", "development"]] = Field( + default=UNSET, + description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", ) - custom_branch_policies: bool = Field( - description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." + dependencies: Missing[list[str]] = Field( + default=UNSET, + description="Array of package-url (PURLs) of direct child dependencies.", ) -model_rebuild(DeploymentBranchPolicySettings) +model_rebuild(Dependency) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ("Dependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0289.py b/githubkit/versions/v2022_11_28/models/group_0289.py index 914911d63..2b9a7665e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0289.py +++ b/githubkit/versions/v2022_11_28/models/group_0289.py @@ -9,93 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0288 import DeploymentBranchPolicySettings -from .group_0290 import EnvironmentPropProtectionRulesItemsAnyof1 - +from .group_0287 import Metadata -class Environment(GitHubModel): - """Environment - Details of a deployment environment - """ +class Manifest(GitHubModel): + """Manifest""" - id: int = Field(description="The id of the environment.") - node_id: str = Field() - name: str = Field(description="The name of the environment.") - url: str = Field() - html_url: str = Field() - created_at: datetime = Field( - description="The time that the environment was created, in ISO 8601 format." - ) - updated_at: datetime = Field( - description="The time that the environment was last updated, in ISO 8601 format." - ) - protection_rules: Missing[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( default=UNSET, - description="Built-in deployment protection rules for the environment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) -class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof0""" +class ManifestPropFile(GitHubModel): + """ManifestPropFile""" - id: int = Field() - node_id: str = Field() - type: str = Field() - wait_timer: Missing[int] = Field( + source_location: Missing[str] = Field( default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + description="The path of the manifest file relative to the root of the Git repository.", ) -class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof2""" +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved - id: int = Field() - node_id: str = Field() - type: str = Field() - - -class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of environments in this repository" - ) - environments: Missing[list[Environment]] = Field(default=UNSET) + A collection of resolved package dependencies. + """ -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) __all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0290.py b/githubkit/versions/v2022_11_28/models/group_0290.py index 17cfc3ef9..334abec72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0290.py +++ b/githubkit/versions/v2022_11_28/models/group_0290.py @@ -9,33 +9,88 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0291 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +from .group_0287 import Metadata + +class Snapshot(GitHubModel): + """snapshot -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" + Create a new snapshot of a repository's dependencies. + """ - id: int = Field() - node_id: str = Field() - prevent_self_review: Missing[bool] = Field( + version: int = Field( + description="The version of the repository snapshot submission." + ) + job: SnapshotPropJob = Field() + sha: str = Field( + min_length=40, + max_length=40, + description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + ) + ref: str = Field( + pattern="^refs/", + description="The repository branch that triggered this snapshot.", + ) + detector: SnapshotPropDetector = Field( + description="A description of the detector used." + ) + metadata: Missing[Metadata] = Field( default=UNSET, - description="Whether deployments to this environment can be approved by the user who created the deployment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - type: str = Field() - reviewers: Missing[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] - ] = Field( + manifests: Missing[SnapshotPropManifests] = Field( default=UNSET, - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", ) + scanned: datetime = Field(description="The time at which the snapshot was scanned.") + + +class SnapshotPropJob(GitHubModel): + """SnapshotPropJob""" + + id: str = Field(description="The external ID of the job.") + correlator: str = Field( + description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + ) + html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") + + +class SnapshotPropDetector(GitHubModel): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str = Field(description="The name of the detector used.") + version: str = Field(description="The version of the detector used.") + url: str = Field(description="The url of the detector used.") + + +class SnapshotPropManifests(ExtraGitHubModel): + """SnapshotPropManifests + + A collection of package manifests, which are a collection of related + dependencies declared in a file or representing a logical group of dependencies. + """ -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ( + "Snapshot", + "SnapshotPropDetector", + "SnapshotPropJob", + "SnapshotPropManifests", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0291.py b/githubkit/versions/v2022_11_28/models/group_0291.py index 212e6a491..38a74a74a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0291.py +++ b/githubkit/versions/v2022_11_28/models/group_0291.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,18 +19,48 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0080 import Team +from .group_0010 import Integration -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class DeploymentStatus(GitHubModel): + """Deployment Status - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + The status of a deployment. + """ + + url: str = Field() + id: int = Field() + node_id: str = Field() + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] = Field(description="The state of the status.") + creator: Union[None, SimpleUser] = Field() + description: str = Field( + max_length=140, default="", description="A short description of the status." + ) + environment: Missing[str] = Field( + default=UNSET, + description="The environment of the deployment that the status is for.", + ) + target_url: str = Field( + default="", + description="Closing down notice: the URL to associate with this status.", + ) + created_at: datetime = Field() + updated_at: datetime = Field() + deployment_url: str = Field() + repository_url: str = Field() + environment_url: Missing[str] = Field( + default=UNSET, description="The URL for accessing your environment." + ) + log_url: Missing[str] = Field( + default=UNSET, description="The URL to associate with this status." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +model_rebuild(DeploymentStatus) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ("DeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0292.py b/githubkit/versions/v2022_11_28/models/group_0292.py index 2e5fcc0db..2969bea8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0292.py +++ b/githubkit/versions/v2022_11_28/models/group_0292.py @@ -9,26 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings + + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ - name: str = Field( - description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + custom_branch_policies: bool = Field( + description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." ) -model_rebuild(DeploymentBranchPolicyNamePatternWithType) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ("DeploymentBranchPolicySettings",) diff --git a/githubkit/versions/v2022_11_28/models/group_0293.py b/githubkit/versions/v2022_11_28/models/group_0293.py index 11e46307f..099d9ff35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0293.py +++ b/githubkit/versions/v2022_11_28/models/group_0293.py @@ -9,19 +9,93 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0292 import DeploymentBranchPolicySettings +from .group_0294 import EnvironmentPropProtectionRulesItemsAnyof1 + + +class Environment(GitHubModel): + """Environment + + Details of a deployment environment + """ + + id: int = Field(description="The id of the environment.") + node_id: str = Field() + name: str = Field(description="The name of the environment.") + url: str = Field() + html_url: str = Field() + created_at: datetime = Field( + description="The time that the environment was created, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The time that the environment was last updated, in ISO 8601 format." + ) + protection_rules: Missing[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0, + EnvironmentPropProtectionRulesItemsAnyof1, + EnvironmentPropProtectionRulesItemsAnyof2, + ] + ] + ] = Field( + default=UNSET, + description="Built-in deployment protection rules for the environment.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" - name: str = Field( - description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" ) + environments: Missing[list[Environment]] = Field(default=UNSET) -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ( + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0294.py b/githubkit/versions/v2022_11_28/models/group_0294.py index ec57f6950..9374acfec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0294.py +++ b/githubkit/versions/v2022_11_28/models/group_0294.py @@ -12,28 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0295 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems -class CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. - """ +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - id: int = Field( - description="The unique identifier of the deployment protection rule integration." + id: int = Field() + node_id: str = Field() + prevent_self_review: Missing[bool] = Field( + default=UNSET, + description="Whether deployments to this environment can be approved by the user who created the deployment.", ) - slug: str = Field( - description="The slugified name of the deployment protection rule integration." - ) - integration_url: str = Field( - description="The URL for the endpoint to get details about the app." - ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + type: str = Field() + reviewers: Missing[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] + ] = Field( + default=UNSET, + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", ) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0295.py b/githubkit/versions/v2022_11_28/models/group_0295.py index 4381a20c3..77c5e09b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0295.py +++ b/githubkit/versions/v2022_11_28/models/group_0295.py @@ -9,58 +9,27 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0294 import CustomDeploymentRuleApp - - -class DeploymentProtectionRule(GitHubModel): - """Deployment protection rule - - Deployment protection rule - """ - - id: int = Field( - description="The unique identifier for the deployment protection rule." - ) - node_id: str = Field(description="The node ID for the deployment protection rule.") - enabled: bool = Field( - description="Whether the deployment protection rule is enabled for the environment." - ) - app: CustomDeploymentRuleApp = Field( - title="Custom deployment protection rule app", - description="A GitHub App that is providing a custom deployment protection rule.", - ) +from .group_0003 import SimpleUser +from .group_0084 import Team -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: Missing[int] = Field( - default=UNSET, - description="The number of enabled custom deployment protection rules for this environment", - ) - custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( - default=UNSET + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0296.py b/githubkit/versions/v2022_11_28/models/group_0296.py index 23227f8fe..2e5fcc0db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0296.py +++ b/githubkit/versions/v2022_11_28/models/group_0296.py @@ -9,21 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ShortBlob(GitHubModel): - """Short Blob - - Short Blob - """ +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - url: str = Field() - sha: str = Field() + name: str = Field( + description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" + ) -model_rebuild(ShortBlob) +model_rebuild(DeploymentBranchPolicyNamePatternWithType) -__all__ = ("ShortBlob",) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0297.py b/githubkit/versions/v2022_11_28/models/group_0297.py index 048d8d3ff..11e46307f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0297.py +++ b/githubkit/versions/v2022_11_28/models/group_0297.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class Blob(GitHubModel): - """Blob - Blob - """ +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" - content: str = Field() - encoding: str = Field() - url: str = Field() - sha: str = Field() - size: Union[int, None] = Field() - node_id: str = Field() - highlighted_content: Missing[str] = Field(default=UNSET) + name: str = Field( + description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) -model_rebuild(Blob) +model_rebuild(DeploymentBranchPolicyNamePattern) -__all__ = ("Blob",) +__all__ = ("DeploymentBranchPolicyNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0298.py b/githubkit/versions/v2022_11_28/models/group_0298.py index 36b9120b4..ec57f6950 100644 --- a/githubkit/versions/v2022_11_28/models/group_0298.py +++ b/githubkit/versions/v2022_11_28/models/group_0298.py @@ -9,95 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class GitCommit(GitHubModel): - """Git Commit +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app - Low-level Git commit operations within a repository + A GitHub App that is providing a custom deployment protection rule. """ - sha: str = Field(description="SHA for the commit") - node_id: str = Field() - url: str = Field() - author: GitCommitPropAuthor = Field( - description="Identifying information for the git-user" + id: int = Field( + description="The unique identifier of the deployment protection rule integration." ) - committer: GitCommitPropCommitter = Field( - description="Identifying information for the git-user" + slug: str = Field( + description="The slugified name of the deployment protection rule integration." + ) + integration_url: str = Field( + description="The URL for the endpoint to get details about the app." + ) + node_id: str = Field( + description="The node ID for the deployment protection rule integration." ) - message: str = Field(description="Message describing the purpose of the commit") - tree: GitCommitPropTree = Field() - parents: list[GitCommitPropParentsItems] = Field() - verification: GitCommitPropVerification = Field() - html_url: str = Field() - - -class GitCommitPropAuthor(GitHubModel): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropTree(GitHubModel): - """GitCommitPropTree""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - - -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Union[str, None] = Field() -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(CustomDeploymentRuleApp) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropParentsItems", - "GitCommitPropTree", - "GitCommitPropVerification", -) +__all__ = ("CustomDeploymentRuleApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0299.py b/githubkit/versions/v2022_11_28/models/group_0299.py index ee31507d1..13febd9a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0299.py +++ b/githubkit/versions/v2022_11_28/models/group_0299.py @@ -12,32 +12,55 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0298 import CustomDeploymentRuleApp -class GitRef(GitHubModel): - """Git Reference - Git references within a repository - """ - - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") +class DeploymentProtectionRule(GitHubModel): + """Deployment protection rule + Deployment protection rule + """ -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" + id: int = Field( + description="The unique identifier for the deployment protection rule." + ) + node_id: str = Field(description="The node ID for the deployment protection rule.") + enabled: bool = Field( + description="Whether the deployment protection rule is enabled for the environment." + ) + app: CustomDeploymentRuleApp = Field( + title="Custom deployment protection rule app", + description="A GitHub App that is providing a custom deployment protection rule.", + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 + + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") - url: str = Field() + total_count: Missing[int] = Field( + default=UNSET, + description="The number of enabled custom deployment protection rules for this environment", + ) + custom_deployment_protection_rules: Missing[list[DeploymentProtectionRule]] = Field( + default=UNSET + ) -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) __all__ = ( - "GitRef", - "GitRefPropObject", + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0300.py b/githubkit/versions/v2022_11_28/models/group_0300.py index 767746f08..23227f8fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0300.py +++ b/githubkit/versions/v2022_11_28/models/group_0300.py @@ -12,50 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0223 import Verification +class ShortBlob(GitHubModel): + """Short Blob -class GitTag(GitHubModel): - """Git Tag - - Metadata for a Git tag + Short Blob """ - node_id: str = Field() - tag: str = Field(description="Name of the tag") - sha: str = Field() - url: str = Field(description="URL for the tag") - message: str = Field(description="Message describing the purpose of the tag") - tagger: GitTagPropTagger = Field() - object_: GitTagPropObject = Field(alias="object") - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - - date: str = Field() - email: str = Field() - name: str = Field() - - -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" - - sha: str = Field() - type: str = Field() url: str = Field() + sha: str = Field() -model_rebuild(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) +model_rebuild(ShortBlob) -__all__ = ( - "GitTag", - "GitTagPropObject", - "GitTagPropTagger", -) +__all__ = ("ShortBlob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0301.py b/githubkit/versions/v2022_11_28/models/group_0301.py index a5ca2832d..048d8d3ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0301.py +++ b/githubkit/versions/v2022_11_28/models/group_0301.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,35 +18,21 @@ from githubkit.utils import UNSET -class GitTree(GitHubModel): - """Git Tree +class Blob(GitHubModel): + """Blob - The hierarchy between files in a Git repository. + Blob """ + content: str = Field() + encoding: str = Field() + url: str = Field() sha: str = Field() - url: Missing[str] = Field(default=UNSET) - truncated: bool = Field() - tree: list[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" - ) - - -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" - - path: str = Field() - mode: str = Field() - type: str = Field() - sha: str = Field() - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + size: Union[int, None] = Field() + node_id: str = Field() + highlighted_content: Missing[str] = Field(default=UNSET) -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(Blob) -__all__ = ( - "GitTree", - "GitTreePropTreeItems", -) +__all__ = ("Blob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0302.py b/githubkit/versions/v2022_11_28/models/group_0302.py index 544751a06..36b9120b4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0302.py +++ b/githubkit/versions/v2022_11_28/models/group_0302.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field @@ -16,14 +17,87 @@ from githubkit.compat import GitHubModel, model_rebuild -class HookResponse(GitHubModel): - """Hook Response""" +class GitCommit(GitHubModel): + """Git Commit - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + Low-level Git commit operations within a repository + """ + sha: str = Field(description="SHA for the commit") + node_id: str = Field() + url: str = Field() + author: GitCommitPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: GitCommitPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: GitCommitPropTree = Field() + parents: list[GitCommitPropParentsItems] = Field() + verification: GitCommitPropVerification = Field() + html_url: str = Field() -model_rebuild(HookResponse) -__all__ = ("HookResponse",) +class GitCommitPropAuthor(GitHubModel): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropCommitter(GitHubModel): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class GitCommitPropVerification(GitHubModel): + """GitCommitPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() + + +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) + +__all__ = ( + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropParentsItems", + "GitCommitPropTree", + "GitCommitPropVerification", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0303.py b/githubkit/versions/v2022_11_28/models/group_0303.py index e4ab48763..ee31507d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0303.py +++ b/githubkit/versions/v2022_11_28/models/group_0303.py @@ -9,47 +9,35 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0011 import WebhookConfig -from .group_0302 import HookResponse -class Hook(GitHubModel): - """Webhook +class GitRef(GitHubModel): + """Git Reference - Webhooks for repositories. + Git references within a repository """ + ref: str = Field() + node_id: str = Field() + url: str = Field() + object_: GitRefPropObject = Field(alias="object") + + +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" + type: str = Field() - id: int = Field(description="Unique identifier of the webhook.") - name: str = Field( - description="The name of a valid service, use 'web' for a webhook." - ) - active: bool = Field( - description="Determines whether the hook is actually triggered on pushes." - ) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - config: WebhookConfig = Field( - title="Webhook Configuration", description="Configuration object of the webhook" - ) - updated_at: datetime = Field() - created_at: datetime = Field() + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") url: str = Field() - test_url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - last_response: HookResponse = Field(title="Hook Response") -model_rebuild(Hook) +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) -__all__ = ("Hook",) +__all__ = ( + "GitRef", + "GitRefPropObject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0304.py b/githubkit/versions/v2022_11_28/models/group_0304.py index dc0d94e75..a11262c83 100644 --- a/githubkit/versions/v2022_11_28/models/group_0304.py +++ b/githubkit/versions/v2022_11_28/models/group_0304.py @@ -9,75 +9,53 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0227 import Verification + -class Import(GitHubModel): - """Import +class GitTag(GitHubModel): + """Git Tag - A repository import from an external source. + Metadata for a Git tag """ - vcs: Union[str, None] = Field() - use_lfs: Missing[bool] = Field(default=UNSET) - vcs_url: str = Field(description="The URL of the originating repository.") - svc_root: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] = Field() - status_text: Missing[Union[str, None]] = Field(default=UNSET) - failed_step: Missing[Union[str, None]] = Field(default=UNSET) - error_message: Missing[Union[str, None]] = Field(default=UNSET) - import_percent: Missing[Union[int, None]] = Field(default=UNSET) - commit_count: Missing[Union[int, None]] = Field(default=UNSET) - push_percent: Missing[Union[int, None]] = Field(default=UNSET) - has_large_files: Missing[bool] = Field(default=UNSET) - large_files_size: Missing[int] = Field(default=UNSET) - large_files_count: Missing[int] = Field(default=UNSET) - project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - authors_count: Missing[Union[int, None]] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) + node_id: str = Field() + tag: str = Field(description="Name of the tag") + sha: str = Field() + url: str = Field(description="URL for the tag") + message: str = Field(description="Message describing the purpose of the tag") + tagger: GitTagPropTagger = Field() + object_: GitTagPropObject = Field(alias="object") + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" -class ImportPropProjectChoicesItems(GitHubModel): - """ImportPropProjectChoicesItems""" + date: str = Field() + email: str = Field() + name: str = Field() - vcs: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - human_name: Missing[str] = Field(default=UNSET) + +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" + + sha: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(Import) -model_rebuild(ImportPropProjectChoicesItems) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) __all__ = ( - "Import", - "ImportPropProjectChoicesItems", + "GitTag", + "GitTagPropObject", + "GitTagPropTagger", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0305.py b/githubkit/versions/v2022_11_28/models/group_0305.py index 7ed1d272d..a5ca2832d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0305.py +++ b/githubkit/versions/v2022_11_28/models/group_0305.py @@ -12,23 +12,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PorterAuthor(GitHubModel): - """Porter Author +class GitTree(GitHubModel): + """Git Tree - Porter Author + The hierarchy between files in a Git repository. """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() - email: str = Field() - name: str = Field() - url: str = Field() - import_url: str = Field() + sha: str = Field() + url: Missing[str] = Field(default=UNSET) + truncated: bool = Field() + tree: list[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" + ) -model_rebuild(PorterAuthor) +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" -__all__ = ("PorterAuthor",) + path: str = Field() + mode: str = Field() + type: str = Field() + sha: str = Field() + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) + +__all__ = ( + "GitTree", + "GitTreePropTreeItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0306.py b/githubkit/versions/v2022_11_28/models/group_0306.py index c54f24120..544751a06 100644 --- a/githubkit/versions/v2022_11_28/models/group_0306.py +++ b/githubkit/versions/v2022_11_28/models/group_0306.py @@ -9,23 +9,21 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PorterLargeFile(GitHubModel): - """Porter Large File - - Porter Large File - """ +class HookResponse(GitHubModel): + """Hook Response""" - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = Field() + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = Field() -model_rebuild(PorterLargeFile) +model_rebuild(HookResponse) -__all__ = ("PorterLargeFile",) +__all__ = ("HookResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0307.py b/githubkit/versions/v2022_11_28/models/group_0307.py index 6c935fb4b..b60a3006f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0307.py +++ b/githubkit/versions/v2022_11_28/models/group_0307.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from pydantic import Field @@ -18,141 +17,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0042 import Issue -from .group_0080 import Team +from .group_0011 import WebhookConfig +from .group_0306 import HookResponse -class IssueEvent(GitHubModel): - """Issue Event +class Hook(GitHubModel): + """Webhook - Issue Event + Webhooks for repositories. """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: Union[None, SimpleUser] = Field() - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: datetime = Field() - issue: Missing[Union[None, Issue]] = Field(default=UNSET) - label: Missing[IssueEventLabel] = Field( - default=UNSET, title="Issue Event Label", description="Issue Event Label" - ) - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - dismissed_review: Missing[IssueEventDismissedReview] = Field( - default=UNSET, title="Issue Event Dismissed Review" + type: str = Field() + id: int = Field(description="Unique identifier of the webhook.") + name: str = Field( + description="The name of a valid service, use 'web' for a webhook." ) - milestone: Missing[IssueEventMilestone] = Field( - default=UNSET, - title="Issue Event Milestone", - description="Issue Event Milestone", + active: bool = Field( + description="Determines whether the hook is actually triggered on pushes." ) - project_card: Missing[IssueEventProjectCard] = Field( - default=UNSET, - title="Issue Event Project Card", - description="Issue Event Project Card", + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - rename: Missing[IssueEventRename] = Field( - default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + config: WebhookConfig = Field( + title="Webhook Configuration", description="Configuration object of the webhook" ) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] = Field( - default=UNSET, - title="author_association", - description="How the author is associated with the repository.", - ) - lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -class IssueEventLabel(GitHubModel): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] = Field() - color: Union[str, None] = Field() - - -class IssueEventDismissedReview(GitHubModel): - """Issue Event Dismissed Review""" - - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) - - -class IssueEventMilestone(GitHubModel): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str = Field() - - -class IssueEventProjectCard(GitHubModel): - """Issue Event Project Card - - Issue Event Project Card - """ - + updated_at: datetime = Field() + created_at: datetime = Field() url: str = Field() - id: int = Field() - project_url: str = Field() - project_id: int = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -class IssueEventRename(GitHubModel): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str = Field(alias="from") - to: str = Field() + test_url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + last_response: HookResponse = Field(title="Hook Response") -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) +model_rebuild(Hook) -__all__ = ( - "IssueEvent", - "IssueEventDismissedReview", - "IssueEventLabel", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", -) +__all__ = ("Hook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0308.py b/githubkit/versions/v2022_11_28/models/group_0308.py index 3ec22fb63..dc0d94e75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0308.py +++ b/githubkit/versions/v2022_11_28/models/group_0308.py @@ -14,40 +14,70 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration +class Import(GitHubModel): + """Import -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event - - Labeled Issue Event + A repository import from an external source. """ - id: int = Field() - node_id: str = Field() + vcs: Union[str, None] = Field() + use_lfs: Missing[bool] = Field(default=UNSET) + vcs_url: str = Field(description="The URL of the originating repository.") + svc_root: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] = Field() + status_text: Missing[Union[str, None]] = Field(default=UNSET) + failed_step: Missing[Union[str, None]] = Field(default=UNSET) + error_message: Missing[Union[str, None]] = Field(default=UNSET) + import_percent: Missing[Union[int, None]] = Field(default=UNSET) + commit_count: Missing[Union[int, None]] = Field(default=UNSET) + push_percent: Missing[Union[int, None]] = Field(default=UNSET) + has_large_files: Missing[bool] = Field(default=UNSET) + large_files_size: Missing[int] = Field(default=UNSET) + large_files_count: Missing[int] = Field(default=UNSET) + project_choices: Missing[list[ImportPropProjectChoicesItems]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + authors_count: Missing[Union[int, None]] = Field(default=UNSET) url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["labeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: LabeledIssueEventPropLabel = Field() + html_url: str = Field() + authors_url: str = Field() + repository_url: str = Field() + svn_root: Missing[str] = Field(default=UNSET) -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItems(GitHubModel): + """ImportPropProjectChoicesItems""" - name: str = Field() - color: str = Field() + vcs: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + human_name: Missing[str] = Field(default=UNSET) -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) __all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", + "Import", + "ImportPropProjectChoicesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0309.py b/githubkit/versions/v2022_11_28/models/group_0309.py index 695ea4a4e..7ed1d272d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0309.py +++ b/githubkit/versions/v2022_11_28/models/group_0309.py @@ -9,45 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0010 import Integration - -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - Unlabeled Issue Event + Porter Author """ id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unlabeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: UnlabeledIssueEventPropLabel = Field() - - -class UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" - + remote_id: str = Field() + remote_name: str = Field() + email: str = Field() name: str = Field() - color: str = Field() + url: str = Field() + import_url: str = Field() -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) +model_rebuild(PorterAuthor) -__all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", -) +__all__ = ("PorterAuthor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0310.py b/githubkit/versions/v2022_11_28/models/group_0310.py index 34f35669c..c54f24120 100644 --- a/githubkit/versions/v2022_11_28/models/group_0310.py +++ b/githubkit/versions/v2022_11_28/models/group_0310.py @@ -9,38 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0010 import Integration - -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Assigned Issue Event + Porter Large File """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(AssignedIssueEvent) - -__all__ = ("AssignedIssueEvent",) + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() + + +model_rebuild(PorterLargeFile) + +__all__ = ("PorterLargeFile",) diff --git a/githubkit/versions/v2022_11_28/models/group_0311.py b/githubkit/versions/v2022_11_28/models/group_0311.py index d36e83286..1b6f8aa80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0311.py +++ b/githubkit/versions/v2022_11_28/models/group_0311.py @@ -9,35 +9,150 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0045 import Issue +from .group_0084 import Team -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Unassigned Issue Event + Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + actor: Union[None, SimpleUser] = Field() event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + issue: Missing[Union[None, Issue]] = Field(default=UNSET) + label: Missing[IssueEventLabel] = Field( + default=UNSET, title="Issue Event Label", description="Issue Event Label" + ) + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + dismissed_review: Missing[IssueEventDismissedReview] = Field( + default=UNSET, title="Issue Event Dismissed Review" + ) + milestone: Missing[IssueEventMilestone] = Field( + default=UNSET, + title="Issue Event Milestone", + description="Issue Event Milestone", + ) + project_card: Missing[IssueEventProjectCard] = Field( + default=UNSET, + title="Issue Event Project Card", + description="Issue Event Project Card", + ) + rename: Missing[IssueEventRename] = Field( + default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + ) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] = Field( + default=UNSET, + title="author_association", + description="How the author is associated with the repository.", + ) + lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) -model_rebuild(UnassignedIssueEvent) +class IssueEventLabel(GitHubModel): + """Issue Event Label -__all__ = ("UnassignedIssueEvent",) + Issue Event Label + """ + + name: Union[str, None] = Field() + color: Union[str, None] = Field() + + +class IssueEventDismissedReview(GitHubModel): + """Issue Event Dismissed Review""" + + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueEventMilestone(GitHubModel): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str = Field() + + +class IssueEventProjectCard(GitHubModel): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str = Field() + id: int = Field() + project_url: str = Field() + project_id: int = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +class IssueEventRename(GitHubModel): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) + +__all__ = ( + "IssueEvent", + "IssueEventDismissedReview", + "IssueEventLabel", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0312.py b/githubkit/versions/v2022_11_28/models/group_0312.py index 734796d8a..3ec22fb63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0312.py +++ b/githubkit/versions/v2022_11_28/models/group_0312.py @@ -19,34 +19,35 @@ from .group_0010 import Integration -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Milestoned Issue Event + Labeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["milestoned"] = Field() + event: Literal["labeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - milestone: MilestonedIssueEventPropMilestone = Field() + label: LabeledIssueEventPropLabel = Field() -class MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" - title: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) +model_rebuild(LabeledIssueEvent) +model_rebuild(LabeledIssueEventPropLabel) __all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", + "LabeledIssueEvent", + "LabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0313.py b/githubkit/versions/v2022_11_28/models/group_0313.py index 1b03cd99a..695ea4a4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0313.py +++ b/githubkit/versions/v2022_11_28/models/group_0313.py @@ -19,34 +19,35 @@ from .group_0010 import Integration -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Demilestoned Issue Event + Unlabeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["demilestoned"] = Field() + event: Literal["unlabeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - milestone: DemilestonedIssueEventPropMilestone = Field() + label: UnlabeledIssueEventPropLabel = Field() -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" - title: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) +model_rebuild(UnlabeledIssueEvent) +model_rebuild(UnlabeledIssueEventPropLabel) __all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", + "UnlabeledIssueEvent", + "UnlabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0314.py b/githubkit/versions/v2022_11_28/models/group_0314.py index 234895caf..34f35669c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0314.py +++ b/githubkit/versions/v2022_11_28/models/group_0314.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,35 +19,28 @@ from .group_0010 import Integration -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Renamed Issue Event + Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["renamed"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - rename: RenamedIssueEventPropRename = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +model_rebuild(AssignedIssueEvent) - from_: str = Field(alias="from") - to: str = Field() - - -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) - -__all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", -) +__all__ = ("AssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0315.py b/githubkit/versions/v2022_11_28/models/group_0315.py index 8e477d779..d36e83286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0315.py +++ b/githubkit/versions/v2022_11_28/models/group_0315.py @@ -9,47 +9,35 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0080 import Team -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Review Requested Issue Event + Unassigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestedIssueEvent) - -__all__ = ("ReviewRequestedIssueEvent",) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(UnassignedIssueEvent) + +__all__ = ("UnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0316.py b/githubkit/versions/v2022_11_28/models/group_0316.py index 305e98393..734796d8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0316.py +++ b/githubkit/versions/v2022_11_28/models/group_0316.py @@ -14,42 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0080 import Team -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Review Request Removed Issue Event + Milestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_request_removed"] = Field() + event: Literal["milestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestRemovedIssueEvent) - -__all__ = ("ReviewRequestRemovedIssueEvent",) + milestone: MilestonedIssueEventPropMilestone = Field() + + +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" + + title: str = Field() + + +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) + +__all__ = ( + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0317.py b/githubkit/versions/v2022_11_28/models/group_0317.py index bc686e09d..1b03cd99a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0317.py +++ b/githubkit/versions/v2022_11_28/models/group_0317.py @@ -14,44 +14,39 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Review Dismissed Issue Event + Demilestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_dismissed"] = Field() + event: Literal["demilestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() + milestone: DemilestonedIssueEventPropMilestone = Field() -class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): - """ReviewDismissedIssueEventPropDismissedReview""" +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[str] = Field(default=UNSET) + title: str = Field() -model_rebuild(ReviewDismissedIssueEvent) -model_rebuild(ReviewDismissedIssueEventPropDismissedReview) +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) __all__ = ( - "ReviewDismissedIssueEvent", - "ReviewDismissedIssueEventPropDismissedReview", + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0318.py b/githubkit/versions/v2022_11_28/models/group_0318.py index e0130f152..234895caf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0318.py +++ b/githubkit/versions/v2022_11_28/models/group_0318.py @@ -19,24 +19,35 @@ from .group_0010 import Integration -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Locked Issue Event + Renamed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["locked"] = Field() + event: Literal["renamed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - lock_reason: Union[str, None] = Field() + rename: RenamedIssueEventPropRename = Field() -model_rebuild(LockedIssueEvent) +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" -__all__ = ("LockedIssueEvent",) + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) + +__all__ = ( + "RenamedIssueEvent", + "RenamedIssueEventPropRename", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0319.py b/githubkit/versions/v2022_11_28/models/group_0319.py index cf2b6b5f8..b069dd8f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0319.py +++ b/githubkit/versions/v2022_11_28/models/group_0319.py @@ -19,43 +19,37 @@ from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0084 import Team -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Added to Project Issue Event + Review Requested Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["review_requested"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestedIssueEvent) -__all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0320.py b/githubkit/versions/v2022_11_28/models/group_0320.py index 5d2b15f17..a092d3c1c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0320.py +++ b/githubkit/versions/v2022_11_28/models/group_0320.py @@ -19,43 +19,37 @@ from .group_0003 import SimpleUser from .group_0010 import Integration +from .group_0084 import Team -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Moved Column in Project Issue Event + Review Request Removed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["review_request_removed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestRemovedIssueEvent) -__all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestRemovedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0321.py b/githubkit/versions/v2022_11_28/models/group_0321.py index 3bd6fbf40..bc686e09d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0321.py +++ b/githubkit/versions/v2022_11_28/models/group_0321.py @@ -21,41 +21,37 @@ from .group_0010 import Integration -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Removed from Project Issue Event + Review Dismissed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["removed_from_project"] = Field() + event: Literal["review_dismissed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[str] = Field(default=UNSET) -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) __all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0322.py b/githubkit/versions/v2022_11_28/models/group_0322.py index d4894ad61..e0130f152 100644 --- a/githubkit/versions/v2022_11_28/models/group_0322.py +++ b/githubkit/versions/v2022_11_28/models/group_0322.py @@ -14,51 +14,29 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser from .group_0010 import Integration -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class LockedIssueEvent(GitHubModel): + """Locked Issue Event - Converted Note to Issue Issue Event + Locked Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["converted_note_to_issue"] = Field() + event: Literal["locked"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( - default=UNSET - ) + performed_via_github_app: Union[None, Integration, None] = Field() + lock_reason: Union[str, None] = Field() -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +model_rebuild(LockedIssueEvent) - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) - -__all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", -) +__all__ = ("LockedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0323.py b/githubkit/versions/v2022_11_28/models/group_0323.py index f704a8ecf..cf2b6b5f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0323.py +++ b/githubkit/versions/v2022_11_28/models/group_0323.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -20,49 +19,43 @@ from .group_0003 import SimpleUser from .group_0010 import Integration -from .group_0041 import ReactionRollup -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event - Timeline Comment Event + Added to Project Issue Event """ - event: Literal["commented"] = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["added_to_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( default=UNSET ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineCommentEvent) +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) -__all__ = ("TimelineCommentEvent",) +__all__ = ( + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0324.py b/githubkit/versions/v2022_11_28/models/group_0324.py index 97df69ff7..5d2b15f17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0324.py +++ b/githubkit/versions/v2022_11_28/models/group_0324.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,24 +18,44 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0325 import TimelineCrossReferencedEventPropSource +from .group_0010 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event - Timeline Cross Referenced Event + Moved Column in Project Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["moved_columns_in_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( + default=UNSET ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(TimelineCrossReferencedEvent) +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" -__all__ = ("TimelineCrossReferencedEvent",) + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) + +__all__ = ( + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0325.py b/githubkit/versions/v2022_11_28/models/group_0325.py index 80ba07cfe..3bd6fbf40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0325.py +++ b/githubkit/versions/v2022_11_28/models/group_0325.py @@ -9,26 +9,53 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0042 import Issue +from .group_0003 import SimpleUser +from .group_0010 import Integration + +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Removed from Project Issue Event + """ - type: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["removed_from_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( + default=UNSET ) -model_rebuild(TimelineCrossReferencedEventPropSource) +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ( + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0326.py b/githubkit/versions/v2022_11_28/models/group_0326.py index 3333d74a0..d4894ad61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0326.py +++ b/githubkit/versions/v2022_11_28/models/group_0326.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,89 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class TimelineCommittedEvent(GitHubModel): - """Timeline Committed Event - Timeline Committed Event +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event + + Converted Note to Issue Issue Event """ - event: Missing[Literal["committed"]] = Field(default=UNSET) - sha: str = Field(description="SHA for the commit") + id: int = Field() node_id: str = Field() url: str = Field() - author: TimelineCommittedEventPropAuthor = Field( - description="Identifying information for the git-user" + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["converted_note_to_issue"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - committer: TimelineCommittedEventPropCommitter = Field( - description="Identifying information for the git-user" + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET ) - message: str = Field(description="Message describing the purpose of the commit") - tree: TimelineCommittedEventPropTree = Field() - parents: list[TimelineCommittedEventPropParentsItems] = Field() - verification: TimelineCommittedEventPropVerification = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropAuthor(GitHubModel): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class TimelineCommittedEventPropCommitter(GitHubModel): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") -class TimelineCommittedEventPropTree(GitHubModel): - """TimelineCommittedEventPropTree""" +class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - sha: str = Field(description="SHA for the commit") + id: int = Field() url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -class TimelineCommittedEventPropParentsItems(GitHubModel): - """TimelineCommittedEventPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropVerification(GitHubModel): - """TimelineCommittedEventPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - verified_at: Union[str, None] = Field() - - -model_rebuild(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) __all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropVerification", + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0327.py b/githubkit/versions/v2022_11_28/models/group_0327.py index a6060bb80..376537058 100644 --- a/githubkit/versions/v2022_11_28/models/group_0327.py +++ b/githubkit/versions/v2022_11_28/models/group_0327.py @@ -19,27 +19,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0044 import ReactionRollup -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event - Timeline Reviewed Event + Timeline Comment Event """ - event: Literal["reviewed"] = Field() - id: int = Field(description="Unique identifier of the review") + event: Literal["commented"] = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + id: int = Field(description="Unique identifier of the issue comment") node_id: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field(description="The text of the review.") - state: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) html_url: str = Field() - pull_request_url: str = Field() - links: TimelineReviewedEventPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: str = Field(description="A commit SHA for the review.") - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + updated_at: datetime = Field() + issue_url: str = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -53,35 +57,12 @@ class TimelineReviewedEvent(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class TimelineReviewedEventPropLinks(GitHubModel): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtml = Field() - pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() - - -class TimelineReviewedEventPropLinksPropHtml(GitHubModel): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str = Field() - - -class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(TimelineReviewedEvent) -model_rebuild(TimelineReviewedEventPropLinks) -model_rebuild(TimelineReviewedEventPropLinksPropHtml) -model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) +model_rebuild(TimelineCommentEvent) -__all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", -) +__all__ = ("TimelineCommentEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0328.py b/githubkit/versions/v2022_11_28/models/group_0328.py index 55a730f45..eb75f7098 100644 --- a/githubkit/versions/v2022_11_28/models/group_0328.py +++ b/githubkit/versions/v2022_11_28/models/group_0328.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,149 +19,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0041 import ReactionRollup +from .group_0329 import TimelineCrossReferencedEventPropSource -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Cross Referenced Event """ - url: str = Field(description="URL for the pull request review comment") - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." + event: Literal["cross-referenced"] = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - id: int = Field(description="The ID of the pull request review comment.") - node_id: str = Field(description="The node ID of the pull request review comment.") - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Missing[int] = Field( - default=UNSET, - description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", - ) - original_position: Missing[int] = Field( - default=UNSET, - description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", - ) - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: str = Field(description="The text of the comment.") created_at: datetime = Field() updated_at: datetime = Field() - html_url: str = Field(description="HTML URL for the pull request review comment.") - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: PullRequestReviewCommentPropLinks = Field(alias="_links") - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - - -class PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() - - -class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str = Field() - - -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ - - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) + source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "PullRequestReviewCommentPropLinksPropSelf", - "TimelineLineCommentedEvent", -) +__all__ = ("TimelineCrossReferencedEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0329.py b/githubkit/versions/v2022_11_28/models/group_0329.py index c45a39f8c..a3f25ecea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0329.py +++ b/githubkit/versions/v2022_11_28/models/group_0329.py @@ -9,34 +9,26 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration - +from .group_0045 import Issue -class TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event - Timeline Assigned Issue Event - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["assigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) -model_rebuild(TimelineAssignedIssueEvent) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ("TimelineAssignedIssueEvent",) +__all__ = ("TimelineCrossReferencedEventPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_0330.py b/githubkit/versions/v2022_11_28/models/group_0330.py index 420f91c26..3333d74a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0330.py +++ b/githubkit/versions/v2022_11_28/models/group_0330.py @@ -9,34 +9,98 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event - - Timeline Unassigned Issue Event + Timeline Committed Event """ - id: int = Field() + event: Missing[Literal["committed"]] = Field(default=UNSET) + sha: str = Field(description="SHA for the commit") node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unassigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + author: TimelineCommittedEventPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: TimelineCommittedEventPropTree = Field() + parents: list[TimelineCommittedEventPropParentsItems] = Field() + verification: TimelineCommittedEventPropVerification = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropVerification(GitHubModel): + """TimelineCommittedEventPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + verified_at: Union[str, None] = Field() -model_rebuild(TimelineUnassignedIssueEvent) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) -__all__ = ("TimelineUnassignedIssueEvent",) +__all__ = ( + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropVerification", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0331.py b/githubkit/versions/v2022_11_28/models/group_0331.py index 799278e56..a6060bb80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0331.py +++ b/githubkit/versions/v2022_11_28/models/group_0331.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,27 +19,69 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0010 import Integration -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event - State Change Issue Event + Timeline Reviewed Event """ - id: int = Field() + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) -model_rebuild(StateChangeIssueEvent) +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" -__all__ = ("StateChangeIssueEvent",) + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + + +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) + +__all__ = ( + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0332.py b/githubkit/versions/v2022_11_28/models/group_0332.py index 25f7eb3a3..f8d6191b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0332.py +++ b/githubkit/versions/v2022_11_28/models/group_0332.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,25 +18,150 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0044 import ReactionRollup -class DeployKey(GitHubModel): - """Deploy Key - An SSH key granting access to a single repository. +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. + """ + + url: str = Field(description="URL for the pull request review comment") + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + id: int = Field(description="The ID of the pull request review comment.") + node_id: str = Field(description="The node ID of the pull request review comment.") + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Missing[int] = Field( + default=UNSET, + description="The line index in the diff to which the comment applies. This field is closing down; use `line` instead.", + ) + original_position: Missing[int] = Field( + default=UNSET, + description="The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead.", + ) + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: str = Field(description="The text of the comment.") + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field(description="HTML URL for the pull request review comment.") + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: PullRequestReviewCommentPropLinks = Field(alias="_links") + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + + +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event """ - id: int = Field() - key: str = Field() - url: str = Field() - title: str = Field() - verified: bool = Field() - created_at: str = Field() - read_only: bool = Field() - added_by: Missing[Union[str, None]] = Field(default=UNSET) - last_used: Missing[Union[str, None]] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[list[PullRequestReviewComment]] = Field(default=UNSET) -model_rebuild(DeployKey) +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) -__all__ = ("DeployKey",) +__all__ = ( + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "PullRequestReviewCommentPropLinksPropSelf", + "TimelineLineCommentedEvent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0333.py b/githubkit/versions/v2022_11_28/models/group_0333.py index 58247c327..c45a39f8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0333.py +++ b/githubkit/versions/v2022_11_28/models/group_0333.py @@ -9,16 +9,34 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Literal, Union +from pydantic import Field -class Language(ExtraGitHubModel): - """Language +from githubkit.compat import GitHubModel, model_rebuild - Language +from .group_0003 import SimpleUser +from .group_0010 import Integration + + +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event """ + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["assigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + -model_rebuild(Language) +model_rebuild(TimelineAssignedIssueEvent) -__all__ = ("Language",) +__all__ = ("TimelineAssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0334.py b/githubkit/versions/v2022_11_28/models/group_0334.py index 5f83fdf69..420f91c26 100644 --- a/githubkit/versions/v2022_11_28/models/group_0334.py +++ b/githubkit/versions/v2022_11_28/models/group_0334.py @@ -9,48 +9,34 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0019 import LicenseSimple +from .group_0003 import SimpleUser +from .group_0010 import Integration -class LicenseContent(GitHubModel): - """License Content +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event - License Content + Timeline Unassigned Issue Event """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() + id: int = Field() + node_id: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["unassigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" +model_rebuild(TimelineUnassignedIssueEvent) - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) - -__all__ = ( - "LicenseContent", - "LicenseContentPropLinks", -) +__all__ = ("TimelineUnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0335.py b/githubkit/versions/v2022_11_28/models/group_0335.py index 21374a5f3..799278e56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0335.py +++ b/githubkit/versions/v2022_11_28/models/group_0335.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,18 +17,28 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration -class MergedUpstream(GitHubModel): - """Merged upstream - Results of a successful merge upstream request +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event + + State Change Issue Event """ - message: Missing[str] = Field(default=UNSET) - merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) - base_branch: Missing[str] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: str = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(MergedUpstream) +model_rebuild(StateChangeIssueEvent) -__all__ = ("MergedUpstream",) +__all__ = ("StateChangeIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0336.py b/githubkit/versions/v2022_11_28/models/group_0336.py index 771963487..25f7eb3a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0336.py +++ b/githubkit/versions/v2022_11_28/models/group_0336.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,82 +18,24 @@ from githubkit.utils import UNSET -class Page(GitHubModel): - """GitHub Pages +class DeployKey(GitHubModel): + """Deploy Key - The configuration for GitHub Pages for a repository. + An SSH key granting access to a single repository. """ - url: str = Field(description="The API address for accessing this Page resource.") - status: Union[None, Literal["built", "building", "errored"]] = Field( - description="The status of the most recent build of the Page." - ) - cname: Union[str, None] = Field(description="The Pages site's custom domain") - protected_domain_state: Missing[ - Union[None, Literal["pending", "verified", "unverified"]] - ] = Field(default=UNSET, description="The state if the domain is verified") - pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The timestamp when a pending domain becomes unverified.", - ) - custom_404: bool = Field( - default=False, description="Whether the Page has a custom 404 page." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The web address the Page can be accessed from." - ) - build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( - default=UNSET, description="The process in which the Page will be built." - ) - source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") - public: bool = Field( - description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." - ) - https_certificate: Missing[PagesHttpsCertificate] = Field( - default=UNSET, title="Pages Https Certificate" - ) - https_enforced: Missing[bool] = Field( - default=UNSET, description="Whether https is enabled on the domain" - ) + id: int = Field() + key: str = Field() + url: str = Field() + title: str = Field() + verified: bool = Field() + created_at: str = Field() + read_only: bool = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) + last_used: Missing[Union[str, None]] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) -class PagesSourceHash(GitHubModel): - """Pages Source Hash""" +model_rebuild(DeployKey) - branch: str = Field() - path: str = Field() - - -class PagesHttpsCertificate(GitHubModel): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] = Field() - description: str = Field() - domains: list[str] = Field( - description="Array of the domain set and its alternate name (if it is configured)" - ) - expires_at: Missing[date] = Field(default=UNSET) - - -model_rebuild(Page) -model_rebuild(PagesSourceHash) -model_rebuild(PagesHttpsCertificate) - -__all__ = ( - "Page", - "PagesHttpsCertificate", - "PagesSourceHash", -) +__all__ = ("DeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0337.py b/githubkit/versions/v2022_11_28/models/group_0337.py index c05e5b837..58247c327 100644 --- a/githubkit/versions/v2022_11_28/models/group_0337.py +++ b/githubkit/versions/v2022_11_28/models/group_0337.py @@ -9,42 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +class Language(ExtraGitHubModel): + """Language -from .group_0003 import SimpleUser - - -class PageBuild(GitHubModel): - """Page Build - - Page Build + Language """ - url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" - - message: Union[str, None] = Field() - -model_rebuild(PageBuild) -model_rebuild(PageBuildPropError) +model_rebuild(Language) -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("Language",) diff --git a/githubkit/versions/v2022_11_28/models/group_0338.py b/githubkit/versions/v2022_11_28/models/group_0338.py index 4b54230bc..5f83fdf69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0338.py +++ b/githubkit/versions/v2022_11_28/models/group_0338.py @@ -9,21 +9,48 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0019 import LicenseSimple + -class PageBuildStatus(GitHubModel): - """Page Build Status +class LicenseContent(GitHubModel): + """License Content - Page Build Status + License Content """ + name: str = Field() + path: str = Field() + sha: str = Field() + size: int = Field() url: str = Field() - status: str = Field() + html_url: Union[str, None] = Field() + git_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + type: str = Field() + content: str = Field() + encoding: str = Field() + links: LicenseContentPropLinks = Field(alias="_links") + license_: Union[None, LicenseSimple] = Field(alias="license") + + +class LicenseContentPropLinks(GitHubModel): + """LicenseContentPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(PageBuildStatus) +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) -__all__ = ("PageBuildStatus",) +__all__ = ( + "LicenseContent", + "LicenseContentPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0339.py b/githubkit/versions/v2022_11_28/models/group_0339.py index c3d88e76b..21374a5f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0339.py +++ b/githubkit/versions/v2022_11_28/models/group_0339.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,24 +18,17 @@ from githubkit.utils import UNSET -class PageDeployment(GitHubModel): - """GitHub Pages +class MergedUpstream(GitHubModel): + """Merged upstream - The GitHub Pages deployment status. + Results of a successful merge upstream request """ - id: Union[int, str] = Field( - description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." - ) - status_url: str = Field( - description="The URI to monitor GitHub Pages deployment status." - ) - page_url: str = Field(description="The URI to the deployed GitHub Pages.") - preview_url: Missing[str] = Field( - default=UNSET, description="The URI to the deployed GitHub Pages preview." - ) + message: Missing[str] = Field(default=UNSET) + merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) + base_branch: Missing[str] = Field(default=UNSET) -model_rebuild(PageDeployment) +model_rebuild(MergedUpstream) -__all__ = ("PageDeployment",) +__all__ = ("MergedUpstream",) diff --git a/githubkit/versions/v2022_11_28/models/group_0340.py b/githubkit/versions/v2022_11_28/models/group_0340.py index f79d28414..771963487 100644 --- a/githubkit/versions/v2022_11_28/models/group_0340.py +++ b/githubkit/versions/v2022_11_28/models/group_0340.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import Literal, Union from pydantic import Field @@ -18,26 +19,82 @@ from githubkit.utils import UNSET -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" +class Page(GitHubModel): + """GitHub Pages - status: Missing[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] = Field(default=UNSET, description="The current status of the deployment.") + The configuration for GitHub Pages for a repository. + """ + url: str = Field(description="The API address for accessing this Page resource.") + status: Union[None, Literal["built", "building", "errored"]] = Field( + description="The status of the most recent build of the Page." + ) + cname: Union[str, None] = Field(description="The Pages site's custom domain") + protected_domain_state: Missing[ + Union[None, Literal["pending", "verified", "unverified"]] + ] = Field(default=UNSET, description="The state if the domain is verified") + pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The timestamp when a pending domain becomes unverified.", + ) + custom_404: bool = Field( + default=False, description="Whether the Page has a custom 404 page." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The web address the Page can be accessed from." + ) + build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( + default=UNSET, description="The process in which the Page will be built." + ) + source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") + public: bool = Field( + description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." + ) + https_certificate: Missing[PagesHttpsCertificate] = Field( + default=UNSET, title="Pages Https Certificate" + ) + https_enforced: Missing[bool] = Field( + default=UNSET, description="Whether https is enabled on the domain" + ) -model_rebuild(PagesDeploymentStatus) -__all__ = ("PagesDeploymentStatus",) +class PagesSourceHash(GitHubModel): + """Pages Source Hash""" + + branch: str = Field() + path: str = Field() + + +class PagesHttpsCertificate(GitHubModel): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] = Field() + description: str = Field() + domains: list[str] = Field( + description="Array of the domain set and its alternate name (if it is configured)" + ) + expires_at: Missing[date] = Field(default=UNSET) + + +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) + +__all__ = ( + "Page", + "PagesHttpsCertificate", + "PagesSourceHash", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0341.py b/githubkit/versions/v2022_11_28/models/group_0341.py index b7d3c727b..c05e5b837 100644 --- a/githubkit/versions/v2022_11_28/models/group_0341.py +++ b/githubkit/versions/v2022_11_28/models/group_0341.py @@ -9,103 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status - Pages Health Check Status +class PageBuild(GitHubModel): + """Page Build + + Page Build """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET - ) - - -class PagesHealthCheckPropDomain(GitHubModel): - """PagesHealthCheckPropDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -class PagesHealthCheckPropAltDomain(GitHubModel): - """PagesHealthCheckPropAltDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(PagesHealthCheck) -model_rebuild(PagesHealthCheckPropDomain) -model_rebuild(PagesHealthCheckPropAltDomain) + url: str = Field() + status: str = Field() + error: PageBuildPropError = Field() + pusher: Union[None, SimpleUser] = Field() + commit: str = Field() + duration: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + + message: Union[str, None] = Field() + + +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) __all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropAltDomain", - "PagesHealthCheckPropDomain", + "PageBuild", + "PageBuildPropError", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0342.py b/githubkit/versions/v2022_11_28/models/group_0342.py index f89046abb..4b54230bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0342.py +++ b/githubkit/versions/v2022_11_28/models/group_0342.py @@ -9,106 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0039 import Milestone -from .group_0079 import TeamSimple -from .group_0263 import AutoMerge -from .group_0343 import PullRequestPropLabelsItems -from .group_0344 import PullRequestPropBase, PullRequestPropHead -from .group_0345 import PullRequestPropLinks -class PullRequest(GitHubModel): - """Pull Request +class PageBuildStatus(GitHubModel): + """Page Build Status - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build Status """ url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() + status: str = Field() -model_rebuild(PullRequest) +model_rebuild(PageBuildStatus) -__all__ = ("PullRequest",) +__all__ = ("PageBuildStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0343.py b/githubkit/versions/v2022_11_28/models/group_0343.py index cf1d160e5..c3d88e76b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0343.py +++ b/githubkit/versions/v2022_11_28/models/group_0343.py @@ -14,20 +14,28 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class PullRequestPropLabelsItems(GitHubModel): - """PullRequestPropLabelsItems""" +class PageDeployment(GitHubModel): + """GitHub Pages - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + The GitHub Pages deployment status. + """ + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." + ) + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." + ) + page_url: str = Field(description="The URI to the deployed GitHub Pages.") + preview_url: Missing[str] = Field( + default=UNSET, description="The URI to the deployed GitHub Pages preview." + ) -model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestPropLabelsItems",) +model_rebuild(PageDeployment) + +__all__ = ("PageDeployment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0344.py b/githubkit/versions/v2022_11_28/models/group_0344.py index 825d35e04..f79d28414 100644 --- a/githubkit/versions/v2022_11_28/models/group_0344.py +++ b/githubkit/versions/v2022_11_28/models/group_0344.py @@ -9,40 +9,35 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" + status: Missing[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] = Field(default=UNSET, description="The current status of the deployment.") - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() +model_rebuild(PagesDeploymentStatus) -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropBase) - -__all__ = ( - "PullRequestPropBase", - "PullRequestPropHead", -) +__all__ = ("PagesDeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0345.py b/githubkit/versions/v2022_11_28/models/group_0345.py index 2a153c43b..b7d3c727b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0345.py +++ b/githubkit/versions/v2022_11_28/models/group_0345.py @@ -9,26 +9,103 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class PagesHealthCheck(GitHubModel): + """Pages Health Check Status + + Pages Health Check Status + """ + + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET + ) + + +class PagesHealthCheckPropDomain(GitHubModel): + """PagesHealthCheckPropDomain""" -from .group_0262 import Link + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" +class PagesHealthCheckPropAltDomain(GitHubModel): + """PagesHealthCheckPropAltDomain""" - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(PullRequestPropLinks) +model_rebuild(PagesHealthCheck) +model_rebuild(PagesHealthCheckPropDomain) +model_rebuild(PagesHealthCheckPropAltDomain) -__all__ = ("PullRequestPropLinks",) +__all__ = ( + "PagesHealthCheck", + "PagesHealthCheckPropAltDomain", + "PagesHealthCheckPropDomain", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0346.py b/githubkit/versions/v2022_11_28/models/group_0346.py index da433b3b8..36cef3b24 100644 --- a/githubkit/versions/v2022_11_28/models/group_0346.py +++ b/githubkit/versions/v2022_11_28/models/group_0346.py @@ -9,22 +9,106 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0042 import Milestone +from .group_0083 import TeamSimple +from .group_0267 import AutoMerge +from .group_0347 import PullRequestPropLabelsItems +from .group_0348 import PullRequestPropBase, PullRequestPropHead +from .group_0349 import PullRequestPropLinks -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result +class PullRequest(GitHubModel): + """Pull Request - Pull Request Merge Result + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ - sha: str = Field() + url: str = Field() + id: int = Field() + node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) merged: bool = Field() - message: str = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() -model_rebuild(PullRequestMergeResult) +model_rebuild(PullRequest) -__all__ = ("PullRequestMergeResult",) +__all__ = ("PullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0347.py b/githubkit/versions/v2022_11_28/models/group_0347.py index 7da5be58c..cf1d160e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0347.py +++ b/githubkit/versions/v2022_11_28/models/group_0347.py @@ -9,24 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0003 import SimpleUser -from .group_0080 import Team - - -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request - Pull Request Review Request - """ +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" - users: list[SimpleUser] = Field() - teams: list[Team] = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(PullRequestReviewRequest) +model_rebuild(PullRequestPropLabelsItems) -__all__ = ("PullRequestReviewRequest",) +__all__ = ("PullRequestPropLabelsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0348.py b/githubkit/versions/v2022_11_28/models/group_0348.py index d7938b075..825d35e04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0348.py +++ b/githubkit/versions/v2022_11_28/models/group_0348.py @@ -9,80 +9,40 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser +from .group_0020 import Repository -class PullRequestReview(GitHubModel): - """Pull Request Review +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" - Pull Request Reviews are reviews on pull requests. - """ - - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() user: Union[None, SimpleUser] = Field() - body: str = Field(description="The text of the review.") - state: str = Field() - html_url: str = Field() - pull_request_url: str = Field() - links: PullRequestReviewPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: Union[str, None] = Field( - description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - - -class PullRequestReviewPropLinks(GitHubModel): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtml = Field() - pull_request: PullRequestReviewPropLinksPropPullRequest = Field() - - -class PullRequestReviewPropLinksPropHtml(GitHubModel): - """PullRequestReviewPropLinksPropHtml""" - - href: str = Field() -class PullRequestReviewPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewPropLinksPropPullRequest""" +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" - href: str = Field() + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropBase) __all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", + "PullRequestPropBase", + "PullRequestPropHead", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0349.py b/githubkit/versions/v2022_11_28/models/group_0349.py index 9ac2c21ca..9421e1f62 100644 --- a/githubkit/versions/v2022_11_28/models/group_0349.py +++ b/githubkit/versions/v2022_11_28/models/group_0349.py @@ -9,86 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0041 import ReactionRollup -from .group_0350 import ReviewCommentPropLinks +from .group_0266 import Link -class ReviewComment(GitHubModel): - """Legacy Review Comment - Legacy Review Comment - """ +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - url: str = Field() - pull_request_review_id: Union[int, None] = Field() - id: int = Field() - node_id: str = Field() - diff_hunk: str = Field() - path: str = Field() - position: Union[int, None] = Field() - original_position: int = Field() - commit_id: str = Field() - original_commit_id: str = Field() - in_reply_to_id: Missing[int] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - body: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - html_url: str = Field() - pull_request_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: ReviewCommentPropLinks = Field(alias="_links") - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The original first line of the range for a multi-line comment.", - ) + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(ReviewComment) +model_rebuild(PullRequestPropLinks) -__all__ = ("ReviewComment",) +__all__ = ("PullRequestPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0350.py b/githubkit/versions/v2022_11_28/models/group_0350.py index 82c8a673e..da433b3b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0350.py +++ b/githubkit/versions/v2022_11_28/models/group_0350.py @@ -13,17 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0262 import Link +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" + Pull Request Merge Result + """ - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - pull_request: Link = Field(title="Link", description="Hypermedia Link") + sha: str = Field() + merged: bool = Field() + message: str = Field() -model_rebuild(ReviewCommentPropLinks) +model_rebuild(PullRequestMergeResult) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ("PullRequestMergeResult",) diff --git a/githubkit/versions/v2022_11_28/models/group_0351.py b/githubkit/versions/v2022_11_28/models/group_0351.py index 276401f0d..d0496a939 100644 --- a/githubkit/versions/v2022_11_28/models/group_0351.py +++ b/githubkit/versions/v2022_11_28/models/group_0351.py @@ -9,39 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from .group_0003 import SimpleUser +from .group_0084 import Team -class ReleaseAsset(GitHubModel): - """Release Asset +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request - Data related to a release. + Pull Request Review Request """ - url: str = Field() - browser_download_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="The file name of the asset.") - label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - download_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - uploader: Union[None, SimpleUser] = Field() - - -model_rebuild(ReleaseAsset) - -__all__ = ("ReleaseAsset",) + users: list[SimpleUser] = Field() + teams: list[Team] = Field() + + +model_rebuild(PullRequestReviewRequest) + +__all__ = ("PullRequestReviewRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0352.py b/githubkit/versions/v2022_11_28/models/group_0352.py index ebba77405..d7938b075 100644 --- a/githubkit/versions/v2022_11_28/models/group_0352.py +++ b/githubkit/versions/v2022_11_28/models/group_0352.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,49 +19,70 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0041 import ReactionRollup -from .group_0351 import ReleaseAsset -class Release(GitHubModel): - """Release +class PullRequestReview(GitHubModel): + """Pull Request Review - A release. + Pull Request Reviews are reviews on pull requests. """ - url: str = Field() - html_url: str = Field() - assets_url: str = Field() - upload_url: str = Field() - tarball_url: Union[str, None] = Field() - zipball_url: Union[str, None] = Field() - id: int = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - tag_name: str = Field(description="The name of the tag.") - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - name: Union[str, None] = Field() - body: Missing[Union[str, None]] = Field(default=UNSET) - draft: bool = Field( - description="true to create a draft (unpublished) release, false to create a published one." - ) - prerelease: bool = Field( - description="Whether to identify the release as a prerelease or a full release." + user: Union[None, SimpleUser] = Field() + body: str = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: PullRequestReviewPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: Union[str, None] = Field( + description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." ) - created_at: datetime = Field() - published_at: Union[datetime, None] = Field() - author: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assets: list[ReleaseAsset] = Field() - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - mentions_count: Missing[int] = Field(default=UNSET) - discussion_url: Missing[str] = Field( - default=UNSET, description="The URL of the release discussion." + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(Release) +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("Release",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0353.py b/githubkit/versions/v2022_11_28/models/group_0353.py index e30bd3be3..0dd4a1129 100644 --- a/githubkit/versions/v2022_11_28/models/group_0353.py +++ b/githubkit/versions/v2022_11_28/models/group_0353.py @@ -9,23 +9,86 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0044 import ReactionRollup +from .group_0354 import ReviewCommentPropLinks -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content +class ReviewComment(GitHubModel): + """Legacy Review Comment - Generated name and body describing a release + Legacy Review Comment """ - name: str = Field(description="The generated name of the release") - body: str = Field( - description="The generated body describing the contents of the release supporting markdown formatting" + url: str = Field() + pull_request_review_id: Union[int, None] = Field() + id: int = Field() + node_id: str = Field() + diff_hunk: str = Field() + path: str = Field() + position: Union[int, None] = Field() + original_position: int = Field() + commit_id: str = Field() + original_commit_id: str = Field() + in_reply_to_id: Missing[int] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + body: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field() + pull_request_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: ReviewCommentPropLinks = Field(alias="_links") + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The original first line of the range for a multi-line comment.", ) -model_rebuild(ReleaseNotesContent) +model_rebuild(ReviewComment) -__all__ = ("ReleaseNotesContent",) +__all__ = ("ReviewComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0354.py b/githubkit/versions/v2022_11_28/models/group_0354.py index 0e31221c5..04228fcf4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0354.py +++ b/githubkit/versions/v2022_11_28/models/group_0354.py @@ -9,35 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0266 import Link -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." - ) + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + pull_request: Link = Field(title="Link", description="Hypermedia Link") -model_rebuild(RepositoryRuleRulesetInfo) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ("ReviewCommentPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0355.py b/githubkit/versions/v2022_11_28/models/group_0355.py index 7929bea32..1f2efa2a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0355.py +++ b/githubkit/versions/v2022_11_28/models/group_0355.py @@ -9,32 +9,40 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." +class ReleaseAsset(GitHubModel): + """Release Asset + + Data related to a release. + """ + + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(RepositoryRuleDetailedOneof0) +model_rebuild(ReleaseAsset) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ("ReleaseAsset",) diff --git a/githubkit/versions/v2022_11_28/models/group_0356.py b/githubkit/versions/v2022_11_28/models/group_0356.py index 24898cd8c..4a6e294cf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0356.py +++ b/githubkit/versions/v2022_11_28/models/group_0356.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,27 +18,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0135 import RepositoryRuleUpdatePropParameters +from .group_0003 import SimpleUser +from .group_0044 import ReactionRollup +from .group_0355 import ReleaseAsset -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" +class Release(GitHubModel): + """Release - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", + A release. + """ + + url: str = Field() + html_url: str = Field() + assets_url: str = Field() + upload_url: str = Field() + tarball_url: Union[str, None] = Field() + zipball_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + tag_name: str = Field(description="The name of the tag.") + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + name: Union[str, None] = Field() + body: Missing[Union[str, None]] = Field(default=UNSET) + draft: bool = Field( + description="true to create a draft (unpublished) release, false to create a published one." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + prerelease: bool = Field( + description="Whether to identify the release as a prerelease or a full release." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + created_at: datetime = Field() + published_at: Union[datetime, None] = Field() + author: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assets: list[ReleaseAsset] = Field() + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + mentions_count: Missing[int] = Field(default=UNSET) + discussion_url: Missing[str] = Field( + default=UNSET, description="The URL of the release discussion." ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(Release) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("Release",) diff --git a/githubkit/versions/v2022_11_28/models/group_0357.py b/githubkit/versions/v2022_11_28/models/group_0357.py index ff93ecfb1..e30bd3be3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0357.py +++ b/githubkit/versions/v2022_11_28/models/group_0357.py @@ -9,32 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content - type: Literal["deletion"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + Generated name and body describing a release + """ + + name: str = Field(description="The generated name of the release") + body: str = Field( + description="The generated body describing the contents of the release supporting markdown formatting" ) -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("ReleaseNotesContent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0358.py b/githubkit/versions/v2022_11_28/models/group_0358.py index 7db86577f..0e31221c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0358.py +++ b/githubkit/versions/v2022_11_28/models/group_0358.py @@ -18,10 +18,13 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof3(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof3) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("RepositoryRuleRulesetInfo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0359.py b/githubkit/versions/v2022_11_28/models/group_0359.py index 1fdbbd498..7929bea32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0359.py +++ b/githubkit/versions/v2022_11_28/models/group_0359.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0138 import RepositoryRuleMergeQueuePropParameters +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] = Field() - parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) + type: Literal["creation"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof4(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("RepositoryRuleDetailedOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0360.py b/githubkit/versions/v2022_11_28/models/group_0360.py index 488fa626a..a0a673ea5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0360.py +++ b/githubkit/versions/v2022_11_28/models/group_0360.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0140 import RepositoryRuleRequiredDeploymentsPropParameters +from .group_0139 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" +class RepositoryRuleDetailedOneof1(GitHubModel): + """RepositoryRuleDetailedOneof1""" - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof5(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("RepositoryRuleDetailedOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0361.py b/githubkit/versions/v2022_11_28/models/group_0361.py index e9b15495d..ff93ecfb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0361.py +++ b/githubkit/versions/v2022_11_28/models/group_0361.py @@ -18,10 +18,10 @@ from githubkit.utils import UNSET -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" - type: Literal["required_signatures"] = Field() + type: Literal["deletion"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +35,6 @@ class RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleDetailedOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0362.py b/githubkit/versions/v2022_11_28/models/group_0362.py index de63d5327..7db86577f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0362.py +++ b/githubkit/versions/v2022_11_28/models/group_0362.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0143 import RepositoryRulePullRequestPropParameters +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" - - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +35,6 @@ class RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_0363.py b/githubkit/versions/v2022_11_28/models/group_0363.py index 4d64d0f4c..92b5529ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0363.py +++ b/githubkit/versions/v2022_11_28/models/group_0363.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0145 import RepositoryRuleRequiredStatusChecksPropParameters +from .group_0142 import RepositoryRuleMergeQueuePropParameters -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET - ) + type: Literal["merge_queue"] = Field() + parameters: Missing[RepositoryRuleMergeQueuePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_0364.py b/githubkit/versions/v2022_11_28/models/group_0364.py index 3f83e7bc3..3fdbb147f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0364.py +++ b/githubkit/versions/v2022_11_28/models/group_0364.py @@ -17,11 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0144 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] = Field() +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" + + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +40,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof5",) diff --git a/githubkit/versions/v2022_11_28/models/group_0365.py b/githubkit/versions/v2022_11_28/models/group_0365.py index 0b3bfd4e9..e9b15495d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0365.py +++ b/githubkit/versions/v2022_11_28/models/group_0365.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0147 import RepositoryRuleCommitMessagePatternPropParameters +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["required_signatures"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof6",) diff --git a/githubkit/versions/v2022_11_28/models/group_0366.py b/githubkit/versions/v2022_11_28/models/group_0366.py index 62de18eb4..077ea6a90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0366.py +++ b/githubkit/versions/v2022_11_28/models/group_0366.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0147 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof7",) diff --git a/githubkit/versions/v2022_11_28/models/group_0367.py b/githubkit/versions/v2022_11_28/models/group_0367.py index 63f74a586..3bd299985 100644 --- a/githubkit/versions/v2022_11_28/models/group_0367.py +++ b/githubkit/versions/v2022_11_28/models/group_0367.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0151 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0149 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof8",) diff --git a/githubkit/versions/v2022_11_28/models/group_0368.py b/githubkit/versions/v2022_11_28/models/group_0368.py index 3b454fda0..3f83e7bc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0368.py +++ b/githubkit/versions/v2022_11_28/models/group_0368.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0153 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" - - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof9",) diff --git a/githubkit/versions/v2022_11_28/models/group_0369.py b/githubkit/versions/v2022_11_28/models/group_0369.py index dee0cf6d0..8b18825e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0369.py +++ b/githubkit/versions/v2022_11_28/models/group_0369.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0155 import RepositoryRuleTagNamePatternPropParameters +from .group_0151 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof10",) diff --git a/githubkit/versions/v2022_11_28/models/group_0370.py b/githubkit/versions/v2022_11_28/models/group_0370.py index a740e5a07..476cdfdc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0370.py +++ b/githubkit/versions/v2022_11_28/models/group_0370.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0157 import RepositoryRuleFilePathRestrictionPropParameters +from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof11",) diff --git a/githubkit/versions/v2022_11_28/models/group_0371.py b/githubkit/versions/v2022_11_28/models/group_0371.py index fdaf966cb..398b462a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0371.py +++ b/githubkit/versions/v2022_11_28/models/group_0371.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0159 import RepositoryRuleMaxFilePathLengthPropParameters +from .group_0155 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleDetailedOneof16(GitHubModel): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof16(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof16) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ("RepositoryRuleDetailedOneof16",) +__all__ = ("RepositoryRuleDetailedOneof12",) diff --git a/githubkit/versions/v2022_11_28/models/group_0372.py b/githubkit/versions/v2022_11_28/models/group_0372.py index 5793e019b..c27e4f023 100644 --- a/githubkit/versions/v2022_11_28/models/group_0372.py +++ b/githubkit/versions/v2022_11_28/models/group_0372.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0161 import RepositoryRuleFileExtensionRestrictionPropParameters +from .group_0157 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleDetailedOneof17(GitHubModel): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof17(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof17) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ("RepositoryRuleDetailedOneof17",) +__all__ = ("RepositoryRuleDetailedOneof13",) diff --git a/githubkit/versions/v2022_11_28/models/group_0373.py b/githubkit/versions/v2022_11_28/models/group_0373.py index f7c78e9da..c2d73d8f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0373.py +++ b/githubkit/versions/v2022_11_28/models/group_0373.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0163 import RepositoryRuleMaxFileSizePropParameters +from .group_0159 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleDetailedOneof18(GitHubModel): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof18(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof18) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ("RepositoryRuleDetailedOneof18",) +__all__ = ("RepositoryRuleDetailedOneof14",) diff --git a/githubkit/versions/v2022_11_28/models/group_0374.py b/githubkit/versions/v2022_11_28/models/group_0374.py index d7c7f0cd2..76dad258a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0374.py +++ b/githubkit/versions/v2022_11_28/models/group_0374.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0166 import RepositoryRuleWorkflowsPropParameters +from .group_0161 import RepositoryRuleFilePathRestrictionPropParameters -class RepositoryRuleDetailedOneof19(GitHubModel): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleFilePathRestrictionPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof19(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof19) +model_rebuild(RepositoryRuleDetailedOneof15) -__all__ = ("RepositoryRuleDetailedOneof19",) +__all__ = ("RepositoryRuleDetailedOneof15",) diff --git a/githubkit/versions/v2022_11_28/models/group_0375.py b/githubkit/versions/v2022_11_28/models/group_0375.py index f996c5926..c55fe7153 100644 --- a/githubkit/versions/v2022_11_28/models/group_0375.py +++ b/githubkit/versions/v2022_11_28/models/group_0375.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0168 import RepositoryRuleCodeScanningPropParameters +from .group_0163 import RepositoryRuleMaxFilePathLengthPropParameters -class RepositoryRuleDetailedOneof20(GitHubModel): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof16(GitHubModel): + """RepositoryRuleDetailedOneof16""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleMaxFilePathLengthPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof20(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof20) +model_rebuild(RepositoryRuleDetailedOneof16) -__all__ = ("RepositoryRuleDetailedOneof20",) +__all__ = ("RepositoryRuleDetailedOneof16",) diff --git a/githubkit/versions/v2022_11_28/models/group_0376.py b/githubkit/versions/v2022_11_28/models/group_0376.py index 0a39437f4..32889d488 100644 --- a/githubkit/versions/v2022_11_28/models/group_0376.py +++ b/githubkit/versions/v2022_11_28/models/group_0376.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,97 +17,29 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof17(GitHubModel): + """RepositoryRuleDetailedOneof17""" - number: Missing[int] = Field( - default=UNSET, description="The security alert number." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." - ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", - ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleFileExtensionRestrictionPropParameters] = Field( default=UNSET ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + description="The type of source for the ruleset that includes this rule.", ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="An optional comment when requesting a push protection bypass.", - ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." - ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." - ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." + description="The name of the source of the ruleset that includes this rule.", ) - multi_repo: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", - ) - is_base64_encoded: Missing[Union[bool, None]] = Field( - default=UNSET, - description="A boolean value representing whether or not alert is base64 encoded", + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof17) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof17",) diff --git a/githubkit/versions/v2022_11_28/models/group_0377.py b/githubkit/versions/v2022_11_28/models/group_0377.py index fa37297f6..3277a9dc9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0377.py +++ b/githubkit/versions/v2022_11_28/models/group_0377.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,22 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0167 import RepositoryRuleMaxFileSizePropParameters -class SecretScanningPushProtectionBypass(GitHubModel): - """SecretScanningPushProtectionBypass""" - reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( - Field(default=UNSET, description="The reason for bypassing push protection.") +class RepositoryRuleDetailedOneof18(GitHubModel): + """RepositoryRuleDetailedOneof18""" + + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleMaxFileSizePropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, + description="The type of source for the ruleset that includes this rule.", ) - expire_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The name of the source of the ruleset that includes this rule.", ) - token_type: Missing[str] = Field( - default=UNSET, description="The token type this bypass is for." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningPushProtectionBypass) +model_rebuild(RepositoryRuleDetailedOneof18) -__all__ = ("SecretScanningPushProtectionBypass",) +__all__ = ("RepositoryRuleDetailedOneof18",) diff --git a/githubkit/versions/v2022_11_28/models/group_0378.py b/githubkit/versions/v2022_11_28/models/group_0378.py index 11ebab9e4..b65911914 100644 --- a/githubkit/versions/v2022_11_28/models/group_0378.py +++ b/githubkit/versions/v2022_11_28/models/group_0378.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,70 +17,27 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0170 import RepositoryRuleWorkflowsPropParameters -class SecretScanningScanHistory(GitHubModel): - """SecretScanningScanHistory""" - incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) - custom_pattern_backfill_scans: Missing[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] - ] = Field(default=UNSET) +class RepositoryRuleDetailedOneof19(GitHubModel): + """RepositoryRuleDetailedOneof19""" - -class SecretScanningScan(GitHubModel): - """SecretScanningScan - - Information on a single scan performed by secret scanning on the repository - """ - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( - default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", - ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: Missing[str] = Field(default=UNSET, description="The type of scan") - status: Missing[str] = Field( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description='The state of the scan. Either "completed", "running", or "pending"', + description="The type of source for the ruleset that includes this rule.", ) - completed_at: Missing[Union[datetime, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that the scan was completed. Empty if the scan is running", + description="The name of the source of the ruleset that includes this rule.", ) - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the scan was started. Empty if the scan is pending", - ) - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" - ) - pattern_scope: Missing[str] = Field( - default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistory) -model_rebuild(SecretScanningScan) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) +model_rebuild(RepositoryRuleDetailedOneof19) -__all__ = ( - "SecretScanningScan", - "SecretScanningScanHistory", - "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", -) +__all__ = ("RepositoryRuleDetailedOneof19",) diff --git a/githubkit/versions/v2022_11_28/models/group_0379.py b/githubkit/versions/v2022_11_28/models/group_0379.py index 947f5d932..7807e13bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0379.py +++ b/githubkit/versions/v2022_11_28/models/group_0379.py @@ -9,25 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0172 import RepositoryRuleCodeScanningPropParameters + -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" +class RepositoryRuleDetailedOneof20(GitHubModel): + """RepositoryRuleDetailedOneof20""" - pattern_name: Missing[str] = Field( - default=UNSET, description="Name of the custom pattern for custom pattern scans" + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, + description="The type of source for the ruleset that includes this rule.", ) - pattern_scope: Missing[str] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + description="The name of the source of the ruleset that includes this rule.", + ) + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) +model_rebuild(RepositoryRuleDetailedOneof20) -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) +__all__ = ("RepositoryRuleDetailedOneof20",) diff --git a/githubkit/versions/v2022_11_28/models/group_0380.py b/githubkit/versions/v2022_11_28/models/group_0380.py index b09ea6fff..8f13d7caa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0380.py +++ b/githubkit/versions/v2022_11_28/models/group_0380.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,120 +18,138 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0038 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0039 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0040 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." +class SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" + + number: Missing[int] = Field( + default=UNSET, description="The security alert number." ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." ) - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( - description="A product affected by the vulnerability detailed in a repository security advisory." + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", ) - credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - cvss_vector_string: Missing[Union[str, None]] = Field( + resolved_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." ) - start_private_fork: Missing[bool] = Field( + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', ) - - -class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryCreatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + secret: Missing[str] = Field( + default=UNSET, description="The secret that was detected." ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + push_protection_bypassed: Missing[Union[bool, None]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="Whether push protection was bypassed for the detected secret.", ) - patched_versions: Missing[Union[str, None]] = Field( + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET ) - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when reviewing a push protection bypass.", + ) + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories under the same organization or enterprise.", + ) + is_base64_encoded: Missing[Union[bool, None]] = Field( + default=UNSET, + description="A boolean value representing whether or not alert is base64 encoded", + ) + first_location_detected: Missing[ + Union[ + None, + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + has_more_locations: Missing[bool] = Field( + default=UNSET, + description="A boolean value representing whether or not the token in the alert was detected in more than one location.", ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningAlert) -__all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("SecretScanningAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0381.py b/githubkit/versions/v2022_11_28/models/group_0381.py index db0858ff6..6e4fde1e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0381.py +++ b/githubkit/versions/v2022_11_28/models/group_0381.py @@ -17,93 +17,69 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0038 import ( + SecretScanningLocationCommit, + SecretScanningLocationDiscussionComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestReview, + SecretScanningLocationWikiCommit, +) +from .group_0039 import ( + SecretScanningLocationIssueComment, + SecretScanningLocationIssueTitle, + SecretScanningLocationPullRequestReviewComment, + SecretScanningLocationPullRequestTitle, +) +from .group_0040 import ( + SecretScanningLocationDiscussionBody, + SecretScanningLocationPullRequestComment, +) -class PrivateVulnerabilityReportCreate(GitHubModel): - """PrivateVulnerabilityReportCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - vulnerabilities: Missing[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] ] = Field( default=UNSET, - description="An array of products affected by the vulnerability detailed in a repository security advisory.", - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", ) - vulnerable_version_range: Missing[Union[str, None]] = Field( - default=UNSET, - description="The range of the package versions affected by the vulnerability.", - ) - patched_versions: Missing[Union[str, None]] = Field( - default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." - ) - - -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) - -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +model_rebuild(SecretScanningLocation) + +__all__ = ("SecretScanningLocation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0382.py b/githubkit/versions/v2022_11_28/models/group_0382.py index b379d895d..fa37297f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0382.py +++ b/githubkit/versions/v2022_11_28/models/group_0382.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,130 +19,21 @@ from githubkit.utils import UNSET -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" +class SecretScanningPushProtectionBypass(GitHubModel): + """SecretScanningPushProtectionBypass""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." + reason: Missing[Literal["false_positive", "used_in_tests", "will_fix_later"]] = ( + Field(default=UNSET, description="The reason for bypassing push protection.") ) - description: Missing[str] = Field( - max_length=65535, + expire_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="A detailed description of what the advisory impacts.", + description="The time that the bypass will expire in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( - Field( - default=UNSET, - description="A product affected by the vulnerability detailed in a repository security advisory.", - ) - ) - cwe_ids: Missing[Union[list[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - state: Missing[Literal["published", "closed", "draft"]] = Field( - default=UNSET, description="The state of the advisory." - ) - collaborating_users: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="A list of usernames who have been granted write access to the advisory.", - ) - collaborating_teams: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", - ) - - -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( - default=UNSET, - description="The range of the package versions affected by the vulnerability.", - ) - patched_versions: Missing[Union[str, None]] = Field( - default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[list[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + token_type: Missing[str] = Field( + default=UNSET, description="The token type this bypass is for." ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(SecretScanningPushProtectionBypass) -__all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("SecretScanningPushProtectionBypass",) diff --git a/githubkit/versions/v2022_11_28/models/group_0383.py b/githubkit/versions/v2022_11_28/models/group_0383.py index e8f958a86..11ebab9e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0383.py +++ b/githubkit/versions/v2022_11_28/models/group_0383.py @@ -15,20 +15,73 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class SecretScanningScanHistory(GitHubModel): + """SecretScanningScanHistory""" -class Stargazer(GitHubModel): - """Stargazer + incremental_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + pattern_update_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + backfill_scans: Missing[list[SecretScanningScan]] = Field(default=UNSET) + custom_pattern_backfill_scans: Missing[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItems] + ] = Field(default=UNSET) - Stargazer + +class SecretScanningScan(GitHubModel): + """SecretScanningScan + + Information on a single scan performed by secret scanning on the repository """ - starred_at: datetime = Field() - user: Union[None, SimpleUser] = Field() + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + + +class SecretScanningScanHistoryPropCustomPatternBackfillScansItems(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" + + type: Missing[str] = Field(default=UNSET, description="The type of scan") + status: Missing[str] = Field( + default=UNSET, + description='The state of the scan. Either "completed", "running", or "pending"', + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was completed. Empty if the scan is running", + ) + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the scan was started. Empty if the scan is pending", + ) + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) -model_rebuild(Stargazer) +model_rebuild(SecretScanningScanHistory) +model_rebuild(SecretScanningScan) +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItems) -__all__ = ("Stargazer",) +__all__ = ( + "SecretScanningScan", + "SecretScanningScanHistory", + "SecretScanningScanHistoryPropCustomPatternBackfillScansItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0384.py b/githubkit/versions/v2022_11_28/models/group_0384.py index 9fc28af36..947f5d932 100644 --- a/githubkit/versions/v2022_11_28/models/group_0384.py +++ b/githubkit/versions/v2022_11_28/models/group_0384.py @@ -12,19 +12,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class CommitActivity(GitHubModel): - """Commit Activity +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1(GitHubModel): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - Commit Activity - """ + pattern_name: Missing[str] = Field( + default=UNSET, description="Name of the custom pattern for custom pattern scans" + ) + pattern_scope: Missing[str] = Field( + default=UNSET, + description='Level at which the custom pattern is defined, one of "repository", "organization", or "enterprise"', + ) - days: list[int] = Field() - total: int = Field() - week: int = Field() +model_rebuild(SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1) -model_rebuild(CommitActivity) - -__all__ = ("CommitActivity",) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0385.py b/githubkit/versions/v2022_11_28/models/group_0385.py index 60311444a..b09ea6fff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0385.py +++ b/githubkit/versions/v2022_11_28/models/group_0385.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -17,33 +17,120 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - -class ContributorActivity(GitHubModel): - """Contributor Activity - - Contributor Activity +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( + description="A product affected by the vulnerability detailed in a repository security advisory." + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: list[ContributorActivityPropWeeksItems] = Field() - - -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" - - w: Missing[int] = Field(default=UNSET) - a: Missing[int] = Field(default=UNSET) - d: Missing[int] = Field(default=UNSET) - c: Missing[int] = Field(default=UNSET) - - -model_rebuild(ContributorActivity) -model_rebuild(ContributorActivityPropWeeksItems) + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "ContributorActivity", - "ContributorActivityPropWeeksItems", + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0386.py b/githubkit/versions/v2022_11_28/models/group_0386.py index 43efe1baa..db0858ff6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0386.py +++ b/githubkit/versions/v2022_11_28/models/group_0386.py @@ -9,18 +9,101 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + vulnerabilities: Missing[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] + ] = Field( + default=UNSET, + description="An array of products affected by the vulnerability detailed in a repository security advisory.", + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( + Field(description="The name of the package affected by the vulnerability.") + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage -class ParticipationStats(GitHubModel): - """Participation Stats""" + The name of the package affected by the vulnerability. + """ - all_: list[int] = Field(alias="all") - owner: list[int] = Field() + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) -model_rebuild(ParticipationStats) +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("ParticipationStats",) +__all__ = ( + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0387.py b/githubkit/versions/v2022_11_28/models/group_0387.py index 146a849ce..b379d895d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0387.py +++ b/githubkit/versions/v2022_11_28/models/group_0387.py @@ -9,32 +9,139 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class RepositorySubscription(GitHubModel): - """Repository Invitation +class RepositoryAdvisoryUpdate(GitHubModel): + """RepositoryAdvisoryUpdate""" + + summary: Missing[str] = Field( + max_length=1024, default=UNSET, description="A short summary of the advisory." + ) + description: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: Missing[list[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( + Field( + default=UNSET, + description="A product affected by the vulnerability detailed in a repository security advisory.", + ) + ) + cwe_ids: Missing[Union[list[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[list[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + state: Missing[Literal["published", "closed", "draft"]] = Field( + default=UNSET, description="The state of the advisory." + ) + collaborating_users: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of usernames who have been granted write access to the advisory.", + ) + collaborating_teams: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="A list of team slugs which have been granted write access to the advisory.", + ) - Repository invitations let you manage who you collaborate with. - """ - subscribed: bool = Field( - description="Determines if notifications should be received from this repository." +class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", ) - ignored: bool = Field( - description="Determines if all notifications should be blocked from this repository." + vulnerable_functions: Missing[Union[list[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." ) - reason: Union[str, None] = Field() - created_at: datetime = Field() - url: str = Field() - repository_url: str = Field() -model_rebuild(RepositorySubscription) +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) -__all__ = ("RepositorySubscription",) +__all__ = ( + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0388.py b/githubkit/versions/v2022_11_28/models/group_0388.py index c5f394186..e8f958a86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0388.py +++ b/githubkit/versions/v2022_11_28/models/group_0388.py @@ -9,35 +9,26 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0003 import SimpleUser -class Tag(GitHubModel): - """Tag - - Tag - """ - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() +class Stargazer(GitHubModel): + """Stargazer + Stargazer + """ -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(Tag) -model_rebuild(TagPropCommit) +model_rebuild(Stargazer) -__all__ = ( - "Tag", - "TagPropCommit", -) +__all__ = ("Stargazer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0389.py b/githubkit/versions/v2022_11_28/models/group_0389.py index 527c8ec3d..9fc28af36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0389.py +++ b/githubkit/versions/v2022_11_28/models/group_0389.py @@ -12,23 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class TagProtection(GitHubModel): - """Tag protection +class CommitActivity(GitHubModel): + """Commit Activity - Tag protection + Commit Activity """ - id: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - pattern: str = Field() + days: list[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(TagProtection) +model_rebuild(CommitActivity) -__all__ = ("TagProtection",) +__all__ = ("CommitActivity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0390.py b/githubkit/versions/v2022_11_28/models/group_0390.py index 72e23363a..60311444a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0390.py +++ b/githubkit/versions/v2022_11_28/models/group_0390.py @@ -9,20 +9,41 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser -class Topic(GitHubModel): - """Topic +class ContributorActivity(GitHubModel): + """Contributor Activity - A topic aggregates entities that are related to a subject. + Contributor Activity """ - names: list[str] = Field() + author: Union[None, SimpleUser] = Field() + total: int = Field() + weeks: list[ContributorActivityPropWeeksItems] = Field() + + +class ContributorActivityPropWeeksItems(GitHubModel): + """ContributorActivityPropWeeksItems""" + + w: Missing[int] = Field(default=UNSET) + a: Missing[int] = Field(default=UNSET) + d: Missing[int] = Field(default=UNSET) + c: Missing[int] = Field(default=UNSET) -model_rebuild(Topic) +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) -__all__ = ("Topic",) +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0391.py b/githubkit/versions/v2022_11_28/models/group_0391.py index 8f9d3f9f8..43efe1baa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0391.py +++ b/githubkit/versions/v2022_11_28/models/group_0391.py @@ -9,21 +9,18 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Traffic(GitHubModel): - """Traffic""" +class ParticipationStats(GitHubModel): + """Participation Stats""" - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() + all_: list[int] = Field(alias="all") + owner: list[int] = Field() -model_rebuild(Traffic) +model_rebuild(ParticipationStats) -__all__ = ("Traffic",) +__all__ = ("ParticipationStats",) diff --git a/githubkit/versions/v2022_11_28/models/group_0392.py b/githubkit/versions/v2022_11_28/models/group_0392.py index b76288377..146a849ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0392.py +++ b/githubkit/versions/v2022_11_28/models/group_0392.py @@ -9,24 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0391 import Traffic - -class CloneTraffic(GitHubModel): - """Clone Traffic +class RepositorySubscription(GitHubModel): + """Repository Invitation - Clone Traffic + Repository invitations let you manage who you collaborate with. """ - count: int = Field() - uniques: int = Field() - clones: list[Traffic] = Field() + subscribed: bool = Field( + description="Determines if notifications should be received from this repository." + ) + ignored: bool = Field( + description="Determines if all notifications should be blocked from this repository." + ) + reason: Union[str, None] = Field() + created_at: datetime = Field() + url: str = Field() + repository_url: str = Field() -model_rebuild(CloneTraffic) +model_rebuild(RepositorySubscription) -__all__ = ("CloneTraffic",) +__all__ = ("RepositorySubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0393.py b/githubkit/versions/v2022_11_28/models/group_0393.py index 97ab65074..c5f394186 100644 --- a/githubkit/versions/v2022_11_28/models/group_0393.py +++ b/githubkit/versions/v2022_11_28/models/group_0393.py @@ -14,18 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic +class Tag(GitHubModel): + """Tag - Content Traffic + Tag """ - path: str = Field() - title: str = Field() - count: int = Field() - uniques: int = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() -model_rebuild(ContentTraffic) +class TagPropCommit(GitHubModel): + """TagPropCommit""" -__all__ = ("ContentTraffic",) + sha: str = Field() + url: str = Field() + + +model_rebuild(Tag) +model_rebuild(TagPropCommit) + +__all__ = ( + "Tag", + "TagPropCommit", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0394.py b/githubkit/versions/v2022_11_28/models/group_0394.py index 7ced93dd8..527c8ec3d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0394.py +++ b/githubkit/versions/v2022_11_28/models/group_0394.py @@ -12,19 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReferrerTraffic(GitHubModel): - """Referrer Traffic +class TagProtection(GitHubModel): + """Tag protection - Referrer Traffic + Tag protection """ - referrer: str = Field() - count: int = Field() - uniques: int = Field() + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() -model_rebuild(ReferrerTraffic) +model_rebuild(TagProtection) -__all__ = ("ReferrerTraffic",) +__all__ = ("TagProtection",) diff --git a/githubkit/versions/v2022_11_28/models/group_0395.py b/githubkit/versions/v2022_11_28/models/group_0395.py index f0e058474..72e23363a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0395.py +++ b/githubkit/versions/v2022_11_28/models/group_0395.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0391 import Traffic +class Topic(GitHubModel): + """Topic -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic + A topic aggregates entities that are related to a subject. """ - count: int = Field() - uniques: int = Field() - views: list[Traffic] = Field() + names: list[str] = Field() -model_rebuild(ViewTraffic) +model_rebuild(Topic) -__all__ = ("ViewTraffic",) +__all__ = ("Topic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0396.py b/githubkit/versions/v2022_11_28/models/group_0396.py index 46d30061f..8f9d3f9f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0396.py +++ b/githubkit/versions/v2022_11_28/models/group_0396.py @@ -9,38 +9,21 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class SearchResultTextMatchesItems(GitHubModel): - """SearchResultTextMatchesItems""" +class Traffic(GitHubModel): + """Traffic""" - object_url: Missing[str] = Field(default=UNSET) - object_type: Missing[Union[str, None]] = Field(default=UNSET) - property_: Missing[str] = Field(default=UNSET, alias="property") - fragment: Missing[str] = Field(default=UNSET) - matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( - default=UNSET - ) + timestamp: datetime = Field() + uniques: int = Field() + count: int = Field() -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" +model_rebuild(Traffic) - text: Missing[str] = Field(default=UNSET) - indices: Missing[list[int]] = Field(default=UNSET) - - -model_rebuild(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) - -__all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", -) +__all__ = ("Traffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0397.py b/githubkit/versions/v2022_11_28/models/group_0397.py index 787760a0e..31e4f48eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0397.py +++ b/githubkit/versions/v2022_11_28/models/group_0397.py @@ -9,56 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0058 import MinimalRepository -from .group_0396 import SearchResultTextMatchesItems +from .group_0396 import Traffic -class CodeSearchResultItem(GitHubModel): - """Code Search Result Item +class CloneTraffic(GitHubModel): + """Clone Traffic - Code Search Result Item + Clone Traffic """ - name: str = Field() - path: str = Field() - sha: str = Field() - url: str = Field() - git_url: str = Field() - html_url: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - file_size: Missing[int] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - last_modified_at: Missing[datetime] = Field(default=UNSET) - line_numbers: Missing[list[str]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - - -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CodeSearchResultItem] = Field() + count: int = Field() + uniques: int = Field() + clones: list[Traffic] = Field() -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) +model_rebuild(CloneTraffic) -__all__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", -) +__all__ = ("CloneTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0398.py b/githubkit/versions/v2022_11_28/models/group_0398.py index 73a609a98..97ab65074 100644 --- a/githubkit/versions/v2022_11_28/models/group_0398.py +++ b/githubkit/versions/v2022_11_28/models/group_0398.py @@ -9,67 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0058 import MinimalRepository -from .group_0222 import GitUser -from .group_0396 import SearchResultTextMatchesItems -from .group_0399 import CommitSearchResultItemPropCommit -class CommitSearchResultItem(GitHubModel): - """Commit Search Result Item +class ContentTraffic(GitHubModel): + """Content Traffic - Commit Search Result Item + Content Traffic """ - url: str = Field() - sha: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitSearchResultItemPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, GitUser] = Field() - parents: list[CommitSearchResultItemPropParentsItems] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - - -class CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[CommitSearchResultItem] = Field() + path: str = Field() + title: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(ContentTraffic) -__all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", -) +__all__ = ("ContentTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0399.py b/githubkit/versions/v2022_11_28/models/group_0399.py index c96546106..7ced93dd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0399.py +++ b/githubkit/versions/v2022_11_28/models/group_0399.py @@ -9,52 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0222 import GitUser -from .group_0223 import Verification - - -class CommitSearchResultItemPropCommit(GitHubModel): - """CommitSearchResultItemPropCommit""" - - author: CommitSearchResultItemPropCommitPropAuthor = Field() - committer: Union[None, GitUser] = Field() - comment_count: int = Field() - message: str = Field() - tree: CommitSearchResultItemPropCommitPropTree = Field() - url: str = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" - name: str = Field() - email: str = Field() - date: datetime = Field() +class ReferrerTraffic(GitHubModel): + """Referrer Traffic -class CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" + Referrer Traffic + """ - sha: str = Field() - url: str = Field() + referrer: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) +model_rebuild(ReferrerTraffic) -__all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", -) +__all__ = ("ReferrerTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0400.py b/githubkit/versions/v2022_11_28/models/group_0400.py index d1f04e6b5..80afd3cae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0400.py +++ b/githubkit/versions/v2022_11_28/models/group_0400.py @@ -9,139 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0010 import Integration -from .group_0020 import Repository -from .group_0039 import Milestone -from .group_0040 import IssueType -from .group_0041 import ReactionRollup -from .group_0396 import SearchResultTextMatchesItems +from .group_0396 import Traffic -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item +class ViewTraffic(GitHubModel): + """View Traffic - Issue Search Result Item + View Traffic """ - url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - title: str = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - labels: list[IssueSearchResultItemPropLabelsItems] = Field() - sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: str = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[None, SimpleUser] = Field() - milestone: Union[None, Milestone] = Field() - comments: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - color: Missing[str] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - - -class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class IssueSearchResultItemPropPullRequest(GitHubModel): - """IssueSearchResultItemPropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[IssueSearchResultItem] = Field() + count: int = Field() + uniques: int = Field() + views: list[Traffic] = Field() -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropSubIssuesSummary) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) +model_rebuild(ViewTraffic) -__all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "IssueSearchResultItemPropSubIssuesSummary", - "SearchIssuesGetResponse200", -) +__all__ = ("ViewTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0401.py b/githubkit/versions/v2022_11_28/models/group_0401.py index aeb542e31..46d30061f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0401.py +++ b/githubkit/versions/v2022_11_28/models/group_0401.py @@ -17,40 +17,30 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0396 import SearchResultTextMatchesItems +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item - - Label Search Result Item - """ - - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - color: str = Field() - default: bool = Field() - description: Union[str, None] = Field() - score: float = Field() - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + object_url: Missing[str] = Field(default=UNSET) + object_type: Missing[Union[str, None]] = Field(default=UNSET) + property_: Missing[str] = Field(default=UNSET, alias="property") + fragment: Missing[str] = Field(default=UNSET) + matches: Missing[list[SearchResultTextMatchesItemsPropMatchesItems]] = Field( + default=UNSET ) -class SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: list[LabelSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[list[int]] = Field(default=UNSET) -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0402.py b/githubkit/versions/v2022_11_28/models/group_0402.py index b1c51e8c6..9706c8ba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0402.py +++ b/githubkit/versions/v2022_11_28/models/group_0402.py @@ -18,139 +18,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple -from .group_0396 import SearchResultTextMatchesItems +from .group_0061 import MinimalRepository +from .group_0401 import SearchResultTextMatchesItems -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item +class CodeSearchResultItem(GitHubModel): + """Code Search Result Item - Repo Search Result Item + Code Search Result Item """ - id: int = Field() - node_id: str = Field() name: str = Field() - full_name: str = Field() - owner: Union[None, SimpleUser] = Field() - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() + path: str = Field() + sha: str = Field() url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - pushed_at: datetime = Field() - homepage: Union[str, None] = Field() - size: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - open_issues_count: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - default_branch: str = Field() - score: float = Field() - forks_url: str = Field() - keys_url: str = Field() - collaborators_url: str = Field() - teams_url: str = Field() - hooks_url: str = Field() - issue_events_url: str = Field() - events_url: str = Field() - assignees_url: str = Field() - branches_url: str = Field() - tags_url: str = Field() - blobs_url: str = Field() - git_tags_url: str = Field() - git_refs_url: str = Field() - trees_url: str = Field() - statuses_url: str = Field() - languages_url: str = Field() - stargazers_url: str = Field() - contributors_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - commits_url: str = Field() - git_commits_url: str = Field() - comments_url: str = Field() - issue_comment_url: str = Field() - contents_url: str = Field() - compare_url: str = Field() - merges_url: str = Field() - archive_url: str = Field() - downloads_url: str = Field() - issues_url: str = Field() - pulls_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - labels_url: str = Field() - releases_url: str = Field() - deployments_url: str = Field() git_url: str = Field() - ssh_url: str = Field() - clone_url: str = Field() - svn_url: str = Field() - forks: int = Field() - open_issues: int = Field() - watchers: int = Field() - topics: Missing[list[str]] = Field(default=UNSET) - mirror_url: Union[str, None] = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_pages: bool = Field() - has_wiki: bool = Field() - has_downloads: bool = Field() - has_discussions: Missing[bool] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + html_url: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - license_: Union[None, LicenseSimple] = Field(alias="license") - permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + score: float = Field() + file_size: Missing[int] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + last_modified_at: Missing[datetime] = Field(default=UNSET) + line_numbers: Missing[list[str]] = Field(default=UNSET) text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - - -class RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[RepoSearchResultItem] = Field() + items: list[CodeSearchResultItem] = Field() -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0403.py b/githubkit/versions/v2022_11_28/models/group_0403.py index a88054c97..694eca4c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0403.py +++ b/githubkit/versions/v2022_11_28/models/group_0403.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union from pydantic import Field @@ -18,93 +17,59 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0396 import SearchResultTextMatchesItems +from .group_0003 import SimpleUser +from .group_0061 import MinimalRepository +from .group_0226 import GitUser +from .group_0401 import SearchResultTextMatchesItems +from .group_0404 import CommitSearchResultItemPropCommit -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item - Topic Search Result Item + Commit Search Result Item """ - name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() - description: Union[str, None] = Field() - created_by: Union[str, None] = Field() - released: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - featured: bool = Field() - curated: bool = Field() + url: str = Field() + sha: str = Field() + html_url: str = Field() + comments_url: str = Field() + commit: CommitSearchResultItemPropCommit = Field() + author: Union[None, SimpleUser] = Field() + committer: Union[None, GitUser] = Field() + parents: list[CommitSearchResultItemPropParentsItems] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) score: float = Field() - repository_count: Missing[Union[int, None]] = Field(default=UNSET) - logo_url: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( - default=UNSET - ) - aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( - default=UNSET - ) - - -class TopicSearchResultItemPropRelatedItems(GitHubModel): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( - Field(default=UNSET) - ) - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) - - -class TopicSearchResultItemPropAliasesItems(GitHubModel): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( - Field(default=UNSET) - ) -class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) -class SearchTopicsGetResponse200(GitHubModel): - """SearchTopicsGetResponse200""" +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: list[TopicSearchResultItem] = Field() + items: list[CommitSearchResultItem] = Field() -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "SearchTopicsGetResponse200", - "TopicSearchResultItem", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0404.py b/githubkit/versions/v2022_11_28/models/group_0404.py index 9f1b969ff..68f4da517 100644 --- a/githubkit/versions/v2022_11_28/models/group_0404.py +++ b/githubkit/versions/v2022_11_28/models/group_0404.py @@ -18,66 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0396 import SearchResultTextMatchesItems +from .group_0226 import GitUser +from .group_0227 import Verification -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" - User Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthor = Field() + committer: Union[None, GitUser] = Field() + comment_count: int = Field() + message: str = Field() + tree: CommitSearchResultItemPropCommitPropTree = Field() + url: str = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): + """CommitSearchResultItemPropCommitPropAuthor""" + + name: str = Field() + email: str = Field() + date: datetime = Field() - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() + +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" + + sha: str = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - received_events_url: str = Field() - type: str = Field() - score: float = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - events_url: str = Field() - public_repos: Missing[int] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - bio: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - site_admin: bool = Field() - hireable: Missing[Union[bool, None]] = Field(default=UNSET) - text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - blog: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: list[UserSearchResultItem] = Field() - - -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) + + +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) __all__ = ( - "SearchUsersGetResponse200", - "UserSearchResultItem", + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0405.py b/githubkit/versions/v2022_11_28/models/group_0405.py index c4b785265..92b66d73e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0405.py +++ b/githubkit/versions/v2022_11_28/models/group_0405.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,71 +18,130 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0010 import Integration +from .group_0020 import Repository +from .group_0042 import Milestone +from .group_0043 import IssueType +from .group_0044 import ReactionRollup +from .group_0401 import SearchResultTextMatchesItems -class PrivateUser(GitHubModel): - """Private User - Private User +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item + + Issue Search Result Item """ - login: str = Field() - id: int = Field() - user_view_type: Missing[str] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + title: str = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + labels: list[IssueSearchResultItemPropLabelsItems] = Field() + sub_issues_summary: Missing[IssueSearchResultItemPropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: str = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[None, SimpleUser] = Field() + milestone: Union[None, Milestone] = Field() + comments: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - private_gists: int = Field() - total_private_repos: int = Field() - owned_private_repos: int = Field() - disk_usage: int = Field() - collaborators: int = Field() - two_factor_authentication: bool = Field() - plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) - business_plus: Missing[bool] = Field(default=UNSET) - ldap_dn: Missing[str] = Field(default=UNSET) - - -class PrivateUserPropPlan(GitHubModel): - """PrivateUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() - - -model_rebuild(PrivateUser) -model_rebuild(PrivateUserPropPlan) + closed_at: Union[datetime, None] = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) + body: Missing[str] = Field(default=UNSET) + score: float = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class IssueSearchResultItemPropLabelsItems(GitHubModel): + """IssueSearchResultItemPropLabelsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + color: Missing[str] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueSearchResultItemPropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[IssueSearchResultItem] = Field() + + +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropSubIssuesSummary) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "IssueSearchResultItemPropSubIssuesSummary", + "SearchIssuesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0406.py b/githubkit/versions/v2022_11_28/models/group_0406.py index f6bee6e63..3d783c396 100644 --- a/githubkit/versions/v2022_11_28/models/group_0406.py +++ b/githubkit/versions/v2022_11_28/models/group_0406.py @@ -9,21 +9,48 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0401 import SearchResultTextMatchesItems -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item - The public key used for setting user Codespaces' Secrets. + Label Search Result Item """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + color: str = Field() + default: bool = Field() + description: Union[str, None] = Field() + score: float = Field() + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + + +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[LabelSearchResultItem] = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "LabelSearchResultItem", + "SearchLabelsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0407.py b/githubkit/versions/v2022_11_28/models/group_0407.py index 48a2ada39..a0cf5c01c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0407.py +++ b/githubkit/versions/v2022_11_28/models/group_0407.py @@ -18,35 +18,139 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple +from .group_0401 import SearchResultTextMatchesItems -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item + + Repo Search Result Item """ - state: Missing[Union[str, None]] = Field( - default=UNSET, description="State of the latest export" - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Completion time of the last export operation" - ) - branch: Missing[Union[str, None]] = Field( - default=UNSET, description="Name of the exported branch" + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + pushed_at: datetime = Field() + homepage: Union[str, None] = Field() + size: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + open_issues_count: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + default_branch: str = Field() + score: float = Field() + forks_url: str = Field() + keys_url: str = Field() + collaborators_url: str = Field() + teams_url: str = Field() + hooks_url: str = Field() + issue_events_url: str = Field() + events_url: str = Field() + assignees_url: str = Field() + branches_url: str = Field() + tags_url: str = Field() + blobs_url: str = Field() + git_tags_url: str = Field() + git_refs_url: str = Field() + trees_url: str = Field() + statuses_url: str = Field() + languages_url: str = Field() + stargazers_url: str = Field() + contributors_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + commits_url: str = Field() + git_commits_url: str = Field() + comments_url: str = Field() + issue_comment_url: str = Field() + contents_url: str = Field() + compare_url: str = Field() + merges_url: str = Field() + archive_url: str = Field() + downloads_url: str = Field() + issues_url: str = Field() + pulls_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + labels_url: str = Field() + releases_url: str = Field() + deployments_url: str = Field() + git_url: str = Field() + ssh_url: str = Field() + clone_url: str = Field() + svn_url: str = Field() + forks: int = Field() + open_issues: int = Field() + watchers: int = Field() + topics: Missing[list[str]] = Field(default=UNSET) + mirror_url: Union[str, None] = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_pages: bool = Field() + has_wiki: bool = Field() + has_downloads: bool = Field() + has_discussions: Missing[bool] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, description="Git commit SHA of the exported branch" + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", ) - id: Missing[str] = Field(default=UNSET, description="Id for the export details") - export_url: Missing[str] = Field( - default=UNSET, description="Url for fetching export details" - ) - html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="Web url for the exported branch" + license_: Union[None, LicenseSimple] = Field(alias="license") + permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class RepoSearchResultItemPropPermissions(GitHubModel): + """RepoSearchResultItemPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[RepoSearchResultItem] = Field() -model_rebuild(CodespaceExportDetails) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) -__all__ = ("CodespaceExportDetails",) +__all__ = ( + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0408.py b/githubkit/versions/v2022_11_28/models/group_0408.py index 001e9a2f5..ce6b5c7b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0408.py +++ b/githubkit/versions/v2022_11_28/models/group_0408.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,155 +18,93 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0086 import CodespaceMachine -from .group_0120 import FullRepository +from .group_0401 import SearchResultTextMatchesItems -class CodespaceWithFullRepository(GitHubModel): - """Codespace +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item - A codespace. + Topic Search Result Item """ - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) + name: str = Field() + display_name: Union[str, None] = Field() + short_description: Union[str, None] = Field() + description: Union[str, None] = Field() + created_by: Union[str, None] = Field() + released: Union[str, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." + featured: bool = Field() + curated: bool = Field() + score: float = Field() + repository_count: Missing[Union[int, None]] = Field(default=UNSET) + logo_url: Missing[Union[str, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." + related: Missing[Union[list[TopicSearchResultItemPropRelatedItems], None]] = Field( + default=UNSET ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." + aliases: Missing[Union[list[TopicSearchResultItemPropAliasesItems], None]] = Field( + default=UNSET ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: list[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + + +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( Field(default=UNSET) ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus +class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - Details about the codespace's git repository. - """ + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", + +class TopicSearchResultItemPropAliasesItems(GitHubModel): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( + Field(default=UNSET) ) -class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) + + +class SearchTopicsGetResponse200(GitHubModel): + """SearchTopicsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[TopicSearchResultItem] = Field() -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) +model_rebuild(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) __all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", + "SearchTopicsGetResponse200", + "TopicSearchResultItem", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0409.py b/githubkit/versions/v2022_11_28/models/group_0409.py index 1fb1f3941..634ee5a7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0409.py +++ b/githubkit/versions/v2022_11_28/models/group_0409.py @@ -9,25 +9,75 @@ from __future__ import annotations +from datetime import datetime from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0401 import SearchResultTextMatchesItems -class Email(GitHubModel): - """Email - Email +class UserSearchResultItem(GitHubModel): + """User Search Result Item + + User Search Result Item """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + received_events_url: str = Field() + type: str = Field() + score: float = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + events_url: str = Field() + public_repos: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + bio: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + site_admin: bool = Field() + hireable: Missing[Union[bool, None]] = Field(default=UNSET) + text_matches: Missing[list[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + blog: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: list[UserSearchResultItem] = Field() -model_rebuild(Email) +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) -__all__ = ("Email",) +__all__ = ( + "SearchUsersGetResponse200", + "UserSearchResultItem", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0410.py b/githubkit/versions/v2022_11_28/models/group_0410.py index f58661fe1..c4b785265 100644 --- a/githubkit/versions/v2022_11_28/models/group_0410.py +++ b/githubkit/versions/v2022_11_28/models/group_0410.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from pydantic import Field @@ -19,70 +19,70 @@ from githubkit.utils import UNSET -class GpgKey(GitHubModel): - """GPG Key +class PrivateUser(GitHubModel): + """Private User - A unique encryption key + Private User """ + login: str = Field() id: int = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - primary_key_id: Union[int, None] = Field() - key_id: str = Field() - public_key: str = Field() - emails: list[GpgKeyPropEmailsItems] = Field() - subkeys: list[GpgKeyPropSubkeysItems] = Field() - can_sign: bool = Field() - can_encrypt_comms: bool = Field() - can_encrypt_storage: bool = Field() - can_certify: bool = Field() + user_view_type: Missing[str] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() created_at: datetime = Field() - expires_at: Union[datetime, None] = Field() - revoked: bool = Field() - raw_key: Union[str, None] = Field() + updated_at: datetime = Field() + private_gists: int = Field() + total_private_repos: int = Field() + owned_private_repos: int = Field() + disk_usage: int = Field() + collaborators: int = Field() + two_factor_authentication: bool = Field() + plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) + business_plus: Missing[bool] = Field(default=UNSET) + ldap_dn: Missing[str] = Field(default=UNSET) -class GpgKeyPropEmailsItems(GitHubModel): - """GpgKeyPropEmailsItems""" +class PrivateUserPropPlan(GitHubModel): + """PrivateUserPropPlan""" - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) + collaborators: int = Field() + name: str = Field() + space: int = Field() + private_repos: int = Field() -class GpgKeyPropSubkeysItems(GitHubModel): - """GpgKeyPropSubkeysItems""" - - id: Missing[int] = Field(default=UNSET) - primary_key_id: Missing[int] = Field(default=UNSET) - key_id: Missing[str] = Field(default=UNSET) - public_key: Missing[str] = Field(default=UNSET) - emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) - subkeys: Missing[list[Any]] = Field(default=UNSET) - can_sign: Missing[bool] = Field(default=UNSET) - can_encrypt_comms: Missing[bool] = Field(default=UNSET) - can_encrypt_storage: Missing[bool] = Field(default=UNSET) - can_certify: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - expires_at: Missing[Union[str, None]] = Field(default=UNSET) - raw_key: Missing[Union[str, None]] = Field(default=UNSET) - revoked: Missing[bool] = Field(default=UNSET) - - -class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) - - -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) +model_rebuild(PrivateUser) +model_rebuild(PrivateUserPropPlan) __all__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", + "PrivateUser", + "PrivateUserPropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0411.py b/githubkit/versions/v2022_11_28/models/group_0411.py index f75f4e54d..f6bee6e63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0411.py +++ b/githubkit/versions/v2022_11_28/models/group_0411.py @@ -9,28 +9,21 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Key(GitHubModel): - """Key +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - Key + The public key used for setting user Codespaces' Secrets. """ - key: str = Field() - id: int = Field() - url: str = Field() - title: str = Field() - created_at: datetime = Field() - verified: bool = Field() - read_only: bool = Field() + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(Key) +model_rebuild(CodespacesUserPublicKey) -__all__ = ("Key",) +__all__ = ("CodespacesUserPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0412.py b/githubkit/versions/v2022_11_28/models/group_0412.py index 4743a8125..48a2ada39 100644 --- a/githubkit/versions/v2022_11_28/models/group_0412.py +++ b/githubkit/versions/v2022_11_28/models/group_0412.py @@ -18,43 +18,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0053 import MarketplaceListingPlan +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase - - User Marketplace Purchase + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - billing_cycle: str = Field() - next_billing_date: Union[datetime, None] = Field() - unit_count: Union[int, None] = Field() - on_free_trial: bool = Field() - free_trial_ends_on: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - account: MarketplaceAccount = Field(title="Marketplace Account") - plan: MarketplaceListingPlan = Field( - title="Marketplace Listing Plan", description="Marketplace Listing Plan" + state: Missing[Union[str, None]] = Field( + default=UNSET, description="State of the latest export" + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Completion time of the last export operation" + ) + branch: Missing[Union[str, None]] = Field( + default=UNSET, description="Name of the exported branch" + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, description="Git commit SHA of the exported branch" + ) + id: Missing[str] = Field(default=UNSET, description="Id for the export details") + export_url: Missing[str] = Field( + default=UNSET, description="Url for fetching export details" + ) + html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="Web url for the exported branch" ) -class MarketplaceAccount(GitHubModel): - """Marketplace Account""" - - url: str = Field() - id: int = Field() - type: str = Field() - node_id: Missing[str] = Field(default=UNSET) - login: str = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(UserMarketplacePurchase) -model_rebuild(MarketplaceAccount) +model_rebuild(CodespaceExportDetails) -__all__ = ( - "MarketplaceAccount", - "UserMarketplacePurchase", -) +__all__ = ("CodespaceExportDetails",) diff --git a/githubkit/versions/v2022_11_28/models/group_0413.py b/githubkit/versions/v2022_11_28/models/group_0413.py index cae25bb86..0b7471f78 100644 --- a/githubkit/versions/v2022_11_28/models/group_0413.py +++ b/githubkit/versions/v2022_11_28/models/group_0413.py @@ -9,21 +9,164 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0090 import CodespaceMachine +from .group_0124 import FullRepository + + +class CodespaceWithFullRepository(GitHubModel): + """Codespace + + A codespace. + """ + + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespaceWithFullRepositoryPropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: list[str] = Field() + runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + Field(default=UNSET) + ) + pending_operation: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + ) + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) -class SocialAccount(GitHubModel): - """Social account +class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): + """CodespaceWithFullRepositoryPropGitStatus - Social media account + Details about the codespace's git repository. """ - provider: str = Field() - url: str = Field() + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) -model_rebuild(SocialAccount) +model_rebuild(CodespaceWithFullRepository) +model_rebuild(CodespaceWithFullRepositoryPropGitStatus) +model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) -__all__ = ("SocialAccount",) +__all__ = ( + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0414.py b/githubkit/versions/v2022_11_28/models/group_0414.py index e6313b836..1fb1f3941 100644 --- a/githubkit/versions/v2022_11_28/models/group_0414.py +++ b/githubkit/versions/v2022_11_28/models/group_0414.py @@ -9,25 +9,25 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class SshSigningKey(GitHubModel): - """SSH Signing Key +class Email(GitHubModel): + """Email - A public SSH key used to sign Git commits + Email """ - key: str = Field() - id: int = Field() - title: str = Field() - created_at: datetime = Field() + email: str = Field() + primary: bool = Field() + verified: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(SshSigningKey) +model_rebuild(Email) -__all__ = ("SshSigningKey",) +__all__ = ("Email",) diff --git a/githubkit/versions/v2022_11_28/models/group_0415.py b/githubkit/versions/v2022_11_28/models/group_0415.py index 3c3baecb3..f58661fe1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0415.py +++ b/githubkit/versions/v2022_11_28/models/group_0415.py @@ -10,24 +10,79 @@ from __future__ import annotations from datetime import datetime +from typing import Any, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0020 import Repository +class GpgKey(GitHubModel): + """GPG Key -class StarredRepository(GitHubModel): - """Starred Repository - - Starred Repository + A unique encryption key """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + id: int = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + primary_key_id: Union[int, None] = Field() + key_id: str = Field() + public_key: str = Field() + emails: list[GpgKeyPropEmailsItems] = Field() + subkeys: list[GpgKeyPropSubkeysItems] = Field() + can_sign: bool = Field() + can_encrypt_comms: bool = Field() + can_encrypt_storage: bool = Field() + can_certify: bool = Field() + created_at: datetime = Field() + expires_at: Union[datetime, None] = Field() + revoked: bool = Field() + raw_key: Union[str, None] = Field() + + +class GpgKeyPropEmailsItems(GitHubModel): + """GpgKeyPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItems(GitHubModel): + """GpgKeyPropSubkeysItems""" + + id: Missing[int] = Field(default=UNSET) + primary_key_id: Missing[int] = Field(default=UNSET) + key_id: Missing[str] = Field(default=UNSET) + public_key: Missing[str] = Field(default=UNSET) + emails: Missing[list[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) + subkeys: Missing[list[Any]] = Field(default=UNSET) + can_sign: Missing[bool] = Field(default=UNSET) + can_encrypt_comms: Missing[bool] = Field(default=UNSET) + can_encrypt_storage: Missing[bool] = Field(default=UNSET) + can_certify: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + expires_at: Missing[Union[str, None]] = Field(default=UNSET) + raw_key: Missing[Union[str, None]] = Field(default=UNSET) + revoked: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) -model_rebuild(StarredRepository) +model_rebuild(GpgKey) +model_rebuild(GpgKeyPropEmailsItems) +model_rebuild(GpgKeyPropSubkeysItems) +model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) -__all__ = ("StarredRepository",) +__all__ = ( + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0416.py b/githubkit/versions/v2022_11_28/models/group_0416.py index 2258e2d95..f75f4e54d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0416.py +++ b/githubkit/versions/v2022_11_28/models/group_0416.py @@ -9,31 +9,28 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Hovercard(GitHubModel): - """Hovercard +class Key(GitHubModel): + """Key - Hovercard + Key """ - contexts: list[HovercardPropContextsItems] = Field() - - -class HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" - - message: str = Field() - octicon: str = Field() + key: str = Field() + id: int = Field() + url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() -model_rebuild(Hovercard) -model_rebuild(HovercardPropContextsItems) +model_rebuild(Key) -__all__ = ( - "Hovercard", - "HovercardPropContextsItems", -) +__all__ = ("Key",) diff --git a/githubkit/versions/v2022_11_28/models/group_0417.py b/githubkit/versions/v2022_11_28/models/group_0417.py index fd0411072..1f39560ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0417.py +++ b/githubkit/versions/v2022_11_28/models/group_0417.py @@ -9,21 +9,52 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0056 import MarketplaceListingPlan -class KeySimple(GitHubModel): - """Key Simple +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase - Key Simple + User Marketplace Purchase """ + billing_cycle: str = Field() + next_billing_date: Union[datetime, None] = Field() + unit_count: Union[int, None] = Field() + on_free_trial: bool = Field() + free_trial_ends_on: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + account: MarketplaceAccount = Field(title="Marketplace Account") + plan: MarketplaceListingPlan = Field( + title="Marketplace Listing Plan", description="Marketplace Listing Plan" + ) + + +class MarketplaceAccount(GitHubModel): + """Marketplace Account""" + + url: str = Field() id: int = Field() - key: str = Field() + type: str = Field() + node_id: Missing[str] = Field(default=UNSET) + login: str = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(KeySimple) +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) -__all__ = ("KeySimple",) +__all__ = ( + "MarketplaceAccount", + "UserMarketplacePurchase", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0418.py b/githubkit/versions/v2022_11_28/models/group_0418.py index 563a88dd0..cae25bb86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0418.py +++ b/githubkit/versions/v2022_11_28/models/group_0418.py @@ -12,49 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class BillingUsageReportUser(GitHubModel): - """BillingUsageReportUser""" - - usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" - ) - - -class BillingUsageReportUserPropUsageItemsItems(GitHubModel): - """BillingUsageReportUserPropUsageItemsItems""" - - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) - - -model_rebuild(BillingUsageReportUser) -model_rebuild(BillingUsageReportUserPropUsageItemsItems) - -__all__ = ( - "BillingUsageReportUser", - "BillingUsageReportUserPropUsageItemsItems", -) + + +class SocialAccount(GitHubModel): + """Social account + + Social media account + """ + + provider: str = Field() + url: str = Field() + + +model_rebuild(SocialAccount) + +__all__ = ("SocialAccount",) diff --git a/githubkit/versions/v2022_11_28/models/group_0419.py b/githubkit/versions/v2022_11_28/models/group_0419.py index 0ac8d891b..e6313b836 100644 --- a/githubkit/versions/v2022_11_28/models/group_0419.py +++ b/githubkit/versions/v2022_11_28/models/group_0419.py @@ -10,42 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class EnterpriseWebhooks(GitHubModel): - """Enterprise +class SshSigningKey(GitHubModel): + """SSH Signing Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/admin/overview/about- - enterprise-accounts)." + A public SSH key used to sign Git commits """ - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the enterprise." - ) - html_url: str = Field() - website_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The enterprise's website URL." - ) - id: int = Field(description="Unique identifier of the enterprise") - node_id: str = Field() - name: str = Field(description="The name of the enterprise.") - slug: str = Field(description="The slug url identifier for the enterprise.") - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - avatar_url: str = Field() - - -model_rebuild(EnterpriseWebhooks) - -__all__ = ("EnterpriseWebhooks",) + key: str = Field() + id: int = Field() + title: str = Field() + created_at: datetime = Field() + + +model_rebuild(SshSigningKey) + +__all__ = ("SshSigningKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0420.py b/githubkit/versions/v2022_11_28/models/group_0420.py index 8f356bd76..3c3baecb3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0420.py +++ b/githubkit/versions/v2022_11_28/models/group_0420.py @@ -9,25 +9,25 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0020 import Repository + -class SimpleInstallation(GitHubModel): - """Simple Installation +class StarredRepository(GitHubModel): + """Starred Repository - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- - github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + Starred Repository """ - id: int = Field(description="The ID of the installation.") - node_id: str = Field(description="The global node ID of the installation.") + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -model_rebuild(SimpleInstallation) +model_rebuild(StarredRepository) -__all__ = ("SimpleInstallation",) +__all__ = ("StarredRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0421.py b/githubkit/versions/v2022_11_28/models/group_0421.py index 29be5dd8a..2258e2d95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0421.py +++ b/githubkit/versions/v2022_11_28/models/group_0421.py @@ -9,36 +9,31 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple +class Hovercard(GitHubModel): + """Hovercard - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Hovercard """ - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() + contexts: list[HovercardPropContextsItems] = Field() + + +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" + + message: str = Field() + octicon: str = Field() -model_rebuild(OrganizationSimpleWebhooks) +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) -__all__ = ("OrganizationSimpleWebhooks",) +__all__ = ( + "Hovercard", + "HovercardPropContextsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0422.py b/githubkit/versions/v2022_11_28/models/group_0422.py index e9224aa34..fd0411072 100644 --- a/githubkit/versions/v2022_11_28/models/group_0422.py +++ b/githubkit/versions/v2022_11_28/models/group_0422.py @@ -9,372 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0019 import LicenseSimple - - -class RepositoryWebhooks(GitHubModel): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. - """ - - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - forks: int = Field() - permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field( - default=False, description="Whether the repository is private or public." - ) - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[list[str]] = Field(default=UNSET) - custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - template_repository: Missing[ - Union[RepositoryWebhooksPropTemplateRepository, None] - ] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryWebhooksPropPermissions(GitHubModel): - """RepositoryWebhooksPropPermissions""" +from githubkit.compat import GitHubModel, model_rebuild - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) +class KeySimple(GitHubModel): + """Key Simple -class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): - """RepositoryWebhooksPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + Key Simple """ - -class RepositoryWebhooksPropTemplateRepository(GitHubModel): - """RepositoryWebhooksPropTemplateRepository""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( - default=UNSET - ) - private: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - language: Missing[str] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[list[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + id: int = Field() + key: str = Field() -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) +model_rebuild(KeySimple) -__all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", -) +__all__ = ("KeySimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0423.py b/githubkit/versions/v2022_11_28/models/group_0423.py index 25b8ec63a..563a88dd0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0423.py +++ b/githubkit/versions/v2022_11_28/models/group_0423.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,71 +16,45 @@ from githubkit.utils import UNSET -class WebhooksRule(GitHubModel): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ +class BillingUsageReportUser(GitHubModel): + """BillingUsageReportUser""" - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() - ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + usage_items: Missing[list[BillingUsageReportUserPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" ) - authorized_actor_names: list[str] = Field() - authorized_actors_only: bool = Field() - authorized_dismissal_actors_only: bool = Field() - create_protected: Missing[bool] = Field(default=UNSET) - created_at: datetime = Field() - dismiss_stale_reviews_on_push: bool = Field() - id: int = Field() - ignore_approvals_from_contributors: bool = Field() - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( - description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." + + +class BillingUsageReportUserPropUsageItemsItems(GitHubModel): + """BillingUsageReportUserPropUsageItemsItems""" + + date: str = Field(description="Date of the usage line item.") + product: str = Field(description="Product name.") + sku: str = Field(description="SKU name.") + quantity: int = Field(description="Quantity of the usage line item.") + unit_type: str = Field( + alias="unitType", description="Unit type of the usage line item." ) - lock_allows_fork_sync: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." ) - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() - name: str = Field() - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." ) - repository_id: int = Field() - require_code_owner_review: bool = Field() - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it", + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." ) - required_approving_review_count: int = Field() - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( - Field() + net_amount: float = Field( + alias="netAmount", description="Net amount of the usage line item." ) - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + repository_name: Missing[str] = Field( + default=UNSET, alias="repositoryName", description="Name of the repository." ) - required_status_checks: list[str] = Field() - required_status_checks_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - signature_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] = Field() - strict_required_status_checks_policy: bool = Field() - updated_at: datetime = Field() -model_rebuild(WebhooksRule) +model_rebuild(BillingUsageReportUser) +model_rebuild(BillingUsageReportUserPropUsageItemsItems) -__all__ = ("WebhooksRule",) +__all__ = ( + "BillingUsageReportUser", + "BillingUsageReportUserPropUsageItemsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0424.py b/githubkit/versions/v2022_11_28/models/group_0424.py index 9615d1d1b..0ac8d891b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0424.py +++ b/githubkit/versions/v2022_11_28/models/group_0424.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,58 +18,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration -from .group_0058 import MinimalRepository -from .group_0204 import PullRequestMinimal +class EnterpriseWebhooks(GitHubModel): + """Enterprise -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/admin/overview/about- + enterprise-accounts)." """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Union[Integration, None]] = Field( - default=UNSET, - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_sha: Missing[str] = Field( - default=UNSET, description="The SHA of the head commit that is being checked." + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the enterprise." ) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" + html_url: str = Field() + website_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The enterprise's website URL." ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the enterprise") + node_id: str = Field() + name: str = Field(description="The name of the enterprise.") + slug: str = Field(description="The slug url identifier for the enterprise.") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + avatar_url: str = Field() -model_rebuild(SimpleCheckSuite) +model_rebuild(EnterpriseWebhooks) -__all__ = ("SimpleCheckSuite",) +__all__ = ("EnterpriseWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0425.py b/githubkit/versions/v2022_11_28/models/group_0425.py index 598ce80d1..8f356bd76 100644 --- a/githubkit/versions/v2022_11_28/models/group_0425.py +++ b/githubkit/versions/v2022_11_28/models/group_0425.py @@ -9,83 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0010 import Integration -from .group_0204 import PullRequestMinimal -from .group_0231 import DeploymentSimple -from .group_0424 import SimpleCheckSuite -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun +class SimpleInstallation(GitHubModel): + """Simple Installation - A check performed on the code of a given code change + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- + github-apps/registering-a-github-app/using-webhooks-with-github-apps)." """ - app: Union[None, Integration, None] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" - ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( - default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check.") - node_id: str = Field() - output: CheckRunWithSimpleCheckSuitePropOutput = Field() - pull_requests: list[PullRequestMinimal] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "pending"] = Field( - description="The phase of the lifecycle that the check is currently in." - ) - url: str = Field() - - -class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int = Field() - annotations_url: str = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - title: Union[str, None] = Field() + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(CheckRunWithSimpleCheckSuite) -model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) +model_rebuild(SimpleInstallation) -__all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", -) +__all__ = ("SimpleInstallation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0426.py b/githubkit/versions/v2022_11_28/models/group_0426.py index 63a38edef..29be5dd8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0426.py +++ b/githubkit/versions/v2022_11_28/models/group_0426.py @@ -14,29 +14,31 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - added_by: Missing[Union[str, None]] = Field(default=UNSET) - created_at: str = Field() + login: str = Field() id: int = Field() - key: str = Field() - last_used: Missing[Union[str, None]] = Field(default=UNSET) - read_only: bool = Field() - title: str = Field() + node_id: str = Field() url: str = Field() - verified: bool = Field() - enabled: Missing[bool] = Field(default=UNSET) + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() -model_rebuild(WebhooksDeployKey) +model_rebuild(OrganizationSimpleWebhooks) -__all__ = ("WebhooksDeployKey",) +__all__ = ("OrganizationSimpleWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0427.py b/githubkit/versions/v2022_11_28/models/group_0427.py index 8e1eed602..e9224aa34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0427.py +++ b/githubkit/versions/v2022_11_28/models/group_0427.py @@ -10,27 +10,371 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0019 import LicenseSimple -class WebhooksWorkflow(GitHubModel): - """Workflow""" - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() +class RepositoryWebhooks(GitHubModel): + """Repository + + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. + """ + + id: int = Field(description="Unique identifier of the repository") node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + forks: int = Field() + permissions: Missing[RepositoryWebhooksPropPermissions] = Field(default=UNSET) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[list[str]] = Field(default=UNSET) + custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + template_repository: Missing[ + Union[RepositoryWebhooksPropTemplateRepository, None] + ] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + starred_at: Missing[str] = Field(default=UNSET) + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether anonymous git access is enabled for this repository", + ) + + +class RepositoryWebhooksPropPermissions(GitHubModel): + """RepositoryWebhooksPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): + """RepositoryWebhooksPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class RepositoryWebhooksPropTemplateRepository(GitHubModel): + """RepositoryWebhooksPropTemplateRepository""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( + default=UNSET + ) + private: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + language: Missing[str] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[list[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhooksWorkflow) +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) -__all__ = ("WebhooksWorkflow",) +__all__ = ( + "RepositoryWebhooks", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0428.py b/githubkit/versions/v2022_11_28/models/group_0428.py index a9b088555..25b8ec63a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0428.py +++ b/githubkit/versions/v2022_11_28/models/group_0428.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,71 +19,71 @@ from githubkit.utils import UNSET -class WebhooksApprover(GitHubModel): - """WebhooksApprover""" +class WebhooksRule(GitHubModel): + """branch protection rule - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. + """ - -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" - - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + authorized_actor_names: list[str] = Field() + authorized_actors_only: bool = Field() + authorized_dismissal_actors_only: bool = Field() + create_protected: Missing[bool] = Field(default=UNSET) + created_at: datetime = Field() + dismiss_stale_reviews_on_push: bool = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + ignore_approvals_from_contributors: bool = Field() + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( + description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." + ) + lock_allows_fork_sync: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", + ) + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it", + ) + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_status_checks: list[str] = Field() + required_status_checks_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + signature_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + strict_required_status_checks_policy: bool = Field() + updated_at: datetime = Field() -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) +model_rebuild(WebhooksRule) -__all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", -) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/v2022_11_28/models/group_0429.py b/githubkit/versions/v2022_11_28/models/group_0429.py index 291bcddcd..e27e6098b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0429.py +++ b/githubkit/versions/v2022_11_28/models/group_0429.py @@ -9,24 +9,67 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0010 import Integration +from .group_0061 import MinimalRepository +from .group_0208 import PullRequestMinimal + +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" + A suite of checks performed on the code of a given code change + """ - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Union[Integration, None]] = Field( + default=UNSET, + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + pull_requests: Missing[list[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksWorkflowJobRun) +model_rebuild(SimpleCheckSuite) -__all__ = ("WebhooksWorkflowJobRun",) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/v2022_11_28/models/group_0430.py b/githubkit/versions/v2022_11_28/models/group_0430.py index 13da347fc..12b623ba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0430.py +++ b/githubkit/versions/v2022_11_28/models/group_0430.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,34 +18,74 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration +from .group_0208 import PullRequestMinimal +from .group_0235 import DeploymentSimple +from .group_0429 import SimpleCheckSuite -class WebhooksUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksUser) - -__all__ = ("WebhooksUser",) + +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, Integration, None] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") + node_id: str = Field() + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: list[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." + ) + url: str = Field() + + +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() + + +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) + +__all__ = ( + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0431.py b/githubkit/versions/v2022_11_28/models/group_0431.py index ff2aa46c5..63a38edef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0431.py +++ b/githubkit/versions/v2022_11_28/models/group_0431.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,86 +18,25 @@ from githubkit.utils import UNSET -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: datetime = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhooksAnswerPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - updated_at: datetime = Field() - user: Union[WebhooksAnswerPropUser, None] = Field(title="User") - - -class WebhooksAnswerPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ -class WebhooksAnswerPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + key: str = Field() + last_used: Missing[Union[str, None]] = Field(default=UNSET) + read_only: bool = Field() + title: str = Field() + url: str = Field() + verified: bool = Field() + enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +model_rebuild(WebhooksDeployKey) -__all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", -) +__all__ = ("WebhooksDeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0432.py b/githubkit/versions/v2022_11_28/models/group_0432.py index 3c0d2a361..8e1eed602 100644 --- a/githubkit/versions/v2022_11_28/models/group_0432.py +++ b/githubkit/versions/v2022_11_28/models/group_0432.py @@ -10,182 +10,27 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class Discussion(GitHubModel): - """Discussion +class WebhooksWorkflow(GitHubModel): + """Workflow""" - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() + badge_url: str = Field() created_at: datetime = Field() html_url: str = Field() id: int = Field() - locked: bool = Field() + name: str = Field() node_id: str = Field() - number: int = Field() - reactions: Missing[DiscussionPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( - description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." - ) - state_reason: Union[ - None, Literal["resolved", "outdated", "duplicate", "reopened"] - ] = Field(description="The reason for the current state") - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() + path: str = Field() + state: str = Field() updated_at: datetime = Field() - user: Union[DiscussionPropUser, None] = Field(title="User") - labels: Missing[list[Label]] = Field(default=UNSET) - - -class Label(GitHubModel): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int = Field(description="Unique identifier for the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - name: str = Field(description="The name of the label.") - description: Union[str, None] = Field( - description="Optional description of the label, such as its purpose." - ) - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field( - description="Whether this label comes by default in a new repository." - ) - - -class DiscussionPropAnswerChosenBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class DiscussionPropCategory(GitHubModel): - """DiscussionPropCategory""" - - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() - id: int = Field() - is_answerable: bool = Field() - name: str = Field() - node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() - - -class DiscussionPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class DiscussionPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(Discussion) -model_rebuild(Label) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +model_rebuild(WebhooksWorkflow) -__all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", - "Label", -) +__all__ = ("WebhooksWorkflow",) diff --git a/githubkit/versions/v2022_11_28/models/group_0433.py b/githubkit/versions/v2022_11_28/models/group_0433.py index 2e01fc5dd..a9b088555 100644 --- a/githubkit/versions/v2022_11_28/models/group_0433.py +++ b/githubkit/versions/v2022_11_28/models/group_0433.py @@ -18,52 +18,40 @@ from githubkit.utils import UNSET -class WebhooksComment(GitHubModel): - """WebhooksComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" + + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhooksCommentPropReactions = Field(title="Reactions") - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhooksCommentPropUser, None] = Field(title="User") - - -class WebhooksCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksCommentPropUser(GitHubModel): + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhooksReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -87,15 +75,14 @@ class WebhooksCommentPropUser(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) __all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0434.py b/githubkit/versions/v2022_11_28/models/group_0434.py index 6e6effd19..291bcddcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0434.py +++ b/githubkit/versions/v2022_11_28/models/group_0434.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksLabel(GitHubModel): - """Label""" +class WebhooksWorkflowJobRun(GitHubModel): + """WebhooksWorkflowJobRun""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + name: None = Field() + status: str = Field() + updated_at: str = Field() -model_rebuild(WebhooksLabel) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ("WebhooksLabel",) +__all__ = ("WebhooksWorkflowJobRun",) diff --git a/githubkit/versions/v2022_11_28/models/group_0435.py b/githubkit/versions/v2022_11_28/models/group_0435.py index ba770b6b0..13da347fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0435.py +++ b/githubkit/versions/v2022_11_28/models/group_0435.py @@ -9,21 +9,42 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -model_rebuild(WebhooksRepositoriesItems) - -__all__ = ("WebhooksRepositoriesItems",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhooksUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksUser) + +__all__ = ("WebhooksUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0436.py b/githubkit/versions/v2022_11_28/models/group_0436.py index f17279ee4..ff2aa46c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0436.py +++ b/githubkit/versions/v2022_11_28/models/group_0436.py @@ -9,21 +9,96 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: datetime = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + updated_at: datetime = Field() + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") + + +class WebhooksAnswerPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksAnswerPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRepositoriesAddedItems) +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) -__all__ = ("WebhooksRepositoriesAddedItems",) +__all__ = ( + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0437.py b/githubkit/versions/v2022_11_28/models/group_0437.py index c81ac8eaa..3c0d2a361 100644 --- a/githubkit/versions/v2022_11_28/models/group_0437.py +++ b/githubkit/versions/v2022_11_28/models/group_0437.py @@ -18,16 +18,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration +class Discussion(GitHubModel): + """Discussion -class WebhooksIssueComment(GitHubModel): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. + A Discussion in a repository. """ + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -41,23 +42,97 @@ class WebhooksIssueComment(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: str = Field(description="Contents of the issue comment") + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() created_at: datetime = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() + id: int = Field() + locked: bool = Field() node_id: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + number: int = Field() + reactions: Missing[DiscussionPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( + description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." ) - reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + state_reason: Union[ + None, Literal["resolved", "outdated", "duplicate", "reopened"] + ] = Field(description="The reason for the current state") + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field() updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + user: Union[DiscussionPropUser, None] = Field(title="User") + labels: Missing[list[Label]] = Field(default=UNSET) + + +class Label(GitHubModel): + """Label + + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). + """ + + id: int = Field(description="Unique identifier for the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + name: str = Field(description="The name of the label.") + description: Union[str, None] = Field( + description="Optional description of the label, such as its purpose." + ) + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field( + description="Whether this label comes by default in a new repository." + ) + + +class DiscussionPropAnswerChosenBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class DiscussionPropCategory(GitHubModel): + """DiscussionPropCategory""" -class WebhooksIssueCommentPropReactions(GitHubModel): + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +class DiscussionPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -72,7 +147,7 @@ class WebhooksIssueCommentPropReactions(GitHubModel): url: str = Field() -class WebhooksIssueCommentPropUser(GitHubModel): +class DiscussionPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,19 +169,23 @@ class WebhooksIssueCommentPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(Discussion) +model_rebuild(Label) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) __all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", + "Label", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0438.py b/githubkit/versions/v2022_11_28/models/group_0438.py index 9e7b45276..2e01fc5dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0438.py +++ b/githubkit/versions/v2022_11_28/models/group_0438.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,25 +18,84 @@ from githubkit.utils import UNSET -class WebhooksChanges(GitHubModel): - """WebhooksChanges - - The changes to the comment. - """ - - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) - - -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) +class WebhooksComment(GitHubModel): + """WebhooksComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + parent_id: Union[int, None] = Field() + reactions: WebhooksCommentPropReactions = Field(title="Reactions") + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhooksCommentPropUser, None] = Field(title="User") + + +class WebhooksCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) __all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0439.py b/githubkit/versions/v2022_11_28/models/group_0439.py index c41f4adcd..6e6effd19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0439.py +++ b/githubkit/versions/v2022_11_28/models/group_0439.py @@ -9,148 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0040 import IssueType - -class WebhooksIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropLabelsItems(GitHubModel): +class WebhooksLabel(GitHubModel): """Label""" color: str = Field( @@ -164,254 +30,6 @@ class WebhooksIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( - default=UNSET, description="The set of permissions for the GitHub app" - ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssuePropPullRequest(GitHubModel): - """WebhooksIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksIssue) -model_rebuild(WebhooksIssuePropAssignee) -model_rebuild(WebhooksIssuePropAssigneesItems) -model_rebuild(WebhooksIssuePropLabelsItems) -model_rebuild(WebhooksIssuePropMilestone) -model_rebuild(WebhooksIssuePropMilestonePropCreator) -model_rebuild(WebhooksIssuePropPerformedViaGithubApp) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssuePropPullRequest) -model_rebuild(WebhooksIssuePropReactions) -model_rebuild(WebhooksIssuePropSubIssuesSummary) -model_rebuild(WebhooksIssuePropUser) +model_rebuild(WebhooksLabel) -__all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropSubIssuesSummary", - "WebhooksIssuePropUser", -) +__all__ = ("WebhooksLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0440.py b/githubkit/versions/v2022_11_28/models/group_0440.py index c66b591f6..ba770b6b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0440.py +++ b/githubkit/versions/v2022_11_28/models/group_0440.py @@ -9,73 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhooksMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) +model_rebuild(WebhooksRepositoriesItems) -__all__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", -) +__all__ = ("WebhooksRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0441.py b/githubkit/versions/v2022_11_28/models/group_0441.py index 3577eceea..f17279ee4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0441.py +++ b/githubkit/versions/v2022_11_28/models/group_0441.py @@ -9,399 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0040 import IssueType - -class WebhooksIssue2(GitHubModel): - """Issue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssue2PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssue2PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( - default=UNSET, title="Sub-issues Summary" - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") - - -class WebhooksIssue2PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssue2PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( - Field(default=UNSET, description="The set of permissions for the GitHub app") - ) - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssue2PropPullRequest(GitHubModel): - """WebhooksIssue2PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssue2PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssue2PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhooksIssue2PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksIssue2) -model_rebuild(WebhooksIssue2PropAssignee) -model_rebuild(WebhooksIssue2PropAssigneesItems) -model_rebuild(WebhooksIssue2PropLabelsItems) -model_rebuild(WebhooksIssue2PropMilestone) -model_rebuild(WebhooksIssue2PropMilestonePropCreator) -model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssue2PropPullRequest) -model_rebuild(WebhooksIssue2PropReactions) -model_rebuild(WebhooksIssue2PropSubIssuesSummary) -model_rebuild(WebhooksIssue2PropUser) +model_rebuild(WebhooksRepositoriesAddedItems) -__all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropSubIssuesSummary", - "WebhooksIssue2PropUser", -) +__all__ = ("WebhooksRepositoriesAddedItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0442.py b/githubkit/versions/v2022_11_28/models/group_0442.py index 6db58fe17..c81ac8eaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0442.py +++ b/githubkit/versions/v2022_11_28/models/group_0442.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,8 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0010 import Integration -class WebhooksUserMannequin(GitHubModel): + +class WebhooksIssueComment(GitHubModel): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() + node_id: str = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + + +class WebhooksIssueCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssueCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,6 +101,12 @@ class WebhooksUserMannequin(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUserMannequin) +model_rebuild(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) -__all__ = ("WebhooksUserMannequin",) +__all__ = ( + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0443.py b/githubkit/versions/v2022_11_28/models/group_0443.py index f78d27107..9e7b45276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0443.py +++ b/githubkit/versions/v2022_11_28/models/group_0443.py @@ -9,55 +9,32 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class WebhooksMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhooksMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhooksMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - +class WebhooksChanges(GitHubModel): + """WebhooksChanges -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" + The changes to the comment. + """ - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" +class WebhooksChangesPropBody(GitHubModel): + """WebhooksChangesPropBody""" - bullets: list[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + from_: str = Field(alias="from", description="The previous version of the body.") -model_rebuild(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) +model_rebuild(WebhooksChanges) +model_rebuild(WebhooksChangesPropBody) __all__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", + "WebhooksChanges", + "WebhooksChangesPropBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0444.py b/githubkit/versions/v2022_11_28/models/group_0444.py index 94a837d69..afdd4ed43 100644 --- a/githubkit/versions/v2022_11_28/models/group_0444.py +++ b/githubkit/versions/v2022_11_28/models/group_0444.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,49 +18,400 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0043 import IssueType -class WebhooksPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - account: WebhooksPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() +class WebhooksIssue(GitHubModel): + """Issue + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssuePropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssuePropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") + + +class WebhooksIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropAccount""" +class WebhooksIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( + default=UNSET, description="The set of permissions for the GitHub app" + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + The set of permissions for the GitHub app + """ -class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropPlan""" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksPreviousMarketplacePurchase) -model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) -model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhooksIssue) +model_rebuild(WebhooksIssuePropAssignee) +model_rebuild(WebhooksIssuePropAssigneesItems) +model_rebuild(WebhooksIssuePropLabelsItems) +model_rebuild(WebhooksIssuePropMilestone) +model_rebuild(WebhooksIssuePropMilestonePropCreator) +model_rebuild(WebhooksIssuePropPerformedViaGithubApp) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssuePropPullRequest) +model_rebuild(WebhooksIssuePropReactions) +model_rebuild(WebhooksIssuePropSubIssuesSummary) +model_rebuild(WebhooksIssuePropUser) __all__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropSubIssuesSummary", + "WebhooksIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0445.py b/githubkit/versions/v2022_11_28/models/group_0445.py index 7c9805f89..c66b591f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0445.py +++ b/githubkit/versions/v2022_11_28/models/group_0445.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,62 +19,63 @@ from githubkit.utils import UNSET -class WebhooksTeam(GitHubModel): - """Team +class WebhooksMilestone(GitHubModel): + """Milestone - Groups of organization members that gives permissions on specified repositories. + A collection of related issues and pull requests. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhooksTeamPropParent(GitHubModel): - """WebhooksTeamPropParent""" +class WebhooksMilestonePropCreator(GitHubModel): + """User""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksTeam) -model_rebuild(WebhooksTeamPropParent) +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) __all__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksMilestone", + "WebhooksMilestonePropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0446.py b/githubkit/versions/v2022_11_28/models/group_0446.py index d4f362900..e1110bf38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0446.py +++ b/githubkit/versions/v2022_11_28/models/group_0446.py @@ -9,28 +9,399 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0043 import IssueType + + +class WebhooksIssue2(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssue2PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssue2PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssue2PropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhooksIssue2PropSubIssuesSummary] = Field( + default=UNSET, title="Sub-issues Summary" + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssue2PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ -from .group_0205 import SimpleCommit + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class MergeGroup(GitHubModel): - """Merge Group +class WebhooksIssue2PropMilestonePropCreator(GitHubModel): + """User""" - A group of pull requests that the merge queue has grouped together to be merged. + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssue2PropPerformedViaGithubAppPropPermissions] = ( + Field(default=UNSET, description="The set of permissions for the GitHub app") + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - head_sha: str = Field(description="The SHA of the merge group.") - head_ref: str = Field(description="The full ref of the merge group.") - base_sha: str = Field(description="The SHA of the merge group's parent commit.") - base_ref: str = Field( - description="The full ref of the branch the merge group will be merged into." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssue2PropPullRequest(GitHubModel): + """WebhooksIssue2PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssue2PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhooksIssue2PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(MergeGroup) +model_rebuild(WebhooksIssue2) +model_rebuild(WebhooksIssue2PropAssignee) +model_rebuild(WebhooksIssue2PropAssigneesItems) +model_rebuild(WebhooksIssue2PropLabelsItems) +model_rebuild(WebhooksIssue2PropMilestone) +model_rebuild(WebhooksIssue2PropMilestonePropCreator) +model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssue2PropPullRequest) +model_rebuild(WebhooksIssue2PropReactions) +model_rebuild(WebhooksIssue2PropSubIssuesSummary) +model_rebuild(WebhooksIssue2PropUser) -__all__ = ("MergeGroup",) +__all__ = ( + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropSubIssuesSummary", + "WebhooksIssue2PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0447.py b/githubkit/versions/v2022_11_28/models/group_0447.py index 39a630595..6db58fe17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0447.py +++ b/githubkit/versions/v2022_11_28/models/group_0447.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,31 +18,7 @@ from githubkit.utils import UNSET -class WebhooksMilestone3(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestone3PropCreator(GitHubModel): +class WebhooksUserMannequin(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -65,15 +40,13 @@ class WebhooksMilestone3PropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) +model_rebuild(WebhooksUserMannequin) -__all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", -) +__all__ = ("WebhooksUserMannequin",) diff --git a/githubkit/versions/v2022_11_28/models/group_0448.py b/githubkit/versions/v2022_11_28/models/group_0448.py index 7099fbbc2..f78d27107 100644 --- a/githubkit/versions/v2022_11_28/models/group_0448.py +++ b/githubkit/versions/v2022_11_28/models/group_0448.py @@ -14,55 +14,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class WebhooksMembership(GitHubModel): - """Membership +class WebhooksMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + account: WebhooksMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhooksMarketplacePurchasePropPlan = Field() + unit_count: int = Field() - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhooksMembershipPropUser, None] = Field(title="User") +class WebhooksMarketplacePurchasePropAccount(GitHubModel): + """WebhooksMarketplacePurchasePropAccount""" -class WebhooksMembershipPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhooksMarketplacePurchasePropPlan(GitHubModel): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: list[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhooksMarketplacePurchase) +model_rebuild(WebhooksMarketplacePurchasePropAccount) +model_rebuild(WebhooksMarketplacePurchasePropPlan) __all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0449.py b/githubkit/versions/v2022_11_28/models/group_0449.py index 37f106c1b..94a837d69 100644 --- a/githubkit/versions/v2022_11_28/models/group_0449.py +++ b/githubkit/versions/v2022_11_28/models/group_0449.py @@ -13,192 +13,53 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser - - -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( - description="New requested permissions, categorized by type of permission." - ) - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( - description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." - ) - permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( - description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." - ) - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repository_count: Union[int, None] = Field( - description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( - Field( - description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_id: int = Field( - description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." - ) - token_name: str = Field( - description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - -class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgraded +class WebhooksPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ + account: WebhooksPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( - default=UNSET - ) +class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( - ExtraGitHubModel -): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsResultPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" +class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropPlan""" -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) __all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropRepositoriesItems", + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0450.py b/githubkit/versions/v2022_11_28/models/group_0450.py index 39eabd49e..7c9805f89 100644 --- a/githubkit/versions/v2022_11_28/models/group_0450.py +++ b/githubkit/versions/v2022_11_28/models/group_0450.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,55 +18,62 @@ from githubkit.utils import UNSET -class WebhooksProjectCard(GitHubModel): - """Project Card""" +class WebhooksTeam(GitHubModel): + """Team - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksProjectCardPropCreator(GitHubModel): - """User""" + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) + parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) __all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", + "WebhooksTeam", + "WebhooksTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0451.py b/githubkit/versions/v2022_11_28/models/group_0451.py index d39e38c67..371032761 100644 --- a/githubkit/versions/v2022_11_28/models/group_0451.py +++ b/githubkit/versions/v2022_11_28/models/group_0451.py @@ -9,67 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhooksProject(GitHubModel): - """Project""" +from .group_0209 import SimpleCommit - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") - html_url: str = Field() - id: int = Field() - name: str = Field(description="Name of the project") - node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() - url: str = Field() +class MergeGroup(GitHubModel): + """Merge Group -class WebhooksProjectPropCreator(GitHubModel): - """User""" + A group of pull requests that the merge queue has grouped together to be merged. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + head_sha: str = Field(description="The SHA of the merge group.") + head_ref: str = Field(description="The full ref of the merge group.") + base_sha: str = Field(description="The SHA of the merge group's parent commit.") + base_ref: str = Field( + description="The full ref of the branch the merge group will be merged into." + ) + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") -model_rebuild(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) +model_rebuild(MergeGroup) -__all__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", -) +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0452.py b/githubkit/versions/v2022_11_28/models/group_0452.py index be718a05d..39a630595 100644 --- a/githubkit/versions/v2022_11_28/models/group_0452.py +++ b/githubkit/versions/v2022_11_28/models/group_0452.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,20 +19,61 @@ from githubkit.utils import UNSET -class WebhooksProjectColumn(GitHubModel): - """Project Column""" +class WebhooksMilestone3(GitHubModel): + """Milestone - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") + creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - project_url: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() -model_rebuild(WebhooksProjectColumn) +class WebhooksMilestone3PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMilestone3) +model_rebuild(WebhooksMilestone3PropCreator) -__all__ = ("WebhooksProjectColumn",) +__all__ = ( + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0453.py b/githubkit/versions/v2022_11_28/models/group_0453.py index 46e0ef291..7099fbbc2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0453.py +++ b/githubkit/versions/v2022_11_28/models/group_0453.py @@ -9,38 +9,60 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksMembership(GitHubModel): + """Membership -class ProjectsV2(GitHubModel): - """Projects v2 Project - - A projects v2 project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float = Field() - node_id: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectsV2) - -__all__ = ("ProjectsV2",) + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") + + +class WebhooksMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) + +__all__ = ( + "WebhooksMembership", + "WebhooksMembershipPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0454.py b/githubkit/versions/v2022_11_28/models/group_0454.py index 7daaba6aa..37f106c1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0454.py +++ b/githubkit/versions/v2022_11_28/models/group_0454.py @@ -9,33 +9,196 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser + + +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request + + Details of a Personal Access Token Request. + """ + + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( + description="New requested permissions, categorized by type of permission." + ) + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( + description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." + ) + permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( + description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." + ) + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repository_count: Union[int, None] = Field( + description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( + Field( + description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_id: int = Field( + description="Unique identifier of the user's token. This field can also be found in audit log events and the organization's settings for their PAT grants." + ) + token_name: str = Field( + description="The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( + ExtraGitHubModel +): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + +class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsResult -model_rebuild(WebhooksProjectChanges) -model_rebuild(WebhooksProjectChangesPropArchivedAt) + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +model_rebuild(PersonalAccessTokenRequest) +model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) +model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) __all__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropRepositoriesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0455.py b/githubkit/versions/v2022_11_28/models/group_0455.py index 02415cbc5..39eabd49e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0455.py +++ b/githubkit/versions/v2022_11_28/models/group_0455.py @@ -18,31 +18,56 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class ProjectsV2Item(GitHubModel): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" - id: float = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2Item) +model_rebuild(WebhooksProjectCard) +model_rebuild(WebhooksProjectCardPropCreator) -__all__ = ("ProjectsV2Item",) +__all__ = ( + "WebhooksProjectCard", + "WebhooksProjectCardPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0456.py b/githubkit/versions/v2022_11_28/models/group_0456.py index da927dd7b..d39e38c67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0456.py +++ b/githubkit/versions/v2022_11_28/models/group_0456.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,33 +18,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksProject(GitHubModel): + """Project""" -class ProjectsV2StatusUpdate(GitHubModel): - """Projects v2 Status Update - - An status update belonging to a project - """ - - id: float = Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") + html_url: str = Field() + id: int = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - project_node_id: Missing[str] = Field(default=UNSET) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + number: int = Field() + owner_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the project; either 'open' or 'closed'" ) - created_at: datetime = Field() updated_at: datetime = Field() - status: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - start_date: Missing[date] = Field(default=UNSET) - target_date: Missing[date] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the status update" - ) + url: str = Field() + + +class WebhooksProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2StatusUpdate) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("ProjectsV2StatusUpdate",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0457.py b/githubkit/versions/v2022_11_28/models/group_0457.py index 96b3e4136..be718a05d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0457.py +++ b/githubkit/versions/v2022_11_28/models/group_0457.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,126 +18,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0039 import Milestone -from .group_0079 import TeamSimple -from .group_0263 import AutoMerge -from .group_0343 import PullRequestPropLabelsItems -from .group_0344 import PullRequestPropBase, PullRequestPropHead -from .group_0345 import PullRequestPropLinks +class WebhooksProjectColumn(GitHubModel): + """Project Column""" -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" - - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: list[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", - ) + url: str = Field() -model_rebuild(PullRequestWebhook) +model_rebuild(WebhooksProjectColumn) -__all__ = ("PullRequestWebhook",) +__all__ = ("WebhooksProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0458.py b/githubkit/versions/v2022_11_28/models/group_0458.py index 9e409ec85..46e0ef291 100644 --- a/githubkit/versions/v2022_11_28/models/group_0458.py +++ b/githubkit/versions/v2022_11_28/models/group_0458.py @@ -9,55 +9,38 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class PullRequestWebhookAllof1(GitHubModel): - """PullRequestWebhookAllof1""" - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", - ) - - -model_rebuild(PullRequestWebhookAllof1) - -__all__ = ("PullRequestWebhookAllof1",) + +from .group_0003 import SimpleUser + + +class ProjectsV2(GitHubModel): + """Projects v2 Project + + A projects v2 project + """ + + id: float = Field() + node_id: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() + + +model_rebuild(ProjectsV2) + +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0459.py b/githubkit/versions/v2022_11_28/models/group_0459.py index 3c34b7ef5..7daaba6aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0459.py +++ b/githubkit/versions/v2022_11_28/models/group_0459.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -19,1062 +19,23 @@ from githubkit.utils import UNSET -class WebhooksPullRequest5(GitHubModel): - """Pull Request""" +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" - links: WebhooksPullRequest5PropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") - assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhooksPullRequest5PropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhooksPullRequest5PropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhooksPullRequest5PropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( - default=UNSET, title="User" - ) - milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( - title="User" - ) - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksPullRequest5PropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLinks(GitHubModel): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") - commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") - html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") - issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") - review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") - review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") - statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") - - -class WebhooksPullRequest5PropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksPullRequest5PropBase(GitHubModel): - """WebhooksPullRequest5PropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHead(GitHubModel): - """WebhooksPullRequest5PropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhooksPullRequest5PropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) __all__ = ( - "WebhooksPullRequest5", - "WebhooksPullRequest5PropAssignee", - "WebhooksPullRequest5PropAssigneesItems", - "WebhooksPullRequest5PropAutoMerge", - "WebhooksPullRequest5PropAutoMergePropEnabledBy", - "WebhooksPullRequest5PropBase", - "WebhooksPullRequest5PropBasePropRepo", - "WebhooksPullRequest5PropBasePropRepoPropLicense", - "WebhooksPullRequest5PropBasePropRepoPropOwner", - "WebhooksPullRequest5PropBasePropRepoPropPermissions", - "WebhooksPullRequest5PropBasePropUser", - "WebhooksPullRequest5PropHead", - "WebhooksPullRequest5PropHeadPropRepo", - "WebhooksPullRequest5PropHeadPropRepoPropLicense", - "WebhooksPullRequest5PropHeadPropRepoPropOwner", - "WebhooksPullRequest5PropHeadPropRepoPropPermissions", - "WebhooksPullRequest5PropHeadPropUser", - "WebhooksPullRequest5PropLabelsItems", - "WebhooksPullRequest5PropLinks", - "WebhooksPullRequest5PropLinksPropComments", - "WebhooksPullRequest5PropLinksPropCommits", - "WebhooksPullRequest5PropLinksPropHtml", - "WebhooksPullRequest5PropLinksPropIssue", - "WebhooksPullRequest5PropLinksPropReviewComment", - "WebhooksPullRequest5PropLinksPropReviewComments", - "WebhooksPullRequest5PropLinksPropSelf", - "WebhooksPullRequest5PropLinksPropStatuses", - "WebhooksPullRequest5PropMergedBy", - "WebhooksPullRequest5PropMilestone", - "WebhooksPullRequest5PropMilestonePropCreator", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", - "WebhooksPullRequest5PropRequestedTeamsItems", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", - "WebhooksPullRequest5PropUser", + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0460.py b/githubkit/versions/v2022_11_28/models/group_0460.py index ae7bc5edf..02415cbc5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0460.py +++ b/githubkit/versions/v2022_11_28/models/group_0460.py @@ -18,171 +18,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. +class ProjectsV2Item(GitHubModel): + """Projects v2 Item + + An item belonging to a project """ - links: WebhooksReviewCommentPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + id: float = Field() + node_id: Missing[str] = Field(default=UNSET) + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") - - -class WebhooksReviewCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReviewCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewCommentPropLinks(GitHubModel): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") - self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") - - -class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() + archived_at: Union[datetime, None] = Field() -model_rebuild(WebhooksReviewComment) -model_rebuild(WebhooksReviewCommentPropReactions) -model_rebuild(WebhooksReviewCommentPropUser) -model_rebuild(WebhooksReviewCommentPropLinks) -model_rebuild(WebhooksReviewCommentPropLinksPropHtml) -model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) -model_rebuild(WebhooksReviewCommentPropLinksPropSelf) +model_rebuild(ProjectsV2Item) -__all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", -) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/v2022_11_28/models/group_0461.py b/githubkit/versions/v2022_11_28/models/group_0461.py index 1c451c68e..da927dd7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0461.py +++ b/githubkit/versions/v2022_11_28/models/group_0461.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from pydantic import Field @@ -18,94 +18,33 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class WebhooksReview(GitHubModel): - """WebhooksReview - The review that was affected. +class ProjectsV2StatusUpdate(GitHubModel): + """Projects v2 Status Update + + An status update belonging to a project """ - links: WebhooksReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") + id: float = Field() node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") - - -class WebhooksReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") - - -class WebhooksReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() + project_node_id: Missing[str] = Field(default=UNSET) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" + ) -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ( - "WebhooksReview", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", - "WebhooksReviewPropUser", -) +__all__ = ("ProjectsV2StatusUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0462.py b/githubkit/versions/v2022_11_28/models/group_0462.py index c6b63317a..89d88a8ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0462.py +++ b/githubkit/versions/v2022_11_28/models/group_0462.py @@ -18,143 +18,126 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0042 import Milestone +from .group_0083 import TeamSimple +from .group_0267 import AutoMerge +from .group_0347 import PullRequestPropLabelsItems +from .group_0348 import PullRequestPropBase, PullRequestPropHead +from .group_0349 import PullRequestPropLinks -class WebhooksRelease(GitHubModel): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - assets: list[WebhooksReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() + url: str = Field() id: int = Field() - name: Union[str, None] = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: list[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[list[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[list[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(PullRequestWebhook) -__all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", -) +__all__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0463.py b/githubkit/versions/v2022_11_28/models/group_0463.py index 359e52db6..9e409ec85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0463.py +++ b/githubkit/versions/v2022_11_28/models/group_0463.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,142 +18,46 @@ from githubkit.utils import UNSET -class WebhooksRelease1(GitHubModel): - """Release +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksRelease1PropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", -) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0464.py b/githubkit/versions/v2022_11_28/models/group_0464.py index 25a628f6d..3c34b7ef5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0464.py +++ b/githubkit/versions/v2022_11_28/models/group_0464.py @@ -19,34 +19,862 @@ from githubkit.utils import UNSET -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" - The security alert of the vulnerable dependency. + links: WebhooksPullRequest5PropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") + assignees: list[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhooksPullRequest5PropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhooksPullRequest5PropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhooksPullRequest5PropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( + default=UNSET, title="User" + ) + milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItems] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( - default=UNSET, title="User" + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( + title="User" + ) + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksPullRequest5PropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropLinks(GitHubModel): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropComments = Field(title="Link") + commits: WebhooksPullRequest5PropLinksPropCommits = Field(title="Link") + html: WebhooksPullRequest5PropLinksPropHtml = Field(title="Link") + issue: WebhooksPullRequest5PropLinksPropIssue = Field(title="Link") + review_comment: WebhooksPullRequest5PropLinksPropReviewComment = Field(title="Link") + review_comments: WebhooksPullRequest5PropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhooksPullRequest5PropLinksPropSelf = Field(alias="self", title="Link") + statuses: WebhooksPullRequest5PropLinksPropStatuses = Field(title="Link") + + +class WebhooksPullRequest5PropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksPullRequest5PropBase(GitHubModel): + """WebhooksPullRequest5PropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropBasePropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropBasePropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhooksPullRequest5PropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropBasePropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHead(GitHubModel): + """WebhooksPullRequest5PropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhooksPullRequest5PropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhooksPullRequest5PropHeadPropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhooksAlertPropDismisser(GitHubModel): +class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -70,12 +898,183 @@ class WebhooksAlertPropDismisser(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +model_rebuild(WebhooksPullRequest5) +model_rebuild(WebhooksPullRequest5PropAssignee) +model_rebuild(WebhooksPullRequest5PropAssigneesItems) +model_rebuild(WebhooksPullRequest5PropAutoMerge) +model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) +model_rebuild(WebhooksPullRequest5PropLabelsItems) +model_rebuild(WebhooksPullRequest5PropMergedBy) +model_rebuild(WebhooksPullRequest5PropMilestone) +model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) +model_rebuild(WebhooksPullRequest5PropUser) +model_rebuild(WebhooksPullRequest5PropLinks) +model_rebuild(WebhooksPullRequest5PropLinksPropComments) +model_rebuild(WebhooksPullRequest5PropLinksPropCommits) +model_rebuild(WebhooksPullRequest5PropLinksPropHtml) +model_rebuild(WebhooksPullRequest5PropLinksPropIssue) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) +model_rebuild(WebhooksPullRequest5PropLinksPropSelf) +model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) +model_rebuild(WebhooksPullRequest5PropBase) +model_rebuild(WebhooksPullRequest5PropBasePropUser) +model_rebuild(WebhooksPullRequest5PropBasePropRepo) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropHead) +model_rebuild(WebhooksPullRequest5PropHeadPropUser) +model_rebuild(WebhooksPullRequest5PropHeadPropRepo) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) __all__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", + "WebhooksPullRequest5", + "WebhooksPullRequest5PropAssignee", + "WebhooksPullRequest5PropAssigneesItems", + "WebhooksPullRequest5PropAutoMerge", + "WebhooksPullRequest5PropAutoMergePropEnabledBy", + "WebhooksPullRequest5PropBase", + "WebhooksPullRequest5PropBasePropRepo", + "WebhooksPullRequest5PropBasePropRepoPropLicense", + "WebhooksPullRequest5PropBasePropRepoPropOwner", + "WebhooksPullRequest5PropBasePropRepoPropPermissions", + "WebhooksPullRequest5PropBasePropUser", + "WebhooksPullRequest5PropHead", + "WebhooksPullRequest5PropHeadPropRepo", + "WebhooksPullRequest5PropHeadPropRepoPropLicense", + "WebhooksPullRequest5PropHeadPropRepoPropOwner", + "WebhooksPullRequest5PropHeadPropRepoPropPermissions", + "WebhooksPullRequest5PropHeadPropUser", + "WebhooksPullRequest5PropLabelsItems", + "WebhooksPullRequest5PropLinks", + "WebhooksPullRequest5PropLinksPropComments", + "WebhooksPullRequest5PropLinksPropCommits", + "WebhooksPullRequest5PropLinksPropHtml", + "WebhooksPullRequest5PropLinksPropIssue", + "WebhooksPullRequest5PropLinksPropReviewComment", + "WebhooksPullRequest5PropLinksPropReviewComments", + "WebhooksPullRequest5PropLinksPropSelf", + "WebhooksPullRequest5PropLinksPropStatuses", + "WebhooksPullRequest5PropMergedBy", + "WebhooksPullRequest5PropMilestone", + "WebhooksPullRequest5PropMilestonePropCreator", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", + "WebhooksPullRequest5PropRequestedTeamsItems", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", + "WebhooksPullRequest5PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0465.py b/githubkit/versions/v2022_11_28/models/group_0465.py index fd365af9e..ae7bc5edf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0465.py +++ b/githubkit/versions/v2022_11_28/models/group_0465.py @@ -18,93 +18,171 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ - number: Missing[int] = Field( - default=UNSET, description="The security alert number." + links: WebhooksReviewCommentPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - resolution: Missing[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + path: str = Field( + description="The relative path of the file to which the comment applies." ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." ) - push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( - default=UNSET + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." ) - push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when reviewing a push protection bypass.", + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." ) - push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when requesting a push protection bypass.", + reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." ) - push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The URL to a push protection bypass request." + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." ) - publicly_leaked: Missing[Union[bool, None]] = Field( - default=UNSET, description="Whether the detected secret was publicly leaked." + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", ) - multi_repo: Missing[Union[bool, None]] = Field( + subject_type: Missing[Literal["line", "file"]] = Field( default=UNSET, - description="Whether the detected secret was found in multiple repositories in the same organization or business.", + description="The level at which the comment is targeted, can be a diff line or a file.", ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") + + +class WebhooksReviewCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReviewCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewCommentPropLinks(GitHubModel): + """WebhooksReviewCommentPropLinks""" + + html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") + self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") + + +class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ( + "WebhooksReviewComment", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0466.py b/githubkit/versions/v2022_11_28/models/group_0466.py index 70a0fad38..1c451c68e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0466.py +++ b/githubkit/versions/v2022_11_28/models/group_0466.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,100 +18,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +class WebhooksReview(GitHubModel): + """WebhooksReview -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The review that was affected. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() - ghsa_id: str = Field() - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCvss(GitHubModel): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None - ] = Field() - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" - - identifier: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" - - ecosystem: str = Field() - name: str = Field() - - -model_rebuild(WebhooksSecurityAdvisory) -model_rebuild(WebhooksSecurityAdvisoryPropCvss) -model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) -model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + links: WebhooksReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") + + +class WebhooksReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewPropLinks(GitHubModel): + """WebhooksReviewPropLinks""" + + html: WebhooksReviewPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") + + +class WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksReview", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", + "WebhooksReviewPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0467.py b/githubkit/versions/v2022_11_28/models/group_0467.py index 86866d0b1..c65e4fdb4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0467.py +++ b/githubkit/versions/v2022_11_28/models/group_0467.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,46 +19,42 @@ from githubkit.utils import UNSET -class WebhooksSponsorship(GitHubModel): - """WebhooksSponsorship""" +class WebhooksRelease(GitHubModel): + """Release - created_at: str = Field() - maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: list[WebhooksReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") - sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") - tier: WebhooksSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksSponsorshipPropMaintainer(GitHubModel): - """WebhooksSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksSponsorshipPropSponsor(GitHubModel): +class WebhooksReleasePropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -84,7 +81,46 @@ class WebhooksSponsorshipPropSponsor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhooksSponsorshipPropSponsorable(GitHubModel): +class WebhooksReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -108,38 +144,18 @@ class WebhooksSponsorshipPropSponsorable(GitHubModel): subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhooksSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", + "WebhooksRelease", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0468.py b/githubkit/versions/v2022_11_28/models/group_0468.py index d4236992a..205978bfc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0468.py +++ b/githubkit/versions/v2022_11_28/models/group_0468.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,47 +19,143 @@ from githubkit.utils import UNSET -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" - - tier: WebhooksChanges8PropTier = Field() - +class WebhooksRelease1(GitHubModel): + """Release -class WebhooksChanges8PropTier(GitHubModel): - """WebhooksChanges8PropTier""" + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - from_: WebhooksChanges8PropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + assets: list[Union[WebhooksRelease1PropAssetsItems, None]] = Field() + assets_url: str = Field() + author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksChanges8PropTierPropFrom(GitHubModel): - """Sponsorship Tier +class WebhooksRelease1PropAssetsItems(GitHubModel): + """Release Asset - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + Data related to a release. """ - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - - -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) __all__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0469.py b/githubkit/versions/v2022_11_28/models/group_0469.py index b1c86817a..25a628f6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0469.py +++ b/githubkit/versions/v2022_11_28/models/group_0469.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,65 +19,63 @@ from githubkit.utils import UNSET -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert - Groups of organization members that gives permissions on specified repositories. + The security alert of the vulnerable dependency. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( + default=UNSET, title="User" ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +class WebhooksAlertPropDismisser(GitHubModel): + """User""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) +model_rebuild(WebhooksAlert) +model_rebuild(WebhooksAlertPropDismisser) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksAlert", + "WebhooksAlertPropDismisser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0470.py b/githubkit/versions/v2022_11_28/models/group_0470.py index 85853bdb0..fd365af9e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0470.py +++ b/githubkit/versions/v2022_11_28/models/group_0470.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,38 +19,92 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) + push_protection_bypassed: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether push protection was bypassed for the detected secret.", + ) + push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + push_protection_bypass_request_reviewer: Missing[Union[None, SimpleUser]] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( + push_protection_bypass_request_reviewer_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="An optional comment when reviewing a push protection bypass.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + push_protection_bypass_request_comment: Missing[Union[str, None]] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="An optional comment when requesting a push protection bypass.", + ) + push_protection_bypass_request_html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The URL to a push protection bypass request." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + publicly_leaked: Missing[Union[bool, None]] = Field( + default=UNSET, description="Whether the detected secret was publicly leaked." + ) + multi_repo: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether the detected secret was found in multiple repositories in the same organization or business.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0471.py b/githubkit/versions/v2022_11_28/models/group_0471.py index a16ae0e9c..70a0fad38 100644 --- a/githubkit/versions/v2022_11_28/models/group_0471.py +++ b/githubkit/versions/v2022_11_28/models/group_0471.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,39 +17,100 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" - - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookBranchProtectionConfigurationEnabled) - -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +from .group_0001 import CvssSeverities + + +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhooksSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhooksSecurityAdvisoryPropCwesItems] = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() + published_at: str = Field() + references: list[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None + ] = Field() + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhooksSecurityAdvisory) +model_rebuild(WebhooksSecurityAdvisoryPropCvss) +model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) +model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0472.py b/githubkit/versions/v2022_11_28/models/group_0472.py index 1170890d9..86866d0b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0472.py +++ b/githubkit/versions/v2022_11_28/models/group_0472.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,44 +17,129 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0423 import WebhooksRule +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + created_at: str = Field() + maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) + node_id: str = Field() + privacy_level: str = Field() + sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") + sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") + tier: WebhooksSponsorshipPropTier = Field( + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleCreated) +class WebhooksSponsorshipPropMaintainer(GitHubModel): + """WebhooksSponsorshipPropMaintainer""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropSponsorable(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhooksSponsorshipPropTier(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) -__all__ = ("WebhookBranchProtectionRuleCreated",) +__all__ = ( + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0473.py b/githubkit/versions/v2022_11_28/models/group_0473.py index 30465f24c..d4236992a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0473.py +++ b/githubkit/versions/v2022_11_28/models/group_0473.py @@ -9,52 +9,54 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0423 import WebhooksRule +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" + tier: WebhooksChanges8PropTier = Field() - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + +class WebhooksChanges8PropTier(GitHubModel): + """WebhooksChanges8PropTier""" + + from_: WebhooksChanges8PropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookBranchProtectionRuleDeleted) +class WebhooksChanges8PropTierPropFrom(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksChanges8) +model_rebuild(WebhooksChanges8PropTier) +model_rebuild(WebhooksChanges8PropTierPropFrom) -__all__ = ("WebhookBranchProtectionRuleDeleted",) +__all__ = ( + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0474.py b/githubkit/versions/v2022_11_28/models/group_0474.py index 489f6f9f5..b1c86817a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0474.py +++ b/githubkit/versions/v2022_11_28/models/group_0474.py @@ -17,209 +17,66 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0423 import WebhooksRule +class WebhooksTeam1(GitHubModel): + """Team -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" + Groups of organization members that gives permissions on specified repositories. + """ - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - enterprise: Missing[EnterpriseWebhooks] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="Permission that the team will have for its repositories", ) - installation: Missing[SimpleInstallation] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether team members will receive notifications when their team is @mentioned", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeam1PropParent(GitHubModel): + """WebhooksTeam1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced - ] = Field(default=UNSET) - authorized_actor_names: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames - ] = Field(default=UNSET) - authorized_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly - ] = Field(default=UNSET) - authorized_dismissal_actors_only: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly - ] = Field(default=UNSET) - linear_history_requirement_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel - ] = Field(default=UNSET) - lock_branch_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel - ] = Field(default=UNSET) - lock_allows_fork_sync: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync - ] = Field(default=UNSET) - pull_request_reviews_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel - ] = Field(default=UNSET) - require_last_push_approval: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval - ] = Field(default=UNSET) - required_status_checks: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks - ] = Field(default=UNSET) - required_status_checks_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel - ] = Field(default=UNSET) - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] = Field(alias="from") - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: list[str] = Field(alias="from") + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") - - -model_rebuild(WebhookBranchProtectionRuleEdited) -model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) __all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", + "WebhooksTeam1", + "WebhooksTeam1PropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0475.py b/githubkit/versions/v2022_11_28/models/group_0475.py index 47ac99231..ff593e03d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0475.py +++ b/githubkit/versions/v2022_11_28/models/group_0475.py @@ -18,19 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0425 import CheckRunWithSimpleCheckSuite +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["disabled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -49,6 +50,6 @@ class WebhookCheckRunCompleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCompleted) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0476.py b/githubkit/versions/v2022_11_28/models/group_0476.py index 15f0118a0..f51bb3820 100644 --- a/githubkit/versions/v2022_11_28/models/group_0476.py +++ b/githubkit/versions/v2022_11_28/models/group_0476.py @@ -9,22 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["enabled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0477.py b/githubkit/versions/v2022_11_28/models/group_0477.py index cbb39b568..139a242f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0477.py +++ b/githubkit/versions/v2022_11_28/models/group_0477.py @@ -18,19 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0425 import CheckRunWithSimpleCheckSuite +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0428 import WebhooksRule -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,9 +48,13 @@ class WebhookCheckRunCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0478.py b/githubkit/versions/v2022_11_28/models/group_0478.py index 2a3f094c3..9c8de3bc0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0478.py +++ b/githubkit/versions/v2022_11_28/models/group_0478.py @@ -9,22 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0428 import WebhooksRule -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookBranchProtectionRuleDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0479.py b/githubkit/versions/v2022_11_28/models/group_0479.py index 43a8eacf4..7648639f7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0479.py +++ b/githubkit/versions/v2022_11_28/models/group_0479.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0425 import CheckRunWithSimpleCheckSuite +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0428 import WebhooksRule -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,28 +52,174 @@ class WebhookCheckRunRequestedAction(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( - Field(default=UNSET, description="The action requested by the user.") + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): - """WebhookCheckRunRequestedActionPropRequestedAction +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges - The action requested by the user. + If the action was `edited`, the changes to the rule. """ - identifier: Missing[str] = Field( - default=UNSET, - description="The integrator reference of the action requested by the user.", - ) + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + lock_branch_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel + ] = Field(default=UNSET) + lock_allows_fork_sync: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync + ] = Field(default=UNSET) + pull_request_reviews_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel + ] = Field(default=UNSET) + require_last_push_approval: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") -model_rebuild(WebhookCheckRunRequestedAction) -model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) __all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0480.py b/githubkit/versions/v2022_11_28/models/group_0480.py index ccf1a4c5f..cdbe8f0f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0480.py +++ b/githubkit/versions/v2022_11_28/models/group_0480.py @@ -9,22 +9,46 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0430 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0481.py b/githubkit/versions/v2022_11_28/models/group_0481.py index c76155d09..15f0118a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0481.py +++ b/githubkit/versions/v2022_11_28/models/group_0481.py @@ -9,46 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0425 import CheckRunWithSimpleCheckSuite +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" + The check_run.completed webhook encoded with URL encoding + """ - action: Literal["rerequested"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + payload: str = Field( + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0482.py b/githubkit/versions/v2022_11_28/models/group_0482.py index a44f5cc13..8813798e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0482.py +++ b/githubkit/versions/v2022_11_28/models/group_0482.py @@ -9,22 +9,46 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0430 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunCreated) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0483.py b/githubkit/versions/v2022_11_28/models/group_0483.py index 326b436fb..2a3f094c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0483.py +++ b/githubkit/versions/v2022_11_28/models/group_0483.py @@ -9,352 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" - - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] = Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.created webhook encoded with URL encoding """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0484.py b/githubkit/versions/v2022_11_28/models/group_0484.py index e3c73fb09..279994da0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0484.py +++ b/githubkit/versions/v2022_11_28/models/group_0484.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,23 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0430 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRequested(GitHubModel): - """check_suite requested event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["requested"] = Field() - check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -51,309 +46,28 @@ class WebhookCheckSuiteRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="Client ID of the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - Metaproperties for Git author/committer information. + The action requested by the user. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + identifier: Missing[str] = Field( + default=UNSET, + description="The integrator reference of the action requested by the user.", ) - sha: str = Field() - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) __all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0485.py b/githubkit/versions/v2022_11_28/models/group_0485.py index 02d65efba..ccf1a4c5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0485.py +++ b/githubkit/versions/v2022_11_28/models/group_0485.py @@ -9,352 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" - - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - client_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Client ID for the GitHub app" - ) - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app + The check_run.requested_action webhook encoded with URL encoding """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0486.py b/githubkit/versions/v2022_11_28/models/group_0486.py index 6d9c6bc4d..c8209810d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0486.py +++ b/githubkit/versions/v2022_11_28/models/group_0486.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field @@ -19,26 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0430 import CheckRunWithSimpleCheckSuite -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -50,9 +42,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,177 +49,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, - None, - ] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) - - -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0487.py b/githubkit/versions/v2022_11_28/models/group_0487.py index 3f4fe191b..a44f5cc13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0487.py +++ b/githubkit/versions/v2022_11_28/models/group_0487.py @@ -9,262 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Annotated, Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - dismissal_approved_by: Missing[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None - ] - ] = Field(default=UNSET, title="User") - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) +model_rebuild(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0488.py b/githubkit/versions/v2022_11_28/models/group_0488.py index b14afb8da..9fc4aa2b7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0488.py +++ b/githubkit/versions/v2022_11_28/models/group_0488.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,147 +54,307 @@ class WebhookCodeScanningAlertCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() - dismissal_approved_by: Missing[None] = Field(default=UNSET) + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] = Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The client ID of the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + permissions: Missing[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0489.py b/githubkit/versions/v2022_11_28/models/group_0489.py index cd7207cec..e39716b92 100644 --- a/githubkit/versions/v2022_11_28/models/group_0489.py +++ b/githubkit/versions/v2022_11_28/models/group_0489.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,49 +54,98 @@ class WebhookCodeScanningAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( - Field(title="User") + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." + ) + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Union[None, Literal["fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") + + +class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="Client ID of the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -129,105 +172,188 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild( + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0490.py b/githubkit/versions/v2022_11_28/models/group_0490.py index 85d924120..1571ae5e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0490.py +++ b/githubkit/versions/v2022_11_28/models/group_0490.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Annotated, Literal, Union +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: Union[str, None] = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -60,154 +54,307 @@ class WebhookCodeScanningAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." + ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_at: Union[str, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." ) ) - dismissed_reason: Union[str, None] = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field( - default=UNSET, - description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() - state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( - description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." - ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() - url: str = Field() + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + client_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Client ID for the GitHub app" + ) + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - classifications: Missing[list[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Committer + + Metaproperties for Git author/committer information. + """ - text: Missing[str] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[list[str], None]] = Field(default=UNSET) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0491.py b/githubkit/versions/v2022_11_28/models/group_0491.py index bf87e5029..7c0ea4b47 100644 --- a/githubkit/versions/v2022_11_28/models/group_0491.py +++ b/githubkit/versions/v2022_11_28/models/group_0491.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -60,8 +60,8 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ @@ -69,19 +69,21 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): created_at: datetime = Field( description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - dismissed_at: None = Field( + dismissed_at: Union[datetime, None] = Field( description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - dismissed_by: None = Field() + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( Field( default=UNSET, description="The dismissal comment associated with the dismissal of the alert.", ) ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") fixed_at: Missing[None] = Field( default=UNSET, description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", @@ -89,19 +91,47 @@ class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): html_url: str = Field(description="The GitHub URL of the alert resource.") most_recent_instance: Missing[ Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + None, ] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Union[None, Literal["open", "fixed"]] = Field( + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( GitHubModel ): """Alert Instance""" @@ -119,10 +149,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -132,11 +162,11 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion """ end_column: Missing[int] = Field(default=UNSET) @@ -146,16 +176,18 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -168,8 +200,8 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" name: str = Field( description="The name of the tool used to generate the code scanning analysis alert." @@ -179,24 +211,26 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0492.py b/githubkit/versions/v2022_11_28/models/group_0492.py index 9fd9beb4e..9f00ffb88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0492.py +++ b/githubkit/versions/v2022_11_28/models/group_0492.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,20 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( + description="The code scanning alert involved in the event." ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,6 +50,9 @@ class WebhookCommitCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,70 +60,163 @@ class WebhookCommitCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: datetime = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + dismissal_approved_by: Missing[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy, None + ] + ] = Field(default=UNSET, title="User") + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." ) -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -145,14 +243,28 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0493.py b/githubkit/versions/v2022_11_28/models/group_0493.py index 8bc032e43..0cdbefe95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0493.py +++ b/githubkit/versions/v2022_11_28/models/group_0493.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,17 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +45,13 @@ class WebhookCreate(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - master_branch: str = Field( - description="The name of the repository's default branch (usually `main`)." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object created in the repository." + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -64,6 +60,147 @@ class WebhookCreate(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) + url: str = Field() + dismissal_approved_by: Missing[None] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0494.py b/githubkit/versions/v2022_11_28/models/group_0494.py index 7f16c86eb..003f658d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0494.py +++ b/githubkit/versions/v2022_11_28/models/group_0494.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,19 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0115 import CustomProperty -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["created"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,184 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Union[None, Literal["fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyCreated) +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0495.py b/githubkit/versions/v2022_11_28/models/group_0495.py index 9041ed2ea..d14563665 100644 --- a/githubkit/versions/v2022_11_28/models/group_0495.py +++ b/githubkit/versions/v2022_11_28/models/group_0495.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,16 +19,22 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,21 +50,164 @@ class WebhookCustomPropertyDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: Union[str, None] = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedPropAlertPropRule = Field() + state: Union[None, Literal["open", "dismissed", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - property_name: str = Field(description="The name of the property that was deleted.") + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[list[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0496.py b/githubkit/versions/v2022_11_28/models/group_0496.py index ddedcbf7b..9b0f16a5a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0496.py +++ b/githubkit/versions/v2022_11_28/models/group_0496.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Annotated, Literal, Union from pydantic import Field @@ -18,19 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0115 import CustomProperty -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): - """custom property promoted to business event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - action: Literal["promote_to_enterprise"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +50,153 @@ class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field( + default=UNSET, + description="The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + ] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() + state: Union[None, Literal["open", "fixed"]] = Field( + description="State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed." + ) + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[list[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyPromotedToEnterprise) +model_rebuild(WebhookCodeScanningAlertReopenedByUser) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) -__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0497.py b/githubkit/versions/v2022_11_28/models/group_0497.py index 57dcb22b5..aef1e4908 100644 --- a/githubkit/versions/v2022_11_28/models/group_0497.py +++ b/githubkit/versions/v2022_11_28/models/group_0497.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,19 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0115 import CustomProperty -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["updated"] = Field() - definition: CustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -47,11 +48,111 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: str = Field() + html_url: str = Field() + id: int = Field(description="The ID of the commit comment.") + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the commit comment.") + path: Union[str, None] = Field( + description="The relative path of the file to which the comment applies." ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( + default=UNSET, title="Reactions" + ) + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCustomPropertyUpdated) +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0498.py b/githubkit/versions/v2022_11_28/models/group_0498.py index 0c15ecd7a..c71433182 100644 --- a/githubkit/versions/v2022_11_28/models/group_0498.py +++ b/githubkit/versions/v2022_11_28/models/group_0498.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0117 import CustomPropertyValue -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["updated"] = Field() + description: Union[str, None] = Field( + description="The repository's current description." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +40,30 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + master_branch: str = Field( + description="The name of the repository's default branch (usually `main`)." ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." ) - new_property_values: list[CustomPropertyValue] = Field( - description="The new custom property values for the repository." + ref: str = Field( + description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." ) - old_property_values: list[CustomPropertyValue] = Field( - description="The old custom property values for the repository." + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object created in the repository." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCreate) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0499.py b/githubkit/versions/v2022_11_28/models/group_0499.py index a998cefe1..018815d01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0499.py +++ b/githubkit/versions/v2022_11_28/models/group_0499.py @@ -18,15 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0119 import CustomProperty +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" + action: Literal["created"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,22 +47,11 @@ class WebhookDelete(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDelete) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookDelete",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0500.py b/githubkit/versions/v2022_11_28/models/group_0500.py index deb1340a8..2f9dd835e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0500.py +++ b/githubkit/versions/v2022_11_28/models/group_0500.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0279 import DependabotAlert -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +43,21 @@ class WebhookDependabotAlertAutoDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoDismissed) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0501.py b/githubkit/versions/v2022_11_28/models/group_0501.py index b2f52ec23..e96ef170e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0501.py +++ b/githubkit/versions/v2022_11_28/models/group_0501.py @@ -18,18 +18,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0279 import DependabotAlert -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0119 import CustomProperty +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyPromotedToEnterprise(GitHubModel): + """custom property promoted to business event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["promote_to_enterprise"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertAutoReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookCustomPropertyPromotedToEnterprise) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookCustomPropertyPromotedToEnterprise",) diff --git a/githubkit/versions/v2022_11_28/models/group_0502.py b/githubkit/versions/v2022_11_28/models/group_0502.py index fa9b7a173..62e1931e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0502.py +++ b/githubkit/versions/v2022_11_28/models/group_0502.py @@ -18,18 +18,25 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0279 import DependabotAlert -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0119 import CustomProperty +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: CustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,18 +47,11 @@ class WebhookDependabotAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0503.py b/githubkit/versions/v2022_11_28/models/group_0503.py index 42d122dd2..b00c9b6c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0503.py +++ b/githubkit/versions/v2022_11_28/models/group_0503.py @@ -18,40 +18,46 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0279 import DependabotAlert -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0121 import CustomPropertyValue +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + new_property_values: list[CustomPropertyValue] = Field( + description="The new custom property values for the repository." + ) + old_property_values: list[CustomPropertyValue] = Field( + description="The old custom property values for the repository." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0504.py b/githubkit/versions/v2022_11_28/models/group_0504.py index 82b955b14..084b79d0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0504.py +++ b/githubkit/versions/v2022_11_28/models/group_0504.py @@ -18,18 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0279 import DependabotAlert -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["fixed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + pusher_type: str = Field( + description="The pusher type for the event. Can be either `user` or a deploy key." + ) + ref: str = Field( + description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." + ) + ref_type: Literal["tag", "branch"] = Field( + description="The type of Git ref object deleted in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -52,6 +58,6 @@ class WebhookDependabotAlertFixed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/v2022_11_28/models/group_0505.py b/githubkit/versions/v2022_11_28/models/group_0505.py index 8c6eae050..319b34681 100644 --- a/githubkit/versions/v2022_11_28/models/group_0505.py +++ b/githubkit/versions/v2022_11_28/models/group_0505.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0279 import DependabotAlert -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0283 import DependabotAlert +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["reintroduced"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0506.py b/githubkit/versions/v2022_11_28/models/group_0506.py index dfd53f4d6..086accc4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0506.py +++ b/githubkit/versions/v2022_11_28/models/group_0506.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0279 import DependabotAlert -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0283 import DependabotAlert +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["reopened"] = Field() + action: Literal["auto_reopened"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +52,6 @@ class WebhookDependabotAlertReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0507.py b/githubkit/versions/v2022_11_28/models/group_0507.py index cb990adea..1771dbdf6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0507.py +++ b/githubkit/versions/v2022_11_28/models/group_0507.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0426 import WebhooksDeployKey +from .group_0283 import DependabotAlert +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0508.py b/githubkit/versions/v2022_11_28/models/group_0508.py index a4620fca8..0353296d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0508.py +++ b/githubkit/versions/v2022_11_28/models/group_0508.py @@ -18,35 +18,33 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0426 import WebhooksDeployKey +from .group_0283 import DependabotAlert +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["dismissed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -54,6 +52,6 @@ class WebhookDeployKeyDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0509.py b/githubkit/versions/v2022_11_28/models/group_0509.py index 7febd7a14..cc52ecf74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0509.py +++ b/githubkit/versions/v2022_11_28/models/group_0509.py @@ -9,36 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0427 import WebhooksWorkflow +from .group_0283 import DependabotAlert +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,572 +40,18 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentCreatedPropDeployment(GitHubModel): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str = Field() - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - environment: str = Field() - id: int = Field() - node_id: str = Field() - original_environment: str = Field() - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( - Field() - ) - performed_via_github_app: Missing[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - production_environment: Missing[bool] = Field(default=UNSET) - ref: str = Field() - repository_url: str = Field() - sha: str = Field() - statuses_url: str = Field() - task: str = Field() - transient_environment: Missing[bool] = Field(default=UNSET) - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( - default=UNSET - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Missing[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] - ] = Field(default=UNSET, title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( - Field(default=UNSET) - ) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentCreated) -model_rebuild(WebhookDeploymentCreatedPropDeployment) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0510.py b/githubkit/versions/v2022_11_28/models/group_0510.py index 8451827c5..2ba412cf7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0510.py +++ b/githubkit/versions/v2022_11_28/models/group_0510.py @@ -18,54 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0211 import Deployment -from .group_0342 import PullRequest -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0283 import DependabotAlert +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( - default=UNSET, - description="The name of the environment that has the deployment protection rule.", - ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDeploymentProtectionRuleRequested) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/v2022_11_28/models/group_0511.py b/githubkit/versions/v2022_11_28/models/group_0511.py index 59e7b1c2d..fc881d059 100644 --- a/githubkit/versions/v2022_11_28/models/group_0511.py +++ b/githubkit/versions/v2022_11_28/models/group_0511.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,457 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0428 import WebhooksApprover, WebhooksReviewersItems -from .group_0429 import WebhooksWorkflowJobRun +from .group_0283 import DependabotAlert +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0512.py b/githubkit/versions/v2022_11_28/models/group_0512.py index ce79487fe..ea7f3cf2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0512.py +++ b/githubkit/versions/v2022_11_28/models/group_0512.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0428 import WebhooksApprover, WebhooksReviewersItems -from .group_0429 import WebhooksWorkflowJobRun +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0431 import WebhooksDeployKey -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +39,11 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,425 +51,9 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0513.py b/githubkit/versions/v2022_11_28/models/group_0513.py index 3356fc63a..761d7cd3a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0513.py +++ b/githubkit/versions/v2022_11_28/models/group_0513.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,29 +18,32 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0431 import WebhooksDeployKey -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["requested"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -49,465 +51,9 @@ class WebhookDeploymentReviewRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhooksUser, None] = Field(title="User") - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - since: str = Field() - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - status: str = Field() - updated_at: str = Field() - - -class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: Missing[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] - ] = Field(default=UNSET, title="User") - type: Missing[Literal["User", "Team"]] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( - Field(title="User") - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyDeleted) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", -) +__all__ = ("WebhookDeployKeyDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0514.py b/githubkit/versions/v2022_11_28/models/group_0514.py index c19f8b7e5..024fa1396 100644 --- a/githubkit/versions/v2022_11_28/models/group_0514.py +++ b/githubkit/versions/v2022_11_28/models/group_0514.py @@ -19,27 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0427 import WebhooksWorkflow +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0432 import WebhooksWorkflow -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( - default=UNSET - ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + deployment: WebhookDeploymentCreatedPropDeployment = Field( title="Deployment", description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." - ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -60,48 +54,13 @@ class WebhookDeploymentStatusCreated(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Missing[Union[WebhooksWorkflow, None]] = Field( - default=UNSET, title="Workflow" - ) - workflow_run: Missing[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] - ] = Field(default=UNSET, title="Deployment Workflow Run") - - -class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The result of the completed check run. This value will be `null` until the check run has completed." - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check run.") - node_id: str = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( - description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" ) - url: str = Field() -class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): +class WebhookDeploymentCreatedPropDeployment(GitHubModel): """Deployment The [deployment](https://docs.github.com/rest/deployments/deployments#list- @@ -109,21 +68,19 @@ class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): """ created_at: str = Field() - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( - Field(title="User") + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() environment: str = Field() id: int = Field() node_id: str = Field() original_environment: str = Field() - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None - ] = Field() + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1] = ( + Field() + ) performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None - ] + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", @@ -140,7 +97,7 @@ class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): url: str = Field() -class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): +class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -167,13 +124,11 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1""" -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( - GitHubModel -): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -193,11 +148,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, - None, + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -205,7 +159,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( GitHubModel ): """User""" @@ -234,11 +188,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -284,189 +237,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropP workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/rest/deployments/statuses#list- - deployment-statuses). - """ - - created_at: str = Field() - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None - ] = Field(title="User") - deployment_url: str = Field() - description: str = Field( - description="The optional human-readable description added to the status." - ) - environment: str = Field() - environment_url: Missing[str] = Field(default=UNSET) - id: int = Field() - log_url: Missing[str] = Field(default=UNSET) - node_id: str = Field() - performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, - None, - ] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - repository_url: str = Field() - state: str = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: str = Field(description="The optional link added to the status.") - updated_at: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -484,7 +258,6 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "timed_out", "action_required", "stale", - "startup_failure", ], ] = Field() created_at: datetime = Field() @@ -493,7 +266,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): head_branch: str = Field() head_commit: Missing[None] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -505,18 +278,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Missing[None] = Field(default=UNSET) pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ - list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems - ], + list[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], None, ] ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET ) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() @@ -525,16 +296,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") updated_at: datetime = Field() url: str = Field() workflow_id: int = Field() workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -561,17 +332,15 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -598,8 +367,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -636,7 +405,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -651,10 +420,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -676,8 +443,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -713,9 +480,9 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) releases_url: Missing[str] = Field(default=UNSET) @@ -729,8 +496,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -752,33 +519,27 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -788,19 +549,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -810,76 +569,52 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase -) +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0515.py b/githubkit/versions/v2022_11_28/models/group_0515.py index cb63780d3..65dd95507 100644 --- a/githubkit/versions/v2022_11_28/models/group_0515.py +++ b/githubkit/versions/v2022_11_28/models/group_0515.py @@ -18,44 +18,54 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0431 import WebhooksAnswer -from .group_0432 import Discussion +from .group_0215 import Deployment +from .group_0346 import PullRequest +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["answered"] = Field() - answer: WebhooksAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["requested"] = Field() + environment: Missing[str] = Field( + default=UNSET, + description="The name of the environment that has the deployment protection rule.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + event: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The event that triggered the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." + ) + deployment: Missing[Deployment] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[list[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ("WebhookDiscussionAnswered",) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0516.py b/githubkit/versions/v2022_11_28/models/group_0516.py index 6738a59c4..b15738c2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0516.py +++ b/githubkit/versions/v2022_11_28/models/group_0516.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,21 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0433 import WebhooksApprover, WebhooksReviewersItems +from .group_0434 import WebhooksWorkflowJobRun -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["approved"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,46 +51,425 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): + """User""" - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - is_answerable: bool = Field() - name: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0517.py b/githubkit/versions/v2022_11_28/models/group_0517.py index 5b567be33..80f03ef22 100644 --- a/githubkit/versions/v2022_11_28/models/group_0517.py +++ b/githubkit/versions/v2022_11_28/models/group_0517.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,20 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0433 import WebhooksApprover, WebhooksReviewersItems +from .group_0434 import WebhooksWorkflowJobRun -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,8 +43,7 @@ class WebhookDiscussionClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,9 +51,425 @@ class WebhookDiscussionClosed(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[list[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ( + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0518.py b/githubkit/versions/v2022_11_28/models/group_0518.py index 4d1284ee5..dce6f5ad7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0518.py +++ b/githubkit/versions/v2022_11_28/models/group_0518.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,34 +19,29 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion -from .group_0433 import WebhooksComment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) + environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,9 +49,465 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhooksUser, None] = Field(title="User") + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + since: str = Field() + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRun = Field() + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRequestedPropWorkflowJobRun(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + status: str = Field() + updated_at: str = Field() + + +class WebhookDeploymentReviewRequestedPropReviewersItems(GitHubModel): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: Missing[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, None] + ] = Field(default=UNSET, title="User") + type: Missing[Literal["User", "Team"]] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, None] = ( + Field(title="User") + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentCreated",) +__all__ = ( + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0519.py b/githubkit/versions/v2022_11_28/models/group_0519.py index 11e67fce4..d9ee1a2e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0519.py +++ b/githubkit/versions/v2022_11_28/models/group_0519.py @@ -9,30 +9,36 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion -from .group_0433 import WebhooksComment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0432 import WebhooksWorkflow -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,8 +60,826 @@ class WebhookDiscussionCommentDeleted(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Missing[Union[WebhooksWorkflow, None]] = Field( + default=UNSET, title="Workflow" + ) + workflow_run: Missing[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] + ] = Field(default=UNSET, title="Deployment Workflow Run") + + +class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The result of the completed check run. This value will be `null` until the check run has completed." + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check run.") + node_id: str = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( + description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + ) + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str = Field() + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + environment: str = Field() + id: int = Field() + node_id: str = Field() + original_environment: str = Field() + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None + ] = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + production_environment: Missing[bool] = Field(default=UNSET) + ref: str = Field() + repository_url: str = Field() + sha: str = Field() + statuses_url: str = Field() + task: str = Field() + transient_environment: Missing[bool] = Field(default=UNSET) + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(ExtraGitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatus(GitHubModel): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/rest/deployments/statuses#list- + deployment-statuses). + """ + + created_at: str = Field() + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, None + ] = Field(title="User") + deployment_url: str = Field() + description: str = Field( + description="The optional human-readable description added to the status." + ) + environment: str = Field() + environment_url: Missing[str] = Field(default=UNSET) + id: int = Field() + log_url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + performed_via_github_app: Missing[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + repository_url: str = Field() + state: str = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: str = Field(description="The optional link added to the status.") + updated_at: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp( + GitHubModel +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ( + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0520.py b/githubkit/versions/v2022_11_28/models/group_0520.py index 87e2540e9..d22892fdf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0520.py +++ b/githubkit/versions/v2022_11_28/models/group_0520.py @@ -18,20 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion -from .group_0433 import WebhooksComment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0436 import WebhooksAnswer +from .group_0437 import Discussion -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhooksComment = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,24 +56,6 @@ class WebhookDiscussionCommentEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +model_rebuild(WebhookDiscussionAnswered) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() - - -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) - -__all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", -) +__all__ = ("WebhookDiscussionAnswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0521.py b/githubkit/versions/v2022_11_28/models/group_0521.py index aed0a094b..9bb52c2ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0521.py +++ b/githubkit/versions/v2022_11_28/models/group_0521.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["created"] = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,43 @@ class WebhookDiscussionCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionCreated) +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" -__all__ = ("WebhookDiscussionCreated",) + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" + ) + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + +__all__ = ( + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0522.py b/githubkit/versions/v2022_11_28/models/group_0522.py index 4d97309e7..010312c46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0522.py +++ b/githubkit/versions/v2022_11_28/models/group_0522.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["deleted"] = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionDeleted) +model_rebuild(WebhookDiscussionClosed) -__all__ = ("WebhookDiscussionDeleted",) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0523.py b/githubkit/versions/v2022_11_28/models/group_0523.py index 8d5b394f2..5763ff827 100644 --- a/githubkit/versions/v2022_11_28/models/group_0523.py +++ b/githubkit/versions/v2022_11_28/models/group_0523.py @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion +from .group_0438 import WebhooksComment -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["created"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -55,33 +56,6 @@ class WebhookDiscussionEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +model_rebuild(WebhookDiscussionCommentCreated) - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) - -__all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", -) +__all__ = ("WebhookDiscussionCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0524.py b/githubkit/versions/v2022_11_28/models/group_0524.py index 84e6919dc..d4ee351ca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0524.py +++ b/githubkit/versions/v2022_11_28/models/group_0524.py @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion -from .group_0434 import WebhooksLabel +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion +from .group_0438 import WebhooksComment -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["labeled"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +44,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +56,6 @@ class WebhookDiscussionLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0525.py b/githubkit/versions/v2022_11_28/models/group_0525.py index d8e9ec35c..ed4f8ba85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0525.py +++ b/githubkit/versions/v2022_11_28/models/group_0525.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion +from .group_0438 import WebhooksComment -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["locked"] = Field() + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +57,24 @@ class WebhookDiscussionLocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionLocked) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionLocked",) + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + + +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + +__all__ = ( + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0526.py b/githubkit/versions/v2022_11_28/models/group_0526.py index 05fa6f073..b0e3ae295 100644 --- a/githubkit/versions/v2022_11_28/models/group_0526.py +++ b/githubkit/versions/v2022_11_28/models/group_0526.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["pinned"] = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionPinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0527.py b/githubkit/versions/v2022_11_28/models/group_0527.py index 399f50118..f46c43f2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0527.py +++ b/githubkit/versions/v2022_11_28/models/group_0527.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionReopened) +model_rebuild(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0528.py b/githubkit/versions/v2022_11_28/models/group_0528.py index 0229ae9d1..73cebb650 100644 --- a/githubkit/versions/v2022_11_28/models/group_0528.py +++ b/githubkit/versions/v2022_11_28/models/group_0528.py @@ -18,19 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion -from .group_0529 import WebhookDiscussionTransferredPropChanges +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -56,6 +55,33 @@ class WebhookDiscussionTransferred(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionTransferred) +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" -__all__ = ("WebhookDiscussionTransferred",) + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) + +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0529.py b/githubkit/versions/v2022_11_28/models/group_0529.py index cb6b213e5..2251ed994 100644 --- a/githubkit/versions/v2022_11_28/models/group_0529.py +++ b/githubkit/versions/v2022_11_28/models/group_0529.py @@ -9,26 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion +from .group_0439 import WebhooksLabel -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - new_discussion: Discussion = Field( + action: Literal["labeled"] = Field() + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionLabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0530.py b/githubkit/versions/v2022_11_28/models/group_0530.py index 0c120d5bf..b38eb27ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0530.py +++ b/githubkit/versions/v2022_11_28/models/group_0530.py @@ -18,20 +18,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0431 import WebhooksAnswer -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["unanswered"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -41,11 +51,9 @@ class WebhookDiscussionUnanswered(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0531.py b/githubkit/versions/v2022_11_28/models/group_0531.py index 7320e414b..994232a3f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0531.py +++ b/githubkit/versions/v2022_11_28/models/group_0531.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion -from .group_0434 import WebhooksLabel +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["unlabeled"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +42,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,6 +54,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0532.py b/githubkit/versions/v2022_11_28/models/group_0532.py index 928450ad6..c242d02ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0532.py +++ b/githubkit/versions/v2022_11_28/models/group_0532.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - action: Literal["unlocked"] = Field() + action: Literal["reopened"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +54,6 @@ class WebhookDiscussionUnlocked(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0533.py b/githubkit/versions/v2022_11_28/models/group_0533.py index 3e1e178aa..6769897ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0533.py +++ b/githubkit/versions/v2022_11_28/models/group_0533.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0432 import Discussion +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion +from .group_0534 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - action: Literal["unpinned"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -54,6 +56,6 @@ class WebhookDiscussionUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/v2022_11_28/models/group_0534.py b/githubkit/versions/v2022_11_28/models/group_0534.py index cf8b2828b..a5975516b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0534.py +++ b/githubkit/versions/v2022_11_28/models/group_0534.py @@ -12,48 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0535 import WebhookForkPropForkee +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookFork(GitHubModel): - """fork event +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - A user forks a repository. - """ - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - forkee: WebhookForkPropForkee = Field( - description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + new_discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - repository: RepositoryWebhooks = Field( + new_repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0535.py b/githubkit/versions/v2022_11_28/models/group_0535.py index eb5ff7343..b80834a2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0535.py +++ b/githubkit/versions/v2022_11_28/models/group_0535.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,177 +17,35 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0537 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0436 import WebhooksAnswer +from .group_0437 import Discussion -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + action: Literal["unanswered"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + old_answer: WebhooksAnswer = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: datetime = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeMergedLicense(GitHubModel): - """WebhookForkPropForkeeMergedLicense""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeMergedOwner(GitHubModel): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookDiscussionUnanswered) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionUnanswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0536.py b/githubkit/versions/v2022_11_28/models/group_0536.py index 46fef759b..771d21213 100644 --- a/githubkit/versions/v2022_11_28/models/group_0536.py +++ b/githubkit/versions/v2022_11_28/models/group_0536.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,178 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0537 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion +from .group_0439 import WebhooksLabel -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + action: Literal["unlabeled"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookDiscussionUnlabeled) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookDiscussionUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0537.py b/githubkit/versions/v2022_11_28/models/group_0537.py index f8d13642f..1ecb28507 100644 --- a/githubkit/versions/v2022_11_28/models/group_0537.py +++ b/githubkit/versions/v2022_11_28/models/group_0537.py @@ -9,23 +9,51 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) - -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion + + +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" + + action: Literal["unlocked"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookDiscussionUnlocked) + +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0538.py b/githubkit/versions/v2022_11_28/models/group_0538.py index 18554f9e3..52b7bb060 100644 --- a/githubkit/versions/v2022_11_28/models/group_0538.py +++ b/githubkit/versions/v2022_11_28/models/group_0538.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,125 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0437 import Discussion -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[list[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - - -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" - - -class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): - """WebhookForkPropForkeeAllof1PropOwner""" +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", -) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0539.py b/githubkit/versions/v2022_11_28/models/group_0539.py index 2a852bdcc..40f089e0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0539.py +++ b/githubkit/versions/v2022_11_28/models/group_0539.py @@ -9,22 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET from .group_0003 import SimpleUser - - -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" - - action: Literal["revoked"] = Field() +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0540 import WebhookForkPropForkee + + +class WebhookFork(GitHubModel): + """fork event + + A user forks a repository. + """ + + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookFork) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/v2022_11_28/models/group_0540.py b/githubkit/versions/v2022_11_28/models/group_0540.py index 4ffe3ec96..69105388f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0540.py +++ b/githubkit/versions/v2022_11_28/models/group_0540.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,58 +18,177 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0542 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookGollum(GitHubModel): - """gollum event""" +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: datetime = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether to delete head branches when pull requests are merged", ) - pages: list[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." + deployments_url: str = Field() + description: Union[Union[str, None], None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + downloads_url: str = Field() + events_url: str = Field() + fork: Literal[True] = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[Union[str, None], None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[None, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[None, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: WebhookForkPropForkeeMergedOwner = Field() + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: datetime = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) __all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0541.py b/githubkit/versions/v2022_11_28/models/group_0541.py index 73d5f805a..c567d900a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0541.py +++ b/githubkit/versions/v2022_11_28/models/group_0541.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,43 +18,178 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser -from .group_0435 import WebhooksRepositoriesItems +from .group_0542 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationCreated(GitHubModel): - """installation created event""" +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - description="An array of repository objects that the installation can access.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - repository: Missing[RepositoryWebhooks] = Field( + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to require contributors to sign off on web-based commits", ) - requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationCreated) +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) -__all__ = ("WebhookInstallationCreated",) +__all__ = ( + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0542.py b/githubkit/versions/v2022_11_28/models/group_0542.py index d97de4971..f8d13642f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0542.py +++ b/githubkit/versions/v2022_11_28/models/group_0542.py @@ -9,50 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0435 import WebhooksRepositoriesItems - - -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookInstallationDeleted) - -__all__ = ("WebhookInstallationDeleted",) + +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) + +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0543.py b/githubkit/versions/v2022_11_28/models/group_0543.py index 28aecb89e..18554f9e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0543.py +++ b/githubkit/versions/v2022_11_28/models/group_0543.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,42 +17,125 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0435 import WebhooksRepositoriesItems +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" - - action: Literal["new_permissions_accepted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[list[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[list[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationNewPermissionsAccepted) +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) -__all__ = ("WebhookInstallationNewPermissionsAccepted",) +__all__ = ( + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0544.py b/githubkit/versions/v2022_11_28/models/group_0544.py index b6be2ccfb..2a852bdcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0544.py +++ b/githubkit/versions/v2022_11_28/models/group_0544.py @@ -9,76 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser -from .group_0436 import WebhooksRepositoriesAddedItems -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") + action: Literal["revoked"] = Field() sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +model_rebuild(WebhookGithubAppAuthorizationRevoked) - full_name: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the repository" - ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) - - -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) - -__all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0545.py b/githubkit/versions/v2022_11_28/models/group_0545.py index e4f7bba05..aa22f92c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0545.py +++ b/githubkit/versions/v2022_11_28/models/group_0545.py @@ -18,63 +18,57 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0018 import Installation -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser -from .group_0436 import WebhooksRepositoriesAddedItems +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories_added: list[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." + pages: list[WebhookGollumPropPagesItems] = Field( + description="The pages that were updated." ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") -model_rebuild(WebhookInstallationRepositoriesRemoved) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) __all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", + "WebhookGollum", + "WebhookGollumPropPagesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0546.py b/githubkit/versions/v2022_11_28/models/group_0546.py index af5b29ff2..324ce9aaf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0546.py +++ b/githubkit/versions/v2022_11_28/models/group_0546.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -19,16 +19,17 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0435 import WebhooksRepositoriesItems +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser +from .group_0440 import WebhooksRepositoriesItems -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["suspend"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +50,10 @@ class WebhookInstallationSuspend(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationSuspend) +model_rebuild(WebhookInstallationCreated) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ("WebhookInstallationCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0547.py b/githubkit/versions/v2022_11_28/models/group_0547.py index 08146d862..7fc971174 100644 --- a/githubkit/versions/v2022_11_28/models/group_0547.py +++ b/githubkit/versions/v2022_11_28/models/group_0547.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,118 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0018 import Installation +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0440 import WebhooksRepositoriesItems -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - target_type: str = Field() - - -class WebhookInstallationTargetRenamedPropAccount(GitHubModel): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: Missing[Union[str, None]] = Field(default=UNSET) - avatar_url: str = Field() - created_at: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - has_organization_projects: Missing[bool] = Field(default=UNSET) - has_repository_projects: Missing[bool] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - is_verified: Missing[bool] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: str = Field() - organizations_url: Missing[str] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - public_repos: Missing[int] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - website_url: Missing[None] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str = Field(alias="from") - - -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationDeleted) -__all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", -) +__all__ = ("WebhookInstallationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0548.py b/githubkit/versions/v2022_11_28/models/group_0548.py index 2846c8f1d..e8bc55700 100644 --- a/githubkit/versions/v2022_11_28/models/group_0548.py +++ b/githubkit/versions/v2022_11_28/models/group_0548.py @@ -19,16 +19,16 @@ from .group_0003 import SimpleUser from .group_0018 import Installation -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0435 import WebhooksRepositoriesItems +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0440 import WebhooksRepositoriesItems -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["unsuspend"] = Field() + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookInstallationUnsuspend(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0549.py b/githubkit/versions/v2022_11_28/models/group_0549.py index a3c4427a2..5cba274fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0549.py +++ b/githubkit/versions/v2022_11_28/models/group_0549.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,47 +18,67 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0550 import WebhookIssueCommentCreatedPropComment -from .group_0551 import WebhookIssueCommentCreatedPropIssue +from .group_0018 import Installation +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser +from .group_0441 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreated) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + node_id: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) + + +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ( + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0550.py b/githubkit/versions/v2022_11_28/models/group_0550.py index 05bbc8cba..6c93ddae5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0550.py +++ b/githubkit/versions/v2022_11_28/models/group_0550.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,94 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0010 import Integration +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser +from .group_0441 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories_added: list[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + description="An array of repository objects, which were removed from the installation." ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0551.py b/githubkit/versions/v2022_11_28/models/group_0551.py index 9165ddfb0..02cac1fe5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0551.py +++ b/githubkit/versions/v2022_11_28/models/group_0551.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,165 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType -from .group_0553 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0558 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -from .group_0560 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0561 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0440 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + action: Literal["suspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookInstallationSuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", -) +__all__ = ("WebhookInstallationSuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0552.py b/githubkit/versions/v2022_11_28/models/group_0552.py index a0353e082..15bac630d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0552.py +++ b/githubkit/versions/v2022_11_28/models/group_0552.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,183 +17,119 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType -from .group_0553 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) -from .group_0555 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0557 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0558 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks + + +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + target_type: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - login: str = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) repos_url: Missing[str] = Field(default=UNSET) site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + website_url: Missing[None] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" + + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( + default=UNSET + ) + + +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + from_: str = Field(alias="from") -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0553.py b/githubkit/versions/v2022_11_28/models/group_0553.py index fda7ebaae..c70580faf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0553.py +++ b/githubkit/versions/v2022_11_28/models/group_0553.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,66 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0018 import Installation +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0440 import WebhooksRepositoriesItems -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + action: Literal["unsuspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories: Missing[list[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookInstallationUnsuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookInstallationUnsuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0554.py b/githubkit/versions/v2022_11_28/models/group_0554.py index 3775a89ee..398c9f69c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0554.py +++ b/githubkit/versions/v2022_11_28/models/group_0554.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,36 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0555 import WebhookIssueCommentCreatedPropComment +from .group_0556 import WebhookIssueCommentCreatedPropIssue -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" + + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0555.py b/githubkit/versions/v2022_11_28/models/group_0555.py index b29b9e3e9..05bbc8cba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0555.py +++ b/githubkit/versions/v2022_11_28/models/group_0555.py @@ -15,38 +15,97 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0554 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0010 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - A collection of related issues and pull requests. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): + """User""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0556.py b/githubkit/versions/v2022_11_28/models/group_0556.py index 9a58db044..717da3d8e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0556.py +++ b/githubkit/versions/v2022_11_28/models/group_0556.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,11 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0043 import IssueType +from .group_0558 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) +from .group_0563 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary +from .group_0565 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0566 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,73 +118,65 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0557.py b/githubkit/versions/v2022_11_28/models/group_0557.py index 99dec7257..d0d0b9694 100644 --- a/githubkit/versions/v2022_11_28/models/group_0557.py +++ b/githubkit/versions/v2022_11_28/models/group_0557.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,183 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0556 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0043 import IssueType +from .group_0558 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) +from .group_0560 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0562 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0563 import WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0558.py b/githubkit/versions/v2022_11_28/models/group_0558.py index bdfcb7cc4..fda7ebaae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0558.py +++ b/githubkit/versions/v2022_11_28/models/group_0558.py @@ -9,19 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0559.py b/githubkit/versions/v2022_11_28/models/group_0559.py index 7371c113a..3775a89ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0559.py +++ b/githubkit/versions/v2022_11_28/models/group_0559.py @@ -18,53 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,86 +47,6 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0560.py b/githubkit/versions/v2022_11_28/models/group_0560.py index 67b8ddf48..0e37b3432 100644 --- a/githubkit/versions/v2022_11_28/models/group_0560.py +++ b/githubkit/versions/v2022_11_28/models/group_0560.py @@ -16,13 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0554 import ( +from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -44,6 +47,6 @@ class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0561.py b/githubkit/versions/v2022_11_28/models/group_0561.py index 22fd35e04..9a58db044 100644 --- a/githubkit/versions/v2022_11_28/models/group_0561.py +++ b/githubkit/versions/v2022_11_28/models/group_0561.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +17,98 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0556 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0562.py b/githubkit/versions/v2022_11_28/models/group_0562.py index 528c46575..43e8018ca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0562.py +++ b/githubkit/versions/v2022_11_28/models/group_0562.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,48 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0437 import WebhooksIssueComment -from .group_0563 import WebhookIssueCommentDeletedPropIssue +from .group_0561 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["deleted"] = Field() - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentDeletedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeleted) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0563.py b/githubkit/versions/v2022_11_28/models/group_0563.py index 60e466b73..bdfcb7cc4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0563.py +++ b/githubkit/versions/v2022_11_28/models/group_0563.py @@ -9,174 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0040 import IssueType -from .group_0565 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0570 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -from .group_0572 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0573 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0564.py b/githubkit/versions/v2022_11_28/models/group_0564.py index 31c0f14ee..7371c113a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0564.py +++ b/githubkit/versions/v2022_11_28/models/group_0564.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,103 +17,54 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType -from .group_0565 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) -from .group_0567 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0569 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0570 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + list[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET ) -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -143,36 +93,59 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -180,21 +153,26 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0565.py b/githubkit/versions/v2022_11_28/models/group_0565.py index 79014e43a..0f398dddb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0565.py +++ b/githubkit/versions/v2022_11_28/models/group_0565.py @@ -15,69 +15,35 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +from .group_0559 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0566.py b/githubkit/versions/v2022_11_28/models/group_0566.py index 132940878..2a8fdd0b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0566.py +++ b/githubkit/versions/v2022_11_28/models/group_0566.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,36 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0561 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0567.py b/githubkit/versions/v2022_11_28/models/group_0567.py index f7d64f670..722ef2087 100644 --- a/githubkit/versions/v2022_11_28/models/group_0567.py +++ b/githubkit/versions/v2022_11_28/models/group_0567.py @@ -9,44 +9,56 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0566 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0442 import WebhooksIssueComment +from .group_0568 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - A collection of related issues and pull requests. - """ + action: Literal["deleted"] = Field() + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentDeletedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentDeleted) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0568.py b/githubkit/versions/v2022_11_28/models/group_0568.py index c6044c9aa..f4c63fa2c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0568.py +++ b/githubkit/versions/v2022_11_28/models/group_0568.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,11 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0043 import IssueType +from .group_0570 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) +from .group_0575 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary +from .group_0577 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0578 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" + +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,69 +118,65 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0569.py b/githubkit/versions/v2022_11_28/models/group_0569.py index 953a016ba..bd28a93ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0569.py +++ b/githubkit/versions/v2022_11_28/models/group_0569.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,183 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0568 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0043 import IssueType +from .group_0570 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) +from .group_0572 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0574 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0575 import WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0570.py b/githubkit/versions/v2022_11_28/models/group_0570.py index f0a05c54f..79014e43a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0570.py +++ b/githubkit/versions/v2022_11_28/models/group_0570.py @@ -9,19 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0571.py b/githubkit/versions/v2022_11_28/models/group_0571.py index 10129f694..132940878 100644 --- a/githubkit/versions/v2022_11_28/models/group_0571.py +++ b/githubkit/versions/v2022_11_28/models/group_0571.py @@ -18,53 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,87 +47,6 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0572.py b/githubkit/versions/v2022_11_28/models/group_0572.py index 521d4c9a2..84755c958 100644 --- a/githubkit/versions/v2022_11_28/models/group_0572.py +++ b/githubkit/versions/v2022_11_28/models/group_0572.py @@ -16,13 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0566 import ( +from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -44,6 +47,6 @@ class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0573.py b/githubkit/versions/v2022_11_28/models/group_0573.py index b4b4f504b..c6044c9aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0573.py +++ b/githubkit/versions/v2022_11_28/models/group_0573.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,38 +17,94 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0568 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + The set of permissions for the GitHub app + """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0574.py b/githubkit/versions/v2022_11_28/models/group_0574.py index 120c5f443..0525822d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0574.py +++ b/githubkit/versions/v2022_11_28/models/group_0574.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,50 +18,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0437 import WebhooksIssueComment -from .group_0438 import WebhooksChanges -from .group_0575 import WebhookIssueCommentEditedPropIssue +from .group_0573 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEdited) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEdited",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0575.py b/githubkit/versions/v2022_11_28/models/group_0575.py index ff8d50086..f0a05c54f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0575.py +++ b/githubkit/versions/v2022_11_28/models/group_0575.py @@ -9,174 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0040 import IssueType -from .group_0577 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) -from .group_0582 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -from .group_0584 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0585 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp - - -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + total: int = Field() + completed: int = Field() + percent_completed: int = Field() -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary) -__all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0576.py b/githubkit/versions/v2022_11_28/models/group_0576.py index 074259116..10129f694 100644 --- a/githubkit/versions/v2022_11_28/models/group_0576.py +++ b/githubkit/versions/v2022_11_28/models/group_0576.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,103 +17,54 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType -from .group_0577 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) -from .group_0579 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0581 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0582 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - - -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + list[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET ) -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -143,36 +93,59 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -180,21 +153,27 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0577.py b/githubkit/versions/v2022_11_28/models/group_0577.py index 1550c9c19..76f32c102 100644 --- a/githubkit/versions/v2022_11_28/models/group_0577.py +++ b/githubkit/versions/v2022_11_28/models/group_0577.py @@ -15,69 +15,35 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +from .group_0571 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0578.py b/githubkit/versions/v2022_11_28/models/group_0578.py index b0370744c..2509c6c75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0578.py +++ b/githubkit/versions/v2022_11_28/models/group_0578.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,36 +18,38 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0573 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0579.py b/githubkit/versions/v2022_11_28/models/group_0579.py index c526cdec7..4e6de8e9f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0579.py +++ b/githubkit/versions/v2022_11_28/models/group_0579.py @@ -9,42 +9,58 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0578 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0442 import WebhooksIssueComment +from .group_0443 import WebhooksChanges +from .group_0580 import WebhookIssueCommentEditedPropIssue -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - A collection of related issues and pull requests. - """ + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentEdited) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0580.py b/githubkit/versions/v2022_11_28/models/group_0580.py index 4a8bc3224..5e611b597 100644 --- a/githubkit/versions/v2022_11_28/models/group_0580.py +++ b/githubkit/versions/v2022_11_28/models/group_0580.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,11 +18,86 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0043 import IssueType +from .group_0582 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) +from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary +from .group_0589 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0590 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp + + +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() + -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,70 +118,65 @@ class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0581.py b/githubkit/versions/v2022_11_28/models/group_0581.py index 7195822b8..1743b9ffe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0581.py +++ b/githubkit/versions/v2022_11_28/models/group_0581.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,43 +18,183 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0580 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0043 import IssueType +from .group_0582 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) +from .group_0584 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0586 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0582.py b/githubkit/versions/v2022_11_28/models/group_0582.py index 2d17d8ee7..1550c9c19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0582.py +++ b/githubkit/versions/v2022_11_28/models/group_0582.py @@ -9,19 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0583.py b/githubkit/versions/v2022_11_28/models/group_0583.py index 7d03e33d0..b0370744c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0583.py +++ b/githubkit/versions/v2022_11_28/models/group_0583.py @@ -18,53 +18,7 @@ from githubkit.utils import UNSET -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" - ) - assignees: Missing[ - list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -93,86 +47,6 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0584.py b/githubkit/versions/v2022_11_28/models/group_0584.py index 91bf111f2..6eea0296a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0584.py +++ b/githubkit/versions/v2022_11_28/models/group_0584.py @@ -16,11 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0578 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0583 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -42,6 +45,6 @@ class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0585.py b/githubkit/versions/v2022_11_28/models/group_0585.py index 0a95666d1..4a8bc3224 100644 --- a/githubkit/versions/v2022_11_28/models/group_0585.py +++ b/githubkit/versions/v2022_11_28/models/group_0585.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,37 +17,95 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0580 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + The set of permissions for the GitHub app + """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0586.py b/githubkit/versions/v2022_11_28/models/group_0586.py index 3243e1d3e..1f6c28d82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0586.py +++ b/githubkit/versions/v2022_11_28/models/group_0586.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,46 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser -from .group_0439 import WebhooksIssue +from .group_0585 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesAssigned) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssuesAssigned",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0587.py b/githubkit/versions/v2022_11_28/models/group_0587.py index 7635ad812..2d17d8ee7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0587.py +++ b/githubkit/versions/v2022_11_28/models/group_0587.py @@ -9,51 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0588 import WebhookIssuesClosedPropIssue - - -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" - - action: Literal["closed"] = Field(description="The action that was performed.") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookIssuesClosed) - -__all__ = ("WebhookIssuesClosed",) + + +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0588.py b/githubkit/versions/v2022_11_28/models/group_0588.py index 708ea09be..7d03e33d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0588.py +++ b/githubkit/versions/v2022_11_28/models/group_0588.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,85 +17,55 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType -from .group_0594 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) -from .group_0596 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0597 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp - -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( - default=UNSET + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() + assignees: Missing[ + list[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( default=UNSET ) - reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") + repository_url: Missing[str] = Field(default=UNSET) state: Literal["open", "closed"] = Field( description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( + default=UNSET ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -124,37 +93,12 @@ class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -167,36 +111,41 @@ class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" + - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -204,25 +153,26 @@ class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0589.py b/githubkit/versions/v2022_11_28/models/group_0589.py index 3de1826c8..9b2d3652e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0589.py +++ b/githubkit/versions/v2022_11_28/models/group_0589.py @@ -15,225 +15,33 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0040 import IssueType -from .group_0591 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0593 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -from .group_0594 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequest, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, -) +from .group_0583 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + closed_issues: int = Field() created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0590.py b/githubkit/versions/v2022_11_28/models/group_0590.py index 038d97dfc..8a04e1b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0590.py +++ b/githubkit/versions/v2022_11_28/models/group_0590.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,36 +18,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0585 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0591.py b/githubkit/versions/v2022_11_28/models/group_0591.py index f5fb10c65..460d76a0f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0591.py +++ b/githubkit/versions/v2022_11_28/models/group_0591.py @@ -9,42 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser +from .group_0444 import WebhooksIssue + + +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" + + action: Literal["assigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -from .group_0590 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator - - -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +model_rebuild(WebhookIssuesAssigned) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssuesAssigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0592.py b/githubkit/versions/v2022_11_28/models/group_0592.py index 52dd00063..06372d7fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0592.py +++ b/githubkit/versions/v2022_11_28/models/group_0592.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,91 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0593 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["closed"] = Field(description="The action that was performed.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssuesClosed) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0593.py b/githubkit/versions/v2022_11_28/models/group_0593.py index 300b4be48..b8e2e1762 100644 --- a/githubkit/versions/v2022_11_28/models/group_0593.py +++ b/githubkit/versions/v2022_11_28/models/group_0593.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,43 +18,211 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0592 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0043 import IssueType +from .group_0599 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, ) +from .group_0601 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0602 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET + ) + assignees: list[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - external_url: Union[str, None] = Field() + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssuesClosedPropIssueMergedUser = Field() + + +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) + +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): + """WebhookIssuesClosedPropIssueMergedReactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): + """WebhookIssuesClosedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) + +__all__ = ( + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0594.py b/githubkit/versions/v2022_11_28/models/group_0594.py index ada7003bc..ac4b9e501 100644 --- a/githubkit/versions/v2022_11_28/models/group_0594.py +++ b/githubkit/versions/v2022_11_28/models/group_0594.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,29 +18,222 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0043 import IssueType +from .group_0596 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0599 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequest, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary, +) -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + + +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequest", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0595.py b/githubkit/versions/v2022_11_28/models/group_0595.py index abefecf23..038d97dfc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0595.py +++ b/githubkit/versions/v2022_11_28/models/group_0595.py @@ -18,97 +18,21 @@ from githubkit.utils import UNSET -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) - ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,27 +40,13 @@ class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0596.py b/githubkit/versions/v2022_11_28/models/group_0596.py index 2e1036ee1..e561e3775 100644 --- a/githubkit/versions/v2022_11_28/models/group_0596.py +++ b/githubkit/versions/v2022_11_28/models/group_0596.py @@ -16,11 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0590 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -42,6 +45,6 @@ class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0597.py b/githubkit/versions/v2022_11_28/models/group_0597.py index 5e2df1ae2..52dd00063 100644 --- a/githubkit/versions/v2022_11_28/models/group_0597.py +++ b/githubkit/versions/v2022_11_28/models/group_0597.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,37 +17,91 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0592 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" + The set of permissions for the GitHub app + """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0598.py b/githubkit/versions/v2022_11_28/models/group_0598.py index 2c716f097..af7a2658d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0598.py +++ b/githubkit/versions/v2022_11_28/models/group_0598.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,44 +18,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0599 import WebhookIssuesDeletedPropIssue +from .group_0597 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesDeleted) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssuesDeleted",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0599.py b/githubkit/versions/v2022_11_28/models/group_0599.py index c04c76575..ada7003bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0599.py +++ b/githubkit/versions/v2022_11_28/models/group_0599.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,316 +18,9 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -336,22 +29,7 @@ class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -359,59 +37,10 @@ class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDeletedPropIssue) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) -model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDeletedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary) __all__ = ( - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", - "WebhookIssuesDeletedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof0PropPullRequest", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummary", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0600.py b/githubkit/versions/v2022_11_28/models/group_0600.py index 7b90a746c..abefecf23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0600.py +++ b/githubkit/versions/v2022_11_28/models/group_0600.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,50 +17,126 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0440 import WebhooksMilestone -from .group_0601 import WebhookIssuesDemilestonedPropIssue +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) ) - milestone: Missing[WebhooksMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + assignees: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" + + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesDemilestoned) +model_rebuild(WebhookIssuesClosedPropIssueAllof1) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) -__all__ = ("WebhookIssuesDemilestoned",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0601.py b/githubkit/versions/v2022_11_28/models/group_0601.py index e47c42d85..d40500315 100644 --- a/githubkit/versions/v2022_11_28/models/group_0601.py +++ b/githubkit/versions/v2022_11_28/models/group_0601.py @@ -15,171 +15,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( Field(title="User") ) description: Union[str, None] = Field() @@ -196,234 +42,6 @@ class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesDemilestonedPropIssue) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesDemilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0602.py b/githubkit/versions/v2022_11_28/models/group_0602.py index d6d96a8e2..1ccb1ebcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0602.py +++ b/githubkit/versions/v2022_11_28/models/group_0602.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,79 +18,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel -from .group_0603 import WebhookIssuesEditedPropIssue +from .group_0597 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ + updated_at: Union[datetime, None] = Field() - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -model_rebuild(WebhookIssuesEdited) -model_rebuild(WebhookIssuesEditedPropChanges) -model_rebuild(WebhookIssuesEditedPropChangesPropBody) -model_rebuild(WebhookIssuesEditedPropChangesPropTitle) - -__all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0603.py b/githubkit/versions/v2022_11_28/models/group_0603.py index 8d675727c..68ca61555 100644 --- a/githubkit/versions/v2022_11_28/models/group_0603.py +++ b/githubkit/versions/v2022_11_28/models/group_0603.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,407 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0604 import WebhookIssuesDeletedPropIssue -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + issue: WebhookIssuesDeletedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesEditedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesEditedPropIssue) -model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) -model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) -model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesEditedPropIssuePropReactions) -model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesEditedPropIssuePropUser) +model_rebuild(WebhookIssuesDeleted) -__all__ = ( - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropSubIssuesSummary", - "WebhookIssuesEditedPropIssuePropUser", -) +__all__ = ("WebhookIssuesDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0604.py b/githubkit/versions/v2022_11_28/models/group_0604.py index e0a6b25ab..fa015e299 100644 --- a/githubkit/versions/v2022_11_28/models/group_0604.py +++ b/githubkit/versions/v2022_11_28/models/group_0604.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,400 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel -from .group_0605 import WebhookIssuesLabeledPropIssue +from .group_0043 import IssueType -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" +class WebhookIssuesDeletedPropIssue(GitHubModel): + """Issue - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesDeletedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDeletedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLabeled) +model_rebuild(WebhookIssuesDeletedPropIssue) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) +model_rebuild(WebhookIssuesDeletedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDeletedPropIssuePropUser) -__all__ = ("WebhookIssuesLabeled",) +__all__ = ( + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummary", + "WebhookIssuesDeletedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0605.py b/githubkit/versions/v2022_11_28/models/group_0605.py index 1042eecc1..2767769d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0605.py +++ b/githubkit/versions/v2022_11_28/models/group_0605.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,409 +17,50 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0445 import WebhooksMilestone +from .group_0606 import WebhookIssuesDemilestonedPropIssue -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["demilestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET + issue: WebhookIssuesDemilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesLabeledPropIssue) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) -model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) -model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) -model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLabeledPropIssuePropUser) +model_rebuild(WebhookIssuesDemilestoned) -__all__ = ( - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", - "WebhookIssuesLabeledPropIssuePropUser", -) +__all__ = ("WebhookIssuesDemilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0606.py b/githubkit/versions/v2022_11_28/models/group_0606.py index 7ea67aec8..5f3faa379 100644 --- a/githubkit/versions/v2022_11_28/models/group_0606.py +++ b/githubkit/versions/v2022_11_28/models/group_0606.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,44 +18,412 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0607 import WebhookIssuesLockedPropIssue +from .group_0043 import IssueType -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" +class WebhookIssuesDemilestonedPropIssue(GitHubModel): + """Issue - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesLocked) +model_rebuild(WebhookIssuesDemilestonedPropIssue) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesLocked",) +__all__ = ( + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesDemilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0607.py b/githubkit/versions/v2022_11_28/models/group_0607.py index e93ca7be8..716458c2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0607.py +++ b/githubkit/versions/v2022_11_28/models/group_0607.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,398 +17,79 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel +from .group_0608 import WebhookIssuesEditedPropIssue -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + issue: WebhookIssuesEditedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: Union[datetime, None] = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app + The changes to the issue. """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) -class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" - total: int = Field() - completed: int = Field() - percent_completed: int = Field() + from_: str = Field(alias="from", description="The previous version of the body.") -class WebhookIssuesLockedPropIssuePropUser(GitHubModel): - """User""" +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from", description="The previous version of the title.") -model_rebuild(WebhookIssuesLockedPropIssue) -model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesLockedPropIssuePropReactions) -model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesLockedPropIssuePropUser) +model_rebuild(WebhookIssuesEdited) +model_rebuild(WebhookIssuesEditedPropChanges) +model_rebuild(WebhookIssuesEditedPropChangesPropBody) +model_rebuild(WebhookIssuesEditedPropChangesPropTitle) __all__ = ( - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropSubIssuesSummary", - "WebhookIssuesLockedPropIssuePropUser", + "WebhookIssuesEdited", + "WebhookIssuesEditedPropChanges", + "WebhookIssuesEditedPropChangesPropBody", + "WebhookIssuesEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0608.py b/githubkit/versions/v2022_11_28/models/group_0608.py index e9a00c159..6e0648abe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0608.py +++ b/githubkit/versions/v2022_11_28/models/group_0608.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,49 +18,407 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0440 import WebhooksMilestone -from .group_0609 import WebhookIssuesMilestonedPropIssue +from .group_0043 import IssueType -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" +class WebhookIssuesEditedPropIssue(GitHubModel): + """Issue - action: Literal["milestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesMilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - milestone: WebhooksMilestone = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesEditedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesEditedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesEditedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesMilestoned) +model_rebuild(WebhookIssuesEditedPropIssue) +model_rebuild(WebhookIssuesEditedPropIssuePropAssignee) +model_rebuild(WebhookIssuesEditedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesEditedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestone) +model_rebuild(WebhookIssuesEditedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesEditedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesEditedPropIssuePropReactions) +model_rebuild(WebhookIssuesEditedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesEditedPropIssuePropUser) -__all__ = ("WebhookIssuesMilestoned",) +__all__ = ( + "WebhookIssuesEditedPropIssue", + "WebhookIssuesEditedPropIssuePropAssignee", + "WebhookIssuesEditedPropIssuePropAssigneesItems", + "WebhookIssuesEditedPropIssuePropLabelsItems", + "WebhookIssuesEditedPropIssuePropMilestone", + "WebhookIssuesEditedPropIssuePropMilestonePropCreator", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesEditedPropIssuePropPullRequest", + "WebhookIssuesEditedPropIssuePropReactions", + "WebhookIssuesEditedPropIssuePropSubIssuesSummary", + "WebhookIssuesEditedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0609.py b/githubkit/versions/v2022_11_28/models/group_0609.py index 18598e85f..a9c760c5e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0609.py +++ b/githubkit/versions/v2022_11_28/models/group_0609.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,402 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel +from .group_0610 import WebhookIssuesLabeledPropIssue -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """Issue +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + action: Literal["labeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + issue: WebhookIssuesLabeledPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesMilestonedPropIssue) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) -model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) -model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) -model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) +model_rebuild(WebhookIssuesLabeled) -__all__ = ( - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", - "WebhookIssuesMilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesLabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0610.py b/githubkit/versions/v2022_11_28/models/group_0610.py index b3ddf3db6..139456b0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0610.py +++ b/githubkit/versions/v2022_11_28/models/group_0610.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,409 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0611 import WebhookIssuesOpenedPropChanges -from .group_0613 import WebhookIssuesOpenedPropIssue +from .group_0043 import IssueType -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookIssuesLabeledPropIssue(GitHubModel): + """Issue - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhookIssuesOpenedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesLabeledPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesLabeledPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesLabeledPropIssue) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesLabeledPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLabeledPropIssuePropUser) -__all__ = ("WebhookIssuesOpened",) +__all__ = ( + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummary", + "WebhookIssuesLabeledPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0611.py b/githubkit/versions/v2022_11_28/models/group_0611.py index df2d85230..63a890f07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0611.py +++ b/githubkit/versions/v2022_11_28/models/group_0611.py @@ -9,236 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0612 import WebhookIssuesOpenedPropChangesPropOldIssue +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0612 import WebhookIssuesLockedPropIssue -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( + action: Literal["locked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + issue: WebhookIssuesLockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) +model_rebuild(WebhookIssuesLocked) -__all__ = ( - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", -) +__all__ = ("WebhookIssuesLocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0612.py b/githubkit/versions/v2022_11_28/models/group_0612.py index 470bd2910..54cfe7c45 100644 --- a/githubkit/versions/v2022_11_28/models/group_0612.py +++ b/githubkit/versions/v2022_11_28/models/group_0612.py @@ -18,99 +18,87 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0043 import IssueType -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): +class WebhookIssuesLockedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: Missing[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] - ] = Field(default=UNSET) - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: Missing[ - list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] = Field( - default=UNSET, title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" - ) - closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() draft: Missing[bool] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + labels: Missing[list[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( Field(default=UNSET) ) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] - ] = Field( - default=UNSET, + labels_url: str = Field() + locked: Literal[True] = Field() + milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET ) - reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( - default=UNSET, title="Reactions" + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesLockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") ) - repository_url: Missing[str] = Field(default=UNSET) - sub_issues_summary: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET, description="Title of the issue") - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the issue") - user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( - Field(default=UNSET, title="User") - ) type: Missing[Union[IssueType, None]] = Field( default=UNSET, title="Issue Type", description="The type of issue." ) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -137,7 +125,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -164,7 +152,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): +class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -178,7 +166,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): +class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -187,9 +175,9 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -204,7 +192,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -231,7 +219,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -251,11 +239,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -263,9 +250,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -292,11 +277,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -342,8 +324,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLockedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -352,7 +334,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): +class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -367,7 +349,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesLockedPropIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -375,7 +357,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel percent_completed: int = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): +class WebhookIssuesLockedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -402,36 +384,32 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesLockedPropIssue) +model_rebuild(WebhookIssuesLockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesLockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesLockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLockedPropIssuePropReactions) +model_rebuild(WebhookIssuesLockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesLockedPropIssuePropUser) __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropSubIssuesSummary", + "WebhookIssuesLockedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0613.py b/githubkit/versions/v2022_11_28/models/group_0613.py index ee3581dd0..c4ba25f39 100644 --- a/githubkit/versions/v2022_11_28/models/group_0613.py +++ b/githubkit/versions/v2022_11_28/models/group_0613.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,402 +17,49 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0445 import WebhooksMilestone +from .group_0614 import WebhookIssuesMilestonedPropIssue -class WebhookIssuesOpenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( - Field() + action: Literal["milestoned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( - default=UNSET + issue: WebhookIssuesMilestonedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + milestone: WebhooksMilestone = Field( title="Milestone", description="A collection of related issues and pull requests.", ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] - ] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesMilestoned) -__all__ = ( - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", - "WebhookIssuesOpenedPropIssuePropUser", -) +__all__ = ("WebhookIssuesMilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0614.py b/githubkit/versions/v2022_11_28/models/group_0614.py index a8d549a47..3b5451f4c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0614.py +++ b/githubkit/versions/v2022_11_28/models/group_0614.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,44 +18,402 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0441 import WebhooksIssue2 +from .group_0043 import IssueType -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue - action: Literal["pinned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhooksIssue2 = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[ + WebhookIssuesMilestonedPropIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesPinned) +model_rebuild(WebhookIssuesMilestonedPropIssue) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssignee) +model_rebuild(WebhookIssuesMilestonedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestone) +model_rebuild(WebhookIssuesMilestonedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesMilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesMilestonedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesMilestonedPropIssuePropUser) -__all__ = ("WebhookIssuesPinned",) +__all__ = ( + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummary", + "WebhookIssuesMilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0615.py b/githubkit/versions/v2022_11_28/models/group_0615.py index 5ae8cab6f..9cf31491c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0615.py +++ b/githubkit/versions/v2022_11_28/models/group_0615.py @@ -18,17 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0616 import WebhookIssuesReopenedPropIssue +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0616 import WebhookIssuesOpenedPropChanges +from .group_0618 import WebhookIssuesOpenedPropIssue -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - action: Literal["reopened"] = Field() + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +41,7 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field( + issue: WebhookIssuesOpenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -55,6 +57,6 @@ class WebhookIssuesReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesReopened) +model_rebuild(WebhookIssuesOpened) -__all__ = ("WebhookIssuesReopened",) +__all__ = ("WebhookIssuesOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0616.py b/githubkit/versions/v2022_11_28/models/group_0616.py index ca2c4fc1b..0fb742f67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0616.py +++ b/githubkit/versions/v2022_11_28/models/group_0616.py @@ -14,245 +14,183 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0617 import WebhookIssuesOpenedPropChangesPropOldIssue -class WebhookIssuesReopenedPropIssue(GitHubModel): - """Issue +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( - Field() + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + + +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( - default=UNSET + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - - -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - default: bool = Field() + deployments_url: str = Field() description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") + notifications_url: str = Field() open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - - -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" - ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -279,147 +217,28 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" -class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookIssuesReopenedPropIssue) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) -model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesReopenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) __all__ = ( - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", - "WebhookIssuesReopenedPropIssuePropUser", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0617.py b/githubkit/versions/v2022_11_28/models/group_0617.py index fad46e7e9..eee89e1e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0617.py +++ b/githubkit/versions/v2022_11_28/models/group_0617.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,46 +18,420 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0441 import WebhooksIssue2 -from .group_0618 import WebhookIssuesTransferredPropChanges +from .group_0043 import IssueType -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Missing[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] = Field(default=UNSET) + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: Missing[ + list[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" ) - issue: WebhooksIssue2 = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + closed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] + ] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: Missing[str] = Field(default=UNSET) + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: Missing[str] = Field(default=UNSET) + sub_issues_summary: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET, description="Title of the issue") + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the issue") + user: Missing[Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None]] = ( + Field(default=UNSET, title="User") + ) + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -__all__ = ("WebhookIssuesTransferred",) +__all__ = ( + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0618.py b/githubkit/versions/v2022_11_28/models/group_0618.py index 1dd2b57dd..e96e52049 100644 --- a/githubkit/versions/v2022_11_28/models/group_0618.py +++ b/githubkit/versions/v2022_11_28/models/group_0618.py @@ -14,184 +14,245 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0619 import WebhookIssuesTransferredPropChangesPropNewIssue +from .group_0043 import IssueType -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesOpenedPropIssue(GitHubModel): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + Field() ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[list[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesOpenedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") ) - deployments_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() + id: int = Field() labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() + number: int = Field(description="The number of the milestone.") open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App - key: str = Field() - name: str = Field() + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,28 +279,141 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesOpenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) __all__ = ( - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummary", + "WebhookIssuesOpenedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0619.py b/githubkit/versions/v2022_11_28/models/group_0619.py index 683aa8b2f..2ebf341ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0619.py +++ b/githubkit/versions/v2022_11_28/models/group_0619.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,421 +17,44 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0446 import WebhooksIssue2 -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): - """Issue +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: list[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] - ] = Field( + action: Literal["pinned"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - sub_issues_summary: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary - ] = Field(default=UNSET, title="Sub-issues Summary") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - type: Missing[Union[IssueType, None]] = Field( - default=UNSET, title="Issue Type", description="The type of issue." - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[list[str]] = Field( - default=UNSET, description="The list of events for the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): - """Sub-issues Summary""" - - total: int = Field() - completed: int = Field() - percent_completed: int = Field() - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesPinned) -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", -) +__all__ = ("WebhookIssuesPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0620.py b/githubkit/versions/v2022_11_28/models/group_0620.py index 2a9692359..4ec470e85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0620.py +++ b/githubkit/versions/v2022_11_28/models/group_0620.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0040 import IssueType -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0439 import WebhooksIssue +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0621 import WebhookIssuesReopenedPropIssue -class WebhookIssuesTyped(GitHubModel): - """issues typed event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["typed"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,13 +39,10 @@ class WebhookIssuesTyped(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesReopenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +55,6 @@ class WebhookIssuesTyped(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesTyped) +model_rebuild(WebhookIssuesReopened) -__all__ = ("WebhookIssuesTyped",) +__all__ = ("WebhookIssuesReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0621.py b/githubkit/versions/v2022_11_28/models/group_0621.py index 5df11c068..b54544a5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0621.py +++ b/githubkit/versions/v2022_11_28/models/group_0621.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,48 +18,408 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0439 import WebhooksIssue -from .group_0442 import WebhooksUserMannequin +from .group_0043 import IssueType -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + Field() ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesReopenedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnassigned) +model_rebuild(WebhookIssuesReopenedPropIssue) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesReopenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesReopenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesReopenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesReopenedPropIssuePropReactions) +model_rebuild(WebhookIssuesReopenedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesReopenedPropIssuePropUser) -__all__ = ("WebhookIssuesUnassigned",) +__all__ = ( + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummary", + "WebhookIssuesReopenedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0622.py b/githubkit/versions/v2022_11_28/models/group_0622.py index f1415890c..b57a8992b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0622.py +++ b/githubkit/versions/v2022_11_28/models/group_0622.py @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel -from .group_0439 import WebhooksIssue +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0446 import WebhooksIssue2 +from .group_0623 import WebhookIssuesTransferredPropChanges -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["unlabeled"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +41,10 @@ class WebhookIssuesUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhooksIssue2 = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -57,6 +57,6 @@ class WebhookIssuesUnlabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlabeled) +model_rebuild(WebhookIssuesTransferred) -__all__ = ("WebhookIssuesUnlabeled",) +__all__ = ("WebhookIssuesTransferred",) diff --git a/githubkit/versions/v2022_11_28/models/group_0623.py b/githubkit/versions/v2022_11_28/models/group_0623.py index 1505d518b..579bb6988 100644 --- a/githubkit/versions/v2022_11_28/models/group_0623.py +++ b/githubkit/versions/v2022_11_28/models/group_0623.py @@ -9,52 +9,237 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0624 import WebhookIssuesUnlockedPropIssue +from .group_0624 import WebhookIssuesTransferredPropChangesPropNewIssue -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" - action: Literal["unlocked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) - installation: Missing[SimpleInstallation] = Field( + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Whether to delete head branches when pull requests are merged", ) - issue: WebhookIssuesUnlockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnlocked) +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) -__all__ = ("WebhookIssuesUnlocked",) +__all__ = ( + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0624.py b/githubkit/versions/v2022_11_28/models/group_0624.py index 902ab35ab..7de98684a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0624.py +++ b/githubkit/versions/v2022_11_28/models/group_0624.py @@ -18,10 +18,10 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0040 import IssueType +from .group_0043 import IssueType -class WebhookIssuesUnlockedPropIssue(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -30,12 +30,12 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) + assignee: Missing[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: list[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -59,31 +59,38 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): html_url: str = Field() id: int = Field() labels: Missing[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] ] = Field(default=UNSET) labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( - default=UNSET + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" ) - reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( - Field(default=UNSET, title="Sub-issues Summary") - ) + sub_issues_summary: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary + ] = Field(default=UNSET, title="Sub-issues Summary") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" ) @@ -95,10 +102,12 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): ) updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) -class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -125,7 +134,7 @@ class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -152,7 +161,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -166,7 +175,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -175,9 +184,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -192,7 +201,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -219,7 +230,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( + GitHubModel +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -239,10 +252,11 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -250,7 +264,9 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -277,10 +293,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -326,8 +343,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -336,7 +353,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -351,7 +368,7 @@ class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary(GitHubModel): """Sub-issues Summary""" total: int = Field() @@ -359,7 +376,7 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): percent_completed: int = Field() -class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -386,32 +403,36 @@ class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesUnlockedPropIssue) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) -model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) -model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) -model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) -model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) __all__ = ( - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", - "WebhookIssuesUnlockedPropIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummary", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0625.py b/githubkit/versions/v2022_11_28/models/group_0625.py index f0ffc59f9..c7f6e4a23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0625.py +++ b/githubkit/versions/v2022_11_28/models/group_0625.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0441 import WebhooksIssue2 +from .group_0043 import IssueType +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0444 import WebhooksIssue -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesTyped(GitHubModel): + """issues typed event""" - action: Literal["unpinned"] = Field() + action: Literal["typed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,13 @@ class WebhookIssuesUnpinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhooksIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +59,6 @@ class WebhookIssuesUnpinned(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesTyped) -__all__ = ("WebhookIssuesUnpinned",) +__all__ = ("WebhookIssuesTyped",) diff --git a/githubkit/versions/v2022_11_28/models/group_0626.py b/githubkit/versions/v2022_11_28/models/group_0626.py index e03819c9a..eb47453dc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0626.py +++ b/githubkit/versions/v2022_11_28/models/group_0626.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0040 import IssueType -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0439 import WebhooksIssue +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0444 import WebhooksIssue +from .group_0447 import WebhooksUserMannequin -class WebhookIssuesUntyped(GitHubModel): - """issues untyped event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["untyped"] = Field() + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,9 +47,6 @@ class WebhookIssuesUntyped(GitHubModel): title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - type: Union[IssueType, None] = Field( - title="Issue Type", description="The type of issue." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +59,6 @@ class WebhookIssuesUntyped(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookIssuesUntyped) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ("WebhookIssuesUntyped",) +__all__ = ("WebhookIssuesUnassigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0627.py b/githubkit/versions/v2022_11_28/models/group_0627.py index acd10a2ed..6eff4cd99 100644 --- a/githubkit/versions/v2022_11_28/models/group_0627.py +++ b/githubkit/versions/v2022_11_28/models/group_0627.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel +from .group_0444 import WebhooksIssue -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["created"] = Field() + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +40,11 @@ class WebhookLabelCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +54,9 @@ class WebhookLabelCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelCreated) +model_rebuild(WebhookIssuesUnlabeled) -__all__ = ("WebhookLabelCreated",) +__all__ = ("WebhookIssuesUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0628.py b/githubkit/versions/v2022_11_28/models/group_0628.py index 5507e5ec7..5f3ac040b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0628.py +++ b/githubkit/versions/v2022_11_28/models/group_0628.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0629 import WebhookIssuesUnlockedPropIssue -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["deleted"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookLabelDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -52,6 +55,6 @@ class WebhookLabelDeleted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookLabelDeleted) +model_rebuild(WebhookIssuesUnlocked) -__all__ = ("WebhookLabelDeleted",) +__all__ = ("WebhookIssuesUnlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0629.py b/githubkit/versions/v2022_11_28/models/group_0629.py index e3e9e414c..7dabc60ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0629.py +++ b/githubkit/versions/v2022_11_28/models/group_0629.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,95 +18,400 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel +from .group_0043 import IssueType -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookIssuesUnlockedPropIssue(GitHubModel): + """Issue - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + Field() ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - label: WebhooksLabel = Field(title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + sub_issues_summary: Missing[WebhookIssuesUnlockedPropIssuePropSubIssuesSummary] = ( + Field(default=UNSET, title="Sub-issues Summary") + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + type: Missing[Union[IssueType, None]] = Field( + default=UNSET, title="Issue Type", description="The type of issue." + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") -class WebhookLabelEditedPropChanges(GitHubModel): - """WebhookLabelEditedPropChanges +class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): + """User""" - The changes to the label if the action was `edited`. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) - description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( - default=UNSET + +class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookLabelEditedPropChangesPropColor(GitHubModel): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): + """Milestone - from_: str = Field( - alias="from", - description="The previous version of the color if the action was `edited`.", + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookLabelEditedPropChangesPropDescription(GitHubModel): - """WebhookLabelEditedPropChangesPropDescription""" - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[list[str]] = Field( + default=UNSET, description="The list of events for the GitHub app" + ) + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" -class WebhookLabelEditedPropChangesPropName(GitHubModel): - """WebhookLabelEditedPropChangesPropName""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummary(GitHubModel): + """Sub-issues Summary""" + + total: int = Field() + completed: int = Field() + percent_completed: int = Field() + + +class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookLabelEdited) -model_rebuild(WebhookLabelEditedPropChanges) -model_rebuild(WebhookLabelEditedPropChangesPropColor) -model_rebuild(WebhookLabelEditedPropChangesPropDescription) -model_rebuild(WebhookLabelEditedPropChangesPropName) +model_rebuild(WebhookIssuesUnlockedPropIssue) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropSubIssuesSummary) +model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) __all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummary", + "WebhookIssuesUnlockedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0630.py b/githubkit/versions/v2022_11_28/models/group_0630.py index 9d61efbd5..bb7463315 100644 --- a/githubkit/versions/v2022_11_28/models/group_0630.py +++ b/githubkit/versions/v2022_11_28/models/group_0630.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0443 import WebhooksMarketplacePurchase -from .group_0444 import WebhooksPreviousMarketplacePurchase +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0446 import WebhooksIssue2 -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["unpinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +39,22 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchaseCancelled) +model_rebuild(WebhookIssuesUnpinned) -__all__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ("WebhookIssuesUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0631.py b/githubkit/versions/v2022_11_28/models/group_0631.py index beef28b3b..5b67ad7d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0631.py +++ b/githubkit/versions/v2022_11_28/models/group_0631.py @@ -18,18 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0443 import WebhooksMarketplacePurchase +from .group_0043 import IssueType +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0444 import WebhooksIssue -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookIssuesUntyped(GitHubModel): + """issues untyped event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["untyped"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +40,25 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + type: Union[IssueType, None] = Field( + title="Issue Type", description="The type of issue." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookIssuesUntyped) -__all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookIssuesUntyped",) diff --git a/githubkit/versions/v2022_11_28/models/group_0632.py b/githubkit/versions/v2022_11_28/models/group_0632.py index 8169055b7..d85a6e38a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0632.py +++ b/githubkit/versions/v2022_11_28/models/group_0632.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0443 import WebhooksMarketplacePurchase +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,21 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelCreated) -__all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0633.py b/githubkit/versions/v2022_11_28/models/group_0633.py index be1a2fa46..67d658e94 100644 --- a/githubkit/versions/v2022_11_28/models/group_0633.py +++ b/githubkit/versions/v2022_11_28/models/group_0633.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0444 import WebhooksPreviousMarketplacePurchase +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,81 +39,19 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelDeleted) -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0634.py b/githubkit/versions/v2022_11_28/models/group_0634.py index 2b96666f6..bc6202ea9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0634.py +++ b/githubkit/versions/v2022_11_28/models/group_0634.py @@ -18,19 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0443 import WebhooksMarketplacePurchase -from .group_0444 import WebhooksPreviousMarketplacePurchase +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,25 +43,69 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMarketplacePurchasePurchased) +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ( + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0635.py b/githubkit/versions/v2022_11_28/models/group_0635.py index d4d9b25f7..e9f9be8db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0635.py +++ b/githubkit/versions/v2022_11_28/models/group_0635.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,19 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0448 import WebhooksMarketplacePurchase +from .group_0449 import WebhooksPreviousMarketplacePurchase -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,63 +41,25 @@ class WebhookMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" - - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." - ) - - -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] = Field() - - -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str = Field() - - -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookMarketplacePurchaseCancelled) -__all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", -) +__all__ = ("WebhookMarketplacePurchaseCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0636.py b/githubkit/versions/v2022_11_28/models/group_0636.py index d3680efae..ce0ce0b05 100644 --- a/githubkit/versions/v2022_11_28/models/group_0636.py +++ b/githubkit/versions/v2022_11_28/models/group_0636.py @@ -18,20 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0448 import WebhooksMarketplacePurchase -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) + action: Literal["changed"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,57 +40,77 @@ class WebhookMemberEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( - default=UNSET - ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( - default=UNSET + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() ) + unit_count: int = Field() -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - from_: str = Field( - alias="from", - description="The previous permissions of the collaborator if the action was edited.", - ) + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0637.py b/githubkit/versions/v2022_11_28/models/group_0637.py index 482260782..0dfc546c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0637.py +++ b/githubkit/versions/v2022_11_28/models/group_0637.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0448 import WebhooksMarketplacePurchase -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["removed"] = Field() + action: Literal["pending_change"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,19 +40,81 @@ class WebhookMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMemberRemoved) +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) -__all__ = ("WebhookMemberRemoved",) +__all__ = ( + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0638.py b/githubkit/versions/v2022_11_28/models/group_0638.py index cac806ca4..df87c2dc9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0638.py +++ b/githubkit/versions/v2022_11_28/models/group_0638.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser -from .group_0445 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0449 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["added"] = Field() + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +40,81 @@ class WebhookMembershipAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0639.py b/githubkit/versions/v2022_11_28/models/group_0639.py index 8dfaa21bf..22fa87dc5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0639.py +++ b/githubkit/versions/v2022_11_28/models/group_0639.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser -from .group_0445 import WebhooksTeam +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0448 import WebhooksMarketplacePurchase +from .group_0449 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["removed"] = Field() + action: Literal["purchased"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,57 +41,25 @@ class WebhookMembershipRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookMembershipRemovedPropSender(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) +model_rebuild(WebhookMarketplacePurchasePurchased) -__all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", -) +__all__ = ("WebhookMarketplacePurchasePurchased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0640.py b/githubkit/versions/v2022_11_28/models/group_0640.py index 1d0a9f58e..4ceb9cbcb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0640.py +++ b/githubkit/versions/v2022_11_28/models/group_0640.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,40 +18,85 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0446 import MergeGroup +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["checks_requested"] = Field() + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMemberAddedPropChanges(GitHubModel): + """WebhookMemberAddedPropChanges""" + + permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( + default=UNSET, + description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", + ) + role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( + default=UNSET, description="The role assigned to the collaborator." ) -model_rebuild(WebhookMergeGroupChecksRequested) +class WebhookMemberAddedPropChangesPropPermission(GitHubModel): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] = Field() + + +class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str = Field() + + +model_rebuild(WebhookMemberAdded) +model_rebuild(WebhookMemberAddedPropChanges) +model_rebuild(WebhookMemberAddedPropChangesPropPermission) +model_rebuild(WebhookMemberAddedPropChangesPropRoleName) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ( + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0641.py b/githubkit/versions/v2022_11_28/models/group_0641.py index d62dbeb9c..8f11ca6c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0641.py +++ b/githubkit/versions/v2022_11_28/models/group_0641.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,44 +18,81 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0446 import MergeGroup +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - merge_group: MergeGroup = Field( - title="Merge Group", - description="A group of pull requests that the merge queue has grouped together to be merged.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) + + +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) -__all__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0642.py b/githubkit/versions/v2022_11_28/models/group_0642.py index 7b43170a1..e34882214 100644 --- a/githubkit/versions/v2022_11_28/models/group_0642.py +++ b/githubkit/versions/v2022_11_28/models/group_0642.py @@ -18,73 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["deleted"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: list[str] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +model_rebuild(WebhookMemberRemoved) -__all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", -) +__all__ = ("WebhookMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0643.py b/githubkit/versions/v2022_11_28/models/group_0643.py index c840991c6..304c2d6f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0643.py +++ b/githubkit/versions/v2022_11_28/models/group_0643.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0440 import WebhooksMilestone +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser +from .group_0450 import WebhooksTeam -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["closed"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,57 @@ class WebhookMilestoneClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + scope: Literal["team"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipAddedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0644.py b/githubkit/versions/v2022_11_28/models/group_0644.py index a0a418916..1bf7b19cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0644.py +++ b/githubkit/versions/v2022_11_28/models/group_0644.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0447 import WebhooksMilestone3 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser +from .group_0450 import WebhooksTeam -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["created"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +39,57 @@ class WebhookMilestoneCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookMembershipRemovedPropSender(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMilestoneCreated) +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ( + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0645.py b/githubkit/versions/v2022_11_28/models/group_0645.py index c4aea38ce..9cbbe18f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0645.py +++ b/githubkit/versions/v2022_11_28/models/group_0645.py @@ -18,43 +18,40 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0440 import WebhooksMilestone +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0451 import MergeGroup -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["checks_requested"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookMilestoneDeleted) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ("WebhookMilestoneDeleted",) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0646.py b/githubkit/versions/v2022_11_28/models/group_0646.py index 680c5f75f..a88a10400 100644 --- a/githubkit/versions/v2022_11_28/models/group_0646.py +++ b/githubkit/versions/v2022_11_28/models/group_0646.py @@ -18,96 +18,44 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0440 import WebhooksMilestone +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0451 import MergeGroup -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookMilestoneEditedPropChanges(GitHubModel): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( - default=UNSET - ) - due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) - title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str = Field( - alias="from", - description="The previous version of the due date if the action was `edited`.", - ) - - -class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookMilestoneEdited) -model_rebuild(WebhookMilestoneEditedPropChanges) -model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) -model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) -model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", -) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0647.py b/githubkit/versions/v2022_11_28/models/group_0647.py index 07ca2b860..4a4e07ea4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0647.py +++ b/githubkit/versions/v2022_11_28/models/group_0647.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,43 +18,73 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0447 import WebhooksMilestone3 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["opened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." + ) + hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookMilestoneOpened) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: list[str] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0648.py b/githubkit/versions/v2022_11_28/models/group_0648.py index d9be33e45..f77cb2a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0648.py +++ b/githubkit/versions/v2022_11_28/models/group_0648.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0445 import WebhooksMilestone -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,18 +39,22 @@ class WebhookOrgBlockBlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookMilestoneClosed) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ("WebhookMilestoneClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0649.py b/githubkit/versions/v2022_11_28/models/group_0649.py index 54b759767..13865cf97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0649.py +++ b/githubkit/versions/v2022_11_28/models/group_0649.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0452 import WebhooksMilestone3 -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,18 +39,22 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ("WebhookMilestoneCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0650.py b/githubkit/versions/v2022_11_28/models/group_0650.py index c819ef4f8..4f14c84a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0650.py +++ b/githubkit/versions/v2022_11_28/models/group_0650.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0448 import WebhooksMembership +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0445 import WebhooksMilestone -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -39,23 +39,22 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookMilestoneDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0651.py b/githubkit/versions/v2022_11_28/models/group_0651.py index 9cbd0dc3e..76c958b4c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0651.py +++ b/githubkit/versions/v2022_11_28/models/group_0651.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0448 import WebhooksMembership +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0445 import WebhooksMilestone -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["member_added"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,22 +42,72 @@ class WebhookOrganizationMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberAdded) +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + default=UNSET + ) + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) -__all__ = ("WebhookOrganizationMemberAdded",) +__all__ = ( + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0652.py b/githubkit/versions/v2022_11_28/models/group_0652.py index 503e2443e..a329e9a1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0652.py +++ b/githubkit/versions/v2022_11_28/models/group_0652.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0452 import WebhooksMilestone3 -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["member_invited"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,77 +39,22 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - - -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( - Field(title="User") - ) - login: Union[str, None] = Field() - node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) +model_rebuild(WebhookMilestoneOpened) -__all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", -) +__all__ = ("WebhookMilestoneOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0653.py b/githubkit/versions/v2022_11_28/models/group_0653.py index d2cc584ad..51c9640a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0653.py +++ b/githubkit/versions/v2022_11_28/models/group_0653.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0448 import WebhooksMembership +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" - action: Literal["member_removed"] = Field() + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,6 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -55,6 +52,6 @@ class WebhookOrganizationMemberRemoved(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookOrganizationMemberRemoved) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ("WebhookOrgBlockBlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0654.py b/githubkit/versions/v2022_11_28/models/group_0654.py index f54b46285..f37b61cd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0654.py +++ b/githubkit/versions/v2022_11_28/models/group_0654.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,18 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0448 import WebhooksMembership +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,6 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -57,26 +52,6 @@ class WebhookOrganizationRenamed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" - - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - - -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", -) +__all__ = ("WebhookOrgBlockUnblocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0655.py b/githubkit/versions/v2022_11_28/models/group_0655.py index 2c926e7e7..822e2409c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0655.py +++ b/githubkit/versions/v2022_11_28/models/group_0655.py @@ -9,52 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookRubygemsMetadata(GitHubModel): - """Ruby Gems metadata""" - - name: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) - platform: Missing[str] = Field(default=UNSET) - metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) - repo: Missing[str] = Field(default=UNSET) - dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( - default=UNSET - ) - commit_oid: Missing[str] = Field(default=UNSET) - - -class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): - """WebhookRubygemsMetadataPropVersionInfo""" - - version: Missing[str] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0453 import WebhooksMembership -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhooksMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropVersionInfo", -) +__all__ = ("WebhookOrganizationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0656.py b/githubkit/versions/v2022_11_28/models/group_0656.py index db10863cd..168fdb0c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0656.py +++ b/githubkit/versions/v2022_11_28/models/group_0656.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0657 import WebhookPackagePublishedPropPackage +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0453 import WebhooksMembership -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" - action: Literal["published"] = Field() + action: Literal["member_added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,14 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -55,6 +55,6 @@ class WebhookPackagePublished(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackagePublished) +model_rebuild(WebhookOrganizationMemberAdded) -__all__ = ("WebhookPackagePublished",) +__all__ = ("WebhookOrganizationMemberAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0657.py b/githubkit/versions/v2022_11_28/models/group_0657.py index 5f2597f2f..3289c3f11 100644 --- a/githubkit/versions/v2022_11_28/models/group_0657.py +++ b/githubkit/versions/v2022_11_28/models/group_0657.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,34 +18,67 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0658 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" - Information about the package. + action: Literal["member_invited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None - ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = Field() + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -71,22 +105,12 @@ class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) __all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0658.py b/githubkit/versions/v2022_11_28/models/group_0658.py index 7ad929161..ec8b441d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0658.py +++ b/githubkit/versions/v2022_11_28/models/group_0658.py @@ -9,564 +9,52 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0655 import WebhookRubygemsMetadata - - -class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] - ] = Field(default=UNSET, title="User") - body: Missing[ - Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, - None, - ] - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] - ] = Field(default=UNSET) - nuget_metadata: Missing[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems - ], - None, - ] - ] = Field(default=UNSET) - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0453 import WebhooksMembership + + +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" + + action: Literal["member_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookOrganizationMemberRemoved) + +__all__ = ("WebhookOrganizationMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0659.py b/githubkit/versions/v2022_11_28/models/group_0659.py index 86ad464a0..a966a9f06 100644 --- a/githubkit/versions/v2022_11_28/models/group_0659.py +++ b/githubkit/versions/v2022_11_28/models/group_0659.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0660 import WebhookPackageUpdatedPropPackage +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0453 import WebhooksMembership -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" - action: Literal["updated"] = Field() + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,21 +40,43 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + membership: Missing[WebhooksMembership] = Field( default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackageUpdated) +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) -__all__ = ("WebhookPackageUpdated",) +__all__ = ( + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0660.py b/githubkit/versions/v2022_11_28/models/group_0660.py index a202b2787..2c926e7e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0660.py +++ b/githubkit/versions/v2022_11_28/models/group_0660.py @@ -9,80 +9,52 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0661 import WebhookPackageUpdatedPropPackagePropPackageVersion - - -class WebhookPackageUpdatedPropPackage(GitHubModel): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") - package_type: str = Field() - package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() - registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" + name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[list[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET + ) + commit_oid: Missing[str] = Field(default=UNSET) + + +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) + +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropVersionInfo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0661.py b/githubkit/versions/v2022_11_28/models/group_0661.py index 52262dea3..103c542b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0661.py +++ b/githubkit/versions/v2022_11_28/models/group_0661.py @@ -9,177 +9,52 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0655 import WebhookRubygemsMetadata +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0662 import WebhookPackagePublishedPropPackage -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() - size: int = Field() - state: str = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + package: WebhookPackagePublishedPropPackage = Field( + description="Information about the package." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0662.py b/githubkit/versions/v2022_11_28/models/group_0662.py index c81416771..e24b6592b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0662.py +++ b/githubkit/versions/v2022_11_28/models/group_0662.py @@ -17,66 +17,34 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0663 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - id: int = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPageBuildPropBuild(GitHubModel): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- - github-pages-builds) itself. + Information about the package. """ - commit: Union[str, None] = Field() - created_at: str = Field() - duration: int = Field() - error: WebhookPageBuildPropBuildPropError = Field() - pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") - status: str = Field() - updated_at: str = Field() - url: str = Field() - - -class WebhookPageBuildPropBuildPropError(GitHubModel): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] = Field() + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" + ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() -class WebhookPageBuildPropBuildPropPusher(GitHubModel): +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -103,14 +71,22 @@ class WebhookPageBuildPropBuildPropPusher(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) __all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0663.py b/githubkit/versions/v2022_11_28/models/group_0663.py index 2839e4651..5a99913ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0663.py +++ b/githubkit/versions/v2022_11_28/models/group_0663.py @@ -9,45 +9,564 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0449 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" - - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestApproved) - -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +from .group_0660 import WebhookRubygemsMetadata + + +class WebhookPackagePublishedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersion""" + + author: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, None] + ] = Field(default=UNSET, title="User") + body: Missing[ + Union[str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, + None, + ] + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, None] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems + ] + ] = Field(default=UNSET) + contributors: Missing[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems + ] + ] = Field(default=UNSET) + engines: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: Missing[Union[int, str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersion", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0664.py b/githubkit/versions/v2022_11_28/models/group_0664.py index 3d0a012ec..3a563caa1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0664.py +++ b/githubkit/versions/v2022_11_28/models/group_0664.py @@ -18,36 +18,42 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0449 import PersonalAccessTokenRequest +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0665 import WebhookPackageUpdatedPropPackage -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + package: WebhookPackageUpdatedPropPackage = Field( + description="Information about the package." ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPackageUpdated) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0665.py b/githubkit/versions/v2022_11_28/models/group_0665.py index 55a76ae75..3f19af78c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0665.py +++ b/githubkit/versions/v2022_11_28/models/group_0665.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,38 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0449 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" - - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestCreated) - -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +from .group_0666 import WebhookPackageUpdatedPropPackagePropPackageVersion + + +class WebhookPackageUpdatedPropPackage(GitHubModel): + """WebhookPackageUpdatedPropPackage + + Information about the package. + """ + + created_at: str = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackageUpdatedPropPackagePropOwner, None] = Field(title="User") + package_type: str = Field() + package_version: WebhookPackageUpdatedPropPackagePropPackageVersion = Field() + registry: Union[WebhookPackageUpdatedPropPackagePropRegistry, None] = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackageUpdatedPropPackage) +model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) +model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) + +__all__ = ( + "WebhookPackageUpdatedPropPackage", + "WebhookPackageUpdatedPropPackagePropOwner", + "WebhookPackageUpdatedPropPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0666.py b/githubkit/versions/v2022_11_28/models/group_0666.py index cfb56b55d..4a9309967 100644 --- a/githubkit/versions/v2022_11_28/models/group_0666.py +++ b/githubkit/versions/v2022_11_28/models/group_0666.py @@ -9,45 +9,177 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0449 import PersonalAccessTokenRequest +from .group_0660 import WebhookRubygemsMetadata -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0667.py b/githubkit/versions/v2022_11_28/models/group_0667.py index 924138e97..ead44d70c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0667.py +++ b/githubkit/versions/v2022_11_28/models/group_0667.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,36 +18,99 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0668 import WebhookPingPropHook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPing(GitHubModel): - """WebhookPing""" +class WebhookPageBuild(GitHubModel): + """page_build event""" - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." + id: int = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPageBuildPropBuild(GitHubModel): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. + """ + + commit: Union[str, None] = Field() + created_at: str = Field() + duration: int = Field() + error: WebhookPageBuildPropBuildPropError = Field() + pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") + status: str = Field() + updated_at: str = Field() + url: str = Field() + + +class WebhookPageBuildPropBuildPropError(GitHubModel): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] = Field() + + +class WebhookPageBuildPropBuildPropPusher(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPing) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0668.py b/githubkit/versions/v2022_11_28/models/group_0668.py index fb80f3e4e..9e65fb331 100644 --- a/githubkit/versions/v2022_11_28/models/group_0668.py +++ b/githubkit/versions/v2022_11_28/models/group_0668.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,61 +17,37 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0302 import HookResponse +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0454 import PersonalAccessTokenRequest -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - The webhook that is being pinged - """ - - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", ) - app_id: Missing[int] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", - ) - config: WebhookPingPropHookPropConfig = Field() - created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: list[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - id: int = Field(description="Unique identifier of the webhook.") - last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") - name: Literal["web"] = Field( - description="The type of webhook. The only valid value is 'web'." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() - updated_at: datetime = Field() - url: Missing[str] = Field(default=UNSET) - - -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" - - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPersonalAccessTokenRequestApproved) -__all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", -) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0669.py b/githubkit/versions/v2022_11_28/models/group_0669.py index fac71cc70..bede32aa4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0669.py +++ b/githubkit/versions/v2022_11_28/models/group_0669.py @@ -9,22 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0454 import PersonalAccessTokenRequest -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0670.py b/githubkit/versions/v2022_11_28/models/group_0670.py index 46b02971b..528c408b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0670.py +++ b/githubkit/versions/v2022_11_28/models/group_0670.py @@ -18,60 +18,37 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0450 import WebhooksProjectCard +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0454 import PersonalAccessTokenRequest -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNote = Field() - - -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str = Field(alias="from") -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0671.py b/githubkit/versions/v2022_11_28/models/group_0671.py index 490b781fb..238056c1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0671.py +++ b/githubkit/versions/v2022_11_28/models/group_0671.py @@ -18,41 +18,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0450 import WebhooksProjectCard +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0454 import PersonalAccessTokenRequest -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" - action: Literal["created"] = Field() + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectCardCreated) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/v2022_11_28/models/group_0672.py b/githubkit/versions/v2022_11_28/models/group_0672.py index 9217bb411..a739c9d83 100644 --- a/githubkit/versions/v2022_11_28/models/group_0672.py +++ b/githubkit/versions/v2022_11_28/models/group_0672.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,91 +16,36 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0673 import WebhookPingPropHook -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: Union[int, None] = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( - title="User" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/v2022_11_28/models/group_0673.py b/githubkit/versions/v2022_11_28/models/group_0673.py index a68a0121d..a9529594c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0673.py +++ b/githubkit/versions/v2022_11_28/models/group_0673.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,61 +18,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0450 import WebhooksProjectCard +from .group_0306 import HookResponse -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPingPropHook(GitHubModel): + """Webhook - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + The webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." ) - installation: Missing[SimpleInstallation] = Field( + app_id: Missing[int] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + config: WebhookPingPropHookPropConfig = Field() + created_at: datetime = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + events: list[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="Unique identifier of the webhook.") + last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") + name: Literal["web"] = Field( + description="The type of webhook. The only valid value is 'web'." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" + ping_url: Missing[str] = Field(default=UNSET) + test_url: Missing[str] = Field(default=UNSET) + type: str = Field() + updated_at: datetime = Field() + url: Missing[str] = Field(default=UNSET) - note: WebhookProjectCardEditedPropChangesPropNote = Field() +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] = Field(alias="from") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0674.py b/githubkit/versions/v2022_11_28/models/group_0674.py index 8dfc35f53..fac71cc70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0674.py +++ b/githubkit/versions/v2022_11_28/models/group_0674.py @@ -9,120 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" - - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhookProjectCardMovedPropProjectCard = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() - - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") - - -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" + The webhooks ping payload encoded with URL encoding. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0675.py b/githubkit/versions/v2022_11_28/models/group_0675.py index 698d7933a..0c1d725d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0675.py +++ b/githubkit/versions/v2022_11_28/models/group_0675.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,60 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0455 import WebhooksProjectCard -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( - Field(title="User") +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" + + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNote = Field() + + +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str = Field(alias="from") -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0676.py b/githubkit/versions/v2022_11_28/models/group_0676.py index 0afeec58f..8730cd0f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0676.py +++ b/githubkit/versions/v2022_11_28/models/group_0676.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,53 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] = Field() - archived: Missing[bool] = Field(default=UNSET) - column_id: Missing[int] = Field(default=UNSET) - column_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - creator: Missing[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] - ] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - note: Missing[Union[str, None]] = Field(default=UNSET) - project_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", -) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0455 import WebhooksProjectCard + + +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookProjectCardCreated) + +__all__ = ("WebhookProjectCardCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0677.py b/githubkit/versions/v2022_11_28/models/group_0677.py index 74b069448..6467c7be4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0677.py +++ b/githubkit/versions/v2022_11_28/models/group_0677.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0451 import WebhooksProject +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" - action: Literal["closed"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +44,66 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectClosed) +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectClosed",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0678.py b/githubkit/versions/v2022_11_28/models/group_0678.py index 4f827f21c..e402bd48d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0678.py +++ b/githubkit/versions/v2022_11_28/models/group_0678.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0452 import WebhooksProjectColumn +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0455 import WebhooksProjectCard -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectCardEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,17 +45,33 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNote = Field() + + +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookProjectColumnCreated) +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ( + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0679.py b/githubkit/versions/v2022_11_28/models/group_0679.py index a6b2f8b9b..9fdfc6e76 100644 --- a/githubkit/versions/v2022_11_28/models/group_0679.py +++ b/githubkit/versions/v2022_11_28/models/group_0679.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0452 import WebhooksProjectColumn +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["deleted"] = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,13 +45,84 @@ class WebhookProjectColumnDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + project_card: WebhookProjectCardMovedPropProjectCard = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookProjectCardMovedPropChanges(GitHubModel): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() + + +class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int = Field(alias="from") + + +class WebhookProjectCardMovedPropProjectCard(GitHubModel): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] = Field() + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[Union[str, None], None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnDeleted) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) -__all__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0680.py b/githubkit/versions/v2022_11_28/models/group_0680.py index 6136610cb..698d7933a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0680.py +++ b/githubkit/versions/v2022_11_28/models/group_0680.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,63 +18,60 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0452 import WebhooksProjectColumn +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" - - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" - - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str = Field(alias="from") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0681.py b/githubkit/versions/v2022_11_28/models/group_0681.py index f5e1b015f..0afeec58f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0681.py +++ b/githubkit/versions/v2022_11_28/models/group_0681.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,53 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0452 import WebhooksProjectColumn - - -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" - - action: Literal["moved"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookProjectColumnMoved) - -__all__ = ("WebhookProjectColumnMoved",) + +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] + ] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0682.py b/githubkit/versions/v2022_11_28/models/group_0682.py index 224beb318..52dddb040 100644 --- a/githubkit/versions/v2022_11_28/models/group_0682.py +++ b/githubkit/versions/v2022_11_28/models/group_0682.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0451 import WebhooksProject +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0456 import WebhooksProject -class WebhookProjectCreated(GitHubModel): - """project created event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["created"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,6 +53,6 @@ class WebhookProjectCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectCreated) +model_rebuild(WebhookProjectClosed) -__all__ = ("WebhookProjectCreated",) +__all__ = ("WebhookProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0683.py b/githubkit/versions/v2022_11_28/models/group_0683.py index 681f07141..b4b62ac16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0683.py +++ b/githubkit/versions/v2022_11_28/models/group_0683.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0451 import WebhooksProject +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0457 import WebhooksProjectColumn -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,13 +44,17 @@ class WebhookProjectDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookProjectDeleted) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ("WebhookProjectDeleted",) +__all__ = ("WebhookProjectColumnCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0684.py b/githubkit/versions/v2022_11_28/models/group_0684.py index 74ea32699..880b9f6dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0684.py +++ b/githubkit/versions/v2022_11_28/models/group_0684.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,21 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0451 import WebhooksProject +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0457 import WebhooksProjectColumn -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,53 +44,13 @@ class WebhookProjectEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) - - -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectColumnDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0685.py b/githubkit/versions/v2022_11_28/models/group_0685.py index 6edde8ecb..871fc8b97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0685.py +++ b/githubkit/versions/v2022_11_28/models/group_0685.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0451 import WebhooksProject +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0457 import WebhooksProjectColumn -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +45,35 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_column: WebhooksProjectColumn = Field(title="Project Column") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookProjectColumnEditedPropChanges(GitHubModel): + """WebhookProjectColumnEditedPropChanges""" + + name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str = Field(alias="from") -model_rebuild(WebhookProjectReopened) +model_rebuild(WebhookProjectColumnEdited) +model_rebuild(WebhookProjectColumnEditedPropChanges) +model_rebuild(WebhookProjectColumnEditedPropChangesPropName) -__all__ = ("WebhookProjectReopened",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0686.py b/githubkit/versions/v2022_11_28/models/group_0686.py index 1565abeae..d55103a23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0686.py +++ b/githubkit/versions/v2022_11_28/models/group_0686.py @@ -18,30 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0453 import ProjectsV2 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0457 import WebhooksProjectColumn -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - action: Literal["closed"] = Field() + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectClosed) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ("WebhookProjectColumnMoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0687.py b/githubkit/versions/v2022_11_28/models/group_0687.py index a84ffb0c7..e5f2e0c4f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0687.py +++ b/githubkit/versions/v2022_11_28/models/group_0687.py @@ -18,33 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0453 import ProjectsV2 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0456 import WebhooksProject -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated - - A project was created - """ +class WebhookProjectCreated(GitHubModel): + """project created event""" action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectCreated) +model_rebuild(WebhookProjectCreated) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ("WebhookProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0688.py b/githubkit/versions/v2022_11_28/models/group_0688.py index b582b0f24..3ea584d67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0688.py +++ b/githubkit/versions/v2022_11_28/models/group_0688.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,30 +18,39 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0453 import ProjectsV2 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0456 import WebhooksProject -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectDeleted) +model_rebuild(WebhookProjectDeleted) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ("WebhookProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0689.py b/githubkit/versions/v2022_11_28/models/group_0689.py index 012cad22c..02097b1b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0689.py +++ b/githubkit/versions/v2022_11_28/models/group_0689.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,88 +18,83 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0453 import ProjectsV2 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0456 import WebhooksProject -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( - Field(default=UNSET) - ) - public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( - default=UNSET + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - short_description: Missing[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescription - ] = Field(default=UNSET) - title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) +class WebhookProjectEditedPropChanges(GitHubModel): + """WebhookProjectEditedPropChanges + The changes to the project if the action was `edited`. + """ -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) +class WebhookProjectEditedPropChangesPropBody(GitHubModel): + """WebhookProjectEditedPropChangesPropBody""" -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" +class WebhookProjectEditedPropChangesPropName(GitHubModel): + """WebhookProjectEditedPropChangesPropName""" - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The changes to the project if the action was `edited`.", + ) -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) +model_rebuild(WebhookProjectEdited) +model_rebuild(WebhookProjectEditedPropChanges) +model_rebuild(WebhookProjectEditedPropChangesPropBody) +model_rebuild(WebhookProjectEditedPropChangesPropName) __all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0690.py b/githubkit/versions/v2022_11_28/models/group_0690.py index 48fab5b04..b845bfe88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0690.py +++ b/githubkit/versions/v2022_11_28/models/group_0690.py @@ -18,32 +18,41 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0454 import WebhooksProjectChanges -from .group_0455 import ProjectsV2Item +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0456 import WebhooksProject -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemArchived) +model_rebuild(WebhookProjectReopened) -__all__ = ("WebhookProjectsV2ItemArchived",) +__all__ = ("WebhookProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0691.py b/githubkit/versions/v2022_11_28/models/group_0691.py index 1a435b10e..eb5d9bfc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0691.py +++ b/githubkit/versions/v2022_11_28/models/group_0691.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0455 import ProjectsV2Item +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0458 import ProjectsV2 -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["closed"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,33 +36,12 @@ class WebhookProjectsV2ItemConverted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" +model_rebuild(WebhookProjectsV2ProjectClosed) - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) - -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0692.py b/githubkit/versions/v2022_11_28/models/group_0692.py index 7e97b9eee..d35388286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0692.py +++ b/githubkit/versions/v2022_11_28/models/group_0692.py @@ -18,13 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0455 import ProjectsV2Item +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0458 import ProjectsV2 -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated + + A project was created + """ action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,12 +39,12 @@ class WebhookProjectsV2ItemCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0693.py b/githubkit/versions/v2022_11_28/models/group_0693.py index 7934e2cbd..f39d9dfef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0693.py +++ b/githubkit/versions/v2022_11_28/models/group_0693.py @@ -18,13 +18,13 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0455 import ProjectsV2Item +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0458 import ProjectsV2 -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,12 +36,12 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0694.py b/githubkit/versions/v2022_11_28/models/group_0694.py index 561198f3c..240f30d62 100644 --- a/githubkit/versions/v2022_11_28/models/group_0694.py +++ b/githubkit/versions/v2022_11_28/models/group_0694.py @@ -18,24 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0455 import ProjectsV2Item +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0458 import ProjectsV2 -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field( - default=UNSET, - description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", - ) + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,84 +37,69 @@ class WebhookProjectsV2ItemEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = Field(default=UNSET) - field_name: Missing[str] = Field(default=UNSET) - project_number: Missing[int] = Field(default=UNSET) - from_: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] - ] = Field(default=UNSET, alias="from") - to: Missing[ - Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( + Field(default=UNSET) + ) + public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( + default=UNSET + ) + short_description: Missing[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescription ] = Field(default=UNSET) + title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( + default=UNSET + ) -class ProjectsV2SingleSelectOption(GitHubModel): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str = Field() - name: str = Field() - color: Missing[Union[str, None]] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -class ProjectsV2IterationSetting(GitHubModel): - """Projects v2 Iteration Setting - An iteration setting for an iteration field - """ +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - id: str = Field() - title: str = Field() - duration: Missing[Union[float, None]] = Field(default=UNSET) - start_date: Missing[Union[str, None]] = Field(default=UNSET) + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) -class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" +class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + from_: Missing[str] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectsV2ItemEdited) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) -model_rebuild(ProjectsV2SingleSelectOption) -model_rebuild(ProjectsV2IterationSetting) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) +model_rebuild(WebhookProjectsV2ProjectEdited) +model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) __all__ = ( - "ProjectsV2IterationSetting", - "ProjectsV2SingleSelectOption", - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0695.py b/githubkit/versions/v2022_11_28/models/group_0695.py index 6e9f65ef0..2880cfc2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0695.py +++ b/githubkit/versions/v2022_11_28/models/group_0695.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0455 import ProjectsV2Item +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0459 import WebhooksProjectChanges +from .group_0460 import ProjectsV2Item -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["archived"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -43,29 +44,6 @@ class WebhookProjectsV2ItemReordered(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +model_rebuild(WebhookProjectsV2ItemArchived) - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId - ] = Field(default=UNSET) - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) - -__all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", -) +__all__ = ("WebhookProjectsV2ItemArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0696.py b/githubkit/versions/v2022_11_28/models/group_0696.py index a2dd822ab..bbc6ff6d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0696.py +++ b/githubkit/versions/v2022_11_28/models/group_0696.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0454 import WebhooksProjectChanges -from .group_0455 import ProjectsV2Item +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2Item -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["restored"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,6 +43,27 @@ class WebhookProjectsV2ItemRestored(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ItemRestored) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2ItemRestored",) + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) + +__all__ = ( + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0697.py b/githubkit/versions/v2022_11_28/models/group_0697.py index 65583b8dc..9a20e3821 100644 --- a/githubkit/versions/v2022_11_28/models/group_0697.py +++ b/githubkit/versions/v2022_11_28/models/group_0697.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0453 import ProjectsV2 +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2Item -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,12 +36,12 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2ProjectReopened) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0698.py b/githubkit/versions/v2022_11_28/models/group_0698.py index 99fee7603..37dd62eda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0698.py +++ b/githubkit/versions/v2022_11_28/models/group_0698.py @@ -18,15 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0456 import ProjectsV2StatusUpdate +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateCreated(GitHubModel): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,13 +36,12 @@ class WebhookProjectsV2StatusUpdateCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateCreated) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookProjectsV2StatusUpdateCreated",) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0699.py b/githubkit/versions/v2022_11_28/models/group_0699.py index c45ab6bcd..6e38888a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0699.py +++ b/githubkit/versions/v2022_11_28/models/group_0699.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,15 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0456 import ProjectsV2StatusUpdate +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( + default=UNSET, + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,13 +45,84 @@ class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookProjectsV2StatusUpdateDeleted) +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: Missing[str] = Field(default=UNSET) + field_type: Missing[str] = Field(default=UNSET) + field_name: Missing[str] = Field(default=UNSET) + project_number: Missing[int] = Field(default=UNSET) + from_: Missing[ + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + ] = Field(default=UNSET, alias="from") + to: Missing[ + Union[str, int, ProjectsV2SingleSelectOption, ProjectsV2IterationSetting, None] + ] = Field(default=UNSET) + + +class ProjectsV2SingleSelectOption(GitHubModel): + """Projects v2 Single Select Option + + An option for a single select field + """ + + id: str = Field() + name: str = Field() + color: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class ProjectsV2IterationSetting(GitHubModel): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str = Field() + title: str = Field() + duration: Missing[Union[float, None]] = Field(default=UNSET) + start_date: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(ProjectsV2SingleSelectOption) +model_rebuild(ProjectsV2IterationSetting) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) -__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) +__all__ = ( + "ProjectsV2IterationSetting", + "ProjectsV2SingleSelectOption", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0700.py b/githubkit/versions/v2022_11_28/models/group_0700.py index 026a4c9c5..393e650d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0700.py +++ b/githubkit/versions/v2022_11_28/models/group_0700.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import date from typing import Literal, Union from pydantic import Field @@ -19,18 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0456 import ProjectsV2StatusUpdate +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0460 import ProjectsV2Item -class WebhookProjectsV2StatusUpdateEdited(GitHubModel): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( - default=UNSET - ) + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,74 +37,35 @@ class WebhookProjectsV2StatusUpdateEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_status_update: ProjectsV2StatusUpdate = Field( - title="Projects v2 Status Update", - description="An status update belonging to a project", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" - body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( - default=UNSET - ) - status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( - default=UNSET - ) - start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( - Field(default=UNSET) - ) - target_date: Missing[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId ] = Field(default=UNSET) -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( + GitHubModel +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") to: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - - from_: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET, alias="from") - to: Missing[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - - from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[date, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2StatusUpdateEdited) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) -model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) +model_rebuild(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "WebhookProjectsV2StatusUpdateEdited", - "WebhookProjectsV2StatusUpdateEditedPropChanges", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0701.py b/githubkit/versions/v2022_11_28/models/group_0701.py index e4f9dc6e4..8ce12533c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0701.py +++ b/githubkit/versions/v2022_11_28/models/group_0701.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,37 +18,32 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0459 import WebhooksProjectChanges +from .group_0460 import ProjectsV2Item -class WebhookPublic(GitHubModel): - """public event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPublic) +model_rebuild(WebhookProjectsV2ItemRestored) -__all__ = ("WebhookPublic",) +__all__ = ("WebhookProjectsV2ItemRestored",) diff --git a/githubkit/versions/v2022_11_28/models/group_0702.py b/githubkit/versions/v2022_11_28/models/group_0702.py index 38bd15821..7c9641d7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0702.py +++ b/githubkit/versions/v2022_11_28/models/group_0702.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1159 +18,30 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0430 import WebhooksUser +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0458 import ProjectsV2 -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAssignedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAssignedPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0703.py b/githubkit/versions/v2022_11_28/models/group_0703.py index 9a30a3f6d..3ea59866d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0703.py +++ b/githubkit/versions/v2022_11_28/models/group_0703.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1212 +18,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0461 import ProjectsV2StatusUpdate -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["auto_merge_disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0704.py b/githubkit/versions/v2022_11_28/models/group_0704.py index 44eee054c..670025583 100644 --- a/githubkit/versions/v2022_11_28/models/group_0704.py +++ b/githubkit/versions/v2022_11_28/models/group_0704.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1204 +18,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0461 import ProjectsV2StatusUpdate -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - action: Literal["auto_merge_enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAutoMergeEnabled) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", -) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0705.py b/githubkit/versions/v2022_11_28/models/group_0705.py index aca625cb1..d0629d7de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0705.py +++ b/githubkit/versions/v2022_11_28/models/group_0705.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from pydantic import Field @@ -18,41 +19,95 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0457 import PullRequestWebhook +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0461 import ProjectsV2StatusUpdate -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" - action: Literal["closed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestClosed) +class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( + default=UNSET + ) + status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( + default=UNSET + ) + start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( + Field(default=UNSET) + ) + target_date: Missing[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET, alias="from") + to: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2StatusUpdateEdited) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0706.py b/githubkit/versions/v2022_11_28/models/group_0706.py index 1c076ecf1..6704d1a93 100644 --- a/githubkit/versions/v2022_11_28/models/group_0706.py +++ b/githubkit/versions/v2022_11_28/models/group_0706.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,17 +16,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0457 import PullRequestWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +35,11 @@ class WebhookPullRequestConvertedToDraft(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +47,6 @@ class WebhookPullRequestConvertedToDraft(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestConvertedToDraft) +model_rebuild(WebhookPublic) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0707.py b/githubkit/versions/v2022_11_28/models/group_0707.py index 27f2b1e2f..56b3f77ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0707.py +++ b/githubkit/versions/v2022_11_28/models/group_0707.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,26 +19,27 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0039 import Milestone -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0459 import WebhooksPullRequest5 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0435 import WebhooksUser -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["demilestoned"] = Field() + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,16 +47,1131 @@ class WebhookPullRequestDemilestoned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") + pull_request: WebhookPullRequestAssignedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookPullRequestAssigned) +model_rebuild(WebhookPullRequestAssignedPropPullRequest) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestDemilestoned",) +__all__ = ( + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssignedPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0708.py b/githubkit/versions/v2022_11_28/models/group_0708.py index 236f1423e..4746f11fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0708.py +++ b/githubkit/versions/v2022_11_28/models/group_0708.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["dequeued"] = Field() + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,23 +45,10 @@ class WebhookPullRequestDequeued(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( title="Pull Request" ) - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] = Field() + reason: str = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -69,19 +56,23 @@ class WebhookPullRequestDequeued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -96,13 +87,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -116,11 +107,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -132,13 +125,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -148,13 +141,13 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -166,12 +159,12 @@ class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -198,7 +191,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -224,7 +217,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -237,14 +230,17 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,7 +267,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -285,7 +281,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -312,7 +308,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +318,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +334,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -360,14 +358,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,12 +387,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -425,98 +423,108 @@ class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +551,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -605,14 +613,14 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): default=True, description="Whether downloads are enabled." ) has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) has_pages: bool = Field() has_projects: bool = Field( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -626,7 +634,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -647,10 +656,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +708,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -708,7 +720,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -735,10 +749,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -747,21 +763,21 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -788,7 +804,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -871,7 +887,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -892,10 +909,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -943,7 +961,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -953,7 +973,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -980,10 +1002,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -992,7 +1016,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1001,35 +1025,32 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1047,7 +1068,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1064,7 +1087,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1078,10 +1101,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1098,88 +1123,108 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestDequeued) -model_rebuild(WebhookPullRequestDequeuedPropPullRequest) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestDequeuedPropPullRequestPropUser", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0709.py b/githubkit/versions/v2022_11_28/models/group_0709.py index 111e9a10f..55741ff04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0709.py +++ b/githubkit/versions/v2022_11_28/models/group_0709.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0457 import PullRequestWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestEditedPropChanges = Field( - description="The changes to the comment if the action was `edited`." - ) + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,84 +39,1184 @@ class WebhookPullRequestEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( + title="Pull Request" + ) + reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges - The changes to the comment if the action was `edited`. +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) + sha: str = Field() + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository -class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" + A git repository + """ - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" + Groups of organization members that gives permissions on specified repositories. + """ - from_: str = Field(alias="from") + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ - from_: str = Field(alias="from") + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) +model_rebuild(WebhookPullRequestAutoMergeEnabled) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0710.py b/githubkit/versions/v2022_11_28/models/group_0710.py index 6adee3dcc..3e4c7eb00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0710.py +++ b/githubkit/versions/v2022_11_28/models/group_0710.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0462 import PullRequestWebhook -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["enqueued"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,13 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,1117 +53,6 @@ class WebhookPullRequestEnqueued(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestEnqueued) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestClosed) -__all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0711.py b/githubkit/versions/v2022_11_28/models/group_0711.py index 425dcfe97..5f724890a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0711.py +++ b/githubkit/versions/v2022_11_28/models/group_0711.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0462 import PullRequestWebhook -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["labeled"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,13 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,1116 +53,6 @@ class WebhookPullRequestLabeled(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): - """Pull Request""" +model_rebuild(WebhookPullRequestConvertedToDraft) - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestLabeled) -model_rebuild(WebhookPullRequestLabeledPropPullRequest) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) - -__all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLabeledPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/v2022_11_28/models/group_0712.py b/githubkit/versions/v2022_11_28/models/group_0712.py index 5f261e2bc..cbee8372d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0712.py +++ b/githubkit/versions/v2022_11_28/models/group_0712.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,25 +18,26 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0042 import Milestone +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0464 import WebhooksPullRequest5 -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["locked"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( @@ -45,1118 +45,16 @@ class WebhookPullRequestLocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestLockedPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestLocked) -model_rebuild(WebhookPullRequestLockedPropPullRequest) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) -model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestLockedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestDemilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0713.py b/githubkit/versions/v2022_11_28/models/group_0713.py index 25d8f8563..ff86bf8c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0713.py +++ b/githubkit/versions/v2022_11_28/models/group_0713.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,43 +19,1167 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0039 import Milestone -from .group_0419 import EnterpriseWebhooks -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0459 import WebhooksPullRequest5 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["milestoned"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - milestone: Missing[Milestone] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestMilestoned) +model_rebuild(WebhookPullRequestDequeued) +model_rebuild(WebhookPullRequestDequeuedPropPullRequest) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ( + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestDequeuedPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0714.py b/githubkit/versions/v2022_11_28/models/group_0714.py index 8ff1404b8..5b2a0cef2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0714.py +++ b/githubkit/versions/v2022_11_28/models/group_0714.py @@ -18,17 +18,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0457 import PullRequestWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0462 import PullRequestWebhook -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["opened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,9 +53,73 @@ class WebhookPullRequestOpened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + + +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str = Field(alias="from") + + +class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str = Field(alias="from") -model_rebuild(WebhookPullRequestOpened) +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ( + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0715.py b/githubkit/versions/v2022_11_28/models/group_0715.py index 817f641cc..790576d4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0715.py +++ b/githubkit/versions/v2022_11_28/models/group_0715.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0457 import PullRequestWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["ready_for_review"] = Field() + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,15 @@ class WebhookPullRequestReadyForReview(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + title="Pull Request" + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +55,1117 @@ class WebhookPullRequestReadyForReview(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReadyForReview) +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestEnqueued) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ( + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0716.py b/githubkit/versions/v2022_11_28/models/group_0716.py index d57383ef6..874916b58 100644 --- a/githubkit/versions/v2022_11_28/models/group_0716.py +++ b/githubkit/versions/v2022_11_28/models/group_0716.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0457 import PullRequestWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" - action: Literal["reopened"] = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +40,14 @@ class WebhookPullRequestReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +55,1116 @@ class WebhookPullRequestReopened(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookPullRequestReopened) +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" -__all__ = ("WebhookPullRequestReopened",) + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) + assignees: list[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestLabeled) +model_rebuild(WebhookPullRequestLabeledPropPullRequest) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1) +model_rebuild( + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) + +__all__ = ( + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLabeledPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0717.py b/githubkit/versions/v2022_11_28/models/group_0717.py index 2891ed3ae..15506dfc2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0717.py +++ b/githubkit/versions/v2022_11_28/models/group_0717.py @@ -19,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,12 +39,13 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + pull_request: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,187 +53,19 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -251,63 +80,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLockedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems - ] = Field() + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -329,16 +177,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -366,7 +210,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -379,17 +223,14 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -416,7 +257,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -430,7 +271,36 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -440,8 +310,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -457,9 +326,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -481,14 +348,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -519,7 +384,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -548,116 +413,96 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -684,9 +529,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -769,8 +612,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -791,11 +633,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -843,9 +684,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -855,9 +694,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -884,12 +721,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -898,23 +733,21 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -981,8 +814,8 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -997,8 +830,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -1019,11 +851,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1071,9 +902,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -1083,9 +912,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1112,12 +939,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1126,9 +951,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1155,7 +978,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1172,7 +995,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1185,11 +1008,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1207,9 +1030,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1226,7 +1047,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1240,12 +1061,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1262,126 +1081,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentCreated) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(WebhookPullRequestLocked) +model_rebuild(WebhookPullRequestLockedPropPullRequest) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLockedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0718.py b/githubkit/versions/v2022_11_28/models/group_0718.py index 7e1dbab26..fcc72a3c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0718.py +++ b/githubkit/versions/v2022_11_28/models/group_0718.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,1187 +18,43 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0460 import WebhooksReviewComment +from .group_0042 import Milestone +from .group_0424 import EnterpriseWebhooks +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0464 import WebhooksPullRequest5 -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["deleted"] = Field() - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestMilestoned) -__all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestMilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0719.py b/githubkit/versions/v2022_11_28/models/group_0719.py index e01b552b6..a6fd31df8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0719.py +++ b/githubkit/versions/v2022_11_28/models/group_0719.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,23 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0438 import WebhooksChanges -from .group_0460 import WebhooksReviewComment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0462 import PullRequestWebhook -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,12 +39,13 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -59,1139 +53,6 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - user_view_type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestOpened) -__all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0720.py b/githubkit/versions/v2022_11_28/models/group_0720.py index b71f78030..356a5c94d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0720.py +++ b/githubkit/versions/v2022_11_28/models/group_0720.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0462 import PullRequestWebhook -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["dismissed"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,1223 +39,20 @@ class WebhookPullRequestReviewDismissed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewDismissedPropReview(GitHubModel): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: Literal["dismissed", "approved", "changes_requested"] = Field() - submitted_at: datetime = Field() - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: list[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewDismissed) -model_rebuild(WebhookPullRequestReviewDismissedPropReview) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropReviewPropUser", -) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0721.py b/githubkit/versions/v2022_11_28/models/group_0721.py index b4e9cae9e..ed6370e0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0721.py +++ b/githubkit/versions/v2022_11_28/models/group_0721.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0461 import WebhooksReview +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0462 import PullRequestWebhook -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,1065 +39,20 @@ class WebhookPullRequestReviewEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewEdited) -model_rebuild(WebhookPullRequestReviewEditedPropChanges) -model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReopened) -__all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", -) +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0722.py b/githubkit/versions/v2022_11_28/models/group_0722.py index 3b004c4fb..eaad2adc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0722.py +++ b/githubkit/versions/v2022_11_28/models/group_0722.py @@ -19,16 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["review_request_removed"] = Field() + action: Literal["created"] = Field() + comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,26 +43,123 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -85,22 +186,55 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -117,89 +251,63 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -221,12 +329,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -250,14 +360,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -270,7 +379,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -278,7 +387,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -307,9 +416,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -323,38 +430,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -364,7 +440,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -381,7 +457,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -405,12 +481,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -434,12 +512,14 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -461,41 +541,43 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -503,7 +585,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -511,7 +593,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -519,7 +601,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -527,7 +609,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -535,7 +617,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -543,7 +625,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -551,7 +633,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -559,22 +641,21 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -603,7 +684,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -688,7 +769,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -710,11 +791,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -727,12 +808,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] = Field( default=UNSET, - description="The default value for a squash merge commit message.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title.", + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", ) ) ssh_url: str = Field() @@ -762,7 +843,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -774,7 +855,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -803,11 +884,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -817,51 +898,21 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -930,8 +981,8 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -946,7 +997,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -968,11 +1019,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1020,7 +1071,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1032,7 +1083,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1061,11 +1112,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1075,7 +1126,36 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1092,7 +1172,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1105,11 +1185,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1127,7 +1207,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1136,32 +1216,35 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1179,136 +1262,126 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) +model_rebuild(WebhookPullRequestReviewCommentCreated) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0723.py b/githubkit/versions/v2022_11_28/models/group_0723.py index 25bc92361..56fcc3ffc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0723.py +++ b/githubkit/versions/v2022_11_28/models/group_0723.py @@ -19,16 +19,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0465 import WebhooksReviewComment -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["review_request_removed"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,90 +44,34 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -139,89 +88,63 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -248,7 +171,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -274,12 +197,9 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesIt subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -292,7 +212,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -300,7 +220,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -329,9 +249,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -345,38 +263,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -386,7 +273,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -403,7 +290,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( url: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -432,7 +319,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -461,7 +348,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,41 +370,43 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -525,7 +414,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -533,7 +422,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -541,7 +430,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -549,7 +438,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -557,7 +446,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -565,7 +454,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -573,7 +462,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -581,22 +470,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -625,7 +513,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -710,7 +598,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -732,11 +620,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -784,7 +672,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -796,7 +684,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -825,11 +713,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -839,51 +727,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -968,7 +826,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -990,11 +848,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1042,7 +900,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep ) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1054,7 +912,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1083,11 +941,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1097,7 +955,36 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1106,32 +993,35 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1149,7 +1039,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1158,32 +1048,35 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1201,138 +1094,112 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) +model_rebuild(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0724.py b/githubkit/versions/v2022_11_28/models/group_0724.py index 106e1cff4..450691178 100644 --- a/githubkit/versions/v2022_11_28/models/group_0724.py +++ b/githubkit/versions/v2022_11_28/models/group_0724.py @@ -19,16 +19,23 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0443 import WebhooksChanges +from .group_0465 import WebhooksReviewComment -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["review_requested"] = Field() + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,71 +46,34 @@ class WebhookPullRequestReviewRequestedOneof0(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None ] ] = Field() author_association: Literal[ @@ -119,84 +89,63 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,14 +167,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubM site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -249,14 +196,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -269,7 +214,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -277,7 +222,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -306,9 +251,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -322,34 +265,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -359,7 +275,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -376,7 +292,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -407,7 +323,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -436,7 +352,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -461,40 +377,40 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -502,7 +418,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -510,7 +426,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -518,7 +434,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -526,7 +442,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -534,7 +450,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -542,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -550,7 +466,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -558,23 +474,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -601,9 +515,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -686,7 +598,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -708,11 +620,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -760,7 +672,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -772,7 +684,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -801,11 +713,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool = Field() @@ -815,52 +727,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -943,7 +824,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -965,11 +846,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1017,7 +898,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1029,7 +910,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1058,11 +939,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool = Field() @@ -1072,7 +953,34 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1081,32 +989,35 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1124,7 +1035,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1143,7 +1054,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1157,11 +1068,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1179,118 +1090,108 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0725.py b/githubkit/versions/v2022_11_28/models/group_0725.py index e232a1ee9..81b45cb6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0725.py +++ b/githubkit/versions/v2022_11_28/models/group_0725.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["review_requested"] = Field() + action: Literal["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,90 +39,123 @@ class WebhookPullRequestReviewRequestedOneof1(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + review: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team +class WebhookPullRequestReviewDismissedPropReview(GitHubModel): + """WebhookPullRequestReviewDismissedPropReview - Groups of organization members that gives permissions on specified repositories. + The review that was affected. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: Literal["dismissed", "approved", "changes_requested"] = Field() + submitted_at: datetime = Field() + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -138,83 +171,61 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() ) + locked: bool = Field() merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -243,9 +254,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -271,10 +280,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( default=UNSET ) url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -287,15 +295,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -324,9 +331,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -340,34 +345,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -377,8 +355,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -394,7 +371,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -418,14 +395,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -449,12 +424,14 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -483,36 +460,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -520,31 +497,25 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -552,7 +523,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -560,15 +531,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -576,23 +545,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -619,9 +586,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -704,7 +669,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -726,11 +691,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -778,7 +742,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -790,7 +754,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -819,12 +783,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -833,52 +795,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -961,7 +892,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -983,11 +914,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1035,7 +965,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1047,7 +977,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1076,12 +1006,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1090,7 +1018,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1099,35 +1054,32 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1145,7 +1097,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1164,7 +1116,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1178,11 +1130,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1200,120 +1152,110 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissed) +model_rebuild(WebhookPullRequestReviewDismissedPropReview) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequest) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropReviewPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0726.py b/githubkit/versions/v2022_11_28/models/group_0726.py index d21f52bda..984bb6873 100644 --- a/githubkit/versions/v2022_11_28/models/group_0726.py +++ b/githubkit/versions/v2022_11_28/models/group_0726.py @@ -19,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0461 import WebhooksReview +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0466 import WebhooksReview -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["submitted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,7 +46,7 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( @@ -56,20 +57,37 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" + + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None - ] = Field(title="User") + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: list[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +103,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -98,18 +116,16 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -119,13 +135,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -134,12 +150,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -168,7 +184,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -196,7 +212,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -209,14 +225,14 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -245,7 +261,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -259,7 +275,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -269,7 +285,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -285,7 +301,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -316,7 +332,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +363,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,62 +392,60 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( Field(title="Link") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -439,7 +453,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -447,35 +461,33 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -502,7 +514,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -569,9 +581,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -585,18 +594,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -607,10 +607,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -619,18 +619,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -645,20 +633,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -670,7 +650,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -699,10 +679,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -711,21 +691,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -792,9 +772,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) homepage: Union[str, None] = Field() hooks_url: str = Field() html_url: str = Field() @@ -808,18 +785,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -830,10 +798,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -842,18 +810,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -868,20 +824,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -893,7 +841,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -922,10 +870,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -934,7 +882,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -961,7 +909,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -978,7 +926,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -991,11 +939,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1013,9 +961,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1032,7 +978,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1046,12 +992,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1068,100 +1012,94 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEdited) +model_rebuild(WebhookPullRequestReviewEditedPropChanges) +model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0727.py b/githubkit/versions/v2022_11_28/models/group_0727.py index 4073973fe..917b8bb76 100644 --- a/githubkit/versions/v2022_11_28/models/group_0727.py +++ b/githubkit/versions/v2022_11_28/models/group_0727.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["resolved"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,39 +39,68 @@ class WebhookPullRequestReviewThreadResolved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( - title="Simple Pull Request" + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() + additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -89,61 +118,88 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +226,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -196,9 +252,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -211,7 +270,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -219,7 +278,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +307,9 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -262,7 +323,38 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -272,7 +364,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +381,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +410,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -342,14 +434,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -371,43 +461,41 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -415,7 +503,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -423,7 +511,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -431,7 +519,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -439,7 +527,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -447,7 +535,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -455,7 +543,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -463,7 +551,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -471,21 +559,22 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -514,7 +603,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -599,10 +688,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -613,11 +710,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -626,6 +723,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title.", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -640,6 +749,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -649,7 +762,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -661,7 +774,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -690,11 +803,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool = Field() @@ -704,21 +817,51 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -803,10 +946,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -817,11 +968,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -830,6 +981,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -844,6 +1007,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -853,7 +1020,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -865,7 +1032,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -894,11 +1061,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool = Field() @@ -908,36 +1075,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -954,7 +1092,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -967,11 +1105,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -989,7 +1127,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -998,35 +1136,32 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1044,323 +1179,136 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadResolved) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0728.py b/githubkit/versions/v2022_11_28/models/group_0728.py index 40bab7acc..d052c98d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0728.py +++ b/githubkit/versions/v2022_11_28/models/group_0728.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unresolved"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,39 +39,90 @@ class WebhookPullRequestReviewThreadUnresolved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( - title="Simple Pull Request" + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() + additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None ] = Field(title="User") assignees: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -89,61 +140,88 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems ] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] + ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +248,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -196,9 +274,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -207,9 +288,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -217,7 +300,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,7 +329,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( GitHubModel ): """Label""" @@ -262,7 +345,38 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -272,7 +386,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +403,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -318,7 +432,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +461,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,36 +488,36 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubMode user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -411,7 +525,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -419,7 +533,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -427,7 +541,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -435,7 +549,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -443,7 +557,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -451,7 +565,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -459,7 +573,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -467,21 +581,22 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -510,7 +625,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -595,10 +710,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -609,11 +732,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -622,6 +745,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -636,6 +771,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -645,7 +784,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +796,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -686,11 +825,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool = Field() @@ -700,21 +839,22 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -743,7 +883,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -828,10 +968,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -842,11 +990,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -855,6 +1003,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -869,6 +1029,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -878,7 +1042,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -890,7 +1054,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -919,11 +1083,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool = Field() @@ -933,7 +1097,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -942,35 +1106,32 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -988,7 +1149,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -997,35 +1158,32 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1043,326 +1201,138 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( - GitHubModel -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -model_rebuild(WebhookPullRequestReviewThreadUnresolved) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0729.py b/githubkit/versions/v2022_11_28/models/group_0729.py index 782ddf9fe..34cc4541a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0729.py +++ b/githubkit/versions/v2022_11_28/models/group_0729.py @@ -19,18 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,29 +45,66 @@ class WebhookPullRequestSynchronize(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,12 +120,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -104,11 +139,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -120,10 +157,10 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -136,13 +173,13 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -154,12 +191,12 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +225,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,9 +253,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel default=UNSET ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +269,15 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -265,7 +306,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -279,7 +322,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -306,7 +349,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -316,7 +359,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +376,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,7 +407,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -385,14 +431,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -421,60 +465,68 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -482,7 +534,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -490,33 +542,39 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -543,7 +601,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -626,7 +686,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -647,10 +708,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -698,7 +760,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -710,7 +772,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -739,10 +801,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -751,21 +815,23 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -792,7 +858,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -875,14 +943,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -894,10 +965,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -945,7 +1017,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -957,7 +1029,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -986,10 +1058,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -998,7 +1072,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1015,7 +1089,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1028,11 +1102,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1050,7 +1124,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1067,7 +1143,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1081,10 +1157,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1101,92 +1179,118 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestSynchronize) -model_rebuild(WebhookPullRequestSynchronizePropPullRequest) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0730.py b/githubkit/versions/v2022_11_28/models/group_0730.py index f2e7f5c5b..5ff968b7c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0730.py +++ b/githubkit/versions/v2022_11_28/models/group_0730.py @@ -19,20 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0442 import WebhooksUserMannequin +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,31 +45,84 @@ class WebhookPullRequestUnassigned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -89,12 +138,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -108,11 +157,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -124,13 +175,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -140,13 +191,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -158,12 +209,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -192,7 +243,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,9 +271,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) default=UNSET ) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,14 +287,15 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -269,7 +324,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -283,7 +340,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,14 +362,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -322,7 +377,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -338,7 +394,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,7 +425,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -391,14 +449,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -427,60 +483,68 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -488,7 +552,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -496,33 +560,39 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -549,7 +619,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -632,7 +704,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -653,10 +726,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -704,7 +778,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -716,7 +790,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -743,10 +819,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -755,21 +833,52 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -852,7 +961,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -873,10 +983,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -924,7 +1035,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -936,7 +1047,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -963,10 +1076,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -975,34 +1090,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1011,32 +1099,35 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1054,7 +1145,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1071,7 +1164,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1085,10 +1178,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1105,92 +1200,120 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnassigned) -model_rebuild(WebhookPullRequestUnassignedPropPullRequest) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0731.py b/githubkit/versions/v2022_11_28/models/group_0731.py index 054f7fff4..93561682a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0731.py +++ b/githubkit/versions/v2022_11_28/models/group_0731.py @@ -19,17 +19,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0434 import WebhooksLabel +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0466 import WebhooksReview -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["unlabeled"] = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,36 +40,36 @@ class WebhookPullRequestUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -84,82 +84,62 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() ) + locked: bool = Field() merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +168,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,7 +196,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +209,16 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -263,7 +245,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -277,34 +259,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +269,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +285,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,7 +316,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -390,7 +347,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -419,66 +376,70 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -486,33 +447,35 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +502,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -622,7 +585,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -643,10 +607,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -694,7 +658,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -706,7 +670,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -733,10 +699,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -745,21 +711,21 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -842,14 +808,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -861,10 +830,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -912,7 +881,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -924,7 +893,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -951,10 +922,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -963,7 +934,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -990,7 +961,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1007,7 +978,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1020,11 +991,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1042,7 +1013,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1059,7 +1032,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1073,10 +1046,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubMo url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1093,88 +1068,100 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlabeled) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0732.py b/githubkit/versions/v2022_11_28/models/group_0732.py index 971d2cf4f..283041775 100644 --- a/githubkit/versions/v2022_11_28/models/group_0732.py +++ b/githubkit/versions/v2022_11_28/models/group_0732.py @@ -19,16 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - action: Literal["unlocked"] = Field() + action: Literal["resolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,35 +39,41 @@ class WebhookPullRequestUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -82,82 +88,62 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +170,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,7 +198,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -219,16 +207,21 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -255,7 +248,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHub user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -269,34 +262,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -306,7 +272,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -322,7 +289,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -349,7 +318,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubMo user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -373,12 +342,14 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -400,103 +371,123 @@ class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -523,7 +514,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -606,17 +599,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -627,10 +613,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -639,18 +626,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -665,10 +640,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -678,7 +649,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -688,7 +661,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -715,10 +690,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -727,21 +704,23 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -824,17 +803,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -845,10 +817,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -857,18 +830,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -883,10 +844,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -896,7 +853,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -906,7 +865,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +894,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,7 +908,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -972,7 +937,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -981,35 +946,32 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1027,7 +989,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1044,7 +1008,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1058,10 +1022,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1078,88 +1044,323 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadResolved) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0733.py b/githubkit/versions/v2022_11_28/models/group_0733.py index d990a2e8a..214c0ddf8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0733.py +++ b/githubkit/versions/v2022_11_28/models/group_0733.py @@ -14,41 +14,26 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookPush(GitHubModel): - """push event""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." - ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." - ) - commits: list[WebhookPushPropCommitsItems] = Field( - description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits." - ) - compare: str = Field( - description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." - ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - forced: bool = Field(description="Whether this push was a force push of the `ref`.") - head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -59,145 +44,475 @@ class WebhookPush(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher: WebhookPushPropPusher = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." - ) - repository: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" - added: Missing[list[str]] = Field( - default=UNSET, description="An array of files added in the commit." + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - committer: WebhookPushPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, description="An array of files modified by the commit." + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." ) - removed: Missing[list[str]] = Field( - default=UNSET, description="An array of files removed in the commit." + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") -class WebhookPushPropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookPushPropHeadCommitPropCommitter(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookPushPropPusher(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" - date: Missing[datetime] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) email: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" - added: Missing[list[str]] = Field( - default=UNSET, - description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" ) - author: WebhookPushPropCommitsItemsPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - committer: WebhookPushPropCommitsItemsPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - id: str = Field() - message: str = Field(description="The commit message.") - modified: Missing[list[str]] = Field( - default=UNSET, - description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - removed: Missing[list[str]] = Field( - default=UNSET, - description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" ) - timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") - tree_id: str = Field() - url: str = Field(description="URL that points to the commit API resource.") -class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" - Metaproperties for Git author/committer information. - """ + href: str = Field() - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" -class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): - """Committer + href: str = Field() - Metaproperties for Git author/committer information. - """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" -class WebhookPushPropRepository(GitHubModel): + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -234,10 +549,6 @@ class WebhookPushPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) default_branch: str = Field(description="The default branch of the repository.") delete_branch_on_merge: Missing[bool] = Field( default=UNSET, @@ -283,9 +594,10 @@ class WebhookPushPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merges_url: str = Field() milestones_url: str = Field() @@ -296,10 +608,13 @@ class WebhookPushPropRepository(GitHubModel): open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET - ) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() @@ -330,16 +645,9 @@ class WebhookPushPropRepository(GitHubModel): ) -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicense(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -349,7 +657,9 @@ class WebhookPushPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookPushPropRepositoryPropOwner(GitHubModel): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -376,8 +686,12 @@ class WebhookPushPropRepositoryPropOwner(GitHubModel): user_view_type: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -386,32 +700,669 @@ class WebhookPushPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadUnresolved) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookPush", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0734.py b/githubkit/versions/v2022_11_28/models/group_0734.py index 086da0632..e1ff4f23c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0734.py +++ b/githubkit/versions/v2022_11_28/models/group_0734.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0735 import WebhookRegistryPackagePublishedPropRegistryPackage +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - action: Literal["published"] = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,20 +41,1152 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRegistryPackagePublished) +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestSynchronizePropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0735.py b/githubkit/versions/v2022_11_28/models/group_0735.py index 6556b990e..3f15d30ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0735.py +++ b/githubkit/versions/v2022_11_28/models/group_0735.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,72 +18,1179 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0736 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0447 import WebhooksUserMannequin -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + issue_url: str = Field() + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: Union[str, None] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + href: str = Field() - avatar_url: str = Field() + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + - about_url: Missing[str] = Field(default=UNSET) +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnassigned) +model_rebuild(WebhookPullRequestUnassignedPropPullRequest) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnassignedPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0736.py b/githubkit/versions/v2022_11_28/models/group_0736.py index a86c46c98..50380412a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0736.py +++ b/githubkit/versions/v2022_11_28/models/group_0736.py @@ -9,482 +9,975 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0655 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, - ] - ] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - container_metadata: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - description: str = Field() - docker_metadata: Missing[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0439 import WebhooksLabel + + +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ + issue_url: str = Field() + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET) - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - tags: Missing[list[str]] = Field(default=UNSET) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[list[str]] = Field(default=UNSET) - contributors: Missing[list[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[list[str]] = Field(default=UNSET) - files: Missing[list[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[list[str]] = Field(default=UNSET) - cpu: Missing[list[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ + """Link""" - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) - digest: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository """ - id: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, - None, - ] + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + A git repository + """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """License""" - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor - ] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - published_at: Missing[str] = Field(default=UNSET) - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -492,125 +985,196 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems -) +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0737.py b/githubkit/versions/v2022_11_28/models/group_0737.py index b4ac8ac5b..e6ad758f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0737.py +++ b/githubkit/versions/v2022_11_28/models/group_0737.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0738 import WebhookRegistryPackageUpdatedPropRegistryPackage +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" - action: Literal["updated"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,20 +39,1127 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRegistryPackageUpdated) +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestUnlockedPropPullRequestPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0738.py b/githubkit/versions/v2022_11_28/models/group_0738.py index 4fc325b01..083c1ed37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0738.py +++ b/githubkit/versions/v2022_11_28/models/group_0738.py @@ -9,72 +9,409 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0739 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookPush(GitHubModel): + """push event""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None - ] = Field() - updated_at: str = Field() + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: list[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pusher: WebhookPushPropPusher = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ref: str = Field( + description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + ) + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + + +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, description="An array of files added in the commit." + ) + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, description="An array of files modified by the commit." + ) + removed: Missing[list[str]] = Field( + default=UNSET, description="An array of files removed in the commit." + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropPusher(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[list[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[list[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[list[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + Metaproperties for Git author/committer information. + """ -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) - avatar_url: str = Field() + +class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookPushPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookPushPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPushPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) user_view_type: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) +model_rebuild(WebhookPush) +model_rebuild(WebhookPushPropHeadCommit) +model_rebuild(WebhookPushPropHeadCommitPropAuthor) +model_rebuild(WebhookPushPropHeadCommitPropCommitter) +model_rebuild(WebhookPushPropPusher) +model_rebuild(WebhookPushPropCommitsItems) +model_rebuild(WebhookPushPropCommitsItemsPropAuthor) +model_rebuild(WebhookPushPropCommitsItemsPropCommitter) +model_rebuild(WebhookPushPropRepository) +model_rebuild(WebhookPushPropRepositoryPropCustomProperties) +model_rebuild(WebhookPushPropRepositoryPropLicense) +model_rebuild(WebhookPushPropRepositoryPropOwner) +model_rebuild(WebhookPushPropRepositoryPropPermissions) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookPush", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0739.py b/githubkit/versions/v2022_11_28/models/group_0739.py index e7200dd0b..acb9b68bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0739.py +++ b/githubkit/versions/v2022_11_28/models/group_0739.py @@ -9,195 +9,50 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0655 import WebhookRubygemsMetadata - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: Missing[list[str]] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - md5: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - sha1: Missing[Union[str, None]] = Field(default=UNSET) - sha256: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - state: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() - id: int = Field() - login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor -) - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", -) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0740 import WebhookRegistryPackagePublishedPropRegistryPackage + + +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" + + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRegistryPackagePublished) + +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0740.py b/githubkit/versions/v2022_11_28/models/group_0740.py index 77ca37e8d..d59a27b24 100644 --- a/githubkit/versions/v2022_11_28/models/group_0740.py +++ b/githubkit/versions/v2022_11_28/models/group_0740.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,72 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0462 import WebhooksRelease - - -class WebhookReleaseCreated(GitHubModel): - """release created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookReleaseCreated) - -__all__ = ("WebhookReleaseCreated",) +from .group_0741 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) + + +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + ] = Field() + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0741.py b/githubkit/versions/v2022_11_28/models/group_0741.py index 748eb1ab7..4c3d28f40 100644 --- a/githubkit/versions/v2022_11_28/models/group_0741.py +++ b/githubkit/versions/v2022_11_28/models/group_0741.py @@ -9,52 +9,608 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0462 import WebhooksRelease - - -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookReleaseDeleted) - -__all__ = ("WebhookReleaseDeleted",) +from .group_0660 import WebhookRubygemsMetadata + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor + ] = Field(default=UNSET) + body: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, + ] + ] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + container_metadata: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + description: str = Field() + docker_metadata: Missing[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + npm_metadata: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, + None, + ] + ] = Field(default=UNSET) + nuget_metadata: Missing[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + ], + None, + ] + ] = Field(default=UNSET) + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + target_oid: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + version: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata + Items + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + npm_user: Missing[str] = Field(default=UNSET) + author: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, + None, + ] + ] = Field(default=UNSET) + bugs: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, + None, + ] + ] = Field(default=UNSET) + dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + ] = Field(default=UNSET) + dev_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + ] = Field(default=UNSET) + peer_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + ] = Field(default=UNSET) + optional_dependencies: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + ] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + dist: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, + None, + ] + ] = Field(default=UNSET) + git_head: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + license_: Missing[str] = Field(default=UNSET, alias="license") + main: Missing[str] = Field(default=UNSET) + repository: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, + None, + ] + ] = Field(default=UNSET) + scripts: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + ] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_version: Missing[str] = Field(default=UNSET) + npm_version: Missing[str] = Field(default=UNSET) + has_shrinkwrap: Missing[bool] = Field(default=UNSET) + maintainers: Missing[list[str]] = Field(default=UNSET) + contributors: Missing[list[str]] = Field(default=UNSET) + engines: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + ] = Field(default=UNSET) + keywords: Missing[list[str]] = Field(default=UNSET) + files: Missing[list[str]] = Field(default=UNSET) + bin_: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + ] = Field(default=UNSET, alias="bin") + man: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + ] = Field(default=UNSET) + directories: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, + None, + ] + ] = Field(default=UNSET) + os: Missing[list[str]] = Field(default=UNSET) + cpu: Missing[list[str]] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + installation_command: Missing[str] = Field(default=UNSET) + release_id: Missing[int] = Field(default=UNSET) + commit_oid: Missing[str] = Field(default=UNSET) + published_via_actions: Missing[bool] = Field(default=UNSET) + deleted_by_id: Missing[int] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: Union[str, None] = Field() + size: int = Field() + state: Union[str, None] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, + None, + ] + ] = Field(default=UNSET) + manifest: Missing[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, + None, + ] + ] = Field(default=UNSET) + tag: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: Missing[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, + int, + None, + ] + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, + ] + ] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: Missing[str] = Field(default=UNSET) + branch: Missing[str] = Field(default=UNSET) + commit: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: Missing[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + ] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + published_at: Missing[str] = Field(default=UNSET) + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0742.py b/githubkit/versions/v2022_11_28/models/group_0742.py index 55b015b98..656601cf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0742.py +++ b/githubkit/versions/v2022_11_28/models/group_0742.py @@ -18,18 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0462 import WebhooksRelease +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0743 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookReleaseEdited(GitHubModel): - """release edited event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,77 +44,15 @@ class WebhookReleaseEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) - - -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str = Field( - alias="from", - description="The previous version of the tag_name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropTagName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropMakeLatest", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropTagName", -) +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0743.py b/githubkit/versions/v2022_11_28/models/group_0743.py index 1d77d6780..65ad942e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0743.py +++ b/githubkit/versions/v2022_11_28/models/group_0743.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,187 +17,64 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" - - action: Literal["prereleased"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleasePrereleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() +from .group_0744 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, +) -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + created_at: str = Field() + description: None = Field() + ecosystem: str = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + name: str = Field() + namespace: str = Field() + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() + package_type: str = Field() + package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + ] = Field() + updated_at: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() user_view_type: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", + "WebhookRegistryPackageUpdatedPropRegistryPackage", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0744.py b/githubkit/versions/v2022_11_28/models/group_0744.py index c7fa005a9..9aeaf4886 100644 --- a/githubkit/versions/v2022_11_28/models/group_0744.py +++ b/githubkit/versions/v2022_11_28/models/group_0744.py @@ -9,54 +9,195 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0463 import WebhooksRelease1 - - -class WebhookReleasePublished(GitHubModel): - """release published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(WebhookReleasePublished) - -__all__ = ("WebhookReleasePublished",) +from .group_0660 import WebhookRubygemsMetadata + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, + None, + ] + ] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: str = Field() + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + ] = Field(default=UNSET) + rubygems_metadata: Missing[list[WebhookRubygemsMetadata]] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: Missing[list[str]] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt + ems + """ + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + md5: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + sha1: Missing[Union[str, None]] = Field(default=UNSET) + sha256: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + state: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: str = Field() + html_url: str = Field() + id: int = Field() + login: str = Field() + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() + user_view_type: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0745.py b/githubkit/versions/v2022_11_28/models/group_0745.py index b89ad25dd..ec1ccce26 100644 --- a/githubkit/versions/v2022_11_28/models/group_0745.py +++ b/githubkit/versions/v2022_11_28/models/group_0745.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0462 import WebhooksRelease +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0467 import WebhooksRelease -class WebhookReleaseReleased(GitHubModel): - """release released event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["released"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,11 +52,9 @@ class WebhookReleaseReleased(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseReleased) +model_rebuild(WebhookReleaseCreated) -__all__ = ("WebhookReleaseReleased",) +__all__ = ("WebhookReleaseCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0746.py b/githubkit/versions/v2022_11_28/models/group_0746.py index 84f69e0c1..390fadce3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0746.py +++ b/githubkit/versions/v2022_11_28/models/group_0746.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0463 import WebhooksRelease1 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0467 import WebhooksRelease -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["unpublished"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ class WebhookReleaseUnpublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease1 = Field( + release: WebhooksRelease = Field( title="Release", description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", ) @@ -52,11 +52,9 @@ class WebhookReleaseUnpublished(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookReleaseUnpublished) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("WebhookReleaseDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0747.py b/githubkit/versions/v2022_11_28/models/group_0747.py index 758423583..9c2c1cc5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0747.py +++ b/githubkit/versions/v2022_11_28/models/group_0747.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0178 import RepositoryAdvisory -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0467 import WebhooksRelease -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["published"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,77 @@ class WebhookRepositoryAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookRepositoryAdvisoryPublished) +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + tag_name: Missing[WebhookReleaseEditedPropChangesPropTagName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropTagName(GitHubModel): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str = Field( + alias="from", + description="The previous version of the tag_name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) + + +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropTagName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookRepositoryAdvisoryPublished",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropTagName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0748.py b/githubkit/versions/v2022_11_28/models/group_0748.py index 3bda54b4b..5235dc94d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0748.py +++ b/githubkit/versions/v2022_11_28/models/group_0748.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,17 +19,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0178 import RepositoryAdvisory -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - action: Literal["reported"] = Field() + action: Literal["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,162 @@ class WebhookRepositoryAdvisoryReported(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookRepositoryAdvisoryReported) +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: Literal[True] = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + digest: Union[str, None] = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhookReleasePrereleased) +model_rebuild(WebhookReleasePrereleasedPropRelease) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) +model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) +model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ( + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0749.py b/githubkit/versions/v2022_11_28/models/group_0749.py index 753adb124..79b1c8632 100644 --- a/githubkit/versions/v2022_11_28/models/group_0749.py +++ b/githubkit/versions/v2022_11_28/models/group_0749.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0468 import WebhooksRelease1 -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["archived"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryArchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookReleasePublished) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ("WebhookReleasePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0750.py b/githubkit/versions/v2022_11_28/models/group_0750.py index ab14a1643..ab5528baf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0750.py +++ b/githubkit/versions/v2022_11_28/models/group_0750.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0467 import WebhooksRelease -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["created"] = Field() + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryCreated) +model_rebuild(WebhookReleaseReleased) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ("WebhookReleaseReleased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0751.py b/githubkit/versions/v2022_11_28/models/group_0751.py index 880029234..38df7a888 100644 --- a/githubkit/versions/v2022_11_28/models/group_0751.py +++ b/githubkit/versions/v2022_11_28/models/group_0751.py @@ -18,16 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0468 import WebhooksRelease1 -class WebhookRepositoryDeleted(GitHubModel): - """repository deleted event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["deleted"] = Field() + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,13 +44,19 @@ class WebhookRepositoryDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDeleted) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ("WebhookRepositoryDeleted",) +__all__ = ("WebhookReleaseUnpublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0752.py b/githubkit/versions/v2022_11_28/models/group_0752.py index 5881ccb94..23b90a994 100644 --- a/githubkit/versions/v2022_11_28/models/group_0752.py +++ b/githubkit/versions/v2022_11_28/models/group_0752.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0182 import RepositoryAdvisory +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: str = Field( - description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - branch: str = Field() - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( - Field( - description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - ) + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -54,21 +48,14 @@ class WebhookRepositoryDispatchSample(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload - - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", -) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0753.py b/githubkit/versions/v2022_11_28/models/group_0753.py index 207e97930..d2fa438ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0753.py +++ b/githubkit/versions/v2022_11_28/models/group_0753.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0182 import RepositoryAdvisory +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,60 +48,14 @@ class WebhookRepositoryEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" - - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) - ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/v2022_11_28/models/group_0754.py b/githubkit/versions/v2022_11_28/models/group_0754.py index c2bb799e3..f48e287c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0754.py +++ b/githubkit/versions/v2022_11_28/models/group_0754.py @@ -18,15 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,9 +48,8 @@ class WebhookRepositoryImport(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookRepositoryArchived) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0755.py b/githubkit/versions/v2022_11_28/models/group_0755.py index c13d7cb9f..53f474515 100644 --- a/githubkit/versions/v2022_11_28/models/group_0755.py +++ b/githubkit/versions/v2022_11_28/models/group_0755.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["privatized"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryPrivatized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPrivatized) +model_rebuild(WebhookRepositoryCreated) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0756.py b/githubkit/versions/v2022_11_28/models/group_0756.py index 492b87a98..62f3798e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0756.py +++ b/githubkit/versions/v2022_11_28/models/group_0756.py @@ -18,16 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["publicized"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +50,6 @@ class WebhookRepositoryPublicized(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0757.py b/githubkit/versions/v2022_11_28/models/group_0757.py index a22e039ec..857d0fe7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0757.py +++ b/githubkit/versions/v2022_11_28/models/group_0757.py @@ -9,33 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + branch: str = Field() + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( + Field( + description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." + ) + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, + installation: SimpleInstallation = Field( title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -51,32 +57,18 @@ class WebhookRepositoryRenamed(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" +class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): + """WebhookRepositoryDispatchSamplePropClientPayload - from_: str = Field(alias="from") + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) +model_rebuild(WebhookRepositoryDispatchSample) +model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) __all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0758.py b/githubkit/versions/v2022_11_28/models/group_0758.py index 4122d5479..2ebbaed20 100644 --- a/githubkit/versions/v2022_11_28/models/group_0758.py +++ b/githubkit/versions/v2022_11_28/models/group_0758.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0169 import RepositoryRuleset -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookRepositoryEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,64 @@ class WebhookRepositoryRulesetCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetCreated) +class WebhookRepositoryEditedPropChanges(GitHubModel): + """WebhookRepositoryEditedPropChanges""" + + default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( + Field(default=UNSET) + ) + description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( + default=UNSET + ) + homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( + default=UNSET + ) + topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) + + +class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] = Field(alias="from") + + +class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: Missing[Union[list[str], None]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ( + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0759.py b/githubkit/versions/v2022_11_28/models/group_0759.py index d299694c3..a3bc90f2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0759.py +++ b/githubkit/versions/v2022_11_28/models/group_0759.py @@ -18,17 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0169 import RepositoryRuleset -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" - action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +42,14 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryRulesetDeleted) +model_rebuild(WebhookRepositoryImport) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/v2022_11_28/models/group_0760.py b/githubkit/versions/v2022_11_28/models/group_0760.py index 06cc7dd8e..42c67ee92 100644 --- a/githubkit/versions/v2022_11_28/models/group_0760.py +++ b/githubkit/versions/v2022_11_28/models/group_0760.py @@ -18,18 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0169 import RepositoryRuleset -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0761 import WebhookRepositoryRulesetEditedPropChanges +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" - action: Literal["edited"] = Field() + action: Literal["privatized"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,19 +43,13 @@ class WebhookRepositoryRulesetEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEdited) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0761.py b/githubkit/versions/v2022_11_28/models/group_0761.py index f9288ecd1..aabba3b8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0761.py +++ b/githubkit/versions/v2022_11_28/models/group_0761.py @@ -9,51 +9,47 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0762 import WebhookRepositoryRulesetEditedPropChangesPropConditions -from .group_0764 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET + action: Literal["publicized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - Field(default=UNSET) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryPublicized) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", - "WebhookRepositoryRulesetEditedPropChangesPropName", -) +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0762.py b/githubkit/versions/v2022_11_28/models/group_0762.py index 99d70ac90..427f87ef7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0762.py +++ b/githubkit/versions/v2022_11_28/models/group_0762.py @@ -9,28 +9,74 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0122 import RepositoryRulesetConditions -from .group_0763 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks + + +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" + + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" + repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) +class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepository""" -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookRepositoryRenamed) +model_rebuild(WebhookRepositoryRenamedPropChanges) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) + +__all__ = ( + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0763.py b/githubkit/versions/v2022_11_28/models/group_0763.py index a1ea0342d..add24bd67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0763.py +++ b/githubkit/versions/v2022_11_28/models/group_0763.py @@ -9,113 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0122 import RepositoryRulesetConditions +from .group_0003 import SimpleUser +from .group_0173 import RepositoryRuleset +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - condition: Missing[RepositoryRulesetConditions] = Field( + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: Missing[list[str]] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: Missing[list[str]] = Field(default=UNSET, alias="from") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", -) +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0764.py b/githubkit/versions/v2022_11_28/models/group_0764.py index f92d5cc50..3c6b26030 100644 --- a/githubkit/versions/v2022_11_28/models/group_0764.py +++ b/githubkit/versions/v2022_11_28/models/group_0764.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,96 +17,45 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0133 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0134 import RepositoryRuleUpdate -from .group_0136 import RepositoryRuleRequiredLinearHistory -from .group_0137 import RepositoryRuleMergeQueue -from .group_0139 import RepositoryRuleRequiredDeployments -from .group_0142 import RepositoryRulePullRequest -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0156 import RepositoryRuleFilePathRestriction -from .group_0158 import RepositoryRuleMaxFilePathLength -from .group_0160 import RepositoryRuleFileExtensionRestriction -from .group_0162 import RepositoryRuleMaxFileSize -from .group_0165 import RepositoryRuleWorkflows -from .group_0167 import RepositoryRuleCodeScanning -from .group_0765 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +from .group_0003 import SimpleUser +from .group_0173 import RepositoryRuleset +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks + + +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryRulesetDeleted) + +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0765.py b/githubkit/versions/v2022_11_28/models/group_0765.py index 62305845e..b6f46bede 100644 --- a/githubkit/versions/v2022_11_28/models/group_0765.py +++ b/githubkit/versions/v2022_11_28/models/group_0765.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,128 +17,47 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0133 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0134 import RepositoryRuleUpdate -from .group_0136 import RepositoryRuleRequiredLinearHistory -from .group_0137 import RepositoryRuleMergeQueue -from .group_0139 import RepositoryRuleRequiredDeployments -from .group_0142 import RepositoryRulePullRequest -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0156 import RepositoryRuleFilePathRestriction -from .group_0158 import RepositoryRuleMaxFilePathLength -from .group_0160 import RepositoryRuleFileExtensionRestriction -from .group_0162 import RepositoryRuleMaxFileSize -from .group_0165 import RepositoryRuleWorkflows -from .group_0167 import RepositoryRuleCodeScanning - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", -) +from .group_0003 import SimpleUser +from .group_0173 import RepositoryRuleset +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0766 import WebhookRepositoryRulesetEditedPropChanges + + +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" + + action: Literal["edited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(WebhookRepositoryRulesetEdited) + +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0766.py b/githubkit/versions/v2022_11_28/models/group_0766.py index 7dd6780b6..88e39882d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0766.py +++ b/githubkit/versions/v2022_11_28/models/group_0766.py @@ -9,132 +9,51 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0767 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0769 import WebhookRepositoryRulesetEditedPropChangesPropRules -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( + default=UNSET ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( + Field(default=UNSET) ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + Field(default=UNSET) ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" +class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropName""" - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" +class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" - ) + from_: Missing[str] = Field(default=UNSET, alias="from") -class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: Missing[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization - ] = Field(default=UNSET, title="Organization") - user: Missing[ - Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] - ] = Field(default=UNSET, title="User") - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( - GitHubModel -): - """Organization""" - - avatar_url: str = Field() - description: Union[str, None] = Field() - events_url: str = Field() - hooks_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - issues_url: str = Field() - login: str = Field() - members_url: str = Field() - node_id: str = Field() - public_members_url: str = Field() - repos_url: str = Field() - url: str = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(WebhookRepositoryRulesetEditedPropChanges) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) __all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryRulesetEditedPropChangesPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0767.py b/githubkit/versions/v2022_11_28/models/group_0767.py index 1830126ff..76f65e863 100644 --- a/githubkit/versions/v2022_11_28/models/group_0767.py +++ b/githubkit/versions/v2022_11_28/models/group_0767.py @@ -9,47 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" - - action: Literal["unarchived"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRepositoryUnarchived) - -__all__ = ("WebhookRepositoryUnarchived",) +from .group_0126 import RepositoryRulesetConditions +from .group_0768 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" + + added: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[list[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0768.py b/githubkit/versions/v2022_11_28/models/group_0768.py index 325d983cc..29c8d5ca2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0768.py +++ b/githubkit/versions/v2022_11_28/models/group_0768.py @@ -9,52 +9,113 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0464 import WebhooksAlert +from .group_0126 import RepositoryRulesetConditions -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[list[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0769.py b/githubkit/versions/v2022_11_28/models/group_0769.py index 1b7505b52..662cf2a9d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0769.py +++ b/githubkit/versions/v2022_11_28/models/group_0769.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from pydantic import Field @@ -18,104 +17,96 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - - -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - +from .group_0137 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0138 import RepositoryRuleUpdate +from .group_0140 import RepositoryRuleRequiredLinearHistory +from .group_0141 import RepositoryRuleMergeQueue +from .group_0143 import RepositoryRuleRequiredDeployments +from .group_0146 import RepositoryRulePullRequest +from .group_0148 import RepositoryRuleRequiredStatusChecks +from .group_0150 import RepositoryRuleCommitMessagePattern +from .group_0152 import RepositoryRuleCommitAuthorEmailPattern +from .group_0154 import RepositoryRuleCommitterEmailPattern +from .group_0156 import RepositoryRuleBranchNamePattern +from .group_0158 import RepositoryRuleTagNamePattern +from .group_0160 import RepositoryRuleFilePathRestriction +from .group_0162 import RepositoryRuleMaxFilePathLength +from .group_0164 import RepositoryRuleFileExtensionRestriction +from .group_0166 import RepositoryRuleMaxFileSize +from .group_0169 import RepositoryRuleWorkflows +from .group_0171 import RepositoryRuleCodeScanning +from .group_0770 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", -) +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + deleted: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + updated: Missing[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/v2022_11_28/models/group_0770.py b/githubkit/versions/v2022_11_28/models/group_0770.py index 34b53c1a7..04ba5fc72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0770.py +++ b/githubkit/versions/v2022_11_28/models/group_0770.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,44 +17,128 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0464 import WebhooksAlert - - -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" - - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +from .group_0137 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0138 import RepositoryRuleUpdate +from .group_0140 import RepositoryRuleRequiredLinearHistory +from .group_0141 import RepositoryRuleMergeQueue +from .group_0143 import RepositoryRuleRequiredDeployments +from .group_0146 import RepositoryRulePullRequest +from .group_0148 import RepositoryRuleRequiredStatusChecks +from .group_0150 import RepositoryRuleCommitMessagePattern +from .group_0152 import RepositoryRuleCommitAuthorEmailPattern +from .group_0154 import RepositoryRuleCommitterEmailPattern +from .group_0156 import RepositoryRuleBranchNamePattern +from .group_0158 import RepositoryRuleTagNamePattern +from .group_0160 import RepositoryRuleFilePathRestriction +from .group_0162 import RepositoryRuleMaxFilePathLength +from .group_0164 import RepositoryRuleFileExtensionRestriction +from .group_0166 import RepositoryRuleMaxFileSize +from .group_0169 import RepositoryRuleWorkflows +from .group_0171 import RepositoryRuleCodeScanning + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + + rule: Missing[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern +) + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0771.py b/githubkit/versions/v2022_11_28/models/group_0771.py index b05fbb769..3ce1f50e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0771.py +++ b/githubkit/versions/v2022_11_28/models/group_0771.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,20 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,34 +51,52 @@ class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" + ) + - The security alert of the vulnerable dependency. - """ +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + organization: Missing[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization + ] = Field(default=UNSET, title="Organization") + user: Missing[ + Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( + GitHubModel +): + """Organization""" + + avatar_url: str = Field() + description: Union[str, None] = Field() + events_url: str = Field() + hooks_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) id: int = Field() + issues_url: str = Field() + login: str = Field() + members_url: str = Field() node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["fixed", "open"] = Field() + public_members_url: str = Field() + repos_url: str = Field() + url: str = Field() -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -106,14 +120,21 @@ class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubMod subscriptions_url: Missing[str] = Field(default=UNSET) type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0772.py b/githubkit/versions/v2022_11_28/models/group_0772.py index 8990c35c2..2ae9f141f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0772.py +++ b/githubkit/versions/v2022_11_28/models/group_0772.py @@ -18,18 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0465 import SecretScanningAlertWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["unarchived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +47,9 @@ class WebhookSecretScanningAlertCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertCreated) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ("WebhookSecretScanningAlertCreated",) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0773.py b/githubkit/versions/v2022_11_28/models/group_0773.py index 12a85a00b..831a08432 100644 --- a/githubkit/versions/v2022_11_28/models/group_0773.py +++ b/githubkit/versions/v2022_11_28/models/group_0773.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,23 +18,31 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0465 import SecretScanningAlertWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0469 import WebhooksAlert -class WebhookSecretScanningAlertLocationCreated(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["create"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -47,267 +55,6 @@ class WebhookSecretScanningAlertLocationCreated(GitHubModel): sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" - - type: Missing[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] = Field( - default=UNSET, - description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", - ) - details: Missing[ - Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, - ] - ] = Field(default=UNSET) - - -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." - ) - - -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ( - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationWikiCommit", - "WebhookSecretScanningAlertLocationCreated", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0774.py b/githubkit/versions/v2022_11_28/models/group_0774.py index 875448bf5..6e01c51a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0774.py +++ b/githubkit/versions/v2022_11_28/models/group_0774.py @@ -9,19 +9,113 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - payload: str = Field( - description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None + ] = Field(title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0775.py b/githubkit/versions/v2022_11_28/models/group_0775.py index a68604357..4a3a671b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0775.py +++ b/githubkit/versions/v2022_11_28/models/group_0775.py @@ -18,18 +18,21 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0465 import SecretScanningAlertWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0469 import WebhooksAlert -class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["publicly_leaked"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,9 @@ class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) -__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) diff --git a/githubkit/versions/v2022_11_28/models/group_0776.py b/githubkit/versions/v2022_11_28/models/group_0776.py index d59d6b629..23e0bee99 100644 --- a/githubkit/versions/v2022_11_28/models/group_0776.py +++ b/githubkit/versions/v2022_11_28/models/group_0776.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,18 +19,20 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0465 import SecretScanningAlertWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,11 +52,68 @@ class WebhookSecretScanningAlertReopened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["fixed", "open"] = Field() + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0777.py b/githubkit/versions/v2022_11_28/models/group_0777.py index 789c70fef..835967cc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0777.py +++ b/githubkit/versions/v2022_11_28/models/group_0777.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0465 import SecretScanningAlertWebhook +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0470 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["resolved"] = Field() + action: Literal["created"] = Field() alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -54,6 +54,6 @@ class WebhookSecretScanningAlertResolved(GitHubModel): ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0778.py b/githubkit/versions/v2022_11_28/models/group_0778.py index f214ca1a8..b79c364f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0778.py +++ b/githubkit/versions/v2022_11_28/models/group_0778.py @@ -18,28 +18,24 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0465 import SecretScanningAlertWebhook +from .group_0381 import SecretScanningLocation +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0470 import SecretScanningAlertWebhook -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["validated"] = Field() + action: Literal["created"] = Field() alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + location: SecretScanningLocation = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,11 +45,9 @@ class WebhookSecretScanningAlertValidated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(WebhookSecretScanningAlertValidated) +model_rebuild(WebhookSecretScanningAlertLocationCreated) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("WebhookSecretScanningAlertLocationCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0779.py b/githubkit/versions/v2022_11_28/models/group_0779.py index 321f8f389..875448bf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0779.py +++ b/githubkit/versions/v2022_11_28/models/group_0779.py @@ -9,77 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -class WebhookSecretScanningScanCompleted(GitHubModel): - """secret_scanning_scan completed event""" +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" - action: Literal["completed"] = Field() - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( - Field(description="What type of scan was completed") - ) - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( - description="What type of content was scanned" - ) - started_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - completed_at: datetime = Field( - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - secret_types: Missing[Union[list[str], None]] = Field( - default=UNSET, - description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", - ) - custom_pattern_name: Missing[Union[str, None]] = Field( - default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", - ) - custom_pattern_scope: Missing[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] = Field( - default=UNSET, - description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookSecretScanningScanCompleted) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecretScanningScanCompleted",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0780.py b/githubkit/versions/v2022_11_28/models/group_0780.py index 6f587712d..90277ae0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0780.py +++ b/githubkit/versions/v2022_11_28/models/group_0780.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0466 import WebhooksSecurityAdvisory +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0470 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookSecretScanningAlertPubliclyLeaked(GitHubModel): + """secret_scanning_alert publicly leaked event""" - action: Literal["published"] = Field() + action: Literal["publicly_leaked"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookSecretScanningAlertPubliclyLeaked) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeaked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0781.py b/githubkit/versions/v2022_11_28/models/group_0781.py index 9a5013d88..5d98c30b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0781.py +++ b/githubkit/versions/v2022_11_28/models/group_0781.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0466 import WebhooksSecurityAdvisory +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0470 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - action: Literal["updated"] = Field() + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0782.py b/githubkit/versions/v2022_11_28/models/group_0782.py index c345e1841..7013fb15b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0782.py +++ b/githubkit/versions/v2022_11_28/models/group_0782.py @@ -18,17 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0783 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0470 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["withdrawn"] = Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,15 @@ class WebhookSecurityAdvisoryWithdrawn(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAdvisoryWithdrawn) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookSecurityAdvisoryWithdrawn",) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0783.py b/githubkit/versions/v2022_11_28/models/group_0783.py index a20e03470..d0546dcef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0783.py +++ b/githubkit/versions/v2022_11_28/models/group_0783.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,127 +17,43 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0001 import CvssSeverities +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0470 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - Field() + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - description: str = Field() - ghsa_id: str = Field() - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems - ] = Field() - published_at: str = Field() - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems - ] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems - ] = Field() - withdrawn_at: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, - None, - ] = Field() - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str = Field() - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( - GitHubModel -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str = Field() - name: str = Field() -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion -) -model_rebuild( - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage -) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0784.py b/githubkit/versions/v2022_11_28/models/group_0784.py index a5527424f..67e91a514 100644 --- a/githubkit/versions/v2022_11_28/models/group_0784.py +++ b/githubkit/versions/v2022_11_28/models/group_0784.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +19,47 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0120 import FullRepository -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0785 import WebhookSecurityAndAnalysisPropChanges +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" +class WebhookSecretScanningScanCompleted(GitHubModel): + """secret_scanning_scan completed event""" - changes: WebhookSecurityAndAnalysisPropChanges = Field() + action: Literal["completed"] = Field() + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] = ( + Field(description="What type of scan was completed") + ) + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] = Field( + description="What type of content was scanned" + ) + started_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + completed_at: datetime = Field( + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + secret_types: Missing[Union[list[str], None]] = Field( + default=UNSET, + description="List of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates", + ) + custom_pattern_name: Missing[Union[str, None]] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated", + ) + custom_pattern_scope: Missing[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] = Field( + default=UNSET, + description="If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,14 +75,11 @@ class WebhookSecurityAndAnalysis(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysis) +model_rebuild(WebhookSecretScanningScanCompleted) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ("WebhookSecretScanningScanCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0785.py b/githubkit/versions/v2022_11_28/models/group_0785.py index 15b448844..06f4b7529 100644 --- a/githubkit/versions/v2022_11_28/models/group_0785.py +++ b/githubkit/versions/v2022_11_28/models/group_0785.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0786 import WebhookSecurityAndAnalysisPropChangesPropFrom +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0471 import WebhooksSecurityAdvisory -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecurityAdvisoryPublished) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("WebhookSecurityAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0786.py b/githubkit/versions/v2022_11_28/models/group_0786.py index 39114c2d1..891890572 100644 --- a/githubkit/versions/v2022_11_28/models/group_0786.py +++ b/githubkit/versions/v2022_11_28/models/group_0786.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,17 +17,46 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0057 import SecurityAndAnalysis +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0471 import WebhooksSecurityAdvisory -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + action: Literal["updated"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0787.py b/githubkit/versions/v2022_11_28/models/group_0787.py index 1f76097ff..2d077f7b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0787.py +++ b/githubkit/versions/v2022_11_28/models/group_0787.py @@ -18,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0467 import WebhooksSponsorship +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0788 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["cancelled"] = Field() + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,10 +49,14 @@ class WebhookSponsorshipCancelled(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSecurityAdvisoryWithdrawn) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSecurityAdvisoryWithdrawn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0788.py b/githubkit/versions/v2022_11_28/models/group_0788.py index 1d31da088..a20e03470 100644 --- a/githubkit/versions/v2022_11_28/models/group_0788.py +++ b/githubkit/versions/v2022_11_28/models/group_0788.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,42 +17,127 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0467 import WebhooksSponsorship +from .group_0001 import CvssSeverities -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + cvss_severities: Missing[Union[CvssSeverities, None]] = Field(default=UNSET) + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( + Field() ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems + ] = Field() + published_at: str = Field() + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems + ] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems + ] = Field() + withdrawn_at: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, + None, + ] = Field() + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str = Field() + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage( + GitHubModel +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str = Field() + name: str = Field() -model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion +) +model_rebuild( + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage +) -__all__ = ("WebhookSponsorshipCreated",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0789.py b/githubkit/versions/v2022_11_28/models/group_0789.py index 311ffcff7..9f65329d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0789.py +++ b/githubkit/versions/v2022_11_28/models/group_0789.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,18 +16,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0467 import WebhooksSponsorship +from .group_0124 import FullRepository +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0790 import WebhookSecurityAndAnalysisPropChanges -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,38 +42,14 @@ class WebhookSponsorshipEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() - - -class WebhookSponsorshipEditedPropChanges(GitHubModel): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( - default=UNSET - ) - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str = Field( - alias="from", - description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookSponsorshipEdited) -model_rebuild(WebhookSponsorshipEditedPropChanges) -model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", -) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0790.py b/githubkit/versions/v2022_11_28/models/group_0790.py index ef1621a91..007eed419 100644 --- a/githubkit/versions/v2022_11_28/models/group_0790.py +++ b/githubkit/versions/v2022_11_28/models/group_0790.py @@ -9,54 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0467 import WebhooksSponsorship +from .group_0791 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0791.py b/githubkit/versions/v2022_11_28/models/group_0791.py index 6e014af21..01a4b52ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0791.py +++ b/githubkit/versions/v2022_11_28/models/group_0791.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,48 +17,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0467 import WebhooksSponsorship -from .group_0468 import WebhooksChanges8 +from .group_0060 import SecurityAndAnalysis -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["pending_tier_change"] = Field() - changes: WebhooksChanges8 = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/v2022_11_28/models/group_0792.py b/githubkit/versions/v2022_11_28/models/group_0792.py index 082ca0f1d..162b942dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0792.py +++ b/githubkit/versions/v2022_11_28/models/group_0792.py @@ -18,19 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0467 import WebhooksSponsorship -from .group_0468 import WebhooksChanges8 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0472 import WebhooksSponsorship -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() + action: Literal["cancelled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,6 +53,6 @@ class WebhookSponsorshipTierChanged(GitHubModel): sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipTierChanged) +model_rebuild(WebhookSponsorshipCancelled) -__all__ = ("WebhookSponsorshipTierChanged",) +__all__ = ("WebhookSponsorshipCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0793.py b/githubkit/versions/v2022_11_28/models/group_0793.py index d62cb9ec4..b0767efa1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0793.py +++ b/githubkit/versions/v2022_11_28/models/group_0793.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,14 +18,15 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0472 import WebhooksSponsorship -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship created event""" action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -43,16 +44,15 @@ class WebhookStarCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: Union[str, None] = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStarCreated) +model_rebuild(WebhookSponsorshipCreated) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookSponsorshipCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0794.py b/githubkit/versions/v2022_11_28/models/group_0794.py index 5fe70457b..03906a84f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0794.py +++ b/githubkit/versions/v2022_11_28/models/group_0794.py @@ -18,16 +18,18 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0472 import WebhooksSponsorship -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +45,38 @@ class WebhookStarDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - starred_at: None = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + sponsorship: WebhooksSponsorship = Field() + + +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( + default=UNSET + ) + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str = Field( + alias="from", + description="The `edited` event types include the details about the change when someone edits a sponsorship to change the privacy.", ) -model_rebuild(WebhookStarDeleted) +model_rebuild(WebhookSponsorshipEdited) +model_rebuild(WebhookSponsorshipEditedPropChanges) +model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) -__all__ = ("WebhookStarDeleted",) +__all__ = ( + "WebhookSponsorshipEdited", + "WebhookSponsorshipEditedPropChanges", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0795.py b/githubkit/versions/v2022_11_28/models/group_0795.py index d323bc89e..9161a4156 100644 --- a/githubkit/versions/v2022_11_28/models/group_0795.py +++ b/githubkit/versions/v2022_11_28/models/group_0795.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,233 +18,45 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0472 import WebhooksSponsorship -class WebhookStatus(GitHubModel): - """status event""" +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - avatar_url: Missing[Union[str, None]] = Field(default=UNSET) - branches: list[WebhookStatusPropBranchesItems] = Field( - description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." - ) - commit: WebhookStatusPropCommit = Field() - context: str = Field() - created_at: str = Field() - description: Union[str, None] = Field( - description="The optional human-readable description added to the status." + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - sha: str = Field(description="The Commit SHA.") - state: Literal["pending", "success", "failure", "error"] = Field( - description="The new state. Can be `pending`, `success`, `failure`, or `error`." - ) - target_url: Union[str, None] = Field( - description="The optional link added to the status." - ) - updated_at: str = Field() - - -class WebhookStatusPropBranchesItems(GitHubModel): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommit = Field() - name: str = Field() - protected: bool = Field() - - -class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class WebhookStatusPropCommit(GitHubModel): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") - comments_url: str = Field() - commit: WebhookStatusPropCommitPropCommit = Field() - committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") - html_url: str = Field() - node_id: str = Field() - parents: list[WebhookStatusPropCommitPropParentsItems] = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropParentsItems(GitHubModel): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str = Field() - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommit(GitHubModel): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthor = Field() - comment_count: int = Field() - committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() - message: str = Field() - tree: WebhookStatusPropCommitPropCommitPropTree = Field() - url: str = Field() - verification: WebhookStatusPropCommitPropCommitPropVerification = Field() - - -class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime = Field() - email: str = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str = Field() - url: str = Field() - - -class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] = Field() - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] = Field() - signature: Union[str, None] = Field() - verified: bool = Field() - verified_at: Union[str, None] = Field() + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatus) -model_rebuild(WebhookStatusPropBranchesItems) -model_rebuild(WebhookStatusPropBranchesItemsPropCommit) -model_rebuild(WebhookStatusPropCommit) -model_rebuild(WebhookStatusPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropParentsItems) -model_rebuild(WebhookStatusPropCommitPropCommit) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropCommitPropTree) -model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) +model_rebuild(WebhookSponsorshipPendingCancellation) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", -) +__all__ = ("WebhookSponsorshipPendingCancellation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0796.py b/githubkit/versions/v2022_11_28/models/group_0796.py index 70880c2d6..5486fa510 100644 --- a/githubkit/versions/v2022_11_28/models/group_0796.py +++ b/githubkit/versions/v2022_11_28/models/group_0796.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from pydantic import Field @@ -18,19 +17,48 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0472 import WebhooksSponsorship +from .group_0473 import WebhooksChanges8 -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + action: Literal["pending_tier_change"] = Field() + changes: WebhooksChanges8 = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +__all__ = ("WebhookSponsorshipPendingTierChange",) diff --git a/githubkit/versions/v2022_11_28/models/group_0797.py b/githubkit/versions/v2022_11_28/models/group_0797.py index edd98c4e3..da6c71727 100644 --- a/githubkit/versions/v2022_11_28/models/group_0797.py +++ b/githubkit/versions/v2022_11_28/models/group_0797.py @@ -9,21 +9,52 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0472 import WebhooksSponsorship +from .group_0473 import WebhooksChanges8 + + +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" + + action: Literal["tier_changed"] = Field() + changes: WebhooksChanges8 = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipTierChanged) + +__all__ = ("WebhookSponsorshipTierChanged",) diff --git a/githubkit/versions/v2022_11_28/models/group_0798.py b/githubkit/versions/v2022_11_28/models/group_0798.py index 696b079fe..c01153b55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0798.py +++ b/githubkit/versions/v2022_11_28/models/group_0798.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -18,19 +17,42 @@ from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks + + +class WebhookStarCreated(GitHubModel): + """star created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: Union[str, None] = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + ) + + +model_rebuild(WebhookStarCreated) + +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0799.py b/githubkit/versions/v2022_11_28/models/group_0799.py index 74f78d3d5..711fba57f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0799.py +++ b/githubkit/versions/v2022_11_28/models/group_0799.py @@ -9,21 +9,50 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET - -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks + + +class WebhookStarDeleted(GitHubModel): + """star deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + starred_at: None = Field( + description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." + ) + + +model_rebuild(WebhookStarDeleted) + +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0800.py b/githubkit/versions/v2022_11_28/models/group_0800.py index a47f1990b..b4ec94b90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0800.py +++ b/githubkit/versions/v2022_11_28/models/group_0800.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,50 +19,233 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0042 import Issue -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookSubIssuesParentIssueAdded(GitHubModel): - """parent issue added event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["parent_issue_added"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + avatar_url: Missing[Union[str, None]] = Field(default=UNSET) + branches: list[WebhookStatusPropBranchesItems] = Field( + description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." + commit: WebhookStatusPropCommit = Field() + context: str = Field() + created_at: str = Field() + description: Union[str, None] = Field( + description="The optional human-readable description added to the status." ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) + id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + sha: str = Field(description="The Commit SHA.") + state: Literal["pending", "success", "failure", "error"] = Field( + description="The new state. Can be `pending`, `success`, `failure`, or `error`." + ) + target_url: Union[str, None] = Field( + description="The optional link added to the status." ) + updated_at: str = Field() + + +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = Field() + + +class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class WebhookStatusPropCommit(GitHubModel): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthor, None] = Field(title="User") + comments_url: str = Field() + commit: WebhookStatusPropCommitPropCommit = Field() + committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") + html_url: str = Field() + node_id: str = Field() + parents: list[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitter(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropParentsItems(GitHubModel): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str = Field() + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommit(GitHubModel): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthor = Field() + comment_count: int = Field() + committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() + message: str = Field() + tree: WebhookStatusPropCommitPropCommitPropTree = Field() + url: str = Field() + verification: WebhookStatusPropCommitPropCommitPropVerification = Field() + + +class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str = Field() + url: str = Field() + + +class WebhookStatusPropCommitPropCommitPropVerification(GitHubModel): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] = Field() + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] = Field() + signature: Union[str, None] = Field() + verified: bool = Field() + verified_at: Union[str, None] = Field() -model_rebuild(WebhookSubIssuesParentIssueAdded) +model_rebuild(WebhookStatus) +model_rebuild(WebhookStatusPropBranchesItems) +model_rebuild(WebhookStatusPropBranchesItemsPropCommit) +model_rebuild(WebhookStatusPropCommit) +model_rebuild(WebhookStatusPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropParentsItems) +model_rebuild(WebhookStatusPropCommitPropCommit) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) +model_rebuild(WebhookStatusPropCommitPropCommitPropTree) +model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) -__all__ = ("WebhookSubIssuesParentIssueAdded",) +__all__ = ( + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0801.py b/githubkit/versions/v2022_11_28/models/group_0801.py index 7a869a3d4..70880c2d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0801.py +++ b/githubkit/versions/v2022_11_28/models/group_0801.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,51 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0042 import Issue -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookSubIssuesParentIssueRemoved(GitHubModel): - """parent issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["parent_issue_removed"] = Field() - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - parent_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesParentIssueRemoved) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ("WebhookSubIssuesParentIssueRemoved",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0802.py b/githubkit/versions/v2022_11_28/models/group_0802.py index 7a4957a21..edd98c4e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0802.py +++ b/githubkit/versions/v2022_11_28/models/group_0802.py @@ -9,59 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0042 import Issue -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - -class WebhookSubIssuesSubIssueAdded(GitHubModel): - """sub-issue added event""" +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - action: Literal["sub_issue_added"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesSubIssueAdded) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ("WebhookSubIssuesSubIssueAdded",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0803.py b/githubkit/versions/v2022_11_28/models/group_0803.py index 3f976a3d9..696b079fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0803.py +++ b/githubkit/versions/v2022_11_28/models/group_0803.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -17,51 +18,19 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0020 import Repository -from .group_0042 import Issue -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer -class WebhookSubIssuesSubIssueRemoved(GitHubModel): - """sub-issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_removed"] = Field() - sub_issue_id: float = Field(description="The ID of the sub-issue.") - sub_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - sub_issue_repo: Repository = Field( - title="Repository", description="A repository on GitHub." - ) - parent_issue_id: float = Field(description="The ID of the parent issue.") - parent_issue: Issue = Field( - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookSubIssuesSubIssueRemoved) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) -__all__ = ("WebhookSubIssuesSubIssueRemoved",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0804.py b/githubkit/versions/v2022_11_28/models/group_0804.py index 6f09cff20..74f78d3d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0804.py +++ b/githubkit/versions/v2022_11_28/models/group_0804.py @@ -15,43 +15,15 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0469 import WebhooksTeam1 - - -class WebhookTeamAdd(GitHubModel): - """team_add event""" - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -model_rebuild(WebhookTeamAdd) - -__all__ = ("WebhookTeamAdd",) + +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" + + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) + +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0805.py b/githubkit/versions/v2022_11_28/models/group_0805.py index 0a5264a25..bc5a9e46c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0805.py +++ b/githubkit/versions/v2022_11_28/models/group_0805.py @@ -9,250 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0469 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0045 import Issue +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" +class WebhookSubIssuesParentIssueAdded(GitHubModel): + """parent issue added event""" - action: Literal["added_to_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["parent_issue_added"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesParentIssueAdded) -__all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0806.py b/githubkit/versions/v2022_11_28/models/group_0806.py index a6753b5a2..e95d386d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0806.py +++ b/githubkit/versions/v2022_11_28/models/group_0806.py @@ -9,246 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0469 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0045 import Issue +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookTeamCreated(GitHubModel): - """team created event""" +class WebhookSubIssuesParentIssueRemoved(GitHubModel): + """parent issue removed event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["parent_issue_removed"] = Field() + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + parent_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesParentIssueRemoved) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesParentIssueRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0807.py b/githubkit/versions/v2022_11_28/models/group_0807.py index 9ae859255..b43ab0b24 100644 --- a/githubkit/versions/v2022_11_28/models/group_0807.py +++ b/githubkit/versions/v2022_11_28/models/group_0807.py @@ -9,248 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0469 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0045 import Issue +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class WebhookSubIssuesSubIssueAdded(GitHubModel): + """sub-issue added event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + action: Literal["sub_issue_added"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamDeletedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUser] = Field( default=UNSET, title="Simple User", description="A GitHub user." ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamDeletedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +model_rebuild(WebhookSubIssuesSubIssueAdded) -__all__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesSubIssueAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0808.py b/githubkit/versions/v2022_11_28/models/group_0808.py index abb33c89b..583269db2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0808.py +++ b/githubkit/versions/v2022_11_28/models/group_0808.py @@ -9,351 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0469 import WebhooksTeam1 +from .group_0020 import Repository +from .group_0045 import Issue +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookTeamEdited(GitHubModel): - """team edited event""" +class WebhookSubIssuesSubIssueRemoved(GitHubModel): + """sub-issue removed event""" - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." + action: Literal["sub_issue_removed"] = Field() + sub_issue_id: float = Field(description="The ID of the sub-issue.") + sub_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + sub_issue_repo: Repository = Field( + title="Repository", description="A repository on GitHub." + ) + parent_issue_id: float = Field(description="The ID of the parent issue.") + parent_issue: Issue = Field( + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamEditedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) - privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) - notification_setting: Missing[ - WebhookTeamEditedPropChangesPropNotificationSetting - ] = Field(default=UNSET) - repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( - default=UNSET - ) - - -class WebhookTeamEditedPropChangesPropDescription(GitHubModel): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropName(GitHubModel): - """WebhookTeamEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str = Field( - alias="from", - description="The previous version of the team's privacy if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str = Field( - alias="from", - description="The previous version of the team's notification setting if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropRepository(GitHubModel): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( - alias="from" - ) - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", - ) - pull: Missing[bool] = Field( + repository: Missing[RepositoryWebhooks] = Field( default=UNSET, - description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - push: Missing[bool] = Field( - default=UNSET, - description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -model_rebuild(WebhookTeamEdited) -model_rebuild(WebhookTeamEditedPropRepository) -model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) -model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) -model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChanges) -model_rebuild(WebhookTeamEditedPropChangesPropDescription) -model_rebuild(WebhookTeamEditedPropChangesPropName) -model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) -model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) -model_rebuild(WebhookTeamEditedPropChangesPropRepository) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) -model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) +model_rebuild(WebhookSubIssuesSubIssueRemoved) -__all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", -) +__all__ = ("WebhookSubIssuesSubIssueRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0809.py b/githubkit/versions/v2022_11_28/models/group_0809.py index e880ae243..4d648fbca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0809.py +++ b/githubkit/versions/v2022_11_28/models/group_0809.py @@ -9,26 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0469 import WebhooksTeam1 +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0474 import WebhooksTeam1 -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - action: Literal["removed_from_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,12 +36,14 @@ class WebhookTeamRemovedFromRepository(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") team: WebhooksTeam1 = Field( @@ -53,206 +52,6 @@ class WebhookTeamRemovedFromRepository(GitHubModel): ) -class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: list[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookTeamRemovedFromRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookTeamAdd) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookTeamAdd",) diff --git a/githubkit/versions/v2022_11_28/models/group_0810.py b/githubkit/versions/v2022_11_28/models/group_0810.py index 917484b66..0e9d7dbb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0810.py +++ b/githubkit/versions/v2022_11_28/models/group_0810.py @@ -9,25 +9,26 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0474 import WebhooksTeam1 -class WebhookWatchStarted(GitHubModel): - """watch started event""" +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" - action: Literal["started"] = Field() + action: Literal["added_to_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,18 +39,220 @@ class WebhookWatchStarted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWatchStarted) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) -__all__ = ("WebhookWatchStarted",) +__all__ = ( + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0811.py b/githubkit/versions/v2022_11_28/models/group_0811.py index cc6931cf8..6f4bd0847 100644 --- a/githubkit/versions/v2022_11_28/models/group_0811.py +++ b/githubkit/versions/v2022_11_28/models/group_0811.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -18,48 +19,236 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0474 import WebhooksTeam1 -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" +class WebhookTeamCreated(GitHubModel): + """team created event""" + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: str = Field() + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository + A git repository + """ -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0812.py b/githubkit/versions/v2022_11_28/models/group_0812.py index a9188a6b8..af87b550e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0812.py +++ b/githubkit/versions/v2022_11_28/models/group_0812.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0211 import Deployment -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0474 import WebhooksTeam1 -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" - action: Literal["completed"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,95 +39,218 @@ class WebhookWorkflowJobCompleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: str = Field() - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + sender: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET ) - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0813.py b/githubkit/versions/v2022_11_28/models/group_0813.py index f8b7a069b..f0821a9d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0813.py +++ b/githubkit/versions/v2022_11_28/models/group_0813.py @@ -9,87 +9,351 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0474 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamEdited(GitHubModel): + """team edited event""" + + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", ) - url: str = Field() -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" + ) + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookTeamEdited) +model_rebuild(WebhookTeamEditedPropRepository) +model_rebuild(WebhookTeamEditedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamEditedPropRepositoryPropLicense) +model_rebuild(WebhookTeamEditedPropRepositoryPropOwner) +model_rebuild(WebhookTeamEditedPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChanges) +model_rebuild(WebhookTeamEditedPropChangesPropDescription) +model_rebuild(WebhookTeamEditedPropChangesPropName) +model_rebuild(WebhookTeamEditedPropChangesPropPrivacy) +model_rebuild(WebhookTeamEditedPropChangesPropNotificationSetting) +model_rebuild(WebhookTeamEditedPropChangesPropRepository) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissions) +model_rebuild(WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamEdited", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0814.py b/githubkit/versions/v2022_11_28/models/group_0814.py index 13bbf03d1..572634bc0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0814.py +++ b/githubkit/versions/v2022_11_28/models/group_0814.py @@ -9,69 +9,250 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0474 import WebhooksTeam1 -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." - ) - head_sha: Missing[str] = Field(default=UNSET) + +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: list[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: Missing[ - list[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0815.py b/githubkit/versions/v2022_11_28/models/group_0815.py index e572d5c38..8076fe00a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0815.py +++ b/githubkit/versions/v2022_11_28/models/group_0815.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,17 +18,16 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0211 import Deployment -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" +class WebhookWatchStarted(GitHubModel): + """watch started event""" - action: Literal["in_progress"] = Field() + action: Literal["started"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,79 +48,8 @@ class WebhookWorkflowJobInProgress(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() - ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." - ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." - ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() - url: str = Field() - - -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookWatchStarted) -__all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", -) +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0816.py b/githubkit/versions/v2022_11_28/models/group_0816.py index 1d055b568..810a59d0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0816.py +++ b/githubkit/versions/v2022_11_28/models/group_0816.py @@ -9,78 +9,57 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch event""" - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ref: str = Field() + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." - ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." - ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( - Field() - ) - url: str = Field() - + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0817.py b/githubkit/versions/v2022_11_28/models/group_0817.py index b4d62dfca..797d21daf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0817.py +++ b/githubkit/versions/v2022_11_28/models/group_0817.py @@ -17,58 +17,117 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0215 import Deployment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks + + +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - head_sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[list[str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - url: Missing[str] = Field(default=UNSET) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() + url: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0818.py b/githubkit/versions/v2022_11_28/models/group_0818.py index 168f35df0..f8b7a069b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0818.py +++ b/githubkit/versions/v2022_11_28/models/group_0818.py @@ -9,84 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0211 import Deployment -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" - - action: Literal["queued"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ check_run_url: str = Field() completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] = Field() created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - labels: list[str] = Field() + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) name: str = Field() node_id: str = Field() run_attempt: int = Field() run_id: int = Field() run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + ) head_branch: Union[str, None] = Field(description="The name of the current branch.") workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( + Field() + ) url: str = Field() -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): """Workflow Step""" completed_at: Union[str, None] = Field() @@ -96,15 +83,13 @@ class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): name: str = Field() number: int = Field() started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0819.py b/githubkit/versions/v2022_11_28/models/group_0819.py index 2f77b6de6..13bbf03d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0819.py +++ b/githubkit/versions/v2022_11_28/models/group_0819.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,95 +17,61 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0211 import Deployment -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks - -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" - - action: Literal["waiting"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" + + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[str] = Field(default=UNSET) + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] = Field() + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[Union[str, None]]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - + steps: Missing[ + list[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: list[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() - ) +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0820.py b/githubkit/versions/v2022_11_28/models/group_0820.py index 3c2a411cd..e54a061b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0820.py +++ b/githubkit/versions/v2022_11_28/models/group_0820.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,17 +18,17 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0427 import WebhooksWorkflow +from .group_0215 import Deployment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" - action: Literal["completed"] = Field() + action: Literal["in_progress"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,456 +49,79 @@ class WebhookWorkflowRunCompleted(GitHubModel): description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( - title="Workflow Run" + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", ) -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: Missing[str] = Field( - default=UNSET, - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0821.py b/githubkit/versions/v2022_11_28/models/group_0821.py index 91de48d48..1d055b568 100644 --- a/githubkit/versions/v2022_11_28/models/group_0821.py +++ b/githubkit/versions/v2022_11_28/models/group_0821.py @@ -9,486 +9,78 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0427 import WebhooksWorkflow +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" - - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( + Field() ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: list[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0822.py b/githubkit/versions/v2022_11_28/models/group_0822.py index cbf472592..b4d62dfca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0822.py +++ b/githubkit/versions/v2022_11_28/models/group_0822.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -18,485 +17,58 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser -from .group_0419 import EnterpriseWebhooks -from .group_0420 import SimpleInstallation -from .group_0421 import OrganizationSimpleWebhooks -from .group_0422 import RepositoryWebhooks -from .group_0427 import WebhooksWorkflow +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" - - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + labels: Missing[list[str]] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Literal["in_progress", "completed", "queued"] = Field() + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user_view_type: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( Field() ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() + url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" - id: int = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(WebhookWorkflowRunRequested) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0823.py b/githubkit/versions/v2022_11_28/models/group_0823.py index 2a022955e..560f41881 100644 --- a/githubkit/versions/v2022_11_28/models/group_0823.py +++ b/githubkit/versions/v2022_11_28/models/group_0823.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from pydantic import Field @@ -19,39 +19,92 @@ from githubkit.utils import UNSET from .group_0003 import SimpleUser -from .group_0008 import Enterprise -from .group_0009 import IntegrationPropPermissions +from .group_0215 import Deployment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" +class WebhookWorkflowJobQueued(GitHubModel): + """workflow_job queued event""" - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + action: Literal["queued"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - node_id: str = Field() - client_id: str = Field() - owner: Union[SimpleUser, Enterprise] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - events: list[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The number of installations associated with the GitHub app", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0824.py b/githubkit/versions/v2022_11_28/models/group_0824.py index d16ddbf37..614cba422 100644 --- a/githubkit/versions/v2022_11_28/models/group_0824.py +++ b/githubkit/versions/v2022_11_28/models/group_0824.py @@ -9,22 +9,104 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0215 import Deployment +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: list[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() + ) + + +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) + +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0825.py b/githubkit/versions/v2022_11_28/models/group_0825.py index e86e478f8..b26d56ac3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0825.py +++ b/githubkit/versions/v2022_11_28/models/group_0825.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from pydantic import Field @@ -17,24 +18,488 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0432 import WebhooksWorkflow -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - content_type: Missing[str] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - secret: Missing[str] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppHookConfigPatchBody) +model_rebuild(WebhookWorkflowRunCompleted) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ( + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0826.py b/githubkit/versions/v2022_11_28/models/group_0826.py index 406984575..a203a34ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0826.py +++ b/githubkit/versions/v2022_11_28/models/group_0826.py @@ -9,13 +9,486 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0432 import WebhooksWorkflow + + +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" + + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0827.py b/githubkit/versions/v2022_11_28/models/group_0827.py index 90930f652..e73f1dd18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0827.py +++ b/githubkit/versions/v2022_11_28/models/group_0827.py @@ -9,33 +9,494 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0017 import AppPermissions +from .group_0003 import SimpleUser +from .group_0424 import EnterpriseWebhooks +from .group_0425 import SimpleInstallation +from .group_0426 import OrganizationSimpleWebhooks +from .group_0427 import RepositoryWebhooks +from .group_0432 import WebhooksWorkflow -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" - repositories: Missing[list[str]] = Field( + action: Literal["requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="List of repository names that the token should have access to", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."', ) - repository_ids: Missing[list[int]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="List of repository IDs that the token should have access to", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - permissions: Missing[AppPermissions] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUser = Field(title="Simple User", description="A GitHub user.") + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user_view_type: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0828.py b/githubkit/versions/v2022_11_28/models/group_0828.py index 33e9e3dcc..3657b60e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0828.py +++ b/githubkit/versions/v2022_11_28/models/group_0828.py @@ -9,19 +9,51 @@ from __future__ import annotations +from datetime import datetime +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0003 import SimpleUser +from .group_0008 import Enterprise +from .group_0009 import IntegrationPropPermissions -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + node_id: str = Field() + client_id: str = Field() + owner: Union[SimpleUser, Enterprise] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" + ) + events: list[str] = Field( + description="The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation." + ) + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself.", ) + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0829.py b/githubkit/versions/v2022_11_28/models/group_0829.py index 13773092a..d16ddbf37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0829.py +++ b/githubkit/versions/v2022_11_28/models/group_0829.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." - ) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0830.py b/githubkit/versions/v2022_11_28/models/group_0830.py index 585475cf4..e86e478f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0830.py +++ b/githubkit/versions/v2022_11_28/models/group_0830.py @@ -9,19 +9,32 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(AppHookConfigPatchBody) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0831.py b/githubkit/versions/v2022_11_28/models/group_0831.py index a2c5766c1..406984575 100644 --- a/githubkit/versions/v2022_11_28/models/group_0831.py +++ b/githubkit/versions/v2022_11_28/models/group_0831.py @@ -9,19 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" - - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." - ) +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0832.py b/githubkit/versions/v2022_11_28/models/group_0832.py index 86bfc32e8..90930f652 100644 --- a/githubkit/versions/v2022_11_28/models/group_0832.py +++ b/githubkit/versions/v2022_11_28/models/group_0832.py @@ -18,27 +18,16 @@ from .group_0017 import AppPermissions -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." - ) - target: Missing[str] = Field( - default=UNSET, - description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", - ) - target_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", - ) repositories: Missing[list[str]] = Field( default=UNSET, - description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + description="List of repository names that the token should have access to", ) repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + description="List of repository IDs that the token should have access to", ) permissions: Missing[AppPermissions] = Field( default=UNSET, @@ -47,6 +36,6 @@ class ApplicationsClientIdTokenScopedPostBody(GitHubModel): ) -model_rebuild(ApplicationsClientIdTokenScopedPostBody) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0833.py b/githubkit/versions/v2022_11_28/models/group_0833.py index b92fcfb34..33e9e3dcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0833.py +++ b/githubkit/versions/v2022_11_28/models/group_0833.py @@ -11,19 +11,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class CredentialsRevokePostBody(GitHubModel): - """CredentialsRevokePostBody""" +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" - credentials: list[str] = Field( - max_length=1000 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="A list of credentials to be revoked, up to 1000 per request.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(CredentialsRevokePostBody) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ("CredentialsRevokePostBody",) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0834.py b/githubkit/versions/v2022_11_28/models/group_0834.py index 152fcb757..13773092a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0834.py +++ b/githubkit/versions/v2022_11_28/models/group_0834.py @@ -9,13 +9,19 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" -model_rebuild(EmojisGetResponse200) + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." + ) -__all__ = ("EmojisGetResponse200",) + +model_rebuild(ApplicationsClientIdTokenPostBody) + +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0835.py b/githubkit/versions/v2022_11_28/models/group_0835.py index d158934a3..585475cf4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0835.py +++ b/githubkit/versions/v2022_11_28/models/group_0835.py @@ -9,136 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0029 import CodeScanningDefaultSetupOptions - - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" - - name: str = Field( - description="The name of the code security configuration. Must be unique within the enterprise." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - Feature options for Automatic dependency submission - """ +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", -) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0836.py b/githubkit/versions/v2022_11_28/models/group_0836.py index 5c5c84dc5..a2c5766c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0836.py +++ b/githubkit/versions/v2022_11_28/models/group_0836.py @@ -9,141 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0029 import CodeScanningDefaultSetupOptions - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique across the enterprise.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - Feature options for Automatic dependency submission - """ +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", -) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0837.py b/githubkit/versions/v2022_11_28/models/group_0837.py index e3ab1c255..86bfc32e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0837.py +++ b/githubkit/versions/v2022_11_28/models/group_0837.py @@ -9,27 +9,44 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0017 import AppPermissions -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" - scope: Literal["all", "all_without_configurations"] = Field( - description="The type of repositories to attach the configuration to." + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." + ) + target: Missing[str] = Field( + default=UNSET, + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", + ) + target_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", + ) + repositories: Missing[list[str]] = Field( + default=UNSET, + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + ) + repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", ) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody -) +model_rebuild(ApplicationsClientIdTokenScopedPostBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0838.py b/githubkit/versions/v2022_11_28/models/group_0838.py index d990f81b8..b92fcfb34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0838.py +++ b/githubkit/versions/v2022_11_28/models/group_0838.py @@ -9,32 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class CredentialsRevokePostBody(GitHubModel): + """CredentialsRevokePostBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", + credentials: list[str] = Field( + max_length=1000 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="A list of credentials to be revoked, up to 1000 per request.", ) -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody -) +model_rebuild(CredentialsRevokePostBody) -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", -) +__all__ = ("CredentialsRevokePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0839.py b/githubkit/versions/v2022_11_28/models/group_0839.py index f0a4b8cc3..152fcb757 100644 --- a/githubkit/versions/v2022_11_28/models/group_0839.py +++ b/githubkit/versions/v2022_11_28/models/group_0839.py @@ -9,39 +9,13 @@ from __future__ import annotations -from typing import Literal +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -from .group_0028 import CodeSecurityConfiguration +model_rebuild(EmojisGetResponse200) -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ - - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specifies which types of repository this security configuration is applied to by default.", - ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" - ) - - -model_rebuild( - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 -) - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", -) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0840.py b/githubkit/versions/v2022_11_28/models/group_0840.py index 06d3ecaf9..d158934a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0840.py +++ b/githubkit/versions/v2022_11_28/models/group_0840.py @@ -9,21 +9,136 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0029 import CodeScanningDefaultSetupOptions + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBody(GitHubModel): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + + name: str = Field( + description="The name of the code security configuration. Must be unique within the enterprise." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" + Feature options for Automatic dependency submission + """ - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) -model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0841.py b/githubkit/versions/v2022_11_28/models/group_0841.py index 199114879..5c5c84dc5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0841.py +++ b/githubkit/versions/v2022_11_28/models/group_0841.py @@ -13,37 +13,137 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0029 import CodeScanningDefaultSetupOptions -class GistsPostBody(GitHubModel): - """GistsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique across the enterprise.", + ) description: Missing[str] = Field( - default=UNSET, description="Description of the gist" + max_length=255, + default=UNSET, + description="A description of the code security configuration", ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles - Names and content for the files that make up the gist +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} + Feature options for Automatic dependency submission """ + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) + +model_rebuild(EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) __all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0842.py b/githubkit/versions/v2022_11_28/models/group_0842.py index 3d4986472..e3ab1c255 100644 --- a/githubkit/versions/v2022_11_28/models/group_0842.py +++ b/githubkit/versions/v2022_11_28/models/group_0842.py @@ -9,35 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + scope: Literal["all", "all_without_configurations"] = Field( + description="The type of repositories to attach the configuration to." + ) -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" - - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody +) __all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0843.py b/githubkit/versions/v2022_11_28/models/group_0843.py index 4c7da0217..d990f81b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0843.py +++ b/githubkit/versions/v2022_11_28/models/group_0843.py @@ -9,46 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - description: Missing[str] = Field( - default=UNSET, description="The description of the gist." - ) - files: Missing[GistsGistIdPatchBodyPropFiles] = Field( + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( default=UNSET, - description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", + description="Specify which types of repository this security configuration should be applied to by default.", ) -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ - - -model_rebuild(GistsGistIdPatchBody) -model_rebuild(GistsGistIdPatchBodyPropFiles) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody +) __all__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0844.py b/githubkit/versions/v2022_11_28/models/group_0844.py index 4da522baf..f0a4b8cc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0844.py +++ b/githubkit/versions/v2022_11_28/models/group_0844.py @@ -9,17 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0028 import CodeSecurityConfiguration -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ - body: str = Field(max_length=65535, description="The comment text.") + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specifies which types of repository this security configuration is applied to by default.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild( + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 +) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0845.py b/githubkit/versions/v2022_11_28/models/group_0845.py index 6b63828a9..06d3ecaf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0845.py +++ b/githubkit/versions/v2022_11_28/models/group_0845.py @@ -12,14 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - body: str = Field(max_length=65535, description="The comment text.") + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) diff --git a/githubkit/versions/v2022_11_28/models/group_0846.py b/githubkit/versions/v2022_11_28/models/group_0846.py index c642ead3b..199114879 100644 --- a/githubkit/versions/v2022_11_28/models/group_0846.py +++ b/githubkit/versions/v2022_11_28/models/group_0846.py @@ -9,13 +9,41 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild +from typing import Literal, Union +from pydantic import Field -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -model_rebuild(GistsGistIdStarGetResponse404) +class GistsPostBody(GitHubModel): + """GistsPostBody""" -__all__ = ("GistsGistIdStarGetResponse404",) + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" + ) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" + ) + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) + + +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles + + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ + + +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) + +__all__ = ( + "GistsPostBody", + "GistsPostBodyPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0847.py b/githubkit/versions/v2022_11_28/models/group_0847.py index 31a724d8d..3d4986472 100644 --- a/githubkit/versions/v2022_11_28/models/group_0847.py +++ b/githubkit/versions/v2022_11_28/models/group_0847.py @@ -9,23 +9,35 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0020 import Repository + +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" + + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" - total_count: int = Field() - repositories: list[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(InstallationRepositoriesGetResponse200) +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0848.py b/githubkit/versions/v2022_11_28/models/group_0848.py index d2f8fe721..4c7da0217 100644 --- a/githubkit/versions/v2022_11_28/models/group_0848.py +++ b/githubkit/versions/v2022_11_28/models/group_0848.py @@ -9,28 +9,46 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - text: str = Field(description="The Markdown text to render in HTML.") - mode: Missing[Literal["markdown", "gfm"]] = Field( - default=UNSET, description="The rendering mode." + description: Missing[str] = Field( + default=UNSET, description="The description of the gist." ) - context: Missing[str] = Field( + files: Missing[GistsGistIdPatchBodyPropFiles] = Field( default=UNSET, - description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", + description="The gist files to be updated, renamed, or deleted. Each `key` must match the current filename\n(including extension) of the targeted gist file. For example: `hello.py`.\n\nTo delete a file, set the whole file to null. For example: `hello.py : null`. The file will also be\ndeleted if the specified object does not contain at least one of `content` or `filename`.", ) -model_rebuild(MarkdownPostBody) +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles + + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. + + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. + + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ + + +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) -__all__ = ("MarkdownPostBody",) +__all__ = ( + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0849.py b/githubkit/versions/v2022_11_28/models/group_0849.py index a88d20422..4da522baf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0849.py +++ b/githubkit/versions/v2022_11_28/models/group_0849.py @@ -9,27 +9,17 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - last_read_at: Missing[datetime] = Field( - default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", - ) - read: Missing[bool] = Field( - default=UNSET, description="Whether the notification has been read." - ) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(NotificationsPutBody) +model_rebuild(GistsGistIdCommentsPostBody) -__all__ = ("NotificationsPutBody",) +__all__ = ("GistsGistIdCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0850.py b/githubkit/versions/v2022_11_28/models/group_0850.py index 671e9e3a2..6b63828a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0850.py +++ b/githubkit/versions/v2022_11_28/models/group_0850.py @@ -12,16 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" - message: Missing[str] = Field(default=UNSET) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(NotificationsPutResponse202) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0851.py b/githubkit/versions/v2022_11_28/models/group_0851.py index 0d1f3d378..c642ead3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0851.py +++ b/githubkit/versions/v2022_11_28/models/group_0851.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." - ) +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ("GistsGistIdStarGetResponse404",) diff --git a/githubkit/versions/v2022_11_28/models/group_0852.py b/githubkit/versions/v2022_11_28/models/group_0852.py index ba21baf7e..31a724d8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0852.py +++ b/githubkit/versions/v2022_11_28/models/group_0852.py @@ -9,132 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0020 import Repository + -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, - description="The description of the company. The maximum size is 160 characters.", - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_private_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_public_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] - ] = Field( - default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", - ) - members_can_create_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_public_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_create_private_pages: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", - ) - members_can_fork_private_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether organization members can fork private organization repositories.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", - ) - blog: Missing[str] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", - ) - secret_scanning_push_protection_custom_link: Missing[str] = Field( - default=UNSET, - description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", - ) - deploy_keys_enabled_for_repositories: Missing[bool] = Field( - default=UNSET, - description="Controls whether or not deploy keys may be added and used for repositories in the organization.", - ) + total_count: int = Field() + repositories: list[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPatchBody) +model_rebuild(InstallationRepositoriesGetResponse200) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ("InstallationRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0853.py b/githubkit/versions/v2022_11_28/models/group_0853.py index 83117a7e2..d2f8fe721 100644 --- a/githubkit/versions/v2022_11_28/models/group_0853.py +++ b/githubkit/versions/v2022_11_28/models/group_0853.py @@ -9,39 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - - total_count: int = Field() - repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() - +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ - - full_name: str = Field( - description="The repository owner and name for the cache usage being shown." - ) - active_caches_size_in_bytes: int = Field( - description="The sum of the size in bytes of all the active cache items in the repository." + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." ) - active_caches_count: int = Field( - description="The number of active caches in the repository." + context: Missing[str] = Field( + default=UNSET, + description="The repository context to use when creating references in `gfm` mode. For example, setting `context` to `octo-org/octo-repo` will change the text `#42` into an HTML link to issue 42 in the `octo-org/octo-repo` repository.", ) -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(MarkdownPostBody) -__all__ = ( - "ActionsCacheUsageByRepository", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", -) +__all__ = ("MarkdownPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0854.py b/githubkit/versions/v2022_11_28/models/group_0854.py index 13be28c1b..a88d20422 100644 --- a/githubkit/versions/v2022_11_28/models/group_0854.py +++ b/githubkit/versions/v2022_11_28/models/group_0854.py @@ -9,20 +9,27 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0066 import ActionsHostedRunner +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersGetResponse200""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - total_count: int = Field() - runners: list[ActionsHostedRunner] = Field() + last_read_at: Missing[datetime] = Field( + default=UNSET, + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + ) + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." + ) -model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) +model_rebuild(NotificationsPutBody) -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) +__all__ = ("NotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0855.py b/githubkit/versions/v2022_11_28/models/group_0855.py index 1517fb1db..671e9e3a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0855.py +++ b/githubkit/versions/v2022_11_28/models/group_0855.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,50 +16,12 @@ from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBody""" - - name: str = Field( - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." - ) - image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( - description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." - ) - size: str = Field( - description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" - ) - runner_group_id: int = Field( - description="The existing runner group to add this runner to." - ) - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", - ) - enable_static_ip: Missing[bool] = Field( - default=UNSET, - description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", - ) - - -class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - id: Missing[str] = Field( - default=UNSET, description="The unique identifier of the runner image." - ) - source: Missing[Literal["github", "partner", "custom"]] = Field( - default=UNSET, description="The source of the runner image." - ) + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsHostedRunnersPostBody) -model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) +model_rebuild(NotificationsPutResponse202) -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBody", - "OrgsOrgActionsHostedRunnersPostBodyPropImage", -) +__all__ = ("NotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0856.py b/githubkit/versions/v2022_11_28/models/group_0856.py index e1b718072..0d1f3d378 100644 --- a/githubkit/versions/v2022_11_28/models/group_0856.py +++ b/githubkit/versions/v2022_11_28/models/group_0856.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0067 import ActionsHostedRunnerImage +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." + ) - total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) - -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0857.py b/githubkit/versions/v2022_11_28/models/group_0857.py index e57f3aacc..03057a804 100644 --- a/githubkit/versions/v2022_11_28/models/group_0857.py +++ b/githubkit/versions/v2022_11_28/models/group_0857.py @@ -12,17 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0067 import ActionsHostedRunnerImage +class OrganizationsOrgDependabotRepositoryAccessPatchBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessPatchBody -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ - total_count: int = Field() - images: list[ActionsHostedRunnerImage] = Field() + repository_ids_to_add: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to add." + ) + repository_ids_to_remove: Missing[list[int]] = Field( + default=UNSET, description="List of repository IDs to remove." + ) -model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessPatchBody) -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0858.py b/githubkit/versions/v2022_11_28/models/group_0858.py index 4991ce0ca..8e801b382 100644 --- a/githubkit/versions/v2022_11_28/models/group_0858.py +++ b/githubkit/versions/v2022_11_28/models/group_0858.py @@ -9,20 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0065 import ActionsHostedRunnerMachineSpec - -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody(GitHubModel): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" - total_count: int = Field() - machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() + default_level: Literal["public", "internal"] = Field( + description="The default repository access level for Dependabot updates." + ) -model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) +model_rebuild(OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody) -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0859.py b/githubkit/versions/v2022_11_28/models/group_0859.py index 1a2bc561d..ba21baf7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0859.py +++ b/githubkit/versions/v2022_11_28/models/group_0859.py @@ -9,18 +9,132 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" - total_count: int = Field() - platforms: list[str] = Field() + billing_email: Missing[str] = Field( + default=UNSET, + description="Billing email address. This address is not publicized.", + ) + company: Missing[str] = Field(default=UNSET, description="The company name.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address." + ) + twitter_username: Missing[str] = Field( + default=UNSET, description="The Twitter username of the company." + ) + location: Missing[str] = Field(default=UNSET, description="The location.") + name: Missing[str] = Field( + default=UNSET, description="The shorthand name of the company." + ) + description: Missing[str] = Field( + default=UNSET, + description="The description of the company. The maximum size is 160 characters.", + ) + has_organization_projects: Missing[bool] = Field( + default=UNSET, + description="Whether an organization can use organization projects.", + ) + has_repository_projects: Missing[bool] = Field( + default=UNSET, + description="Whether repositories that belong to the organization can use repository projects.", + ) + default_repository_permission: Missing[ + Literal["read", "write", "admin", "none"] + ] = Field( + default=UNSET, + description="Default permission level members have for organization repositories.", + ) + members_can_create_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", + ) + members_can_create_internal_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_private_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_can_create_public_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', + ) + members_allowed_repository_creation_type: Missing[ + Literal["all", "private", "none"] + ] = Field( + default=UNSET, + description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.", + ) + members_can_create_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_public_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_create_private_pages: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.", + ) + members_can_fork_private_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether organization members can fork private organization repositories.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface.", + ) + blog: Missing[str] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='**Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.\n\nWhether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", + ) + secret_scanning_push_protection_custom_link: Missing[str] = Field( + default=UNSET, + description="If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret.", + ) + deploy_keys_enabled_for_repositories: Missing[bool] = Field( + default=UNSET, + description="Controls whether or not deploy keys may be added and used for repositories in the organization.", + ) -model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) +__all__ = ("OrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0860.py b/githubkit/versions/v2022_11_28/models/group_0860.py index 281f91f96..83117a7e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0860.py +++ b/githubkit/versions/v2022_11_28/models/group_0860.py @@ -12,30 +12,36 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - name: Missing[str] = Field( - default=UNSET, - description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", - ) - runner_group_id: Missing[int] = Field( - default=UNSET, description="The existing runner group to add this runner to." + total_count: int = Field() + repository_cache_usages: list[ActionsCacheUsageByRepository] = Field() + + +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." ) - maximum_runners: Missing[int] = Field( - default=UNSET, - description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." ) - enable_static_ip: Missing[bool] = Field( - default=UNSET, - description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + active_caches_count: int = Field( + description="The number of active caches in the repository." ) -model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) +__all__ = ( + "ActionsCacheUsageByRepository", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0861.py b/githubkit/versions/v2022_11_28/models/group_0861.py index 5069b6316..10a3e9315 100644 --- a/githubkit/versions/v2022_11_28/models/group_0861.py +++ b/githubkit/versions/v2022_11_28/models/group_0861.py @@ -9,27 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0070 import ActionsHostedRunner -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class OrgsOrgActionsHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersGetResponse200""" - enabled_repositories: Literal["all", "none", "selected"] = Field( - description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + total_count: int = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(OrgsOrgActionsHostedRunnersGetResponse200) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0862.py b/githubkit/versions/v2022_11_28/models/group_0862.py index 422588e8f..1517fb1db 100644 --- a/githubkit/versions/v2022_11_28/models/group_0862.py +++ b/githubkit/versions/v2022_11_28/models/group_0862.py @@ -9,20 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsHostedRunnersPostBody(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBody""" + + name: str = Field( + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + image: OrgsOrgActionsHostedRunnersPostBodyPropImage = Field( + description="The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`." + ) + size: str = Field( + description="The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes`" + ) + runner_group_id: int = Field( + description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be created with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) -from .group_0020 import Repository +class OrgsOrgActionsHostedRunnersPostBodyPropImage(GitHubModel): + """OrgsOrgActionsHostedRunnersPostBodyPropImage -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ - total_count: float = Field() - repositories: list[Repository] = Field() + id: Missing[str] = Field( + default=UNSET, description="The unique identifier of the runner image." + ) + source: Missing[Literal["github", "partner", "custom"]] = Field( + default=UNSET, description="The source of the runner image." + ) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsHostedRunnersPostBody) +model_rebuild(OrgsOrgActionsHostedRunnersPostBodyPropImage) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBody", + "OrgsOrgActionsHostedRunnersPostBodyPropImage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0863.py b/githubkit/versions/v2022_11_28/models/group_0863.py index a77afe01a..22312cb1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0863.py +++ b/githubkit/versions/v2022_11_28/models/group_0863.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0071 import ActionsHostedRunnerImage -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs to enable for GitHub Actions." - ) +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0864.py b/githubkit/versions/v2022_11_28/models/group_0864.py index 269bdfc1b..eae8205bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0864.py +++ b/githubkit/versions/v2022_11_28/models/group_0864.py @@ -12,55 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0071 import ActionsHostedRunnerImage -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - total_count: float = Field() - runner_groups: list[RunnerGroupsOrg] = Field() +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + total_count: int = Field() + images: list[ActionsHostedRunnerImage] = Field() -class RunnerGroupsOrg(GitHubModel): - """RunnerGroupsOrg""" - id: float = Field() - name: str = Field() - visibility: str = Field() - default: bool = Field() - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", - ) - runners_url: str = Field() - hosted_runners_url: Missing[str] = Field(default=UNSET) - network_configuration_id: Missing[str] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - inherited: bool = Field() - inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) +model_rebuild(OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200) - -model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) - -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0865.py b/githubkit/versions/v2022_11_28/models/group_0865.py index 87ecde816..59c8dda22 100644 --- a/githubkit/versions/v2022_11_28/models/group_0865.py +++ b/githubkit/versions/v2022_11_28/models/group_0865.py @@ -9,48 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="List of repository IDs that can access the runner group.", - ) - runners: Missing[list[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - network_configuration_id: Missing[str] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) + +from .group_0069 import ActionsHostedRunnerMachineSpec + + +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" + + total_count: int = Field() + machine_specs: list[ActionsHostedRunnerMachineSpec] = Field() + + +model_rebuild(OrgsOrgActionsHostedRunnersMachineSizesGetResponse200) + +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0866.py b/githubkit/versions/v2022_11_28/models/group_0866.py index adc28b4f8..1a2bc561d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0866.py +++ b/githubkit/versions/v2022_11_28/models/group_0866.py @@ -9,41 +9,18 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[list[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - network_configuration_id: Missing[Union[str, None]] = Field( - default=UNSET, - description="The identifier of a hosted compute network configuration.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) + + +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200(GitHubModel): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" + + total_count: int = Field() + platforms: list[str] = Field() + + +model_rebuild(OrgsOrgActionsHostedRunnersPlatformsGetResponse200) + +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0867.py b/githubkit/versions/v2022_11_28/models/group_0867.py index 7148382eb..281f91f96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0867.py +++ b/githubkit/versions/v2022_11_28/models/group_0867.py @@ -12,17 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0066 import ActionsHostedRunner +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody(GitHubModel): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + name: Missing[str] = Field( + default=UNSET, + description="Name of the runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + runner_group_id: Missing[int] = Field( + default=UNSET, description="The existing runner group to add this runner to." + ) + maximum_runners: Missing[int] = Field( + default=UNSET, + description="The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost.", + ) + enable_static_ip: Missing[bool] = Field( + default=UNSET, + description="Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits`", + ) - total_count: float = Field() - runners: list[ActionsHostedRunner] = Field() +model_rebuild(OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0868.py b/githubkit/versions/v2022_11_28/models/group_0868.py index c6584c2b2..5069b6316 100644 --- a/githubkit/versions/v2022_11_28/models/group_0868.py +++ b/githubkit/versions/v2022_11_28/models/group_0868.py @@ -9,20 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0058 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" - total_count: float = Field() - repositories: list[MinimalRepository] = Field() + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0869.py b/githubkit/versions/v2022_11_28/models/group_0869.py index 9316f516b..422588e8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0869.py +++ b/githubkit/versions/v2022_11_28/models/group_0869.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0020 import Repository -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="List of repository IDs that can access the runner group." - ) +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float = Field() + repositories: list[Repository] = Field() -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0870.py b/githubkit/versions/v2022_11_28/models/group_0870.py index e424c26c7..a77afe01a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0870.py +++ b/githubkit/versions/v2022_11_28/models/group_0870.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0075 import Runner +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + selected_repository_ids: list[int] = Field( + description="List of repository IDs to enable for GitHub Actions." + ) - total_count: float = Field() - runners: list[Runner] = Field() +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0871.py b/githubkit/versions/v2022_11_28/models/group_0871.py index fdc59a741..269bdfc1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0871.py +++ b/githubkit/versions/v2022_11_28/models/group_0871.py @@ -12,16 +12,55 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - runners: list[int] = Field( - description="List of runner IDs to add to the runner group." + total_count: float = Field() + runner_groups: list[RunnerGroupsOrg] = Field() + + +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + ) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0872.py b/githubkit/versions/v2022_11_28/models/group_0872.py index 5def03129..87ecde816 100644 --- a/githubkit/versions/v2022_11_28/models/group_0872.py +++ b/githubkit/versions/v2022_11_28/models/group_0872.py @@ -9,20 +9,48 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0075 import Runner - - -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" - - total_count: int = Field() - runners: list[Runner] = Field() - - -model_rebuild(OrgsOrgActionsRunnersGetResponse200) - -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" + + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="List of repository IDs that can access the runner group.", + ) + runners: Missing[list[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + ) + network_configuration_id: Missing[str] = Field( + default=UNSET, + description="The identifier of a hosted compute network configuration.", + ) + + +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) + +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0873.py b/githubkit/versions/v2022_11_28/models/group_0873.py index f7baba749..adc28b4f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0873.py +++ b/githubkit/versions/v2022_11_28/models/group_0873.py @@ -9,31 +9,41 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories.", + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[list[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) - work_folder: Missing[str] = Field( + network_configuration_id: Missing[Union[str, None]] = Field( default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + description="The identifier of a hosted compute network configuration.", ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0874.py b/githubkit/versions/v2022_11_28/models/group_0874.py index fae21cd56..716d872df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0874.py +++ b/githubkit/versions/v2022_11_28/models/group_0874.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0075 import Runner +from .group_0070 import ActionsHostedRunner -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" - ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." - ) + total_count: float = Field() + runners: list[ActionsHostedRunner] = Field() -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0875.py b/githubkit/versions/v2022_11_28/models/group_0875.py index 8c0d76e37..faccf3374 100644 --- a/githubkit/versions/v2022_11_28/models/group_0875.py +++ b/githubkit/versions/v2022_11_28/models/group_0875.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0074 import RunnerLabel +from .group_0061 import MinimalRepository -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" - total_count: int = Field() - labels: list[RunnerLabel] = Field() + total_count: float = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0876.py b/githubkit/versions/v2022_11_28/models/group_0876.py index ad2f375a8..9316f516b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0876.py +++ b/githubkit/versions/v2022_11_28/models/group_0876.py @@ -11,18 +11,17 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + selected_repository_ids: list[int] = Field( + description="List of repository IDs that can access the runner group." ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0877.py b/githubkit/versions/v2022_11_28/models/group_0877.py index f5caa1c57..5a253b1b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0877.py +++ b/githubkit/versions/v2022_11_28/models/group_0877.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0079 import Runner -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0878.py b/githubkit/versions/v2022_11_28/models/group_0878.py index bf264c140..fdc59a741 100644 --- a/githubkit/versions/v2022_11_28/models/group_0878.py +++ b/githubkit/versions/v2022_11_28/models/group_0878.py @@ -13,16 +13,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0074 import RunnerLabel +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + runners: list[int] = Field( + description="List of runner IDs to add to the runner group." + ) - total_count: int = Field() - labels: list[RunnerLabel] = Field() +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) - -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0879.py b/githubkit/versions/v2022_11_28/models/group_0879.py index 80c1e6af7..52cf14c4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0879.py +++ b/githubkit/versions/v2022_11_28/models/group_0879.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[OrganizationActionsSecret] = Field() +from .group_0079 import Runner -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization - Secrets for GitHub Actions for an organization. - """ +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) -__all__ = ( - "OrganizationActionsSecret", - "OrgsOrgActionsSecretsGetResponse200", -) +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0880.py b/githubkit/versions/v2022_11_28/models/group_0880.py index 041a38bd4..f7baba749 100644 --- a/githubkit/versions/v2022_11_28/models/group_0880.py +++ b/githubkit/versions/v2022_11_28/models/group_0880.py @@ -9,32 +9,31 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - selected_repository_ids: Missing[list[int]] = Field( + work_folder: Missing[str] = Field( default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0881.py b/githubkit/versions/v2022_11_28/models/group_0881.py index bc13d7093..f942c1cf4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0881.py +++ b/githubkit/versions/v2022_11_28/models/group_0881.py @@ -13,16 +13,20 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import MinimalRepository +from .group_0079 import Runner -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" + ) + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." + ) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0882.py b/githubkit/versions/v2022_11_28/models/group_0882.py index a609a0c6d..05e9df822 100644 --- a/githubkit/versions/v2022_11_28/models/group_0882.py +++ b/githubkit/versions/v2022_11_28/models/group_0882.py @@ -13,15 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import RunnerLabel -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0883.py b/githubkit/versions/v2022_11_28/models/group_0883.py index 77241a9f2..ad2f375a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0883.py +++ b/githubkit/versions/v2022_11_28/models/group_0883.py @@ -9,47 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" - - total_count: int = Field() - variables: list[OrganizationActionsVariable] = Field() +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - Organization variable for GitHub Actions. - """ - - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a variable" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -__all__ = ( - "OrganizationActionsVariable", - "OrgsOrgActionsVariablesGetResponse200", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0884.py b/githubkit/versions/v2022_11_28/models/group_0884.py index 42955f682..f5caa1c57 100644 --- a/githubkit/versions/v2022_11_28/models/group_0884.py +++ b/githubkit/versions/v2022_11_28/models/group_0884.py @@ -9,29 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0885.py b/githubkit/versions/v2022_11_28/models/group_0885.py index f229885c2..7f69acfff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0885.py +++ b/githubkit/versions/v2022_11_28/models/group_0885.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0078 import RunnerLabel -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) + total_count: int = Field() + labels: list[RunnerLabel] = Field() -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0886.py b/githubkit/versions/v2022_11_28/models/group_0886.py index 1463cea7e..80c1e6af7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0886.py +++ b/githubkit/versions/v2022_11_28/models/group_0886.py @@ -9,20 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0058 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" total_count: int = Field() - repositories: list[MinimalRepository] = Field() + secrets: list[OrganizationActionsSecret] = Field() + + +class OrganizationActionsSecret(GitHubModel): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" + ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ( + "OrganizationActionsSecret", + "OrgsOrgActionsSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0887.py b/githubkit/versions/v2022_11_28/models/group_0887.py index 4c5d80233..041a38bd4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0887.py +++ b/githubkit/versions/v2022_11_28/models/group_0887.py @@ -9,19 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" - selected_repository_ids: list[int] = Field( - description="The IDs of the repositories that can access the organization variable." + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/actions/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0888.py b/githubkit/versions/v2022_11_28/models/group_0888.py index 6f5195042..f0d03db0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0888.py +++ b/githubkit/versions/v2022_11_28/models/group_0888.py @@ -11,84 +11,18 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild +from .group_0061 import MinimalRepository -class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestations: Missing[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", - ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pVerificationMaterial - """ - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro - pDsseEnvelope - """ - - -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) -model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) - -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0889.py b/githubkit/versions/v2022_11_28/models/group_0889.py index 9d7a74b47..a609a0c6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0889.py +++ b/githubkit/versions/v2022_11_28/models/group_0889.py @@ -9,66 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgCampaignsPostBody(GitHubModel): - """OrgsOrgCampaignsPostBody""" - - name: str = Field( - min_length=1, max_length=50, description="The name of the campaign" - ) - description: str = Field( - min_length=1, max_length=255, description="A description for the campaign" - ) - managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", - ) - team_managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The slugs of the teams to set as the campaign managers.", - ) - ends_at: datetime = Field( - description="The end date and time of the campaign. The date must be in the future." - ) - contact_link: Missing[Union[str, None]] = Field( - default=UNSET, description="The contact link of the campaign. Must be a URI." - ) - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( - Field( - min_length=1 if PYDANTIC_V2 else None, - description="The code scanning alerts to include in this campaign", - ) - ) - generate_issues: Missing[bool] = Field( - default=UNSET, - description="If true, will automatically generate issues for the campaign. The default is false.", - ) +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - repository_id: int = Field(description="The repository id") - alert_numbers: list[int] = Field( - min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgCampaignsPostBody) -model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "OrgsOrgCampaignsPostBody", - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0890.py b/githubkit/versions/v2022_11_28/models/group_0890.py index 8be946ada..77241a9f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0890.py +++ b/githubkit/versions/v2022_11_28/models/group_0890.py @@ -10,54 +10,46 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): - """OrgsOrgCampaignsCampaignNumberPatchBody""" +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" - name: Missing[str] = Field( - min_length=1, - max_length=50, - default=UNSET, - description="The name of the campaign", - ) - description: Missing[str] = Field( - min_length=1, - max_length=255, - default=UNSET, - description="A description for the campaign", - ) - managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", - ) - team_managers: Missing[list[str]] = Field( - max_length=10 if PYDANTIC_V2 else None, - default=UNSET, - description="The slugs of the teams to set as the campaign managers.", - ) - ends_at: Missing[datetime] = Field( - default=UNSET, - description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + total_count: int = Field() + variables: list[OrganizationActionsVariable] = Field() + + +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization + + Organization variable for GitHub Actions. + """ + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - contact_link: Missing[Union[str, None]] = Field( - default=UNSET, description="The contact link of the campaign. Must be a URI." + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - title="Campaign state", - description="Indicates whether a campaign is open or closed", + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a variable" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCampaignsCampaignNumberPatchBody) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) +__all__ = ( + "OrganizationActionsVariable", + "OrgsOrgActionsVariablesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0891.py b/githubkit/versions/v2022_11_28/models/group_0891.py index d06959346..42955f682 100644 --- a/githubkit/versions/v2022_11_28/models/group_0891.py +++ b/githubkit/versions/v2022_11_28/models/group_0891.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,182 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0029 import CodeScanningDefaultSetupOptions +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" -class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsPostBody""" - - name: str = Field( - description="The name of the code security configuration. Must be unique within the organization." - ) - description: str = Field( - max_length=255, description="A description of the code security configuration" - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The enablement status of secret scanning non provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBody", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0892.py b/githubkit/versions/v2022_11_28/models/group_0892.py index 4bcc6720d..f229885c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0892.py +++ b/githubkit/versions/v2022_11_28/models/group_0892.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,21 @@ from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", + ) selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="An array of repository IDs to detach from configurations.", + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0893.py b/githubkit/versions/v2022_11_28/models/group_0893.py index 829dfbaca..6d081f04c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0893.py +++ b/githubkit/versions/v2022_11_28/models/group_0893.py @@ -9,193 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_0029 import CodeScanningDefaultSetupOptions - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - - name: Missing[str] = Field( - default=UNSET, - description="The name of the code security configuration. Must be unique within the organization.", - ) - description: Missing[str] = Field( - max_length=255, - default=UNSET, - description="A description of the code security configuration", - ) - advanced_security: Missing[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] = Field( - default=UNSET, - description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", - ) - dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependency Graph" - ) - dependency_graph_autosubmit_action: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of Automatic dependency submission", - ) - dependency_graph_autosubmit_action_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions - ] = Field( - default=UNSET, description="Feature options for Automatic dependency submission" - ) - dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of Dependabot alerts" - ) - dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of Dependabot security updates", - ) - ) - code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( - Field( - default=UNSET, - description="The enablement status of code scanning default setup", - ) - ) - code_scanning_default_setup_options: Missing[ - Union[CodeScanningDefaultSetupOptions, None] - ] = Field( - default=UNSET, description="Feature options for code scanning default setup" - ) - code_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of code scanning delegated alert dismissal", - ) - secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( - default=UNSET, description="The enablement status of secret scanning" - ) - secret_scanning_push_protection: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning push protection", - ) - secret_scanning_delegated_bypass: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated bypass", - ) - secret_scanning_delegated_bypass_options: Missing[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions - ] = Field( - default=UNSET, - description="Feature options for secret scanning delegated bypass", - ) - secret_scanning_validity_checks: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning validity checks", - ) - secret_scanning_non_provider_patterns: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning non-provider patterns", - ) - secret_scanning_generic_secrets: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, description="The enablement status of Copilot secret scanning" - ) - secret_scanning_delegated_alert_dismissal: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of secret scanning delegated alert dismissal", - ) - private_vulnerability_reporting: Missing[ - Literal["enabled", "disabled", "not_set"] - ] = Field( - default=UNSET, - description="The enablement status of private vulnerability reporting", - ) - enforcement: Missing[Literal["enforced", "unenforced"]] = Field( - default=UNSET, description="The enforcement status for a security configuration" - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: Missing[bool] = Field( - default=UNSET, - description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", - ) - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - reviewers: Missing[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems - ] - ] = Field( - default=UNSET, - description="The bypass reviewers for secret scanning delegated bypass", - ) +from .group_0061 import MinimalRepository -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( - GitHubModel -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - reviewer_id: int = Field( - description="The ID of the team or role selected as a bypass reviewer" - ) - reviewer_type: Literal["TEAM", "ROLE"] = Field( - description="The type of the bypass reviewer" - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions -) -model_rebuild( - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems -) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", -) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0894.py b/githubkit/versions/v2022_11_28/models/group_0894.py index 3e150ccc7..4c5d80233 100644 --- a/githubkit/versions/v2022_11_28/models/group_0894.py +++ b/githubkit/versions/v2022_11_28/models/group_0894.py @@ -9,29 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] = Field( - description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.", + selected_repository_ids: list[int] = Field( + description="The IDs of the repositories that can access the organization variable." ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0895.py b/githubkit/versions/v2022_11_28/models/group_0895.py index b47755cb5..c7f4b426e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0895.py +++ b/githubkit/versions/v2022_11_28/models/group_0895.py @@ -9,26 +9,27 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgAttestationsBulkListPostBody(GitHubModel): + """OrgsOrgAttestationsBulkListPostBody""" - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests to fetch attestations for.", + ) + predicate_type: Missing[str] = Field( default=UNSET, - description="Specify which types of repository this security configuration should be applied to by default.", + description="Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.", ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) +model_rebuild(OrgsOrgAttestationsBulkListPostBody) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) +__all__ = ("OrgsOrgAttestationsBulkListPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0896.py b/githubkit/versions/v2022_11_28/models/group_0896.py index caea12459..33ac34ff1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0896.py +++ b/githubkit/versions/v2022_11_28/models/group_0896.py @@ -9,33 +9,59 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0028 import CodeSecurityConfiguration +class OrgsOrgAttestationsBulkListPostResponse200(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200""" + + attestations_subject_digests: Missing[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + ] = Field(default=UNSET, description="Mapping of subject digest to bundles.") + page_info: Missing[OrgsOrgAttestationsBulkListPostResponse200PropPageInfo] = Field( + default=UNSET, description="Information about the current page." + ) -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( - GitHubModel + +class OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests( + ExtraGitHubModel ): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + """OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + + Mapping of subject digest to bundles. + """ - default_for_new_repos: Missing[ - Literal["all", "none", "private_and_internal", "public"] - ] = Field( - default=UNSET, - description="Specifies which types of repository this security configuration is applied to by default.", + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfo(GitHubModel): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a next page." + ) + has_previous: Missing[bool] = Field( + default=UNSET, description="Indicates whether there is a previous page." + ) + next_: Missing[str] = Field( + default=UNSET, alias="next", description="The cursor to the next page." ) - configuration: Missing[CodeSecurityConfiguration] = Field( - default=UNSET, description="A code security configuration" + previous: Missing[str] = Field( + default=UNSET, description="The cursor to the previous page." ) -model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests) +model_rebuild(OrgsOrgAttestationsBulkListPostResponse200PropPageInfo) -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) +__all__ = ( + "OrgsOrgAttestationsBulkListPostResponse200", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0897.py b/githubkit/versions/v2022_11_28/models/group_0897.py index 4c03dd110..6f5195042 100644 --- a/githubkit/versions/v2022_11_28/models/group_0897.py +++ b/githubkit/versions/v2022_11_28/models/group_0897.py @@ -11,18 +11,84 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0087 import Codespace +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" + attestations: Missing[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) - total_count: int = Field() - codespaces: list[Codespace] = Field() +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" -model_rebuild(OrgsOrgCodespacesGetResponse200) + bundle: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) -__all__ = ("OrgsOrgCodespacesGetResponse200",) + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pVerificationMaterial + """ + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pDsseEnvelope + """ + + +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) + +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0898.py b/githubkit/versions/v2022_11_28/models/group_0898.py index ed7cad665..9d7a74b47 100644 --- a/githubkit/versions/v2022_11_28/models/group_0898.py +++ b/githubkit/versions/v2022_11_28/models/group_0898.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from pydantic import Field @@ -18,24 +19,56 @@ from githubkit.utils import UNSET -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgCampaignsPostBody(GitHubModel): + """OrgsOrgCampaignsPostBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." + name: str = Field( + min_length=1, max_length=50, description="The name of the campaign" ) - selected_usernames: Missing[list[str]] = Field( - max_length=100 if PYDANTIC_V2 else None, + description: str = Field( + min_length=1, max_length=255, description="A description for the campaign" + ) + managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + ) + team_managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the teams to set as the campaign managers.", + ) + ends_at: datetime = Field( + description="The end date and time of the campaign. The date must be in the future." + ) + contact_link: Missing[Union[str, None]] = Field( + default=UNSET, description="The contact link of the campaign. Must be a URI." + ) + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems] = ( + Field( + min_length=1 if PYDANTIC_V2 else None, + description="The code scanning alerts to include in this campaign", + ) + ) + generate_issues: Missing[bool] = Field( default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + description="If true, will automatically generate issues for the campaign. The default is false.", + ) + + +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems(GitHubModel): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" + + repository_id: int = Field(description="The repository id") + alert_numbers: list[int] = Field( + min_length=1 if PYDANTIC_V2 else None, description="The alert numbers" ) -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgCampaignsPostBody) +model_rebuild(OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ( + "OrgsOrgCampaignsPostBody", + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0899.py b/githubkit/versions/v2022_11_28/models/group_0899.py index 7ae93c749..8be946ada 100644 --- a/githubkit/versions/v2022_11_28/models/group_0899.py +++ b/githubkit/versions/v2022_11_28/models/group_0899.py @@ -9,20 +9,55 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCampaignsCampaignNumberPatchBody(GitHubModel): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces be billed to the organization.", + name: Missing[str] = Field( + min_length=1, + max_length=50, + default=UNSET, + description="The name of the campaign", + ) + description: Missing[str] = Field( + min_length=1, + max_length=255, + default=UNSET, + description="A description for the campaign", + ) + managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The logins of the users to set as the campaign managers. At this time, only a single manager can be supplied.", + ) + team_managers: Missing[list[str]] = Field( + max_length=10 if PYDANTIC_V2 else None, + default=UNSET, + description="The slugs of the teams to set as the campaign managers.", + ) + ends_at: Missing[datetime] = Field( + default=UNSET, + description="The end date and time of the campaign, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + contact_link: Missing[Union[str, None]] = Field( + default=UNSET, description="The contact link of the campaign. Must be a URI." + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + title="Campaign state", + description="Indicates whether a campaign is open or closed", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgCampaignsCampaignNumberPatchBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0900.py b/githubkit/versions/v2022_11_28/models/group_0900.py index 0c752f566..d06959346 100644 --- a/githubkit/versions/v2022_11_28/models/group_0900.py +++ b/githubkit/versions/v2022_11_28/models/group_0900.py @@ -9,20 +9,190 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0029 import CodeScanningDefaultSetupOptions -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" - selected_usernames: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0901.py b/githubkit/versions/v2022_11_28/models/group_0901.py index 58a07d080..4bcc6720d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0901.py +++ b/githubkit/versions/v2022_11_28/models/group_0901.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -19,39 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[CodespacesOrgSecret] = Field() - - -class CodespacesOrgSecret(GitHubModel): - """Codespaces Secret +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - Secrets for a GitHub Codespace. - """ - - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" - ) - selected_repositories_url: Missing[str] = Field( + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The API URL at which the list of repositories this secret is visible to can be retrieved", + description="An array of repository IDs to detach from configurations.", ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgCodeSecurityConfigurationsDetachDeleteBody) -__all__ = ( - "CodespacesOrgSecret", - "OrgsOrgCodespacesSecretsGetResponse200", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0902.py b/githubkit/versions/v2022_11_28/models/group_0902.py index 304fc911f..829dfbaca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0902.py +++ b/githubkit/versions/v2022_11_28/models/group_0902.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -17,27 +17,185 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0029 import CodeScanningDefaultSetupOptions -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] = Field( + default=UNSET, + description="The enablement status of GitHub Advanced Security features. `enabled` will enable both Code Security and Secret Protection features.", + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependency_graph_autosubmit_action: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + description="The enablement status of Automatic dependency submission", + ) + dependency_graph_autosubmit_action_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions + ] = Field( + default=UNSET, description="Feature options for Automatic dependency submission" ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) ) - selected_repository_ids: Missing[list[int]] = Field( + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + code_scanning_default_setup_options: Missing[ + Union[CodeScanningDefaultSetupOptions, None] + ] = Field( + default=UNSET, description="Feature options for code scanning default setup" + ) + code_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="The enablement status of code scanning delegated alert dismissal", + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_delegated_bypass: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated bypass", + ) + secret_scanning_delegated_bypass_options: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions + ] = Field( + default=UNSET, + description="Feature options for secret scanning delegated bypass", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + secret_scanning_non_provider_patterns: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning non-provider patterns", + ) + secret_scanning_generic_secrets: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, description="The enablement status of Copilot secret scanning" + ) + secret_scanning_delegated_alert_dismissal: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning delegated alert dismissal", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + enforcement: Missing[Literal["enforced", "unenforced"]] = Field( + default=UNSET, description="The enforcement status for a security configuration" + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: Missing[bool] = Field( + default=UNSET, + description="Whether to use runners labeled with 'dependency-submission' or standard GitHub runners.", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: Missing[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems + ] + ] = Field( + default=UNSET, + description="The bypass reviewers for secret scanning delegated bypass", + ) + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int = Field( + description="The ID of the team or role selected as a bypass reviewer" + ) + reviewer_type: Literal["TEAM", "ROLE"] = Field( + description="The type of the bypass reviewer" ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions +) +model_rebuild( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems +) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptions", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0903.py b/githubkit/versions/v2022_11_28/models/group_0903.py index ae89adfee..3e150ccc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0903.py +++ b/githubkit/versions/v2022_11_28/models/group_0903.py @@ -9,20 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0058 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] = Field( + description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs to attach the configuration to. You can only provide a list of repository ids when the `scope` is set to `selected`.", + ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0904.py b/githubkit/versions/v2022_11_28/models/group_0904.py index 2d9b67bf9..b47755cb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0904.py +++ b/githubkit/versions/v2022_11_28/models/group_0904.py @@ -9,19 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0905.py b/githubkit/versions/v2022_11_28/models/group_0905.py index f9277a829..caea12459 100644 --- a/githubkit/versions/v2022_11_28/models/group_0905.py +++ b/githubkit/versions/v2022_11_28/models/group_0905.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0028 import CodeSecurityConfiguration -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="List of team names within the organization to which to grant access to GitHub Copilot.", + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specifies which types of repository this security configuration is applied to by default.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0906.py b/githubkit/versions/v2022_11_28/models/group_0906.py index 225617267..a47dda17d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0906.py +++ b/githubkit/versions/v2022_11_28/models/group_0906.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0091 import Codespace -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - The total number of seats created for members of the specified team(s). - """ +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" - seats_created: int = Field() + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(OrgsOrgCodespacesGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0907.py b/githubkit/versions/v2022_11_28/models/group_0907.py index 8f14a6e14..ed7cad665 100644 --- a/githubkit/versions/v2022_11_28/models/group_0907.py +++ b/githubkit/versions/v2022_11_28/models/group_0907.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" - selected_teams: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The names of teams from which to revoke access to GitHub Copilot.", + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] = Field( + description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." + ) + selected_usernames: Missing[list[str]] = Field( + max_length=100 if PYDANTIC_V2 else None, + default=UNSET, + description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0908.py b/githubkit/versions/v2022_11_28/models/group_0908.py index 137e9507f..7ae93c749 100644 --- a/githubkit/versions/v2022_11_28/models/group_0908.py +++ b/githubkit/versions/v2022_11_28/models/group_0908.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_usernames: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces be billed to the organization.", + ) - seats_cancelled: int = Field() +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0909.py b/githubkit/versions/v2022_11_28/models/group_0909.py index 6a10dd79f..0c752f566 100644 --- a/githubkit/versions/v2022_11_28/models/group_0909.py +++ b/githubkit/versions/v2022_11_28/models/group_0909.py @@ -14,15 +14,15 @@ from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members to be granted access to GitHub Copilot.", + max_length=100 if PYDANTIC_V2 else None, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0910.py b/githubkit/versions/v2022_11_28/models/group_0910.py index 83f481941..58a07d080 100644 --- a/githubkit/versions/v2022_11_28/models/group_0910.py +++ b/githubkit/versions/v2022_11_28/models/group_0910.py @@ -9,20 +9,49 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" - The total number of seats created for the specified user(s). - """ + total_count: int = Field() + secrets: list[CodespacesOrgSecret] = Field() - seats_created: int = Field() +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + Secrets for a GitHub Codespace. + """ -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL at which the list of repositories this secret is visible to can be retrieved", + ) + + +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) + +__all__ = ( + "CodespacesOrgSecret", + "OrgsOrgCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0911.py b/githubkit/versions/v2022_11_28/models/group_0911.py index 270057c2e..304fc911f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0911.py +++ b/githubkit/versions/v2022_11_28/models/group_0911.py @@ -9,20 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - selected_usernames: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0912.py b/githubkit/versions/v2022_11_28/models/group_0912.py index ac7addbd5..0137b7744 100644 --- a/githubkit/versions/v2022_11_28/models/group_0912.py +++ b/githubkit/versions/v2022_11_28/models/group_0912.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0061 import MinimalRepository -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - seats_cancelled: int = Field() + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0913.py b/githubkit/versions/v2022_11_28/models/group_0913.py index a96d49f72..2d9b67bf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0913.py +++ b/githubkit/versions/v2022_11_28/models/group_0913.py @@ -9,42 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[OrganizationDependabotSecret] = Field() - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization - Secrets for GitHub Dependabot for an organization. - """ +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "OrganizationDependabotSecret", - "OrgsOrgDependabotSecretsGetResponse200", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0914.py b/githubkit/versions/v2022_11_28/models/group_0914.py index b5104167e..f9277a829 100644 --- a/githubkit/versions/v2022_11_28/models/group_0914.py +++ b/githubkit/versions/v2022_11_28/models/group_0914.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[list[str]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + selected_teams: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0915.py b/githubkit/versions/v2022_11_28/models/group_0915.py index 61dc74858..225617267 100644 --- a/githubkit/versions/v2022_11_28/models/group_0915.py +++ b/githubkit/versions/v2022_11_28/models/group_0915.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0058 import MinimalRepository +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + The total number of seats created for members of the specified team(s). + """ - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + seats_created: int = Field() -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0916.py b/githubkit/versions/v2022_11_28/models/group_0916.py index 15b212958..8f14a6e14 100644 --- a/githubkit/versions/v2022_11_28/models/group_0916.py +++ b/githubkit/versions/v2022_11_28/models/group_0916.py @@ -11,17 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + selected_teams: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The names of teams from which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0917.py b/githubkit/versions/v2022_11_28/models/group_0917.py index aeb2eb590..137e9507f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0917.py +++ b/githubkit/versions/v2022_11_28/models/group_0917.py @@ -9,56 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" - - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." - ) - events: Missing[list[str]] = Field( - default=UNSET, - description='Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) -class OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - Key/value pairs to provide settings for this webhook. + The total number of seats set to "pending cancellation" for members of the + specified team(s). """ - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0918.py b/githubkit/versions/v2022_11_28/models/group_0918.py index 8f5b0def4..6a10dd79f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0918.py +++ b/githubkit/versions/v2022_11_28/models/group_0918.py @@ -9,55 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - name: Missing[str] = Field(default=UNSET) +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members to be granted access to GitHub Copilot.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0919.py b/githubkit/versions/v2022_11_28/models/group_0919.py index 223789ed3..83f481941 100644 --- a/githubkit/versions/v2022_11_28/models/group_0919.py +++ b/githubkit/versions/v2022_11_28/models/group_0919.py @@ -9,32 +9,20 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seats created for the specified user(s). + """ - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + seats_created: int = Field() -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0920.py b/githubkit/versions/v2022_11_28/models/group_0920.py index cd6df6a66..270057c2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0920.py +++ b/githubkit/versions/v2022_11_28/models/group_0920.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0018 import Installation +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + selected_usernames: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + ) - total_count: int = Field() - installations: list[Installation] = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -model_rebuild(OrgsOrgInstallationsGetResponse200) - -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0921.py b/githubkit/versions/v2022_11_28/models/group_0921.py index 17fac965f..ac7addbd5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0921.py +++ b/githubkit/versions/v2022_11_28/models/group_0921.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + + The total number of seats set to "pending cancellation" for the specified users. + """ + + seats_cancelled: int = Field() -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0922.py b/githubkit/versions/v2022_11_28/models/group_0922.py index 163abb03c..a96d49f72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0922.py +++ b/githubkit/versions/v2022_11_28/models/group_0922.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,29 +19,32 @@ from githubkit.utils import UNSET -class OrgsOrgInvitationsPostBody(GitHubModel): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" - invitee_id: Missing[int] = Field( - default=UNSET, - description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", - ) - email: Missing[str] = Field( - default=UNSET, - description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", - ) - role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( - Field( - default=UNSET, - description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", - ) - ) - team_ids: Missing[list[int]] = Field( - default=UNSET, - description="Specify IDs for the teams you want to invite new members to.", + total_count: int = Field() + secrets: list[OrganizationDependabotSecret] = Field() + + +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgInvitationsPostBody) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ( + "OrganizationDependabotSecret", + "OrgsOrgDependabotSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0923.py b/githubkit/versions/v2022_11_28/models/group_0923.py index 2ab5db9bf..b5104167e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0923.py +++ b/githubkit/versions/v2022_11_28/models/group_0923.py @@ -9,20 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0087 import Codespace +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/dependabot/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[list[str]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + ) -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0924.py b/githubkit/versions/v2022_11_28/models/group_0924.py index 7da7af9d3..db89df00e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0924.py +++ b/githubkit/versions/v2022_11_28/models/group_0924.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET + +from .group_0061 import MinimalRepository -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" - role: Missing[Literal["admin", "member"]] = Field( - default=UNSET, - description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", - ) + total_count: int = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0925.py b/githubkit/versions/v2022_11_28/models/group_0925.py index 68c6b8f27..15b212958 100644 --- a/githubkit/versions/v2022_11_28/models/group_0925.py +++ b/githubkit/versions/v2022_11_28/models/group_0925.py @@ -9,55 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - repositories: list[str] = Field( - description="A list of arrays indicating which repositories should be migrated." - ) - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, - description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", + selected_repository_ids: list[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgMigrationsPostBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgMigrationsPostBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0926.py b/githubkit/versions/v2022_11_28/models/group_0926.py index 93499063e..aeb2eb590 100644 --- a/githubkit/versions/v2022_11_28/models/group_0926.py +++ b/githubkit/versions/v2022_11_28/models/group_0926.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,16 +18,47 @@ from githubkit.utils import UNSET -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" + + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." + ) + events: Missing[list[str]] = Field( + default=UNSET, + description='Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig - async_: Missing[bool] = Field( + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( default=UNSET, - alias="async", - description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + username: Missing[str] = Field(default=UNSET) + password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0927.py b/githubkit/versions/v2022_11_28/models/group_0927.py index dc2469b07..8f5b0def4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0927.py +++ b/githubkit/versions/v2022_11_28/models/group_0927.py @@ -9,13 +9,55 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - - -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +from typing import Union +from pydantic import Field -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) - -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" + + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + name: Missing[str] = Field(default=UNSET) + + +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + + +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) + +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0928.py b/githubkit/versions/v2022_11_28/models/group_0928.py index 523846f85..223789ed3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0928.py +++ b/githubkit/versions/v2022_11_28/models/group_0928.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,23 @@ from githubkit.utils import UNSET -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0929.py b/githubkit/versions/v2022_11_28/models/group_0929.py index 8f8247056..cd6df6a66 100644 --- a/githubkit/versions/v2022_11_28/models/group_0929.py +++ b/githubkit/versions/v2022_11_28/models/group_0929.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0018 import Installation -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" - pat_request_ids: Missing[list[int]] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", - ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the requests." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the requests. Max 1024 characters.", - ) + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgInstallationsGetResponse200) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0930.py b/githubkit/versions/v2022_11_28/models/group_0930.py index af6277ed1..17fac965f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0930.py +++ b/githubkit/versions/v2022_11_28/models/group_0930.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Annotated, Literal, Union - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", - ) +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0931.py b/githubkit/versions/v2022_11_28/models/group_0931.py index 2677c34ff..163abb03c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0931.py +++ b/githubkit/versions/v2022_11_28/models/group_0931.py @@ -13,22 +13,34 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgInvitationsPostBody(GitHubModel): + """OrgsOrgInvitationsPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + invitee_id: Missing[int] = Field( + default=UNSET, + description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", ) - pat_ids: list[int] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The IDs of the fine-grained personal access tokens.", + email: Missing[str] = Field( + default=UNSET, + description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", + ) + role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( + Field( + default=UNSET, + description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", + ) + ) + team_ids: Missing[list[int]] = Field( + default=UNSET, + description="Specify IDs for the teams you want to invite new members to.", ) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgInvitationsPostBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgInvitationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0932.py b/githubkit/versions/v2022_11_28/models/group_0932.py index 53f6146e3..39f9e92ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0932.py +++ b/githubkit/versions/v2022_11_28/models/group_0932.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0091 import Codespace + -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." - ) + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0933.py b/githubkit/versions/v2022_11_28/models/group_0933.py index fd70d18f0..7da7af9d3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0933.py +++ b/githubkit/versions/v2022_11_28/models/group_0933.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -19,36 +18,15 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesGetResponse200""" +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" - total_count: int = Field() - configurations: list[OrgPrivateRegistryConfiguration] = Field() - - -class OrgPrivateRegistryConfiguration(GitHubModel): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str = Field(description="The name of the private registry configuration.") - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( + role: Missing[Literal["admin", "member"]] = Field( default=UNSET, - description="The username to use when authenticating with the private registry.", - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry." + description="The role to give the user in the organization. Can be one of: \n * `admin` - The user will become an owner of the organization. \n * `member` - The user will become a non-owner member of the organization.", ) - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) -model_rebuild(OrgPrivateRegistryConfiguration) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ( - "OrgPrivateRegistryConfiguration", - "OrgsOrgPrivateRegistriesGetResponse200", -) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0934.py b/githubkit/versions/v2022_11_28/models/group_0934.py index 670302d2c..68c6b8f27 100644 --- a/githubkit/versions/v2022_11_28/models/group_0934.py +++ b/githubkit/versions/v2022_11_28/models/group_0934.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,28 +18,46 @@ from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesPostBody(GitHubModel): - """OrgsOrgPrivateRegistriesPostBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - registry_type: Literal["maven_repository"] = Field(description="The registry type.") - username: Missing[Union[str, None]] = Field( + repositories: list[str] = Field( + description="A list of arrays indicating which repositories should be migrated." + ) + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + ) + exclude_metadata: Missing[bool] = Field( default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", ) - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, + description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", ) - key_id: str = Field(description="The ID of the key you used to encrypt the secret.") - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + exclude_releases: Missing[bool] = Field( + default=UNSET, + description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", ) - selected_repository_ids: Missing[list[int]] = Field( + exclude: Missing[list[Literal["repositories"]]] = Field( default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", + description="Exclude related items from being returned in the response in order to improve performance of the request.", ) -model_rebuild(OrgsOrgPrivateRegistriesPostBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgPrivateRegistriesPostBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0935.py b/githubkit/versions/v2022_11_28/models/group_0935.py index a51c170a5..93499063e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0935.py +++ b/githubkit/versions/v2022_11_28/models/group_0935.py @@ -12,15 +12,20 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + async_: Missing[bool] = Field( + default=UNSET, + alias="async", + description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", + ) -model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0936.py b/githubkit/versions/v2022_11_28/models/group_0936.py index 1f55e5a60..dc2469b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0936.py +++ b/githubkit/versions/v2022_11_28/models/group_0936.py @@ -9,43 +9,13 @@ from __future__ import annotations -from typing import Literal, Union +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - - registry_type: Missing[Literal["maven_repository"]] = Field( - default=UNSET, description="The registry type." - ) - username: Missing[Union[str, None]] = Field( - default=UNSET, - description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", - ) - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." - ) - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", - ) - selected_repository_ids: Missing[list[int]] = Field( - default=UNSET, - description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", - ) - - -model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) - -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" + + +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) + +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0937.py b/githubkit/versions/v2022_11_28/models/group_0937.py index ed09aabdb..523846f85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0937.py +++ b/githubkit/versions/v2022_11_28/models/group_0937.py @@ -16,15 +16,13 @@ from githubkit.utils import UNSET -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/v2022_11_28/models/group_0938.py b/githubkit/versions/v2022_11_28/models/group_0938.py index bd41df8ae..8f8247056 100644 --- a/githubkit/versions/v2022_11_28/models/group_0938.py +++ b/githubkit/versions/v2022_11_28/models/group_0938.py @@ -9,23 +9,33 @@ from __future__ import annotations +from typing import Annotated, Literal, Union + from pydantic import Field from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild - -from .group_0115 import CustomProperty +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - properties: list[CustomProperty] = Field( + pat_request_ids: Missing[list[int]] = Field( max_length=100 if PYDANTIC_V2 else None, min_length=1 if PYDANTIC_V2 else None, - description="The array of custom properties to create or update.", + default=UNSET, + description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + ) + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the requests. Max 1024 characters.", ) -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0939.py b/githubkit/versions/v2022_11_28/models/group_0939.py index 24747351e..af6277ed1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0939.py +++ b/githubkit/versions/v2022_11_28/models/group_0939.py @@ -9,26 +9,27 @@ from __future__ import annotations -from pydantic import Field +from typing import Annotated, Literal, Union -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from pydantic import Field -from .group_0117 import CustomPropertyValue +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - repository_names: list[str] = Field( - max_length=30 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of repositories that the custom property values will be applied to.", + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." ) - properties: list[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the request. Max 1024 characters.", ) -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0940.py b/githubkit/versions/v2022_11_28/models/group_0940.py index bdac866e9..2677c34ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0940.py +++ b/githubkit/versions/v2022_11_28/models/group_0940.py @@ -13,124 +13,22 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." + pat_ids: list[int] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The IDs of the fine-grained personal access tokens.", ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( - default=UNSET, - description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0941.py b/githubkit/versions/v2022_11_28/models/group_0941.py index d3a2db126..53f6146e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0941.py +++ b/githubkit/versions/v2022_11_28/models/group_0941.py @@ -9,97 +9,21 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0121 import RepositoryRulesetBypassActor -from .group_0130 import OrgRulesetConditionsOneof0 -from .group_0131 import OrgRulesetConditionsOneof1 -from .group_0132 import OrgRulesetConditionsOneof2 -from .group_0133 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0134 import RepositoryRuleUpdate -from .group_0136 import RepositoryRuleRequiredLinearHistory -from .group_0137 import RepositoryRuleMergeQueue -from .group_0139 import RepositoryRuleRequiredDeployments -from .group_0142 import RepositoryRulePullRequest -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0156 import RepositoryRuleFilePathRestriction -from .group_0158 import RepositoryRuleMaxFilePathLength -from .group_0160 import RepositoryRuleFileExtensionRestriction -from .group_0162 import RepositoryRuleMaxFileSize -from .group_0165 import RepositoryRuleWorkflows -from .group_0167 import RepositoryRuleCodeScanning +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0942.py b/githubkit/versions/v2022_11_28/models/group_0942.py index 2c0afa57d..83cd2fd4c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0942.py +++ b/githubkit/versions/v2022_11_28/models/group_0942.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -17,90 +18,39 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0121 import RepositoryRulesetBypassActor -from .group_0130 import OrgRulesetConditionsOneof0 -from .group_0131 import OrgRulesetConditionsOneof1 -from .group_0132 import OrgRulesetConditionsOneof2 -from .group_0133 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0134 import RepositoryRuleUpdate -from .group_0136 import RepositoryRuleRequiredLinearHistory -from .group_0137 import RepositoryRuleMergeQueue -from .group_0139 import RepositoryRuleRequiredDeployments -from .group_0142 import RepositoryRulePullRequest -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0156 import RepositoryRuleFilePathRestriction -from .group_0158 import RepositoryRuleMaxFilePathLength -from .group_0160 import RepositoryRuleFileExtensionRestriction -from .group_0162 import RepositoryRuleMaxFileSize -from .group_0165 import RepositoryRuleWorkflows -from .group_0167 import RepositoryRuleCodeScanning - - -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", + +class OrgsOrgPrivateRegistriesGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesGetResponse200""" + + total_count: int = Field() + configurations: list[OrgPrivateRegistryConfiguration] = Field() + + +class OrgPrivateRegistryConfiguration(GitHubModel): + """Organization private registry + + Private registry configuration for an organization + """ + + name: str = Field(description="The name of the private registry configuration.") + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( + description="The registry type." ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + username: Missing[Union[str, None]] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="The username to use when authenticating with the private registry.", ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") - - -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) - -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(OrgsOrgPrivateRegistriesGetResponse200) +model_rebuild(OrgPrivateRegistryConfiguration) + +__all__ = ( + "OrgPrivateRegistryConfiguration", + "OrgsOrgPrivateRegistriesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0943.py b/githubkit/versions/v2022_11_28/models/group_0943.py index 1094d8139..1c19670f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0943.py +++ b/githubkit/versions/v2022_11_28/models/group_0943.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from pydantic import Field @@ -19,38 +18,30 @@ from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" +class OrgsOrgPrivateRegistriesPostBody(GitHubModel): + """OrgsOrgPrivateRegistriesPostBody""" - total_count: int = Field() - network_configurations: list[NetworkConfiguration] = Field() - - -class NetworkConfiguration(GitHubModel): - """Hosted compute network configuration - - A hosted compute network configuration. - """ - - id: str = Field(description="The unique identifier of the network configuration.") - name: str = Field(description="The name of the network configuration.") - compute_service: Missing[Literal["none", "actions", "codespaces"]] = Field( - default=UNSET, - description="The hosted compute service the network configuration supports.", + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] = Field( + description="The registry type." ) - network_settings_ids: Missing[list[str]] = Field( + username: Missing[Union[str, None]] = Field( default=UNSET, - description="The unique identifier of each network settings in the configuration.", + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", + ) + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", ) - created_on: Union[datetime, None] = Field( - description="The time at which the network configuration was created, in ISO 8601 format." + key_id: str = Field(description="The ID of the key you used to encrypt the secret.") + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry." + ) + selected_repository_ids: Missing[list[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", ) -model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) -model_rebuild(NetworkConfiguration) +model_rebuild(OrgsOrgPrivateRegistriesPostBody) -__all__ = ( - "NetworkConfiguration", - "OrgsOrgSettingsNetworkConfigurationsGetResponse200", -) +__all__ = ("OrgsOrgPrivateRegistriesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0944.py b/githubkit/versions/v2022_11_28/models/group_0944.py index b6be61b0d..a51c170a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0944.py +++ b/githubkit/versions/v2022_11_28/models/group_0944.py @@ -9,32 +9,18 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200(GitHubModel): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - name: str = Field( - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." - ) - compute_service: Missing[Literal["none", "actions"]] = Field( - default=UNSET, - description="The hosted compute service to use for the network configuration.", - ) - network_settings_ids: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) +model_rebuild(OrgsOrgPrivateRegistriesPublicKeyGetResponse200) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0945.py b/githubkit/versions/v2022_11_28/models/group_0945.py index d68e0ab2a..e4b5a3b63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0945.py +++ b/githubkit/versions/v2022_11_28/models/group_0945.py @@ -9,33 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" +class OrgsOrgPrivateRegistriesSecretNamePatchBody(GitHubModel): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - name: Missing[str] = Field( + registry_type: Missing[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] + ] = Field(default=UNSET, description="The registry type.") + username: Missing[Union[str, None]] = Field( default=UNSET, - description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + description="The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", ) - compute_service: Missing[Literal["none", "actions"]] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="The hosted compute service to use for the network configuration.", + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", ) - network_settings_ids: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", + ) + selected_repository_ids: Missing[list[int]] = Field( default=UNSET, - description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", + description="An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. This field should be omitted if `visibility` is set to `all` or `private`.", ) -model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) +model_rebuild(OrgsOrgPrivateRegistriesSecretNamePatchBody) -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0946.py b/githubkit/versions/v2022_11_28/models/group_0946.py index ea9293710..ed09aabdb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0946.py +++ b/githubkit/versions/v2022_11_28/models/group_0946.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,40 +16,15 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - maintainers: Missing[list[str]] = Field( - default=UNSET, - description="List GitHub usernames for organization members who will become team maintainers.", - ) - repo_names: Missing[list[str]] = Field( - default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", - ) - permission: Missing[Literal["pull", "push"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0947.py b/githubkit/versions/v2022_11_28/models/group_0947.py index ef46562c8..af909deed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0947.py +++ b/githubkit/versions/v2022_11_28/models/group_0947.py @@ -9,41 +9,23 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0119 import CustomProperty -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: list[CustomProperty] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0948.py b/githubkit/versions/v2022_11_28/models/group_0948.py index 5aca60c84..54ff30509 100644 --- a/githubkit/versions/v2022_11_28/models/group_0948.py +++ b/githubkit/versions/v2022_11_28/models/group_0948.py @@ -11,22 +11,24 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from .group_0121 import CustomPropertyValue -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( - default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" + + repository_names: list[str] = Field( + max_length=30 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of repositories that the custom property values will be applied to.", + ) + properties: list[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0949.py b/githubkit/versions/v2022_11_28/models/group_0949.py index 155ed9640..bdac866e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0949.py +++ b/githubkit/versions/v2022_11_28/models/group_0949.py @@ -9,24 +9,128 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + visibility: Missing[Literal["public", "private"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Pass `true` to create an initial commit with empty README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', + ) + license_template: Missing[str] = Field( + default=UNSET, + description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties + + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0950.py b/githubkit/versions/v2022_11_28/models/group_0950.py index d8f084a3e..5c38077af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0950.py +++ b/githubkit/versions/v2022_11_28/models/group_0950.py @@ -9,17 +9,97 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0125 import RepositoryRulesetBypassActor +from .group_0134 import OrgRulesetConditionsOneof0 +from .group_0135 import OrgRulesetConditionsOneof1 +from .group_0136 import OrgRulesetConditionsOneof2 +from .group_0137 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0138 import RepositoryRuleUpdate +from .group_0140 import RepositoryRuleRequiredLinearHistory +from .group_0141 import RepositoryRuleMergeQueue +from .group_0143 import RepositoryRuleRequiredDeployments +from .group_0146 import RepositoryRulePullRequest +from .group_0148 import RepositoryRuleRequiredStatusChecks +from .group_0150 import RepositoryRuleCommitMessagePattern +from .group_0152 import RepositoryRuleCommitAuthorEmailPattern +from .group_0154 import RepositoryRuleCommitterEmailPattern +from .group_0156 import RepositoryRuleBranchNamePattern +from .group_0158 import RepositoryRuleTagNamePattern +from .group_0160 import RepositoryRuleFilePathRestriction +from .group_0162 import RepositoryRuleMaxFilePathLength +from .group_0164 import RepositoryRuleFileExtensionRestriction +from .group_0166 import RepositoryRuleMaxFileSize +from .group_0169 import RepositoryRuleWorkflows +from .group_0171 import RepositoryRuleCodeScanning -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" - body: str = Field(description="The discussion comment's body text.") + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(OrgsOrgRulesetsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0951.py b/githubkit/versions/v2022_11_28/models/group_0951.py index f9ed8041d..cc3210472 100644 --- a/githubkit/versions/v2022_11_28/models/group_0951.py +++ b/githubkit/versions/v2022_11_28/models/group_0951.py @@ -9,23 +9,98 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0125 import RepositoryRulesetBypassActor +from .group_0134 import OrgRulesetConditionsOneof0 +from .group_0135 import OrgRulesetConditionsOneof1 +from .group_0136 import OrgRulesetConditionsOneof2 +from .group_0137 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0138 import RepositoryRuleUpdate +from .group_0140 import RepositoryRuleRequiredLinearHistory +from .group_0141 import RepositoryRuleMergeQueue +from .group_0143 import RepositoryRuleRequiredDeployments +from .group_0146 import RepositoryRulePullRequest +from .group_0148 import RepositoryRuleRequiredStatusChecks +from .group_0150 import RepositoryRuleCommitMessagePattern +from .group_0152 import RepositoryRuleCommitAuthorEmailPattern +from .group_0154 import RepositoryRuleCommitterEmailPattern +from .group_0156 import RepositoryRuleBranchNamePattern +from .group_0158 import RepositoryRuleTagNamePattern +from .group_0160 import RepositoryRuleFilePathRestriction +from .group_0162 import RepositoryRuleMaxFilePathLength +from .group_0164 import RepositoryRuleFileExtensionRestriction +from .group_0166 import RepositoryRuleMaxFileSize +from .group_0169 import RepositoryRuleWorkflows +from .group_0171 import RepositoryRuleCodeScanning -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - body: str = Field(description="The discussion comment's body text.") +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push", "repository"]] = Field( + default=UNSET, description="The target of the ruleset" + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", + ) + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( + default=UNSET, + title="Organization ruleset conditions", + description="Conditions for an organization ruleset.\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\nThe push rulesets conditions object does not require the `ref_name` property.\nFor repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`.", + ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0952.py b/githubkit/versions/v2022_11_28/models/group_0952.py index 7155a8c95..1094d8139 100644 --- a/githubkit/versions/v2022_11_28/models/group_0952.py +++ b/githubkit/versions/v2022_11_28/models/group_0952.py @@ -9,31 +9,48 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody +class OrgsOrgSettingsNetworkConfigurationsGetResponse200(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + + total_count: int = Field() + network_configurations: list[NetworkConfiguration] = Field() + + +class NetworkConfiguration(GitHubModel): + """Hosted compute network configuration + + A hosted compute network configuration. """ - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." + id: str = Field(description="The unique identifier of the network configuration.") + name: str = Field(description="The name of the network configuration.") + compute_service: Missing[Literal["none", "actions", "codespaces"]] = Field( + default=UNSET, + description="The hosted compute service the network configuration supports.", + ) + network_settings_ids: Missing[list[str]] = Field( + default=UNSET, + description="The unique identifier of each network settings in the configuration.", + ) + created_on: Union[datetime, None] = Field( + description="The time at which the network configuration was created, in ISO 8601 format." ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsGetResponse200) +model_rebuild(NetworkConfiguration) __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", + "NetworkConfiguration", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0953.py b/githubkit/versions/v2022_11_28/models/group_0953.py index 09a55856c..b6be61b0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0953.py +++ b/githubkit/versions/v2022_11_28/models/group_0953.py @@ -13,19 +13,28 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgSettingsNetworkConfigurationsPostBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." + name: str = Field( + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'." + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0954.py b/githubkit/versions/v2022_11_28/models/group_0954.py index d4ebf1d16..d68e0ab2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0954.py +++ b/githubkit/versions/v2022_11_28/models/group_0954.py @@ -13,19 +13,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody(GitHubModel): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + name: Missing[str] = Field( + default=UNSET, + description="Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.", + ) + compute_service: Missing[Literal["none", "actions"]] = Field( + default=UNSET, + description="The hosted compute service to use for the network configuration.", + ) + network_settings_ids: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.", ) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0955.py b/githubkit/versions/v2022_11_28/models/group_0955.py index beef61704..ea9293710 100644 --- a/githubkit/versions/v2022_11_28/models/group_0955.py +++ b/githubkit/versions/v2022_11_28/models/group_0955.py @@ -18,15 +18,40 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + maintainers: Missing[list[str]] = Field( + default=UNSET, + description="List GitHub usernames for organization members who will become team maintainers.", + ) + repo_names: Missing[list[str]] = Field( + default=UNSET, + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + ) + privacy: Missing[Literal["secret", "closed"]] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", + description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0956.py b/githubkit/versions/v2022_11_28/models/group_0956.py index b947a7fa2..ef46562c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0956.py +++ b/githubkit/versions/v2022_11_28/models/group_0956.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,32 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) - -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) + +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0957.py b/githubkit/versions/v2022_11_28/models/group_0957.py index 4127c4263..5aca60c84 100644 --- a/githubkit/versions/v2022_11_28/models/group_0957.py +++ b/githubkit/versions/v2022_11_28/models/group_0957.py @@ -16,15 +16,17 @@ from githubkit.utils import UNSET -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - permission: Missing[str] = Field( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", ) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0958.py b/githubkit/versions/v2022_11_28/models/group_0958.py index adc736feb..155ed9640 100644 --- a/githubkit/versions/v2022_11_28/models/group_0958.py +++ b/githubkit/versions/v2022_11_28/models/group_0958.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,17 @@ from githubkit.utils import UNSET -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, - description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." + ) + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0959.py b/githubkit/versions/v2022_11_28/models/group_0959.py index 8e4aacd13..d8f084a3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0959.py +++ b/githubkit/versions/v2022_11_28/models/group_0959.py @@ -12,18 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0960.py b/githubkit/versions/v2022_11_28/models/group_0960.py index f56c2018f..f9ed8041d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0960.py +++ b/githubkit/versions/v2022_11_28/models/group_0960.py @@ -9,26 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" - ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0961.py b/githubkit/versions/v2022_11_28/models/group_0961.py index 525269481..7155a8c95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0961.py +++ b/githubkit/versions/v2022_11_28/models/group_0961.py @@ -9,26 +9,31 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", - ) - column_id: Missing[int] = Field( - default=UNSET, - description="The unique identifier of the column the card should be moved to", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0962.py b/githubkit/versions/v2022_11_28/models/group_0962.py index 7d3245c63..09a55856c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0962.py +++ b/githubkit/versions/v2022_11_28/models/group_0962.py @@ -9,13 +9,23 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" + + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." + ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0963.py b/githubkit/versions/v2022_11_28/models/group_0963.py index 4a6010387..d4ebf1d16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0963.py +++ b/githubkit/versions/v2022_11_28/models/group_0963.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,29 +18,14 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0964.py b/githubkit/versions/v2022_11_28/models/group_0964.py index 396dbfe80..beef61704 100644 --- a/githubkit/versions/v2022_11_28/models/group_0964.py +++ b/githubkit/versions/v2022_11_28/models/group_0964.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,28 +18,15 @@ from githubkit.utils import UNSET -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", + ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0965.py b/githubkit/versions/v2022_11_28/models/group_0965.py index e6f9395a8..b947a7fa2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0965.py +++ b/githubkit/versions/v2022_11_28/models/group_0965.py @@ -12,14 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - name: str = Field(description="Name of the project column") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0966.py b/githubkit/versions/v2022_11_28/models/group_0966.py index 17db0e859..4127c4263 100644 --- a/githubkit/versions/v2022_11_28/models/group_0966.py +++ b/githubkit/versions/v2022_11_28/models/group_0966.py @@ -9,19 +9,22 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - note: Union[str, None] = Field(description="The project card's note") + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0967.py b/githubkit/versions/v2022_11_28/models/group_0967.py index 78dbfee00..adc736feb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0967.py +++ b/githubkit/versions/v2022_11_28/models/group_0967.py @@ -9,22 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - content_id: int = Field( - description="The unique identifier of the content associated with the card" - ) - content_type: str = Field( - description="The piece of content associated with the card" + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, + description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0968.py b/githubkit/versions/v2022_11_28/models/group_0968.py index cd4d5b3d2..8e4aacd13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0968.py +++ b/githubkit/versions/v2022_11_28/models/group_0968.py @@ -16,28 +16,14 @@ from githubkit.utils import UNSET -class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - code: Missing[str] = Field(default=UNSET) message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] - ] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0969.py b/githubkit/versions/v2022_11_28/models/group_0969.py index 003392298..f56c2018f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0969.py +++ b/githubkit/versions/v2022_11_28/models/group_0969.py @@ -9,20 +9,26 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - position: str = Field( - pattern="^(?:first|last|after:\\d+)$", - description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" + ) + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" ) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0970.py b/githubkit/versions/v2022_11_28/models/group_0970.py index 6009bdb4e..525269481 100644 --- a/githubkit/versions/v2022_11_28/models/group_0970.py +++ b/githubkit/versions/v2022_11_28/models/group_0970.py @@ -9,13 +9,26 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" + position: str = Field( + pattern="^(?:top|bottom|after:\\d+)$", + description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", + ) + column_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the column the card should be moved to", + ) -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0971.py b/githubkit/versions/v2022_11_28/models/group_0971.py index a0ef8d52d..7d3245c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0971.py +++ b/githubkit/versions/v2022_11_28/models/group_0971.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0972.py b/githubkit/versions/v2022_11_28/models/group_0972.py index e99c686c3..4a6010387 100644 --- a/githubkit/versions/v2022_11_28/models/group_0972.py +++ b/githubkit/versions/v2022_11_28/models/group_0972.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,26 +16,29 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" + + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) + + +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone.", - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0973.py b/githubkit/versions/v2022_11_28/models/group_0973.py index 8448c850e..396dbfe80 100644 --- a/githubkit/versions/v2022_11_28/models/group_0973.py +++ b/githubkit/versions/v2022_11_28/models/group_0973.py @@ -16,14 +16,28 @@ from githubkit.utils import UNSET -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" + code: Missing[str] = Field(default=UNSET) message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[list[str]] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] + ] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchResponse403) +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -__all__ = ("ProjectsProjectIdPatchResponse403",) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0974.py b/githubkit/versions/v2022_11_28/models/group_0974.py index 4745249cd..e6f9395a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0974.py +++ b/githubkit/versions/v2022_11_28/models/group_0974.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." - ) + name: str = Field(description="Name of the project column") -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0975.py b/githubkit/versions/v2022_11_28/models/group_0975.py index e33e0910d..17db0e859 100644 --- a/githubkit/versions/v2022_11_28/models/group_0975.py +++ b/githubkit/versions/v2022_11_28/models/group_0975.py @@ -9,17 +9,19 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - name: str = Field(description="Name of the project column") + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0976.py b/githubkit/versions/v2022_11_28/models/group_0976.py index 82852ecb9..78dbfee00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0976.py +++ b/githubkit/versions/v2022_11_28/models/group_0976.py @@ -12,17 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + content_id: int = Field( + description="The unique identifier of the content associated with the card" + ) + content_type: str = Field( + description="The piece of content associated with the card" + ) -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0977.py b/githubkit/versions/v2022_11_28/models/group_0977.py index 8cc15726d..cd4d5b3d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0977.py +++ b/githubkit/versions/v2022_11_28/models/group_0977.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,279 +16,28 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - code_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable GitHub Code Security for this repository.", - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_ai_detection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', - ) - secret_scanning_non_provider_patterns: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] + ] = Field(default=UNSET) -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/code-security/secret-scanning/using- - advanced-secret-scanning-and-push-protection-features/generic-secret- - detection/responsible-ai-generic-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns -) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) __all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0978.py b/githubkit/versions/v2022_11_28/models/group_0978.py index 01a94c926..003392298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0978.py +++ b/githubkit/versions/v2022_11_28/models/group_0978.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0196 import Artifact +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + position: str = Field( + pattern="^(?:first|last|after:\\d+)$", + description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", + ) - total_count: int = Field() - artifacts: list[Artifact] = Field() +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0979.py b/githubkit/versions/v2022_11_28/models/group_0979.py index eabc5484e..6009bdb4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0979.py +++ b/githubkit/versions/v2022_11_28/models/group_0979.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0980.py b/githubkit/versions/v2022_11_28/models/group_0980.py index 4ca168cda..a0ef8d52d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0980.py +++ b/githubkit/versions/v2022_11_28/models/group_0980.py @@ -16,21 +16,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" - Actions OIDC subject customization for a repository - """ + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[list[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", - ) +model_rebuild(ProjectsProjectIdDeleteResponse403) -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0981.py b/githubkit/versions/v2022_11_28/models/group_0981.py index b7ae3f521..e99c686c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0981.py +++ b/githubkit/versions/v2022_11_28/models/group_0981.py @@ -9,20 +9,35 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0200 import ActionsSecret +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" - total_count: int = Field() - secrets: list[ActionsSecret] = Field() + name: Missing[str] = Field(default=UNSET, description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + state: Missing[str] = Field( + default=UNSET, description="State of the project; either 'open' or 'closed'" + ) + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone.", + ) -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ProjectsProjectIdPatchBody) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0982.py b/githubkit/versions/v2022_11_28/models/group_0982.py index 8e58a3d97..8448c850e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0982.py +++ b/githubkit/versions/v2022_11_28/models/group_0982.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0201 import ActionsVariable +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[list[str]] = Field(default=UNSET) - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ProjectsProjectIdPatchResponse403) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0983.py b/githubkit/versions/v2022_11_28/models/group_0983.py index b882d15a4..4745249cd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0983.py +++ b/githubkit/versions/v2022_11_28/models/group_0983.py @@ -18,18 +18,14 @@ from githubkit.utils import UNSET -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." ) -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0984.py b/githubkit/versions/v2022_11_28/models/group_0984.py index ca0181250..e33e0910d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0984.py +++ b/githubkit/versions/v2022_11_28/models/group_0984.py @@ -13,16 +13,13 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0075 import Runner +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + name: str = Field(description="Name of the project column") - total_count: int = Field() - runners: list[Runner] = Field() +model_rebuild(ProjectsProjectIdColumnsPostBody) -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0985.py b/githubkit/versions/v2022_11_28/models/group_0985.py index 4b74e8b7f..82852ecb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0985.py +++ b/githubkit/versions/v2022_11_28/models/group_0985.py @@ -11,29 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0986.py b/githubkit/versions/v2022_11_28/models/group_0986.py index 07ff84efb..8cc15726d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0986.py +++ b/githubkit/versions/v2022_11_28/models/group_0986.py @@ -9,20 +9,288 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', + ) + code_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable GitHub Code Security for this repository.", + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_ai_detection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)."', + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/code-security/secret-scanning/using- + advanced-secret-scanning-and-push-protection-features/generic-secret- + detection/responsible-ai-generic-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0987.py b/githubkit/versions/v2022_11_28/models/group_0987.py index 5c0dd84b7..e27915d89 100644 --- a/githubkit/versions/v2022_11_28/models/group_0987.py +++ b/githubkit/versions/v2022_11_28/models/group_0987.py @@ -11,19 +11,18 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0200 import Artifact -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] = Field( - max_length=100 if PYDANTIC_V2 else None, - min_length=1 if PYDANTIC_V2 else None, - description="The names of the custom labels to add to the runner.", - ) +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0988.py b/githubkit/versions/v2022_11_28/models/group_0988.py index efd6e4fc7..eabc5484e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0988.py +++ b/githubkit/versions/v2022_11_28/models/group_0988.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0206 import WorkflowRun +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0989.py b/githubkit/versions/v2022_11_28/models/group_0989.py index aae300bca..4ca168cda 100644 --- a/githubkit/versions/v2022_11_28/models/group_0989.py +++ b/githubkit/versions/v2022_11_28/models/group_0989.py @@ -12,17 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0196 import Artifact +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int = Field() - artifacts: list[Artifact] = Field() + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[list[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0990.py b/githubkit/versions/v2022_11_28/models/group_0990.py index 12aa1b738..0e401e794 100644 --- a/githubkit/versions/v2022_11_28/models/group_0990.py +++ b/githubkit/versions/v2022_11_28/models/group_0990.py @@ -13,18 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0198 import Job +from .group_0204 import ActionsSecret -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int = Field() - jobs: list[Job] = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0991.py b/githubkit/versions/v2022_11_28/models/group_0991.py index 7343cfedd..f887328e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0991.py +++ b/githubkit/versions/v2022_11_28/models/group_0991.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0198 import Job +from .group_0205 import ActionsVariable -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" total_count: int = Field() - jobs: list[Job] = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0992.py b/githubkit/versions/v2022_11_28/models/group_0992.py index daa1a984d..b882d15a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0992.py +++ b/githubkit/versions/v2022_11_28/models/group_0992.py @@ -14,20 +14,22 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - environment_ids: list[int] = Field( - description="The list of environment ids to approve or reject" + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - comment: str = Field(description="A comment to accompany the deployment review") -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0993.py b/githubkit/versions/v2022_11_28/models/group_0993.py index f45127160..41ebdbf33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0993.py +++ b/githubkit/versions/v2022_11_28/models/group_0993.py @@ -12,18 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0079 import Runner -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int = Field() + runners: list[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0994.py b/githubkit/versions/v2022_11_28/models/group_0994.py index f97011ea2..4b74e8b7f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0994.py +++ b/githubkit/versions/v2022_11_28/models/group_0994.py @@ -11,19 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0995.py b/githubkit/versions/v2022_11_28/models/group_0995.py index 52e6f11f7..07ff84efb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0995.py +++ b/githubkit/versions/v2022_11_28/models/group_0995.py @@ -11,18 +11,18 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from .group_0200 import ActionsSecret +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0996.py b/githubkit/versions/v2022_11_28/models/group_0996.py index d21da1d46..5c0dd84b7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0996.py +++ b/githubkit/versions/v2022_11_28/models/group_0996.py @@ -11,19 +11,19 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.", + labels: list[str] = Field( + max_length=100 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="The names of the custom labels to add to the runner.", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0997.py b/githubkit/versions/v2022_11_28/models/group_0997.py index 6327e5944..a0d999e52 100644 --- a/githubkit/versions/v2022_11_28/models/group_0997.py +++ b/githubkit/versions/v2022_11_28/models/group_0997.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0201 import ActionsVariable +from .group_0210 import WorkflowRun -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" total_count: int = Field() - variables: list[ActionsVariable] = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0998.py b/githubkit/versions/v2022_11_28/models/group_0998.py index bf9209ee5..3c3b9afdb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0998.py +++ b/githubkit/versions/v2022_11_28/models/group_0998.py @@ -13,14 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0200 import Artifact -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int = Field() + artifacts: list[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0999.py b/githubkit/versions/v2022_11_28/models/group_0999.py index 2a4d3aeda..504ffb8b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0999.py +++ b/githubkit/versions/v2022_11_28/models/group_0999.py @@ -12,17 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0202 import Job -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( + GitHubModel +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + total_count: int = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1000.py b/githubkit/versions/v2022_11_28/models/group_1000.py index 3c3259aed..583e9958a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1000.py +++ b/githubkit/versions/v2022_11_28/models/group_1000.py @@ -9,48 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - - total_count: int = Field() - workflows: list[Workflow] = Field() +from .group_0202 import Job -class Workflow(GitHubModel): - """Workflow - A GitHub Actions workflow - """ +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - id: int = Field() - node_id: str = Field() - name: str = Field() - path: str = Field() - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - url: str = Field() - html_url: str = Field() - badge_url: str = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) + total_count: int = Field() + jobs: list[Job] = Field() -model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1001.py b/githubkit/versions/v2022_11_28/models/group_1001.py index 437f66baa..daa1a984d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1001.py +++ b/githubkit/versions/v2022_11_28/models/group_1001.py @@ -9,42 +9,25 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - ref: str = Field( - description="The git reference for the workflow. The reference can be a branch or tag name." + environment_ids: list[int] = Field( + description="The list of environment ids to approve or reject" ) - inputs: Missing[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - ] = Field( - default=UNSET, - description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) + comment: str = Field(description="A comment to accompany the deployment review") -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ - - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1002.py b/githubkit/versions/v2022_11_28/models/group_1002.py index 14bf92695..f45127160 100644 --- a/githubkit/versions/v2022_11_28/models/group_1002.py +++ b/githubkit/versions/v2022_11_28/models/group_1002.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0206 import WorkflowRun +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) - total_count: int = Field() - workflow_runs: list[WorkflowRun] = Field() +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1003.py b/githubkit/versions/v2022_11_28/models/group_1003.py index 1559b8643..f97011ea2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1003.py +++ b/githubkit/versions/v2022_11_28/models/group_1003.py @@ -11,55 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoAttestationsPostBody(GitHubModel): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundle = Field( - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundle +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" - - -class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): - """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" - - -model_rebuild(ReposOwnerRepoAttestationsPostBody) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) -model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) - -__all__ = ( - "ReposOwnerRepoAttestationsPostBody", - "ReposOwnerRepoAttestationsPostBodyPropBundle", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1004.py b/githubkit/versions/v2022_11_28/models/group_1004.py index e78d24aec..b69d67636 100644 --- a/githubkit/versions/v2022_11_28/models/group_1004.py +++ b/githubkit/versions/v2022_11_28/models/group_1004.py @@ -12,16 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0204 import ActionsSecret -class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): - """ReposOwnerRepoAttestationsPostResponse201""" - id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1005.py b/githubkit/versions/v2022_11_28/models/group_1005.py index a764a785c..d21da1d46 100644 --- a/githubkit/versions/v2022_11_28/models/group_1005.py +++ b/githubkit/versions/v2022_11_28/models/group_1005.py @@ -11,89 +11,19 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - attestations: Missing[ - list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.", ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropVerificationMaterial - """ - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndlePropDsseEnvelope - """ + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1006.py b/githubkit/versions/v2022_11_28/models/group_1006.py index e795956c5..9881bebb0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1006.py +++ b/githubkit/versions/v2022_11_28/models/group_1006.py @@ -12,25 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0205 import ActionsVariable -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." - ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." - ) - is_alphanumeric: Missing[bool] = Field( - default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", - ) +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int = Field() + variables: list[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1007.py b/githubkit/versions/v2022_11_28/models/group_1007.py index 88050bb30..bf9209ee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1007.py +++ b/githubkit/versions/v2022_11_28/models/group_1007.py @@ -9,227 +9,18 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" - - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None - ] = Field( - description="Require status checks to pass before merging. Set to `null` to disable." - ) - enforce_admins: Union[bool, None] = Field( - description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." - ) - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, - None, - ] = Field( - description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." - ) - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None - ] = Field( - description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." - ) - required_linear_history: Missing[bool] = Field( - default=UNSET, - description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', - ) - allow_force_pushes: Missing[Union[bool, None]] = Field( - default=UNSET, - description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', - ) - allow_deletions: Missing[bool] = Field( - default=UNSET, - description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', - ) - block_creations: Missing[bool] = Field( - default=UNSET, - description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", - ) - required_conversation_resolution: Missing[bool] = Field( - default=UNSET, - description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", - ) - lock_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", - ) - allow_fork_syncing: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: list[str] = Field( - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[list[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - users: list[str] = Field(description="The list of user `login`s with push access") - teams: list[str] = Field(description="The list of team `slug`s with push access") - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with push access" - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1008.py b/githubkit/versions/v2022_11_28/models/group_1008.py index 8a9bfe435..2a4d3aeda 100644 --- a/githubkit/versions/v2022_11_28/models/group_1008.py +++ b/githubkit/versions/v2022_11_28/models/group_1008.py @@ -16,97 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[list[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[list[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[list[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[list[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[list[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[list[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", -) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1009.py b/githubkit/versions/v2022_11_28/models/group_1009.py index 199aa5468..3c3259aed 100644 --- a/githubkit/versions/v2022_11_28/models/group_1009.py +++ b/githubkit/versions/v2022_11_28/models/group_1009.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,46 +19,38 @@ from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." - ) - contexts: Missing[list[str]] = Field( - default=UNSET, - description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", - ) - checks: Missing[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int = Field() + workflows: list[Workflow] = Field() + + +class Workflow(GitHubModel): + """Workflow + + A GitHub Actions workflow """ - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) + id: int = Field() + node_id: str = Field() + name: str = Field() + path: str = Field() + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + url: str = Field() + html_url: str = Field() + badge_url: str = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1010.py b/githubkit/versions/v2022_11_28/models/group_1010.py index c92d11192..437f66baa 100644 --- a/githubkit/versions/v2022_11_28/models/group_1010.py +++ b/githubkit/versions/v2022_11_28/models/group_1010.py @@ -11,25 +11,40 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( - GitHubModel +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + + ref: str = Field( + description="The git reference for the workflow. The reference can be a branch or tag name." + ) + inputs: Missing[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + ] = Field( + default=UNSET, + description="Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + ) + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Examples: - {'contexts': ['contexts']} + Input keys and values configured in the workflow file. The maximum number of + properties is 10. Any default properties configured in the workflow file will be + used when `inputs` are omitted. """ - contexts: list[str] = Field(description="The name of the status checks") - -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1011.py b/githubkit/versions/v2022_11_28/models/group_1011.py index 736a856c2..88d4d2fbb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1011.py +++ b/githubkit/versions/v2022_11_28/models/group_1011.py @@ -13,23 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0210 import WorkflowRun -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - contexts: list[str] = Field(description="The name of the status checks") + total_count: int = Field() + workflow_runs: list[WorkflowRun] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1012.py b/githubkit/versions/v2022_11_28/models/group_1012.py index 6e14562a0..1559b8643 100644 --- a/githubkit/versions/v2022_11_28/models/group_1012.py +++ b/githubkit/versions/v2022_11_28/models/group_1012.py @@ -11,26 +11,55 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" + + bundle: ReposOwnerRepoAttestationsPostBodyPropBundle = Field( + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information." + ) + - Examples: - {'contexts': ['contexts']} +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - contexts: list[str] = Field(description="The name of the status checks") + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + + +model_rebuild(ReposOwnerRepoAttestationsPostBody) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1013.py b/githubkit/versions/v2022_11_28/models/group_1013.py index 705f549eb..e78d24aec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1013.py +++ b/githubkit/versions/v2022_11_28/models/group_1013.py @@ -12,20 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - Examples: - {'apps': ['my-app']} - """ + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." - ) +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_1014.py b/githubkit/versions/v2022_11_28/models/group_1014.py index 60a283330..a764a785c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1014.py +++ b/githubkit/versions/v2022_11_28/models/group_1014.py @@ -11,21 +11,89 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + list[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) - Examples: - {'apps': ['my-app']} - """ - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) +model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1015.py b/githubkit/versions/v2022_11_28/models/group_1015.py index ce2d7c174..e795956c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1015.py +++ b/githubkit/versions/v2022_11_28/models/group_1015.py @@ -12,20 +12,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - Examples: - {'apps': ['my-app']} - """ - - apps: list[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + key_prefix: str = Field( + description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." + ) + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." + ) + is_alphanumeric: Missing[bool] = Field( + default=UNSET, + description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1016.py b/githubkit/versions/v2022_11_28/models/group_1016.py index 84ad571cb..88050bb30 100644 --- a/githubkit/versions/v2022_11_28/models/group_1016.py +++ b/githubkit/versions/v2022_11_28/models/group_1016.py @@ -9,21 +9,227 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" + + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." + ) + enforce_admins: Union[bool, None] = Field( + description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." + ) + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, + None, + ] = Field( + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." + ) + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None + ] = Field( + description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." + ) + required_linear_history: Missing[bool] = Field( + default=UNSET, + description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', + ) + allow_force_pushes: Missing[Union[bool, None]] = Field( + default=UNSET, + description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', + ) + allow_deletions: Missing[bool] = Field( + default=UNSET, + description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', + ) + block_creations: Missing[bool] = Field( + default=UNSET, + description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", + ) + required_conversation_resolution: Missing[bool] = Field( + default=UNSET, + description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", + ) + lock_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", + ) + allow_fork_syncing: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: list[str] = Field( + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control." + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[list[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[list[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[list[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[list[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[list[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", + ) -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - Examples: - {'teams': ['justice-league']} + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. """ - teams: list[str] = Field(description="The slug values for teams") + users: list[str] = Field(description="The list of user `login`s with push access") + teams: list[str] = Field(description="The list of team `slug`s with push access") + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with push access" + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1017.py b/githubkit/versions/v2022_11_28/models/group_1017.py index 958afae89..8a9bfe435 100644 --- a/githubkit/versions/v2022_11_28/models/group_1017.py +++ b/githubkit/versions/v2022_11_28/models/group_1017.py @@ -12,20 +12,101 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - Examples: - {'teams': ['my-team']} + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.", + ) + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[list[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[list[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[list[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - teams: list[str] = Field(description="The slug values for teams") + users: Missing[list[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", + ) + teams: Missing[list[str]] = Field( + default=UNSET, + description="The list of team `slug`s allowed to bypass pull request requirements.", + ) + apps: Missing[list[str]] = Field( + default=UNSET, + description="The list of app `slug`s allowed to bypass pull request requirements.", + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1018.py b/githubkit/versions/v2022_11_28/models/group_1018.py index 19a5a7072..199aa5468 100644 --- a/githubkit/versions/v2022_11_28/models/group_1018.py +++ b/githubkit/versions/v2022_11_28/models/group_1018.py @@ -12,20 +12,50 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." + ) + contexts: Missing[list[str]] = Field( + default=UNSET, + description="**Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", + ) + checks: Missing[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - - Examples: - {'teams': ['my-team']} + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - teams: list[str] = Field(description="The slug values for teams") + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1019.py b/githubkit/versions/v2022_11_28/models/group_1019.py index bf770df8d..c92d11192 100644 --- a/githubkit/versions/v2022_11_28/models/group_1019.py +++ b/githubkit/versions/v2022_11_28/models/group_1019.py @@ -14,16 +14,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] = Field(description="The username for users") + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1020.py b/githubkit/versions/v2022_11_28/models/group_1020.py index 047d05a26..736a856c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1020.py +++ b/githubkit/versions/v2022_11_28/models/group_1020.py @@ -14,16 +14,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] = Field(description="The username for users") + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1021.py b/githubkit/versions/v2022_11_28/models/group_1021.py index 181ab0f55..6e14562a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1021.py +++ b/githubkit/versions/v2022_11_28/models/group_1021.py @@ -14,16 +14,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] = Field(description="The username for users") + contexts: list[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1022.py b/githubkit/versions/v2022_11_28/models/group_1022.py index 5fcd45c02..705f549eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1022.py +++ b/githubkit/versions/v2022_11_28/models/group_1022.py @@ -14,12 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody - new_name: str = Field(description="The new name of the branch.") + Examples: + {'apps': ['my-app']} + """ + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + ) -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1023.py b/githubkit/versions/v2022_11_28/models/group_1023.py index 8f20768c8..60a283330 100644 --- a/githubkit/versions/v2022_11_28/models/group_1023.py +++ b/githubkit/versions/v2022_11_28/models/group_1023.py @@ -9,117 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. + Examples: + {'apps': ['my-app']} """ - title: str = Field(description="The title of the check run.") - summary: str = Field( - max_length=65535, - description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - text: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, - default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', - ) - images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( - Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1024.py b/githubkit/versions/v2022_11_28/models/group_1024.py index 6fb5f155a..ce2d7c174 100644 --- a/githubkit/versions/v2022_11_28/models/group_1024.py +++ b/githubkit/versions/v2022_11_28/models/group_1024.py @@ -9,67 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1023 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" + Examples: + {'apps': ['my-app']} + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + apps: list[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1025.py b/githubkit/versions/v2022_11_28/models/group_1025.py index 957c625a8..84ad571cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1025.py +++ b/githubkit/versions/v2022_11_28/models/group_1025.py @@ -9,72 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1023 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, - ReposOwnerRepoCheckRunsPostBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" + Examples: + {'teams': ['justice-league']} + """ - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Missing[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] = Field(default=UNSET) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1026.py b/githubkit/versions/v2022_11_28/models/group_1026.py index b08be314e..958afae89 100644 --- a/githubkit/versions/v2022_11_28/models/group_1026.py +++ b/githubkit/versions/v2022_11_28/models/group_1026.py @@ -9,114 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: Missing[str] = Field(default=UNSET, description="**Required**.") - summary: str = Field(max_length=65535, description="Can contain Markdown.") - text: Missing[str] = Field( - max_length=65535, default=UNSET, description="Can contain Markdown." - ) - annotations: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50 if PYDANTIC_V2 else None, - default=UNSET, - description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\".", - ) - images: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + Examples: + {'teams': ['my-team']} + """ - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1027.py b/githubkit/versions/v2022_11_28/models/group_1027.py index b022f6b82..19a5a7072 100644 --- a/githubkit/versions/v2022_11_28/models/group_1027.py +++ b/githubkit/versions/v2022_11_28/models/group_1027.py @@ -9,69 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1026 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + Examples: + {'teams': ['my-team']} + """ - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + teams: list[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1028.py b/githubkit/versions/v2022_11_28/models/group_1028.py index bedb0d93f..bf770df8d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1028.py +++ b/githubkit/versions/v2022_11_28/models/group_1028.py @@ -9,72 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field -from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -from .group_1026 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + Examples: + {'users': ['mona']} + """ - name: Missing[str] = Field( - default=UNSET, - description='The name of the check. For example, "code-coverage".', - ) - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3 if PYDANTIC_V2 else None, - default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', - ) + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1029.py b/githubkit/versions/v2022_11_28/models/group_1029.py index 2a8e7cd54..047d05a26 100644 --- a/githubkit/versions/v2022_11_28/models/group_1029.py +++ b/githubkit/versions/v2022_11_28/models/group_1029.py @@ -14,12 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody - head_sha: str = Field(description="The sha of the head commit.") + Examples: + {'users': ['mona']} + """ + users: list[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1030.py b/githubkit/versions/v2022_11_28/models/group_1030.py index c56809f38..181ab0f55 100644 --- a/githubkit/versions/v2022_11_28/models/group_1030.py +++ b/githubkit/versions/v2022_11_28/models/group_1030.py @@ -12,37 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody - auto_trigger_checks: Missing[ - list[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] - ] = Field( - default=UNSET, - description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", - ) + Examples: + {'users': ['mona']} + """ + users: list[str] = Field(description="The username for users") -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( - GitHubModel -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - app_id: int = Field(description="The `id` of the GitHub App.") - setting: bool = Field( - default=True, - description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", - ) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody) - -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1031.py b/githubkit/versions/v2022_11_28/models/group_1031.py index f6bcbdafa..5fcd45c02 100644 --- a/githubkit/versions/v2022_11_28/models/group_1031.py +++ b/githubkit/versions/v2022_11_28/models/group_1031.py @@ -13,16 +13,13 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0232 import CheckRun +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + new_name: str = Field(description="The new name of the branch.") - total_count: int = Field() - check_runs: list[CheckRun] = Field() +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1032.py b/githubkit/versions/v2022_11_28/models/group_1032.py index 15a8f3fb1..8f20768c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1032.py +++ b/githubkit/versions/v2022_11_28/models/group_1032.py @@ -9,39 +9,117 @@ from __future__ import annotations -from typing import Annotated, Literal, Union +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - state: Literal["open", "dismissed"] = Field( - description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: str = Field(description="The title of the check run.") + summary: str = Field( + max_length=65535, + description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + text: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", ) - dismissed_reason: Missing[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] + annotations: Missing[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] ] = Field( + max_length=50 if PYDANTIC_V2 else None, default=UNSET, - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + images: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( Field( default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", + description="Adds images to the output displayed in the GitHub pull request UI.", ) ) - create_request: Missing[bool] = Field( + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( default=UNSET, - description="If `true`, attempt to create an alert dismissal request.", + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", + ) + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", ) -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1033.py b/githubkit/versions/v2022_11_28/models/group_1033.py index 3d05d5b64..44c2275f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_1033.py +++ b/githubkit/versions/v2022_11_28/models/group_1033.py @@ -9,39 +9,67 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1032 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - repositories: list[str] = Field( - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1034.py b/githubkit/versions/v2022_11_28/models/group_1034.py index b178bf51d..e5c4aa506 100644 --- a/githubkit/versions/v2022_11_28/models/group_1034.py +++ b/githubkit/versions/v2022_11_28/models/group_1034.py @@ -9,39 +9,72 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1032 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, + ReposOwnerRepoCheckRunsPostBodyPropOutput, +) -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str = Field( + description='The name of the check. For example, "code-coverage".' ) - repositories: Missing[list[str]] = Field( + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - repository_lists: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + status: Missing[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] = Field(default=UNSET) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - repository_owners: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + actions: Missing[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1035.py b/githubkit/versions/v2022_11_28/models/group_1035.py index eaeb5dbf9..b08be314e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1035.py +++ b/githubkit/versions/v2022_11_28/models/group_1035.py @@ -18,30 +18,105 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." ) - repositories: Missing[list[str]] = Field( + annotations: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50 if PYDANTIC_V2 else None, default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\".", ) - repository_lists: Missing[list[str]] = Field( - max_length=1 if PYDANTIC_V2 else None, + images: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str = Field( + max_length=20, + description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + ) + description: str = Field( + max_length=40, + description="A short explanation of what this action would do. The maximum size is 40 characters.", ) - repository_owners: list[str] = Field( - max_length=1 if PYDANTIC_V2 else None, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1036.py b/githubkit/versions/v2022_11_28/models/group_1036.py index a7ec8de2f..f5a31efd2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1036.py +++ b/githubkit/versions/v2022_11_28/models/group_1036.py @@ -10,49 +10,68 @@ from __future__ import annotations from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1035 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', ) - ref: str = Field( - pattern="^refs/(heads|tags|pull)/.*$", - description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", ) - sarif: str = Field( - description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning)."' + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." ) - checkout_uri: Missing[str] = Field( + started_at: Missing[datetime] = Field( default=UNSET, - description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - started_at: Missing[datetime] = Field( + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( default=UNSET, - description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - tool_name: Missing[str] = Field( + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( default=UNSET, - description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - validate_: Missing[bool] = Field( + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, default=UNSET, - alias="validate", - description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1037.py b/githubkit/versions/v2022_11_28/models/group_1037.py index a8f792f5d..8dd93c234 100644 --- a/githubkit/versions/v2022_11_28/models/group_1037.py +++ b/githubkit/versions/v2022_11_28/models/group_1037.py @@ -9,20 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, ExtraGitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0087 import Codespace +from .group_1035 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, +) -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - total_count: int = Field() - codespaces: list[Codespace] = Field() + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3 if PYDANTIC_V2 else None, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1038.py b/githubkit/versions/v2022_11_28/models/group_1038.py index 9d9c2bbbd..2a8e7cd54 100644 --- a/githubkit/versions/v2022_11_28/models/group_1038.py +++ b/githubkit/versions/v2022_11_28/models/group_1038.py @@ -9,61 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(ReposOwnerRepoCodespacesPostBody) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1039.py b/githubkit/versions/v2022_11_28/models/group_1039.py index 262d6c72c..c56809f38 100644 --- a/githubkit/versions/v2022_11_28/models/group_1039.py +++ b/githubkit/versions/v2022_11_28/models/group_1039.py @@ -16,29 +16,33 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - total_count: int = Field() - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() + auto_trigger_checks: Missing[ + list[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = Field( + default=UNSET, + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", + ) -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( GitHubModel ): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) + app_id: int = Field(description="The `id` of the GitHub App.") + setting: bool = Field( + default=True, + description="Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + ) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) __all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1040.py b/githubkit/versions/v2022_11_28/models/group_1040.py index 89d95061b..764541152 100644 --- a/githubkit/versions/v2022_11_28/models/group_1040.py +++ b/githubkit/versions/v2022_11_28/models/group_1040.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0086 import CodespaceMachine +from .group_0236 import CheckRun -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" total_count: int = Field() - machines: list[CodespaceMachine] = Field() + check_runs: list[CheckRun] = Field() -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1041.py b/githubkit/versions/v2022_11_28/models/group_1041.py index 14c58fd19..15a8f3fb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1041.py +++ b/githubkit/versions/v2022_11_28/models/group_1041.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Annotated, Literal, Union from pydantic import Field @@ -17,31 +17,31 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0003 import SimpleUser +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" - - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + state: Literal["open", "dismissed"] = Field( + description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( + default=UNSET, + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + create_request: Missing[bool] = Field( + default=UNSET, + description="If `true`, attempt to create an alert dismissal request.", ) -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str = Field() - devcontainer_path: Union[str, None] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1042.py b/githubkit/versions/v2022_11_28/models/group_1042.py index ea29eb2ed..3d05d5b64 100644 --- a/githubkit/versions/v2022_11_28/models/group_1042.py +++ b/githubkit/versions/v2022_11_28/models/group_1042.py @@ -9,35 +9,39 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) - -__all__ = ( - "RepoCodespacesSecret", - "ReposOwnerRepoCodespacesSecretsGetResponse200", -) +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" + + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: list[str] = Field( + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." + ) + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) + +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1043.py b/githubkit/versions/v2022_11_28/models/group_1043.py index a1412f088..b178bf51d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1043.py +++ b/githubkit/versions/v2022_11_28/models/group_1043.py @@ -9,26 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[list[str]] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + repository_lists: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1044.py b/githubkit/versions/v2022_11_28/models/group_1044.py index 637f9ed63..eaeb5dbf9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1044.py +++ b/githubkit/versions/v2022_11_28/models/group_1044.py @@ -9,22 +9,39 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - permission: Missing[str] = Field( + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[list[str]] = Field( default=UNSET, - description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: Missing[list[str]] = Field( + max_length=1 if PYDANTIC_V2 else None, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: list[str] = Field( + max_length=1 if PYDANTIC_V2 else None, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1045.py b/githubkit/versions/v2022_11_28/models/group_1045.py index 75effd211..a7ec8de2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1045.py +++ b/githubkit/versions/v2022_11_28/models/group_1045.py @@ -9,17 +9,50 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" - - body: str = Field(description="The contents of the comment") - - -model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" + + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + ref: str = Field( + pattern="^refs/(heads|tags|pull)/.*$", + description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + ) + sarif: str = Field( + description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning)."' + ) + checkout_uri: Missing[str] = Field( + default=UNSET, + description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + tool_name: Missing[str] = Field( + default=UNSET, + description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + ) + validate_: Missing[bool] = Field( + default=UNSET, + alias="validate", + description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) + +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1046.py b/githubkit/versions/v2022_11_28/models/group_1046.py index 496e2b84a..2417f0954 100644 --- a/githubkit/versions/v2022_11_28/models/group_1046.py +++ b/githubkit/versions/v2022_11_28/models/group_1046.py @@ -9,23 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0091 import Codespace + -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment." - ) + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1047.py b/githubkit/versions/v2022_11_28/models/group_1047.py index 757d9d282..9d9c2bbbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1047.py +++ b/githubkit/versions/v2022_11_28/models/group_1047.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,22 +18,52 @@ from githubkit.utils import UNSET -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - line: Missing[int] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1048.py b/githubkit/versions/v2022_11_28/models/group_1048.py index 90b52db3b..262d6c72c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1048.py +++ b/githubkit/versions/v2022_11_28/models/group_1048.py @@ -12,17 +12,33 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0232 import CheckRun - -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int = Field() - check_runs: list[CheckRun] = Field() + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1049.py b/githubkit/versions/v2022_11_28/models/group_1049.py index 06ebae173..be3dc4034 100644 --- a/githubkit/versions/v2022_11_28/models/group_1049.py +++ b/githubkit/versions/v2022_11_28/models/group_1049.py @@ -12,70 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0090 import CodespaceMachine -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" - message: str = Field(description="The commit message.") - content: str = Field(description="The new file content, using Base64 encoding.") - sha: Missing[str] = Field( - default=UNSET, - description="**Required if you are updating a file**. The blob SHA of the file being replaced.", - ) - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch.", - ) - committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( - default=UNSET, - description="The person that committed the file. Default: the authenticated user.", - ) - author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( - default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", - ) +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - The person that committed the file. Default: the authenticated user. - """ +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - - -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) - -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1050.py b/githubkit/versions/v2022_11_28/models/group_1050.py index b246a17c2..14c58fd19 100644 --- a/githubkit/versions/v2022_11_28/models/group_1050.py +++ b/githubkit/versions/v2022_11_28/models/group_1050.py @@ -9,66 +9,39 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0003 import SimpleUser -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" - - message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") - branch: Missing[str] = Field( - default=UNSET, - description="The branch name. Default: the repository’s default branch", - ) - committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( - default=UNSET, description="object containing information about the committer." - ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - object containing information about the committer. - """ +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET ) -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) __all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1051.py b/githubkit/versions/v2022_11_28/models/group_1051.py index 98b4b8e85..ea29eb2ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_1051.py +++ b/githubkit/versions/v2022_11_28/models/group_1051.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." - ) - dismissed_reason: Missing[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] = Field( - default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", - ) - dismissed_comment: Missing[str] = Field( - max_length=280, - default=UNSET, - description="An optional comment associated with dismissing the alert.", - ) - - -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) - -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) + + +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" + + total_count: int = Field() + secrets: list[RepoCodespacesSecret] = Field() + + +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) + +__all__ = ( + "RepoCodespacesSecret", + "ReposOwnerRepoCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1052.py b/githubkit/versions/v2022_11_28/models/group_1052.py index 22c7a2b35..a1412f088 100644 --- a/githubkit/versions/v2022_11_28/models/group_1052.py +++ b/githubkit/versions/v2022_11_28/models/group_1052.py @@ -9,35 +9,26 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" - - total_count: int = Field() - secrets: list[DependabotSecret] = Field() - - -class DependabotSecret(GitHubModel): - """Dependabot Secret - - Set secrets for Dependabot. - """ +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) -model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ( - "DependabotSecret", - "ReposOwnerRepoDependabotSecretsGetResponse200", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1053.py b/githubkit/versions/v2022_11_28/models/group_1053.py index f2da3a6d7..637f9ed63 100644 --- a/githubkit/versions/v2022_11_28/models/group_1053.py +++ b/githubkit/versions/v2022_11_28/models/group_1053.py @@ -16,19 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + permission: Missing[str] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", ) -model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1054.py b/githubkit/versions/v2022_11_28/models/group_1054.py index d8abaeb32..75effd211 100644 --- a/githubkit/versions/v2022_11_28/models/group_1054.py +++ b/githubkit/versions/v2022_11_28/models/group_1054.py @@ -14,19 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - id: int = Field(description="ID of the created snapshot.") - created_at: str = Field(description="The time at which the snapshot was created.") - result: str = Field( - description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' - ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." - ) + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1055.py b/githubkit/versions/v2022_11_28/models/group_1055.py index 7a0f8ffb7..496e2b84a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1055.py +++ b/githubkit/versions/v2022_11_28/models/group_1055.py @@ -9,61 +9,23 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment." ) - task: Missing[str] = Field( - default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", - ) - auto_merge: Missing[bool] = Field( - default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", - ) - required_contexts: Missing[list[str]] = Field( - default=UNSET, - description="The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", - ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the deployment." - ) - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", - ) - - -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1056.py b/githubkit/versions/v2022_11_28/models/group_1056.py index 87a3629c8..757d9d282 100644 --- a/githubkit/versions/v2022_11_28/models/group_1056.py +++ b/githubkit/versions/v2022_11_28/models/group_1056.py @@ -16,12 +16,22 @@ from githubkit.utils import UNSET -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - message: Missing[str] = Field(default=UNSET) + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Closing down notice**. Use **position** parameter instead. Line number in the file to comment on.", + ) -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1057.py b/githubkit/versions/v2022_11_28/models/group_1057.py index fbbf01aa8..7852294e0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1057.py +++ b/githubkit/versions/v2022_11_28/models/group_1057.py @@ -9,49 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] = Field( - description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." - ) - target_url: Missing[str] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", - ) - log_url: Missing[str] = Field( - default=UNSET, - description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", - ) - environment_url: Missing[str] = Field( - default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', - ) - auto_inactive: Missing[bool] = Field( - default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", - ) - - -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) - -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) + +from .group_0236 import CheckRun + + +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + + total_count: int = Field() + check_runs: list[CheckRun] = Field() + + +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1058.py b/githubkit/versions/v2022_11_28/models/group_1058.py index 7a5ec1511..06ebae173 100644 --- a/githubkit/versions/v2022_11_28/models/group_1058.py +++ b/githubkit/versions/v2022_11_28/models/group_1058.py @@ -11,38 +11,71 @@ from pydantic import Field -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + message: str = Field(description="The commit message.") + content: str = Field(description="The new file content, using Base64 encoding.") + sha: Missing[str] = Field( + default=UNSET, + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", + ) + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch.", + ) + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", ) -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. The total - size of the JSON payload must be less than 64KB. + The person that committed the file. Default: the authenticated user. """ + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) __all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1059.py b/githubkit/versions/v2022_11_28/models/group_1059.py index 5da1bcd40..b246a17c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1059.py +++ b/githubkit/versions/v2022_11_28/models/group_1059.py @@ -9,61 +9,66 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0288 import DeploymentBranchPolicySettings - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" - wait_timer: Missing[int] = Field( + message: str = Field(description="The commit message.") + sha: str = Field(description="The blob SHA of the file being deleted.") + branch: Missing[str] = Field( default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + description="The branch name. Default: the repository’s default branch", ) - prevent_self_review: Missing[bool] = Field( - default=UNSET, - description="Whether or not a user who created the job is prevented from approving their own job.", + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." ) - reviewers: Missing[ - Union[ - list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], - None, - ] - ] = Field( - default=UNSET, - description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + object containing information about the author. + """ - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" ) - id: Missing[int] = Field( + email: Missing[str] = Field( default=UNSET, - description="The id of the user or team who can review the deployment", + description="The email of the author (or committer) of the commit", ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1060.py b/githubkit/versions/v2022_11_28/models/group_1060.py index e8d56e3db..98b4b8e85 100644 --- a/githubkit/versions/v2022_11_28/models/group_1060.py +++ b/githubkit/versions/v2022_11_28/models/group_1060.py @@ -18,42 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." + state: Literal["dismissed", "open"] = Field( + description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." ) - branch_policies: list[DeploymentBranchPolicy] = Field() - - -class DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." - ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( + dismissed_reason: Missing[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] = Field( default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." + dismissed_comment: Missing[str] = Field( + max_length=280, + default=UNSET, + description="An optional comment associated with dismissing the alert.", ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ( - "DeploymentBranchPolicy", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1061.py b/githubkit/versions/v2022_11_28/models/group_1061.py index b5d03989b..22c7a2b35 100644 --- a/githubkit/versions/v2022_11_28/models/group_1061.py +++ b/githubkit/versions/v2022_11_28/models/group_1061.py @@ -9,28 +9,35 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - integration_id: Missing[int] = Field( - default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", - ) + total_count: int = Field() + secrets: list[DependabotSecret] = Field() -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", + "DependabotSecret", + "ReposOwnerRepoDependabotSecretsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1062.py b/githubkit/versions/v2022_11_28/models/group_1062.py index c268e9f14..f2da3a6d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1062.py +++ b/githubkit/versions/v2022_11_28/models/group_1062.py @@ -15,29 +15,20 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0294 import CustomDeploymentRuleApp +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ - - total_count: Missing[int] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) - available_custom_deployment_protection_rule_integrations: Missing[ - list[CustomDeploymentRuleApp] - ] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1063.py b/githubkit/versions/v2022_11_28/models/group_1063.py index 1dc8cfaaa..d8abaeb32 100644 --- a/githubkit/versions/v2022_11_28/models/group_1063.py +++ b/githubkit/versions/v2022_11_28/models/group_1063.py @@ -13,16 +13,20 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0200 import ActionsSecret +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + id: int = Field(description="ID of the created snapshot.") + created_at: str = Field(description="The time at which the snapshot was created.") + result: str = Field( + description='Either "SUCCESS", "ACCEPTED", or "INVALID". "SUCCESS" indicates that the snapshot was successfully created and the repository\'s dependencies were updated. "ACCEPTED" indicates that the snapshot was successfully created, but the repository\'s dependencies were not updated. "INVALID" indicates that the snapshot was malformed.' + ) + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." + ) - total_count: int = Field() - secrets: list[ActionsSecret] = Field() +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_1064.py b/githubkit/versions/v2022_11_28/models/group_1064.py index aec8c7a15..7a0f8ffb7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1064.py +++ b/githubkit/versions/v2022_11_28/models/group_1064.py @@ -9,21 +9,61 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - encrypted_value: str = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.", + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or SHA." + ) + task: Missing[str] = Field( + default=UNSET, + description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + ) + auto_merge: Missing[bool] = Field( + default=UNSET, + description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + ) + required_contexts: Missing[list[str]] = Field( + default=UNSET, + description="The [status](https://docs.github.com/rest/commits/statuses) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", + ) + payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( + Field(default=UNSET) + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the deployment." + ) + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", + ) + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", + ) + + +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1065.py b/githubkit/versions/v2022_11_28/models/group_1065.py index 638462e8d..87a3629c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1065.py +++ b/githubkit/versions/v2022_11_28/models/group_1065.py @@ -12,17 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0201 import ActionsVariable +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + message: Missing[str] = Field(default=UNSET) - total_count: int = Field() - variables: list[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1066.py b/githubkit/versions/v2022_11_28/models/group_1066.py index 376060834..fbbf01aa8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1066.py +++ b/githubkit/versions/v2022_11_28/models/group_1066.py @@ -9,18 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - - -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" + + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] = Field( + description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." + ) + target_url: Missing[str] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment.\n\n> [!NOTE]\n> It's recommended to use the `log_url` parameter, which replaces `target_url`.", + ) + log_url: Missing[str] = Field( + default=UNSET, + description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the status. The maximum description length is 140 characters.", + ) + environment: Missing[str] = Field( + default=UNSET, + description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", + ) + environment_url: Missing[str] = Field( + default=UNSET, + description='Sets the URL for accessing your environment. Default: `""`', + ) + auto_inactive: Missing[bool] = Field( + default=UNSET, + description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + ) + + +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) + +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1067.py b/githubkit/versions/v2022_11_28/models/group_1067.py index 6a0d6de99..7a5ec1511 100644 --- a/githubkit/versions/v2022_11_28/models/group_1067.py +++ b/githubkit/versions/v2022_11_28/models/group_1067.py @@ -11,18 +11,38 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", + ) + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + default=UNSET, + description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB.", + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. The total + size of the JSON payload must be less than 64KB. + """ + + +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) + +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1068.py b/githubkit/versions/v2022_11_28/models/group_1068.py index abc9b3749..8beae560b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1068.py +++ b/githubkit/versions/v2022_11_28/models/group_1068.py @@ -9,30 +9,61 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0292 import DeploymentBranchPolicySettings + -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - organization: Missing[str] = Field( + wait_timer: Missing[int] = Field( default=UNSET, - description="Optional parameter to specify the organization name if forking into an organization.", + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", ) - name: Missing[str] = Field( + prevent_self_review: Missing[bool] = Field( default=UNSET, - description="When forking from an existing repository, a new name for the fork.", + description="Whether or not a user who created the job is prevented from approving their own job.", + ) + reviewers: Missing[ + Union[ + list[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( + default=UNSET, + description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - default_branch_only: Missing[bool] = Field( + id: Missing[int] = Field( default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", + description="The id of the user or team who can review the deployment", ) -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1069.py b/githubkit/versions/v2022_11_28/models/group_1069.py index f4b8ca964..e8d56e3db 100644 --- a/githubkit/versions/v2022_11_28/models/group_1069.py +++ b/githubkit/versions/v2022_11_28/models/group_1069.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,16 +18,42 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" + + total_count: int = Field( + description="The number of deployment branch policies for the environment." + ) + branch_policies: list[DeploymentBranchPolicy] = Field() + + +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." + ) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + description="The name pattern that branches or tags must match in order to deploy to the environment.", + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag." ) -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "DeploymentBranchPolicy", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1070.py b/githubkit/versions/v2022_11_28/models/group_1070.py index 111a9d4a5..b5d03989b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1070.py +++ b/githubkit/versions/v2022_11_28/models/group_1070.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,74 +16,21 @@ from githubkit.utils import UNSET -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" - - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[list[str]] = Field( - default=UNSET, - description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( - default=UNSET, - description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - ) - committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( - default=UNSET, - description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - ) - signature: Missing[str] = Field( - default=UNSET, - description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - name: str = Field(description="The name of the author (or committer) of the commit") - email: str = Field( - description="The email of the author (or committer) of the commit" - ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( + integration_id: Missing[int] = Field( default=UNSET, - description="The email of the author (or committer) of the commit", - ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The ID of the custom app that will be enabled on the environment.", ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) __all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1071.py b/githubkit/versions/v2022_11_28/models/group_1071.py index e02988ad3..3e5f43a9d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1071.py +++ b/githubkit/versions/v2022_11_28/models/group_1071.py @@ -12,17 +12,32 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET +from .group_0298 import CustomDeploymentRuleApp -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" - ref: str = Field( - description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of custom deployment protection rule integrations available for this environment.", ) - sha: str = Field(description="The SHA1 value for this reference.") + available_custom_deployment_protection_rule_integrations: Missing[ + list[CustomDeploymentRuleApp] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1072.py b/githubkit/versions/v2022_11_28/models/group_1072.py index dc680ffcd..eccdfd9b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1072.py +++ b/githubkit/versions/v2022_11_28/models/group_1072.py @@ -12,20 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0204 import ActionsSecret -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( - default=UNSET, - description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", - ) +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int = Field() + secrets: list[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1073.py b/githubkit/versions/v2022_11_28/models/group_1073.py index 2366c3d87..aec8c7a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_1073.py +++ b/githubkit/versions/v2022_11_28/models/group_1073.py @@ -9,53 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" - - tag: str = Field( - description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' - ) - message: str = Field(description="The tag message.") - object_: str = Field( - alias="object", description="The SHA of the git object this is tagging." - ) - type: Literal["commit", "tree", "blob"] = Field( - description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." - ) - tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( - default=UNSET, - description="An object with information about the individual creating the tag.", - ) - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - An object with information about the individual creating the tag. - """ +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( - default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.", ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1074.py b/githubkit/versions/v2022_11_28/models/group_1074.py index 1d6bd8e59..402d95f06 100644 --- a/githubkit/versions/v2022_11_28/models/group_1074.py +++ b/githubkit/versions/v2022_11_28/models/group_1074.py @@ -9,54 +9,20 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" - - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." - ) - base_tree: Missing[str] = Field( - default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", - ) - - -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." - ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( - default=UNSET, - description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", - ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." - ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", - ) - content: Missing[str] = Field( - default=UNSET, - description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", - ) - - -model_rebuild(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) - -__all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", -) + +from .group_0205 import ActionsVariable + + +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + + total_count: int = Field() + variables: list[ActionsVariable] = Field() + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1075.py b/githubkit/versions/v2022_11_28/models/group_1075.py index 005e3bc51..376060834 100644 --- a/githubkit/versions/v2022_11_28/models/group_1075.py +++ b/githubkit/versions/v2022_11_28/models/group_1075.py @@ -9,60 +9,18 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - - -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" - - name: Missing[str] = Field( - default=UNSET, - description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", - ) - config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1076.py b/githubkit/versions/v2022_11_28/models/group_1076.py index f93161b0f..6a0d6de99 100644 --- a/githubkit/versions/v2022_11_28/models/group_1076.py +++ b/githubkit/versions/v2022_11_28/models/group_1076.py @@ -15,35 +15,14 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0011 import WebhookConfig - - -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( - default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", - ) - events: Missing[list[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", - ) - add_events: Missing[list[str]] = Field( - default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", - ) - remove_events: Missing[list[str]] = Field( - default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) + +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1077.py b/githubkit/versions/v2022_11_28/models/group_1077.py index a0493aad9..abc9b3749 100644 --- a/githubkit/versions/v2022_11_28/models/group_1077.py +++ b/githubkit/versions/v2022_11_28/models/group_1077.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,23 +16,23 @@ from githubkit.utils import UNSET -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + organization: Missing[str] = Field( + default=UNSET, + description="Optional parameter to specify the organization name if forking into an organization.", ) - content_type: Missing[str] = Field( + name: Missing[str] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="When forking from an existing repository, a new name for the fork.", ) - secret: Missing[str] = Field( + default_branch_only: Missing[bool] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + description="When forking from an existing repository, fork with only the default branch.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1078.py b/githubkit/versions/v2022_11_28/models/group_1078.py index 4e11d0489..f4b8ca964 100644 --- a/githubkit/versions/v2022_11_28/models/group_1078.py +++ b/githubkit/versions/v2022_11_28/models/group_1078.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,28 +16,16 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - vcs_url: str = Field(description="The URL of the originating repository.") - vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( - default=UNSET, - description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", - ) - vcs_username: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", - ) - tfvc_project: Missing[str] = Field( + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1079.py b/githubkit/versions/v2022_11_28/models/group_1079.py index 73c9a3a1e..111a9d4a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1079.py +++ b/githubkit/versions/v2022_11_28/models/group_1079.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,27 +18,74 @@ from githubkit.utils import UNSET -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" - vcs_username: Missing[str] = Field( + message: str = Field(description="The commit message") + tree: str = Field(description="The SHA of the tree object this commit points to") + parents: Missing[list[str]] = Field( default=UNSET, - description="The username to provide to the originating repository.", + description="The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", ) - vcs_password: Missing[str] = Field( + author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( default=UNSET, - description="The password to provide to the originating repository.", + description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( default=UNSET, - description="The type of version control system you are migrating from.", + description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", ) - tfvc_project: Missing[str] = Field( + signature: Missing[str] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", ) -model_rebuild(ReposOwnerRepoImportPatchBody) +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor -__all__ = ("ReposOwnerRepoImportPatchBody",) + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str = Field(description="The name of the author (or committer) of the commit") + email: str = Field( + description="The email of the author (or committer) of the commit" + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1080.py b/githubkit/versions/v2022_11_28/models/group_1080.py index bac05d75f..e02988ad3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1080.py +++ b/githubkit/versions/v2022_11_28/models/group_1080.py @@ -12,17 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + ref: str = Field( + description="The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected." + ) + sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1081.py b/githubkit/versions/v2022_11_28/models/group_1081.py index 7727d20f6..dc680ffcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1081.py +++ b/githubkit/versions/v2022_11_28/models/group_1081.py @@ -9,21 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - use_lfs: Literal["opt_in", "opt_out"] = Field( - description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = Field( + default=UNSET, + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", ) -model_rebuild(ReposOwnerRepoImportLfsPatchBody) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1082.py b/githubkit/versions/v2022_11_28/models/group_1082.py index 759975570..2366c3d87 100644 --- a/githubkit/versions/v2022_11_28/models/group_1082.py +++ b/githubkit/versions/v2022_11_28/models/group_1082.py @@ -9,13 +9,53 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +from datetime import datetime +from typing import Literal +from pydantic import Field -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) - -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" + + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + ) + message: str = Field(description="The tag message.") + object_: str = Field( + alias="object", description="The SHA of the git object this is tagging." + ) + type: Literal["commit", "tree", "blob"] = Field( + description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." + ) + tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( + default=UNSET, + description="An object with information about the individual creating the tag.", + ) + + +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( + default=UNSET, + description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) + +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1083.py b/githubkit/versions/v2022_11_28/models/group_1083.py index 3569862c6..1d6bd8e59 100644 --- a/githubkit/versions/v2022_11_28/models/group_1083.py +++ b/githubkit/versions/v2022_11_28/models/group_1083.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from pydantic import Field @@ -18,17 +18,45 @@ from githubkit.utils import UNSET -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( - Field( - default=UNSET, - description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", - ) + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( + default=UNSET, + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.", + ) + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." + ) + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + default=UNSET, + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + ) + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + content: Missing[str] = Field( + default=UNSET, + description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", ) -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ( + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1084.py b/githubkit/versions/v2022_11_28/models/group_1084.py index 6c961bc46..005e3bc51 100644 --- a/githubkit/versions/v2022_11_28/models/group_1084.py +++ b/githubkit/versions/v2022_11_28/models/group_1084.py @@ -18,45 +18,51 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( + name: Missing[str] = Field( default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + description="Key/value pairs to provide settings for this webhook.", ) - assignees: Missing[list[str]] = Field( + events: Missing[list[str]] = Field( default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", ) - type: Missing[Union[str, None]] = Field( + active: Missing[bool] = Field( default=UNSET, - description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", ) -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) + Key/value pairs to provide settings for this webhook. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) __all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1085.py b/githubkit/versions/v2022_11_28/models/group_1085.py index 2e91230e7..f93161b0f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1085.py +++ b/githubkit/versions/v2022_11_28/models/group_1085.py @@ -12,14 +12,38 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - - body: str = Field(description="The contents of the comment.") - - -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) - -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_0011 import WebhookConfig + + +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( + default=UNSET, + title="Webhook Configuration", + description="Configuration object of the webhook", + ) + events: Missing[list[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + ) + add_events: Missing[list[str]] = Field( + default=UNSET, + description="Determines a list of events to be added to the list of events that the Hook triggers for.", + ) + remove_events: Missing[list[str]] = Field( + default=UNSET, + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1086.py b/githubkit/versions/v2022_11_28/models/group_1086.py index 429ace692..a0493aad9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1086.py +++ b/githubkit/versions/v2022_11_28/models/group_1086.py @@ -9,23 +9,32 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment." + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1087.py b/githubkit/versions/v2022_11_28/models/group_1087.py index 0b68f57a6..4e11d0489 100644 --- a/githubkit/versions/v2022_11_28/models/group_1087.py +++ b/githubkit/versions/v2022_11_28/models/group_1087.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,58 +18,28 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - title: Missing[Union[str, int, None]] = Field( - default=UNSET, description="The title of the issue." - ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="The contents of the issue." - ) - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Username to assign to this issue. **This field is closing down.**", - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." - ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( + vcs_url: str = Field(description="The URL of the originating repository.") + vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", + description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( + vcs_username: Missing[str] = Field( default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + description="If authentication is required, the username to provide to `vcs_url`.", ) - assignees: Missing[list[str]] = Field( + vcs_password: Missing[str] = Field( default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + description="If authentication is required, the password to provide to `vcs_url`.", ) - type: Missing[Union[str, None]] = Field( + tfvc_project: Missing[str] = Field( default=UNSET, - description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", + description="For a tfvc import, the name of the project that is being imported.", ) -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1088.py b/githubkit/versions/v2022_11_28/models/group_1088.py index 5b60a1932..73c9a3a1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1088.py +++ b/githubkit/versions/v2022_11_28/models/group_1088.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,27 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - assignees: Missing[list[str]] = Field( + vcs_username: Missing[str] = Field( + default=UNSET, + description="The username to provide to the originating repository.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="The password to provide to the originating repository.", + ) + vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + default=UNSET, + description="The type of version control system you are migrating from.", + ) + tfvc_project: Missing[str] = Field( default=UNSET, - description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1089.py b/githubkit/versions/v2022_11_28/models/group_1089.py index 1c74a1195..bac05d75f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1089.py +++ b/githubkit/versions/v2022_11_28/models/group_1089.py @@ -16,15 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - assignees: Missing[list[str]] = Field( - default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", - ) + email: Missing[str] = Field(default=UNSET, description="The new Git author email.") + name: Missing[str] = Field(default=UNSET, description="The new Git author name.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1090.py b/githubkit/versions/v2022_11_28/models/group_1090.py index 49a6d6da0..7727d20f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1090.py +++ b/githubkit/versions/v2022_11_28/models/group_1090.py @@ -9,17 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - body: str = Field(description="The contents of the comment.") + use_lfs: Literal["opt_in", "opt_out"] = Field( + description="Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import." + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1091.py b/githubkit/versions/v2022_11_28/models/group_1091.py index c2d37d8d2..759975570 100644 --- a/githubkit/versions/v2022_11_28/models/group_1091.py +++ b/githubkit/versions/v2022_11_28/models/group_1091.py @@ -9,23 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', - ) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1092.py b/githubkit/versions/v2022_11_28/models/group_1092.py index ed2c2a834..3569862c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1092.py +++ b/githubkit/versions/v2022_11_28/models/group_1092.py @@ -9,31 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - name: str = Field() + permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( + Field( + default=UNSET, + description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", + ) + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1093.py b/githubkit/versions/v2022_11_28/models/group_1093.py index d59513ace..6c961bc46 100644 --- a/githubkit/versions/v2022_11_28/models/group_1093.py +++ b/githubkit/versions/v2022_11_28/models/group_1093.py @@ -9,17 +9,54 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" + + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._", + ) + + +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) + +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1094.py b/githubkit/versions/v2022_11_28/models/group_1094.py index a13dcae5c..2e91230e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1094.py +++ b/githubkit/versions/v2022_11_28/models/group_1094.py @@ -11,21 +11,15 @@ from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - labels: Missing[list[str]] = Field( - min_length=1 if PYDANTIC_V2 else None, - default=UNSET, - description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."', - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1095.py b/githubkit/versions/v2022_11_28/models/group_1095.py index f67daaa62..429ace692 100644 --- a/githubkit/versions/v2022_11_28/models/group_1095.py +++ b/githubkit/versions/v2022_11_28/models/group_1095.py @@ -9,31 +9,23 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from typing import Literal +from pydantic import Field -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - name: str = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue comment." + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1096.py b/githubkit/versions/v2022_11_28/models/group_1096.py index dfb903bb9..0b68f57a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1096.py +++ b/githubkit/versions/v2022_11_28/models/group_1096.py @@ -9,17 +9,67 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is closing down.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + list[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + ) + type: Missing[Union[str, None]] = Field( + default=UNSET, + description="The name of the issue type to associate with this issue or use `null` to remove the current issue type. Only users with push access can set the type for issues. Without push access to the repository, type changes are silently dropped.", + ) -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - name: str = Field() + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1097.py b/githubkit/versions/v2022_11_28/models/group_1097.py index 485b30e7e..5b60a1932 100644 --- a/githubkit/versions/v2022_11_28/models/group_1097.py +++ b/githubkit/versions/v2022_11_28/models/group_1097.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,17 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( - Field( - default=UNSET, - description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", - ) + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1098.py b/githubkit/versions/v2022_11_28/models/group_1098.py index 4d12ca0e6..1c74a1195 100644 --- a/githubkit/versions/v2022_11_28/models/group_1098.py +++ b/githubkit/versions/v2022_11_28/models/group_1098.py @@ -9,23 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue." + assignees: Missing[list[str]] = Field( + default=UNSET, + description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1099.py b/githubkit/versions/v2022_11_28/models/group_1099.py index f813db6bf..49a6d6da0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1099.py +++ b/githubkit/versions/v2022_11_28/models/group_1099.py @@ -14,12 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - sub_issue_id: int = Field(description="The id of the sub-issue to remove") + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1100.py b/githubkit/versions/v2022_11_28/models/group_1100.py index 7e9d65950..c2d37d8d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_1100.py +++ b/githubkit/versions/v2022_11_28/models/group_1100.py @@ -11,23 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - sub_issue_id: int = Field( - description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" - ) - replace_parent: Missing[bool] = Field( + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", + description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1101.py b/githubkit/versions/v2022_11_28/models/group_1101.py index f3aab1e81..ed2c2a834 100644 --- a/githubkit/versions/v2022_11_28/models/group_1101.py +++ b/githubkit/versions/v2022_11_28/models/group_1101.py @@ -11,25 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") - after_id: Missing[int] = Field( - default=UNSET, - description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", - ) - before_id: Missing[int] = Field( - default=UNSET, - description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1102.py b/githubkit/versions/v2022_11_28/models/group_1102.py index 9ce2ef608..d59513ace 100644 --- a/githubkit/versions/v2022_11_28/models/group_1102.py +++ b/githubkit/versions/v2022_11_28/models/group_1102.py @@ -12,21 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - title: Missing[str] = Field(default=UNSET, description="A name for the key.") - key: str = Field(description="The contents of the key.") - read_only: Missing[bool] = Field( - default=UNSET, - description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)."', - ) + name: str = Field() -model_rebuild(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1103.py b/githubkit/versions/v2022_11_28/models/group_1103.py index 27dc128b3..a13dcae5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1103.py +++ b/githubkit/versions/v2022_11_28/models/group_1103.py @@ -11,27 +11,21 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str = Field( - description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( + labels: Missing[list[str]] = Field( + min_length=1 if PYDANTIC_V2 else None, default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", + description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."', ) -model_rebuild(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1104.py b/githubkit/versions/v2022_11_28/models/group_1104.py index 810ac1cad..f67daaa62 100644 --- a/githubkit/versions/v2022_11_28/models/group_1104.py +++ b/githubkit/versions/v2022_11_28/models/group_1104.py @@ -11,28 +11,29 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - new_name: Missing[str] = Field( - default=UNSET, - description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) + labels: Missing[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1 if PYDANTIC_V2 else None, default=UNSET) -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1105.py b/githubkit/versions/v2022_11_28/models/group_1105.py index 7be32859a..dfb903bb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1105.py +++ b/githubkit/versions/v2022_11_28/models/group_1105.py @@ -14,14 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." - ) + name: str = Field() -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_1106.py b/githubkit/versions/v2022_11_28/models/group_1106.py index 8d864c09c..485b30e7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1106.py +++ b/githubkit/versions/v2022_11_28/models/group_1106.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,21 +18,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - base: str = Field( - description="The name of the base branch that the head will be merged into." - ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." - ) - commit_message: Missing[str] = Field( - default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", + lock_reason: Missing[Literal["off-topic", "too heated", "resolved", "spam"]] = ( + Field( + default=UNSET, + description="The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`", + ) ) -model_rebuild(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1107.py b/githubkit/versions/v2022_11_28/models/group_1107.py index 4c86e4385..4d12ca0e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1107.py +++ b/githubkit/versions/v2022_11_28/models/group_1107.py @@ -9,33 +9,23 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue." ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1108.py b/githubkit/versions/v2022_11_28/models/group_1108.py index c674f9121..f813db6bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_1108.py +++ b/githubkit/versions/v2022_11_28/models/group_1108.py @@ -9,35 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) + sub_issue_id: int = Field(description="The id of the sub-issue to remove") -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1109.py b/githubkit/versions/v2022_11_28/models/group_1109.py index 7a766cc33..7e9d65950 100644 --- a/githubkit/versions/v2022_11_28/models/group_1109.py +++ b/githubkit/versions/v2022_11_28/models/group_1109.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,18 @@ from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - last_read_at: Missing[datetime] = Field( + sub_issue_id: int = Field( + description="The id of the sub-issue to add. The sub-issue must belong to the same repository owner as the parent issue" + ) + replace_parent: Missing[bool] = Field( default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + description="Option that, when true, instructs the operation to replace the sub-issues current parent issue", ) -model_rebuild(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1110.py b/githubkit/versions/v2022_11_28/models/group_1110.py index 41ae3801e..f3aab1e81 100644 --- a/githubkit/versions/v2022_11_28/models/group_1110.py +++ b/githubkit/versions/v2022_11_28/models/group_1110.py @@ -16,13 +16,20 @@ from githubkit.utils import UNSET -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + sub_issue_id: int = Field(description="The id of the sub-issue to reprioritize") + after_id: Missing[int] = Field( + default=UNSET, + description="The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).", + ) + before_id: Missing[int] = Field( + default=UNSET, + description="The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).", + ) -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1111.py b/githubkit/versions/v2022_11_28/models/group_1111.py index aaa502a31..9ce2ef608 100644 --- a/githubkit/versions/v2022_11_28/models/group_1111.py +++ b/githubkit/versions/v2022_11_28/models/group_1111.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - Update the source for the repository. Must include the branch name and path. - """ +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + title: Missing[str] = Field(default=UNSET, description="A name for the key.") + key: str = Field(description="The contents of the key.") + read_only: Missing[bool] = Field( + default=UNSET, + description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)."', ) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1112.py b/githubkit/versions/v2022_11_28/models/group_1112.py index 275b457b3..27dc128b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1112.py +++ b/githubkit/versions/v2022_11_28/models/group_1112.py @@ -9,39 +9,29 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + name: str = Field( + description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' ) - https_enforced: Missing[bool] = Field( + color: Missing[str] = Field( default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", ) - build_type: Literal["legacy", "workflow"] = Field( - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1113.py b/githubkit/versions/v2022_11_28/models/group_1113.py index ccbeb8642..810ac1cad 100644 --- a/githubkit/versions/v2022_11_28/models/group_1113.py +++ b/githubkit/versions/v2022_11_28/models/group_1113.py @@ -9,38 +9,30 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - cname: Missing[Union[str, None]] = Field( + new_name: Missing[str] = Field( default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', ) - https_enforced: Missing[bool] = Field( + color: Missing[str] = Field( default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + description: Missing[str] = Field( default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + description="A short description of the label. Must be 100 characters or fewer.", ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1114.py b/githubkit/versions/v2022_11_28/models/group_1114.py index 465d12866..7be32859a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1114.py +++ b/githubkit/versions/v2022_11_28/models/group_1114.py @@ -9,39 +9,19 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET - -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1115.py b/githubkit/versions/v2022_11_28/models/group_1115.py index 63560bf72..8d864c09c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1115.py +++ b/githubkit/versions/v2022_11_28/models/group_1115.py @@ -9,40 +9,28 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + base: str = Field( + description="The name of the base branch that the head will be merged into." ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", + head: str = Field( + description="The head to merge. This can be a branch name or a commit SHA1." ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + commit_message: Missing[str] = Field( default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + description="Commit message to use for the merge commit. If omitted, a default message will be used.", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1116.py b/githubkit/versions/v2022_11_28/models/group_1116.py index 63e0f5120..4c86e4385 100644 --- a/githubkit/versions/v2022_11_28/models/group_1116.py +++ b/githubkit/versions/v2022_11_28/models/group_1116.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from pydantic import Field @@ -17,31 +18,24 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" - - cname: Missing[Union[str, None]] = Field( + title: str = Field(description="The title of the milestone.") + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + description="The state of the milestone. Either `open` or `closed`.", ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + due_on: Missing[datetime] = Field( default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1117.py b/githubkit/versions/v2022_11_28/models/group_1117.py index 693572351..c674f9121 100644 --- a/githubkit/versions/v2022_11_28/models/group_1117.py +++ b/githubkit/versions/v2022_11_28/models/group_1117.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from pydantic import Field @@ -18,21 +19,25 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - The source branch and directory used to publish your Pages site. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." + title: Missing[str] = Field( + default=UNSET, description="The title of the milestone." + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - path: Missing[Literal["/", "/docs"]] = Field( + due_on: Missing[datetime] = Field( default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1118.py b/githubkit/versions/v2022_11_28/models/group_1118.py index bef595a91..7a766cc33 100644 --- a/githubkit/versions/v2022_11_28/models/group_1118.py +++ b/githubkit/versions/v2022_11_28/models/group_1118.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,21 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1117 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" - - build_type: Missing[Literal["legacy", "workflow"]] = Field( + last_read_at: Missing[datetime] = Field( default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', - ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." + description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", ) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1119.py b/githubkit/versions/v2022_11_28/models/group_1119.py index e5147caaa..41ae3801e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1119.py +++ b/githubkit/versions/v2022_11_28/models/group_1119.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_1117 import ReposOwnerRepoPagesPostBodyPropSource - -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' - ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( - default=UNSET, - description="The source branch and directory used to publish your Pages site.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1120.py b/githubkit/versions/v2022_11_28/models/group_1120.py index d9c520300..aaa502a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_1120.py +++ b/githubkit/versions/v2022_11_28/models/group_1120.py @@ -9,40 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - The object used to create GitHub Pages deployment + Update the source for the repository. Must include the branch name and path. """ - artifact_id: Missing[float] = Field( - default=UNSET, - description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="The target environment for this GitHub Pages deployment.", - ) - pages_build_version: str = Field( - default="GITHUB_SHA", - description="A unique string that represents the version of the build for this deployment.", + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - oidc_token: str = Field( - description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) -model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1121.py b/githubkit/versions/v2022_11_28/models/group_1121.py index c70eda7b0..8f4094961 100644 --- a/githubkit/versions/v2022_11_28/models/group_1121.py +++ b/githubkit/versions/v2022_11_28/models/group_1121.py @@ -9,19 +9,39 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Literal["legacy", "workflow"] = Field( + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1122.py b/githubkit/versions/v2022_11_28/models/group_1122.py index a5aa6012f..ff3af2d50 100644 --- a/githubkit/versions/v2022_11_28/models/group_1122.py +++ b/githubkit/versions/v2022_11_28/models/group_1122.py @@ -9,22 +9,38 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1123.py b/githubkit/versions/v2022_11_28/models/group_1123.py index 7de943e00..e6a0ee082 100644 --- a/githubkit/versions/v2022_11_28/models/group_1123.py +++ b/githubkit/versions/v2022_11_28/models/group_1123.py @@ -9,21 +9,39 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -from .group_0117 import CustomPropertyValue +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" - properties: list[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1124.py b/githubkit/versions/v2022_11_28/models/group_1124.py index 4f571bba6..211e9f36c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1124.py +++ b/githubkit/versions/v2022_11_28/models/group_1124.py @@ -9,47 +9,40 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPostBody(GitHubModel): - """ReposOwnerRepoPullsPostBody""" - title: Missing[str] = Field( - default=UNSET, - description="The title of the new pull request. Required unless `issue` is specified.", - ) - head: str = Field( - description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." - ) - head_repo: Missing[str] = Field( - default=UNSET, - description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", - ) - base: str = Field( - description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - maintainer_can_modify: Missing[bool] = Field( +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" + + cname: Missing[Union[str, None]] = Field( default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) - draft: Missing[bool] = Field( + https_enforced: Missing[bool] = Field( default=UNSET, - description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', + description="Specify whether HTTPS should be enforced for the repository.", ) - issue: Missing[int] = Field( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPullsPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_1125.py b/githubkit/versions/v2022_11_28/models/group_1125.py index b48ea50a0..54a9ae064 100644 --- a/githubkit/versions/v2022_11_28/models/group_1125.py +++ b/githubkit/versions/v2022_11_28/models/group_1125.py @@ -9,17 +9,39 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" - body: str = Field(description="The text of the reply to the review comment.") + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_1126.py b/githubkit/versions/v2022_11_28/models/group_1126.py index 21b71134d..693572351 100644 --- a/githubkit/versions/v2022_11_28/models/group_1126.py +++ b/githubkit/versions/v2022_11_28/models/group_1126.py @@ -14,18 +14,25 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment." + The source branch and directory used to publish your Pages site. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." + ) + path: Missing[Literal["/", "/docs"]] = Field( + default=UNSET, + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_1127.py b/githubkit/versions/v2022_11_28/models/group_1127.py index ac6538022..b8312f8fa 100644 --- a/githubkit/versions/v2022_11_28/models/group_1127.py +++ b/githubkit/versions/v2022_11_28/models/group_1127.py @@ -17,30 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1126 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the pull request." - ) - body: Missing[str] = Field( - default=UNSET, description="The contents of the pull request." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", - ) - base: Missing[str] = Field( +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" + + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', ) - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) -model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1128.py b/githubkit/versions/v2022_11_28/models/group_1128.py index 3bd074c1a..021343d1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1128.py +++ b/githubkit/versions/v2022_11_28/models/group_1128.py @@ -17,49 +17,21 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_1126 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" + + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' ) - retention_period_minutes: Missing[int] = Field( + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + description="The source branch and directory used to publish your Pages site.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1129.py b/githubkit/versions/v2022_11_28/models/group_1129.py index 9864ba3e9..d9c520300 100644 --- a/githubkit/versions/v2022_11_28/models/group_1129.py +++ b/githubkit/versions/v2022_11_28/models/group_1129.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,45 +16,33 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody - body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( + The object used to create GitHub Pages deployment + """ + + artifact_id: Missing[float] = Field( default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", + description="The ID of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", ) - start_line: Missing[int] = Field( + artifact_url: Missing[str] = Field( default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', + description="The URL of an artifact that contains the .zip or .tar of static assets to deploy. The artifact belongs to the repository. Either `artifact_id` or `artifact_url` are required.", ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( + environment: Missing[str] = Field( default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', + description="The target environment for this GitHub Pages deployment.", ) - in_reply_to: Missing[int] = Field( - default=UNSET, - description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', + pages_build_version: str = Field( + default="GITHUB_SHA", + description="A unique string that represents the version of the build for this deployment.", ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." + oidc_token: str = Field( + description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." ) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1130.py b/githubkit/versions/v2022_11_28/models/group_1130.py index 19ce96346..c70eda7b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1130.py +++ b/githubkit/versions/v2022_11_28/models/group_1130.py @@ -14,12 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - body: str = Field(description="The text of the review comment.") + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1131.py b/githubkit/versions/v2022_11_28/models/group_1131.py index ea6df3d24..a5aa6012f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1131.py +++ b/githubkit/versions/v2022_11_28/models/group_1131.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,24 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - commit_title: Missing[str] = Field( - default=UNSET, description="Title for the automatic commit message." - ) - commit_message: Missing[str] = Field( - default=UNSET, description="Extra detail to append to automatic commit message." - ) - sha: Missing[str] = Field( - default=UNSET, - description="SHA that pull request head must match to allow merge.", - ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1132.py b/githubkit/versions/v2022_11_28/models/group_1132.py index d66d3bdba..057f4e078 100644 --- a/githubkit/versions/v2022_11_28/models/group_1132.py +++ b/githubkit/versions/v2022_11_28/models/group_1132.py @@ -12,17 +12,18 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0121 import CustomPropertyValue -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValue] = Field( + description="A list of custom property names and associated values to apply to the repositories." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1133.py b/githubkit/versions/v2022_11_28/models/group_1133.py index bd6450076..4f571bba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1133.py +++ b/githubkit/versions/v2022_11_28/models/group_1133.py @@ -16,13 +16,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" + + title: Missing[str] = Field( + default=UNSET, + description="The title of the new pull request. Required unless `issue` is specified.", + ) + head: str = Field( + description="The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`." + ) + head_repo: Missing[str] = Field( + default=UNSET, + description="The name of the repository where the changes in the pull request were made. This field is required for cross-repository pull requests if both repositories are owned by the same organization.", + ) + base: str = Field( + description="The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + ) + draft: Missing[bool] = Field( + default=UNSET, + description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', + ) + issue: Missing[int] = Field( + default=UNSET, + description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", + ) + + +model_rebuild(ReposOwnerRepoPullsPostBody) + +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1134.py b/githubkit/versions/v2022_11_28/models/group_1134.py index 902cd85dd..b48ea50a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1134.py +++ b/githubkit/versions/v2022_11_28/models/group_1134.py @@ -12,21 +12,14 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be requested." - ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." - ) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1135.py b/githubkit/versions/v2022_11_28/models/group_1135.py index a68a64ae9..21b71134d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1135.py +++ b/githubkit/versions/v2022_11_28/models/group_1135.py @@ -9,24 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." - ) - team_reviewers: list[str] = Field( - description="An array of team `slug`s that will be requested." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the pull request review comment." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1136.py b/githubkit/versions/v2022_11_28/models/group_1136.py index 80abd70e6..ac6538022 100644 --- a/githubkit/versions/v2022_11_28/models/group_1136.py +++ b/githubkit/versions/v2022_11_28/models/group_1136.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,29 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - reviewers: list[str] = Field( - description="An array of user `login`s that will be removed." + title: Missing[str] = Field( + default=UNSET, description="The title of the pull request." + ) + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="State of this Pull Request. Either `open` or `closed`.", + ) + base: Missing[str] = Field( + default=UNSET, + description="The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", ) - team_reviewers: Missing[list[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1137.py b/githubkit/versions/v2022_11_28/models/group_1137.py index 1be7fba9c..3bd074c1a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1137.py +++ b/githubkit/versions/v2022_11_28/models/group_1137.py @@ -18,50 +18,48 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - commit_id: Missing[str] = Field( + location: Missing[str] = Field( default=UNSET, - description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - body: Missing[str] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( default=UNSET, - description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", ) - event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( + client_ip: Missing[str] = Field( default=UNSET, - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", + description="IP for location auto-detection when proxying a request", ) - comments: Missing[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] - ] = Field( + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( default=UNSET, - description="Use the following table to specify the location, destination, and contents of the draft review comment.", + description="Path to devcontainer.json config to use for this codespace", ) - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str = Field( - description="The relative path to the file that necessitates a review comment." + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - position: Missing[int] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) - body: str = Field(description="Text of the review comment.") - line: Missing[int] = Field(default=UNSET) - side: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1138.py b/githubkit/versions/v2022_11_28/models/group_1138.py index 60600e7a7..9864ba3e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1138.py +++ b/githubkit/versions/v2022_11_28/models/group_1138.py @@ -9,17 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - - -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - - body: str = Field(description="The body text of the pull request review.") - - -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" + + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." + ) + path: str = Field( + description="The relative path to the file that necessitates a comment." + ) + position: Missing[int] = Field( + default=UNSET, + description='**This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', + ) + line: Missing[int] = Field( + default=UNSET, + description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", + ) + start_line: Missing[int] = Field( + default=UNSET, + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', + ) + start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( + default=UNSET, + description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', + ) + in_reply_to: Missing[int] = Field( + default=UNSET, + description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, description="The level at which the comment is targeted." + ) + + +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1139.py b/githubkit/versions/v2022_11_28/models/group_1139.py index 0c8535339..19ce96346 100644 --- a/githubkit/versions/v2022_11_28/models/group_1139.py +++ b/githubkit/versions/v2022_11_28/models/group_1139.py @@ -9,24 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - message: str = Field( - description="The message for the pull request review dismissal" - ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1140.py b/githubkit/versions/v2022_11_28/models/group_1140.py index 6298e6dda..ea6df3d24 100644 --- a/githubkit/versions/v2022_11_28/models/group_1140.py +++ b/githubkit/versions/v2022_11_28/models/group_1140.py @@ -18,17 +18,24 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - body: Missing[str] = Field( - default=UNSET, description="The body text of the pull request review" + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." ) - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( - description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." + ) + sha: Missing[str] = Field( + default=UNSET, + description="SHA that pull request head must match to allow merge.", + ) + merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( + default=UNSET, description="The merge method to use." ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1141.py b/githubkit/versions/v2022_11_28/models/group_1141.py index 5c360c212..d66d3bdba 100644 --- a/githubkit/versions/v2022_11_28/models/group_1141.py +++ b/githubkit/versions/v2022_11_28/models/group_1141.py @@ -16,15 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - expected_head_sha: Missing[str] = Field( - default=UNSET, - description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/v2022_11_28/models/group_1142.py b/githubkit/versions/v2022_11_28/models/group_1142.py index 0846546b8..bd6450076 100644 --- a/githubkit/versions/v2022_11_28/models/group_1142.py +++ b/githubkit/versions/v2022_11_28/models/group_1142.py @@ -16,13 +16,13 @@ from githubkit.utils import UNSET -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/v2022_11_28/models/group_1143.py b/githubkit/versions/v2022_11_28/models/group_1143.py index fdc33867d..902cd85dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1143.py +++ b/githubkit/versions/v2022_11_28/models/group_1143.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,40 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - tag_name: str = Field(description="The name of the tag.") - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") - body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="`true` to create a draft (unpublished) release, `false` to create a published one.", - ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", - ) - discussion_category_name: Missing[str] = Field( - default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', - ) - generate_release_notes: Missing[bool] = Field( - default=UNSET, - description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", + reviewers: list[str] = Field( + description="An array of user `login`s that will be requested." ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( - default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoReleasesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoReleasesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1144.py b/githubkit/versions/v2022_11_28/models/group_1144.py index 1c74bbef7..a68a64ae9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1144.py +++ b/githubkit/versions/v2022_11_28/models/group_1144.py @@ -16,17 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( - default=UNSET, - description="An alternate short description of the asset. Used in place of the filename.", + reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." + ) + team_reviewers: list[str] = Field( + description="An array of team `slug`s that will be requested." ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1145.py b/githubkit/versions/v2022_11_28/models/group_1145.py index 05de52925..80abd70e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1145.py +++ b/githubkit/versions/v2022_11_28/models/group_1145.py @@ -16,26 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." + reviewers: list[str] = Field( + description="An array of user `login`s that will be removed." ) - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", - ) - previous_tag_name: Missing[str] = Field( - default=UNSET, - description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", - ) - configuration_file_path: Missing[str] = Field( - default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", + team_reviewers: Missing[list[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1146.py b/githubkit/versions/v2022_11_28/models/group_1146.py index 814041621..1be7fba9c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1146.py +++ b/githubkit/versions/v2022_11_28/models/group_1146.py @@ -18,36 +18,50 @@ from githubkit.utils import UNSET -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") - target_commitish: Missing[str] = Field( + commit_id: Missing[str] = Field( default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + description="The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", ) - name: Missing[str] = Field(default=UNSET, description="The name of the release.") body: Missing[str] = Field( - default=UNSET, description="Text describing the contents of the tag." - ) - draft: Missing[bool] = Field( default=UNSET, - description="`true` makes the release a draft, and `false` publishes the release.", + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", ) - prerelease: Missing[bool] = Field( + event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request) when you are ready.", ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + comments: Missing[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = Field( default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + description="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) + + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str = Field( + description="The relative path to the file that necessitates a review comment." ) - discussion_category_name: Missing[str] = Field( + position: Missing[int] = Field( default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) + body: str = Field(description="Text of the review comment.") + line: Missing[int] = Field(default=UNSET) + side: Missing[str] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1147.py b/githubkit/versions/v2022_11_28/models/group_1147.py index 8f99969f6..60600e7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1147.py +++ b/githubkit/versions/v2022_11_28/models/group_1147.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release." - ) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1148.py b/githubkit/versions/v2022_11_28/models/group_1148.py index 18d50c76e..0c8535339 100644 --- a/githubkit/versions/v2022_11_28/models/group_1148.py +++ b/githubkit/versions/v2022_11_28/models/group_1148.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,81 +17,16 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0121 import RepositoryRulesetBypassActor -from .group_0122 import RepositoryRulesetConditions -from .group_0133 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0134 import RepositoryRuleUpdate -from .group_0136 import RepositoryRuleRequiredLinearHistory -from .group_0137 import RepositoryRuleMergeQueue -from .group_0139 import RepositoryRuleRequiredDeployments -from .group_0142 import RepositoryRulePullRequest -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0156 import RepositoryRuleFilePathRestriction -from .group_0158 import RepositoryRuleMaxFilePathLength -from .group_0160 import RepositoryRuleFileExtensionRestriction -from .group_0162 import RepositoryRuleMaxFileSize -from .group_0165 import RepositoryRuleWorkflows -from .group_0167 import RepositoryRuleCodeScanning +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + message: str = Field( + description="The message for the pull request review dismissal" ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1149.py b/githubkit/versions/v2022_11_28/models/group_1149.py index 5708dd9f0..6298e6dda 100644 --- a/githubkit/versions/v2022_11_28/models/group_1149.py +++ b/githubkit/versions/v2022_11_28/models/group_1149.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -17,82 +17,18 @@ from githubkit.typing import Missing from githubkit.utils import UNSET -from .group_0121 import RepositoryRulesetBypassActor -from .group_0122 import RepositoryRulesetConditions -from .group_0133 import ( - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) -from .group_0134 import RepositoryRuleUpdate -from .group_0136 import RepositoryRuleRequiredLinearHistory -from .group_0137 import RepositoryRuleMergeQueue -from .group_0139 import RepositoryRuleRequiredDeployments -from .group_0142 import RepositoryRulePullRequest -from .group_0144 import RepositoryRuleRequiredStatusChecks -from .group_0146 import RepositoryRuleCommitMessagePattern -from .group_0148 import RepositoryRuleCommitAuthorEmailPattern -from .group_0150 import RepositoryRuleCommitterEmailPattern -from .group_0152 import RepositoryRuleBranchNamePattern -from .group_0154 import RepositoryRuleTagNamePattern -from .group_0156 import RepositoryRuleFilePathRestriction -from .group_0158 import RepositoryRuleMaxFilePathLength -from .group_0160 import RepositoryRuleFileExtensionRestriction -from .group_0162 import RepositoryRuleMaxFileSize -from .group_0165 import RepositoryRuleWorkflows -from .group_0167 import RepositoryRuleCodeScanning +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, description="The target of the ruleset" - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", - ) - bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", + body: Missing[str] = Field( + default=UNSET, description="The body text of the pull request review" ) - conditions: Missing[RepositoryRulesetConditions] = Field( - default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." ) - rules: Missing[ - list[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleMergeQueue, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleFilePathRestriction, - RepositoryRuleMaxFilePathLength, - RepositoryRuleFileExtensionRestriction, - RepositoryRuleMaxFileSize, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1150.py b/githubkit/versions/v2022_11_28/models/group_1150.py index d03e15fb0..5c360c212 100644 --- a/githubkit/versions/v2022_11_28/models/group_1150.py +++ b/githubkit/versions/v2022_11_28/models/group_1150.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,24 +16,15 @@ from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - state: Literal["open", "resolved"] = Field( - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( + expected_head_sha: Missing[str] = Field( default=UNSET, - description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", + description="The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits](https://docs.github.com/rest/commits/commits#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", ) -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1151.py b/githubkit/versions/v2022_11_28/models/group_1151.py index decc899b3..0846546b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1151.py +++ b/githubkit/versions/v2022_11_28/models/group_1151.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( - description="The reason for bypassing push protection." - ) - placeholder_id: str = Field( - description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1152.py b/githubkit/versions/v2022_11_28/models/group_1152.py index e513640d6..fdc33867d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1152.py +++ b/githubkit/versions/v2022_11_28/models/group_1152.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from pydantic import Field @@ -18,25 +18,40 @@ from githubkit.utils import UNSET -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` to create a draft (unpublished) release, `false` to create a published one.", ) - target_url: Missing[Union[str, None]] = Field( + prerelease: Missing[bool] = Field( default=UNSET, - description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + ) + generate_release_notes: Missing[bool] = Field( + default=UNSET, + description="Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes.", ) - context: Missing[str] = Field( + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", ) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1153.py b/githubkit/versions/v2022_11_28/models/group_1153.py index 892aedcd1..1c74bbef7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1153.py +++ b/githubkit/versions/v2022_11_28/models/group_1153.py @@ -16,19 +16,17 @@ from githubkit.utils import UNSET -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - subscribed: Missing[bool] = Field( + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( default=UNSET, - description="Determines if notifications should be received from this repository.", - ) - ignored: Missing[bool] = Field( - default=UNSET, - description="Determines if all notifications should be blocked from this repository.", + description="An alternate short description of the asset. Used in place of the filename.", ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1154.py b/githubkit/versions/v2022_11_28/models/group_1154.py index 59aae89ec..05de52925 100644 --- a/githubkit/versions/v2022_11_28/models/group_1154.py +++ b/githubkit/versions/v2022_11_28/models/group_1154.py @@ -12,16 +12,30 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." + ) + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", + ) + previous_tag_name: Missing[str] = Field( + default=UNSET, + description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", + ) + configuration_file_path: Missing[str] = Field( + default=UNSET, + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", ) -model_rebuild(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1155.py b/githubkit/versions/v2022_11_28/models/group_1155.py index 0e1dc53ec..814041621 100644 --- a/githubkit/versions/v2022_11_28/models/group_1155.py +++ b/githubkit/versions/v2022_11_28/models/group_1155.py @@ -9,19 +9,45 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - names: list[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." + tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` makes the release a draft, and `false` publishes the release.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + ) + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', ) -model_rebuild(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1156.py b/githubkit/versions/v2022_11_28/models/group_1156.py index df5879cb9..8f99969f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1156.py +++ b/githubkit/versions/v2022_11_28/models/group_1156.py @@ -9,28 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." - ) - new_name: Missing[str] = Field( - default=UNSET, description="The new name to be given to the repository." - ) - team_ids: Missing[list[int]] = Field( - default=UNSET, - description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the release." ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1157.py b/githubkit/versions/v2022_11_28/models/group_1157.py index 91764e3b1..8da357016 100644 --- a/githubkit/versions/v2022_11_28/models/group_1157.py +++ b/githubkit/versions/v2022_11_28/models/group_1157.py @@ -9,34 +9,89 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0125 import RepositoryRulesetBypassActor +from .group_0126 import RepositoryRulesetConditions +from .group_0137 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0138 import RepositoryRuleUpdate +from .group_0140 import RepositoryRuleRequiredLinearHistory +from .group_0141 import RepositoryRuleMergeQueue +from .group_0143 import RepositoryRuleRequiredDeployments +from .group_0146 import RepositoryRulePullRequest +from .group_0148 import RepositoryRuleRequiredStatusChecks +from .group_0150 import RepositoryRuleCommitMessagePattern +from .group_0152 import RepositoryRuleCommitAuthorEmailPattern +from .group_0154 import RepositoryRuleCommitterEmailPattern +from .group_0156 import RepositoryRuleBranchNamePattern +from .group_0158 import RepositoryRuleTagNamePattern +from .group_0160 import RepositoryRuleFilePathRestriction +from .group_0162 import RepositoryRuleMaxFilePathLength +from .group_0164 import RepositoryRuleFileExtensionRestriction +from .group_0166 import RepositoryRuleMaxFileSize +from .group_0169 import RepositoryRuleWorkflows +from .group_0171 import RepositoryRuleCodeScanning -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - owner: Missing[str] = Field( - default=UNSET, - description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, description="The target of the ruleset" ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." ) - include_all_branches: Missing[bool] = Field( + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + description="The actors that can bypass the rules in this ruleset", ) - private: Missing[bool] = Field( + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1158.py b/githubkit/versions/v2022_11_28/models/group_1158.py index b47b92a02..e5dbc81ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_1158.py +++ b/githubkit/versions/v2022_11_28/models/group_1158.py @@ -17,33 +17,82 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0125 import RepositoryRulesetBypassActor +from .group_0126 import RepositoryRulesetConditions +from .group_0137 import ( + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) +from .group_0138 import RepositoryRuleUpdate +from .group_0140 import RepositoryRuleRequiredLinearHistory +from .group_0141 import RepositoryRuleMergeQueue +from .group_0143 import RepositoryRuleRequiredDeployments +from .group_0146 import RepositoryRulePullRequest +from .group_0148 import RepositoryRuleRequiredStatusChecks +from .group_0150 import RepositoryRuleCommitMessagePattern +from .group_0152 import RepositoryRuleCommitAuthorEmailPattern +from .group_0154 import RepositoryRuleCommitterEmailPattern +from .group_0156 import RepositoryRuleBranchNamePattern +from .group_0158 import RepositoryRuleTagNamePattern +from .group_0160 import RepositoryRuleFilePathRestriction +from .group_0162 import RepositoryRuleMaxFilePathLength +from .group_0164 import RepositoryRuleFileExtensionRestriction +from .group_0166 import RepositoryRuleMaxFileSize +from .group_0169 import RepositoryRuleWorkflows +from .group_0171 import RepositoryRuleCodeScanning -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, description="The target of the ruleset" ) - privacy: Missing[Literal["secret", "closed"]] = Field( + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + bypass_actors: Missing[list[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + description="The actors that can bypass the rules in this ruleset", ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + list[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleMergeQueue, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleFilePathRestriction, + RepositoryRuleMaxFilePathLength, + RepositoryRuleFileExtensionRestriction, + RepositoryRuleMaxFileSize, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(TeamsTeamIdPatchBody) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1159.py b/githubkit/versions/v2022_11_28/models/group_1159.py index 89bdf737f..d03e15fb0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1159.py +++ b/githubkit/versions/v2022_11_28/models/group_1159.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,17 +18,24 @@ from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + state: Literal["open", "resolved"] = Field( + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + description="An optional comment when closing or reopening an alert. Cannot be updated or deleted.", ) -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1160.py b/githubkit/versions/v2022_11_28/models/group_1160.py index 01b62eeb5..decc899b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1160.py +++ b/githubkit/versions/v2022_11_28/models/group_1160.py @@ -9,24 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody(GitHubModel): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] = Field( + description="The reason for bypassing push protection." ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + placeholder_id: str = Field( + description="The ID of the push protection bypass placeholder. This value is returned on any push protected routes." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1161.py b/githubkit/versions/v2022_11_28/models/group_1161.py index 2333d1363..e513640d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1161.py +++ b/githubkit/versions/v2022_11_28/models/group_1161.py @@ -9,17 +9,34 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - body: str = Field(description="The discussion comment's body text.") + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." + ) + target_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." + ) + context: Missing[str] = Field( + default=UNSET, + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1162.py b/githubkit/versions/v2022_11_28/models/group_1162.py index a44a260ff..892aedcd1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1162.py +++ b/githubkit/versions/v2022_11_28/models/group_1162.py @@ -12,14 +12,23 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - body: str = Field(description="The discussion comment's body text.") + subscribed: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications should be received from this repository.", + ) + ignored: Missing[bool] = Field( + default=UNSET, + description="Determines if all notifications should be blocked from this repository.", + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1163.py b/githubkit/versions/v2022_11_28/models/group_1163.py index df888d74e..59aae89ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1163.py +++ b/githubkit/versions/v2022_11_28/models/group_1163.py @@ -9,29 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1164.py b/githubkit/versions/v2022_11_28/models/group_1164.py index 1657765ee..0e1dc53ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1164.py +++ b/githubkit/versions/v2022_11_28/models/group_1164.py @@ -9,23 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." + names: list[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoTopicsPutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1165.py b/githubkit/versions/v2022_11_28/models/group_1165.py index db25cce3b..df5879cb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1165.py +++ b/githubkit/versions/v2022_11_28/models/group_1165.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,14 +16,21 @@ from githubkit.utils import UNSET -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." + ) + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." + ) + team_ids: Missing[list[int]] = Field( + default=UNSET, + description="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1166.py b/githubkit/versions/v2022_11_28/models/group_1166.py index 50f0b2952..91764e3b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1166.py +++ b/githubkit/versions/v2022_11_28/models/group_1166.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,27 @@ from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( + owner: Missing[str] = Field( + default=UNSET, + description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + ) + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." + ) + include_all_branches: Missing[bool] = Field( + default=UNSET, + description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + ) + private: Missing[bool] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", + description="Either `true` to create a new private repository or `false` to create a new public one.", ) -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1167.py b/githubkit/versions/v2022_11_28/models/group_1167.py index 4a3155ea1..b47b92a02 100644 --- a/githubkit/versions/v2022_11_28/models/group_1167.py +++ b/githubkit/versions/v2022_11_28/models/group_1167.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal, Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,13 +18,32 @@ from githubkit.utils import UNSET -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) - -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" + + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(TeamsTeamIdPatchBody) + +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1168.py b/githubkit/versions/v2022_11_28/models/group_1168.py index 726eb0c42..89bdf737f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1168.py +++ b/githubkit/versions/v2022_11_28/models/group_1168.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,15 +16,17 @@ from githubkit.utils import UNSET -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - permission: Missing[Literal["pull", "push", "admin"]] = Field( + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( default=UNSET, - description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", ) -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1169.py b/githubkit/versions/v2022_11_28/models/group_1169.py index 7a471250b..01b62eeb5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1169.py +++ b/githubkit/versions/v2022_11_28/models/group_1169.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -18,33 +16,17 @@ from githubkit.utils import UNSET -class UserPatchBody(GitHubModel): - """UserPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The new name of the user.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address of the user." - ) - blog: Missing[str] = Field( - default=UNSET, description="The new blog URL of the user." - ) - twitter_username: Missing[Union[str, None]] = Field( - default=UNSET, description="The new Twitter username of the user." - ) - company: Missing[str] = Field( - default=UNSET, description="The new company of the user." - ) - location: Missing[str] = Field( - default=UNSET, description="The new location of the user." - ) - hireable: Missing[bool] = Field( - default=UNSET, description="The new hiring availability of the user." + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." ) - bio: Missing[str] = Field( - default=UNSET, description="The new short biography of the user." + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." ) -model_rebuild(UserPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("UserPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1170.py b/githubkit/versions/v2022_11_28/models/group_1170.py index 3a50d2e07..2333d1363 100644 --- a/githubkit/versions/v2022_11_28/models/group_1170.py +++ b/githubkit/versions/v2022_11_28/models/group_1170.py @@ -13,16 +13,13 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0087 import Codespace +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" + body: str = Field(description="The discussion comment's body text.") - total_count: int = Field() - codespaces: list[Codespace] = Field() +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1171.py b/githubkit/versions/v2022_11_28/models/group_1171.py index d698dac84..a44a260ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_1171.py +++ b/githubkit/versions/v2022_11_28/models/group_1171.py @@ -9,62 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserCodespacesPostBodyOneof0) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1172.py b/githubkit/versions/v2022_11_28/models/group_1172.py index 66fe98e84..df888d74e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1172.py +++ b/githubkit/versions/v2022_11_28/models/group_1172.py @@ -14,54 +14,24 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") - - -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) __all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_1173.py b/githubkit/versions/v2022_11_28/models/group_1173.py index 860690ae3..1657765ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_1173.py +++ b/githubkit/versions/v2022_11_28/models/group_1173.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from pydantic import Field @@ -17,38 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - total_count: int = Field() - secrets: list[CodespacesSecret] = Field() - - -class CodespacesSecret(GitHubModel): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" - ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ( - "CodespacesSecret", - "UserCodespacesSecretsGetResponse200", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1174.py b/githubkit/versions/v2022_11_28/models/group_1174.py index 0ff38d47b..db25cce3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1174.py +++ b/githubkit/versions/v2022_11_28/models/group_1174.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,21 +18,14 @@ from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", - ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") - selected_repository_ids: Missing[list[Union[int, str]]] = Field( - default=UNSET, - description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1175.py b/githubkit/versions/v2022_11_28/models/group_1175.py index 1c1931038..50f0b2952 100644 --- a/githubkit/versions/v2022_11_28/models/group_1175.py +++ b/githubkit/versions/v2022_11_28/models/group_1175.py @@ -9,20 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0058 import MinimalRepository +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" - total_count: int = Field() - repositories: list[MinimalRepository] = Field() + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", + ) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1176.py b/githubkit/versions/v2022_11_28/models/group_1176.py index 9bee2d8e5..4a3155ea1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1176.py +++ b/githubkit/versions/v2022_11_28/models/group_1176.py @@ -12,16 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - selected_repository_ids: list[int] = Field( - description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_1177.py b/githubkit/versions/v2022_11_28/models/group_1177.py index 279933b1d..726eb0c42 100644 --- a/githubkit/versions/v2022_11_28/models/group_1177.py +++ b/githubkit/versions/v2022_11_28/models/group_1177.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,21 +18,15 @@ from githubkit.utils import UNSET -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - machine: Missing[str] = Field( - default=UNSET, description="A valid machine to transition this codespace to." - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - recent_folders: Missing[list[str]] = Field( + permission: Missing[Literal["pull", "push", "admin"]] = Field( default=UNSET, - description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", ) -model_rebuild(UserCodespacesCodespaceNamePatchBody) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1178.py b/githubkit/versions/v2022_11_28/models/group_1178.py index e3ae588fd..7a471250b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1178.py +++ b/githubkit/versions/v2022_11_28/models/group_1178.py @@ -9,20 +9,42 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild - -from .group_0086 import CodespaceMachine - - -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" - - total_count: int = Field() - machines: list[CodespaceMachine] = Field() - - -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserPatchBody(GitHubModel): + """UserPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The new name of the user.") + email: Missing[str] = Field( + default=UNSET, description="The publicly visible email address of the user." + ) + blog: Missing[str] = Field( + default=UNSET, description="The new blog URL of the user." + ) + twitter_username: Missing[Union[str, None]] = Field( + default=UNSET, description="The new Twitter username of the user." + ) + company: Missing[str] = Field( + default=UNSET, description="The new company of the user." + ) + location: Missing[str] = Field( + default=UNSET, description="The new location of the user." + ) + hireable: Missing[bool] = Field( + default=UNSET, description="The new hiring availability of the user." + ) + bio: Missing[str] = Field( + default=UNSET, description="The new short biography of the user." + ) + + +model_rebuild(UserPatchBody) + +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1179.py b/githubkit/versions/v2022_11_28/models/group_1179.py index 874e87674..1ae5ebe67 100644 --- a/githubkit/versions/v2022_11_28/models/group_1179.py +++ b/githubkit/versions/v2022_11_28/models/group_1179.py @@ -12,21 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0091 import Codespace -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" - name: Missing[str] = Field( - default=UNSET, description="A name for the new repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the new repository should be private." - ) +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" + total_count: int = Field() + codespaces: list[Codespace] = Field() -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +model_rebuild(UserCodespacesGetResponse200) + +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1180.py b/githubkit/versions/v2022_11_28/models/group_1180.py index 04c6a0578..d698dac84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1180.py +++ b/githubkit/versions/v2022_11_28/models/group_1180.py @@ -14,16 +14,57 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." + repository_id: int = Field(description="Repository id for this codespace") + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(UserEmailVisibilityPatchBody) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1181.py b/githubkit/versions/v2022_11_28/models/group_1181.py index 323704de5..66fe98e84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1181.py +++ b/githubkit/versions/v2022_11_28/models/group_1181.py @@ -9,24 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" + + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down.", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 +class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): + """UserCodespacesPostBodyOneof1PropPullRequest - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} + Pull request number for this codespace """ - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", - ) + pull_request_number: int = Field(description="Pull request number") + repository_id: int = Field(description="Repository id for this codespace") -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(UserCodespacesPostBodyOneof1) +model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1182.py b/githubkit/versions/v2022_11_28/models/group_1182.py index 361a2d243..860690ae3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1182.py +++ b/githubkit/versions/v2022_11_28/models/group_1182.py @@ -9,29 +9,46 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal + from pydantic import Field -from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" + total_count: int = Field() + secrets: list[CodespacesSecret] = Field() -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. +class CodespacesSecret(GitHubModel): + """Codespaces Secret - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} + Secrets for a GitHub Codespace. """ - emails: list[str] = Field( - min_length=1 if PYDANTIC_V2 else None, - description="Email addresses associated with the GitHub user account.", + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: str = Field( + description="The API URL at which the list of repositories this secret is visible to can be retrieved" ) -model_rebuild(UserEmailsDeleteBodyOneof0) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ( + "CodespacesSecret", + "UserCodespacesSecretsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1183.py b/githubkit/versions/v2022_11_28/models/group_1183.py index 2f1994e20..0ff38d47b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1183.py +++ b/githubkit/versions/v2022_11_28/models/group_1183.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild @@ -16,15 +18,21 @@ from githubkit.utils import UNSET -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + selected_repository_ids: Missing[list[Union[int, str]]] = Field( + default=UNSET, + description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserGpgKeysPostBody) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1184.py b/githubkit/versions/v2022_11_28/models/group_1184.py index 436810cf8..794e5289f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1184.py +++ b/githubkit/versions/v2022_11_28/models/group_1184.py @@ -13,16 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0018 import Installation +from .group_0061 import MinimalRepository -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" total_count: int = Field() - installations: list[Installation] = Field() + repositories: list[MinimalRepository] = Field() -model_rebuild(UserInstallationsGetResponse200) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1185.py b/githubkit/versions/v2022_11_28/models/group_1185.py index 867314a9d..9bee2d8e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1185.py +++ b/githubkit/versions/v2022_11_28/models/group_1185.py @@ -12,20 +12,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -from .group_0020 import Repository +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" + selected_repository_ids: list[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." + ) - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: list[Repository] = Field() +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1186.py b/githubkit/versions/v2022_11_28/models/group_1186.py index 09cbf54e3..279933b1d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1186.py +++ b/githubkit/versions/v2022_11_28/models/group_1186.py @@ -9,13 +9,28 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + recent_folders: Missing[list[str]] = Field( + default=UNSET, + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + ) -model_rebuild(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(UserCodespacesCodespaceNamePatchBody) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1187.py b/githubkit/versions/v2022_11_28/models/group_1187.py index b55f576db..135e2a57a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1187.py +++ b/githubkit/versions/v2022_11_28/models/group_1187.py @@ -12,22 +12,17 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from .group_0090 import CodespaceMachine -class UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", - description="The public SSH key to add to your GitHub account.", - ) +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int = Field() + machines: list[CodespaceMachine] = Field() -model_rebuild(UserKeysPostBody) -__all__ = ("UserKeysPostBody",) +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1188.py b/githubkit/versions/v2022_11_28/models/group_1188.py index 9b771b5c3..874e87674 100644 --- a/githubkit/versions/v2022_11_28/models/group_1188.py +++ b/githubkit/versions/v2022_11_28/models/group_1188.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." ) -model_rebuild(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1189.py b/githubkit/versions/v2022_11_28/models/group_1189.py index f7179f26c..04c6a0578 100644 --- a/githubkit/versions/v2022_11_28/models/group_1189.py +++ b/githubkit/versions/v2022_11_28/models/group_1189.py @@ -14,46 +14,16 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[list[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", - ) - repositories: list[str] = Field() -model_rebuild(UserMigrationsPostBody) +model_rebuild(UserEmailVisibilityPatchBody) -__all__ = ("UserMigrationsPostBody",) +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1190.py b/githubkit/versions/v2022_11_28/models/group_1190.py index 4a4feed8c..323704de5 100644 --- a/githubkit/versions/v2022_11_28/models/group_1190.py +++ b/githubkit/versions/v2022_11_28/models/group_1190.py @@ -9,24 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", ) -model_rebuild(UserProjectsPostBody) +model_rebuild(UserEmailsPostBodyOneof0) -__all__ = ("UserProjectsPostBody",) +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1191.py b/githubkit/versions/v2022_11_28/models/group_1191.py index 422fe894e..361a2d243 100644 --- a/githubkit/versions/v2022_11_28/models/group_1191.py +++ b/githubkit/versions/v2022_11_28/models/group_1191.py @@ -9,102 +9,29 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserEmailsDeleteBodyOneof0(GitHubModel): + """UserEmailsDeleteBodyOneof0 - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - has_issues: Missing[bool] = Field( - default=UNSET, description="Whether issues are enabled." - ) - has_projects: Missing[bool] = Field( - default=UNSET, description="Whether projects are enabled." - ) - has_wiki: Missing[bool] = Field( - default=UNSET, description="Whether the wiki is enabled." - ) - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether discussions are enabled." - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Whether the repository is initialized with a minimal README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", - ) - license_template: Missing[str] = Field( - default=UNSET, - description="The license keyword of the open source license for this repository.", - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] = Field( + min_length=1 if PYDANTIC_V2 else None, + description="Email addresses associated with the GitHub user account.", ) -model_rebuild(UserReposPostBody) +model_rebuild(UserEmailsDeleteBodyOneof0) -__all__ = ("UserReposPostBody",) +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1192.py b/githubkit/versions/v2022_11_28/models/group_1192.py index 4608b8021..2f1994e20 100644 --- a/githubkit/versions/v2022_11_28/models/group_1192.py +++ b/githubkit/versions/v2022_11_28/models/group_1192.py @@ -12,21 +12,19 @@ from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ - - account_urls: list[str] = Field( - description="Full URLs for the social media profiles to add." + name: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." ) + armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserSocialAccountsPostBody) +model_rebuild(UserGpgKeysPostBody) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1193.py b/githubkit/versions/v2022_11_28/models/group_1193.py index 6c8803a2d..436810cf8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1193.py +++ b/githubkit/versions/v2022_11_28/models/group_1193.py @@ -13,20 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0018 import Installation -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" - account_urls: list[str] = Field( - description="Full URLs for the social media profiles to delete." - ) + total_count: int = Field() + installations: list[Installation] = Field() -model_rebuild(UserSocialAccountsDeleteBody) +model_rebuild(UserInstallationsGetResponse200) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1194.py b/githubkit/versions/v2022_11_28/models/group_1194.py index 286ec8ff2..867314a9d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1194.py +++ b/githubkit/versions/v2022_11_28/models/group_1194.py @@ -15,19 +15,17 @@ from githubkit.typing import Missing from githubkit.utils import UNSET +from .group_0020 import Repository -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", - description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', - ) +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: list[Repository] = Field() -model_rebuild(UserSshSigningKeysPostBody) -__all__ = ("UserSshSigningKeysPostBody",) +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1195.py b/githubkit/versions/v2022_11_28/models/group_1195.py index 851e1541a..09cbf54e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_1195.py +++ b/githubkit/versions/v2022_11_28/models/group_1195.py @@ -9,89 +9,13 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import GitHubModel, model_rebuild -from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild -from githubkit.typing import Missing -from githubkit.utils import UNSET +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" -class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" - attestations: Missing[ - list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] - ] = Field(default=UNSET) +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - ] = Field( - default=UNSET, - description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", - ) - repository_id: Missing[int] = Field(default=UNSET) - bundle_url: Missing[str] = Field(default=UNSET) - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( - GitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: Missing[str] = Field(default=UNSET, alias="mediaType") - verification_material: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial - ] = Field(default=UNSET, alias="verificationMaterial") - dsse_envelope: Missing[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope - ] = Field(default=UNSET, alias="dsseEnvelope") - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropVerificationMaterial - """ - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( - ExtraGitHubModel -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dlePropDsseEnvelope - """ - - -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) -model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial -) -model_rebuild( - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope -) - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", -) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1196.py b/githubkit/versions/v2022_11_28/models/group_1196.py new file mode 100644 index 000000000..b55f576db --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1196.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", + ) + + +model_rebuild(UserKeysPostBody) + +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1197.py b/githubkit/versions/v2022_11_28/models/group_1197.py new file mode 100644 index 000000000..9b771b5c3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1197.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' + ) + + +model_rebuild(UserMembershipsOrgsOrgPatchBody) + +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1198.py b/githubkit/versions/v2022_11_28/models/group_1198.py new file mode 100644 index 000000000..f7179f26c --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1198.py @@ -0,0 +1,59 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" + + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[list[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude attributes from the API response to improve performance", + ) + repositories: list[str] = Field() + + +model_rebuild(UserMigrationsPostBody) + +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1199.py b/githubkit/versions/v2022_11_28/models/group_1199.py new file mode 100644 index 000000000..4a4feed8c --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1199.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" + + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + + +model_rebuild(UserProjectsPostBody) + +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1200.py b/githubkit/versions/v2022_11_28/models/group_1200.py new file mode 100644 index 000000000..422fe894e --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1200.py @@ -0,0 +1,110 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Whether the repository is initialized with a minimal README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description="The desired language or platform to apply to the .gitignore.", + ) + license_template: Missing[str] = Field( + default=UNSET, + description="The license keyword of the open source license for this repository.", + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="Required when using `squash_merge_commit_message`.\n\nThe default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="Required when using `merge_commit_message`.\n\nThe default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + + +model_rebuild(UserReposPostBody) + +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1201.py b/githubkit/versions/v2022_11_28/models/group_1201.py new file mode 100644 index 000000000..4608b8021 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1201.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to add." + ) + + +model_rebuild(UserSocialAccountsPostBody) + +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1202.py b/githubkit/versions/v2022_11_28/models/group_1202.py new file mode 100644 index 000000000..6c8803a2d --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1202.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] = Field( + description="Full URLs for the social media profiles to delete." + ) + + +model_rebuild(UserSocialAccountsDeleteBody) + +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1203.py b/githubkit/versions/v2022_11_28/models/group_1203.py new file mode 100644 index 000000000..286ec8ff2 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1203.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', + ) + + +model_rebuild(UserSshSigningKeysPostBody) + +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1204.py b/githubkit/versions/v2022_11_28/models/group_1204.py new file mode 100644 index 000000000..b2dd1e918 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1204.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" + + subject_digests: list[str] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of subject digests associated with the artifact attestations to delete.", + ) + + +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof0) + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1205.py b/githubkit/versions/v2022_11_28/models/group_1205.py new file mode 100644 index 000000000..e440ff714 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1205.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import PYDANTIC_V2, GitHubModel, model_rebuild + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1(GitHubModel): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" + + attestation_ids: list[int] = Field( + max_length=1024 if PYDANTIC_V2 else None, + min_length=1 if PYDANTIC_V2 else None, + description="List of unique IDs associated with the artifact attestations to delete.", + ) + + +model_rebuild(UsersUsernameAttestationsDeleteRequestPostBodyOneof1) + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1206.py b/githubkit/versions/v2022_11_28/models/group_1206.py new file mode 100644 index 000000000..851e1541a --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1206.py @@ -0,0 +1,97 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.compat import ExtraGitHubModel, GitHubModel, model_rebuild +from githubkit.typing import Missing +from githubkit.utils import UNSET + + +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + list[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + ] = Field( + default=UNSET, + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", + ) + repository_id: Missing[int] = Field(default=UNSET) + bundle_url: Missing[str] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropVerificationMaterial + """ + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dlePropDsseEnvelope + """ + + +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", +) diff --git a/githubkit/versions/v2022_11_28/rest/actions.py b/githubkit/versions/v2022_11_28/rest/actions.py index 37dc6cf32..6bc609514 100644 --- a/githubkit/versions/v2022_11_28/rest/actions.py +++ b/githubkit/versions/v2022_11_28/rest/actions.py @@ -3831,6 +3831,8 @@ def delete_self_hosted_runner_from_org( See also: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization """ + from ..models import ValidationErrorSimple + url = f"/orgs/{org}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -3839,6 +3841,9 @@ def delete_self_hosted_runner_from_org( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) async def async_delete_self_hosted_runner_from_org( @@ -3861,6 +3866,8 @@ async def async_delete_self_hosted_runner_from_org( See also: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-an-organization """ + from ..models import ValidationErrorSimple + url = f"/orgs/{org}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -3869,6 +3876,9 @@ async def async_delete_self_hosted_runner_from_org( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) def list_labels_for_self_hosted_runner_for_org( @@ -8770,6 +8780,8 @@ def delete_self_hosted_runner_from_repo( See also: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository """ + from ..models import ValidationErrorSimple + url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -8778,6 +8790,9 @@ def delete_self_hosted_runner_from_repo( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) async def async_delete_self_hosted_runner_from_repo( @@ -8801,6 +8816,8 @@ async def async_delete_self_hosted_runner_from_repo( See also: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository """ + from ..models import ValidationErrorSimple + url = f"/repos/{owner}/{repo}/actions/runners/{runner_id}" headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -8809,6 +8826,9 @@ async def async_delete_self_hosted_runner_from_repo( "DELETE", url, headers=exclude_unset(headers), + error_models={ + "422": ValidationErrorSimple, + }, ) def list_labels_for_self_hosted_runner_for_repo( diff --git a/githubkit/versions/v2022_11_28/rest/code_scanning.py b/githubkit/versions/v2022_11_28/rest/code_scanning.py index 6a10d01c5..546d5253f 100644 --- a/githubkit/versions/v2022_11_28/rest/code_scanning.py +++ b/githubkit/versions/v2022_11_28/rest/code_scanning.py @@ -2418,6 +2418,7 @@ def update_default_setup( runner_type: Missing[Literal["standard", "labeled"]] = UNSET, runner_label: Missing[Union[str, None]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, + threat_model: Missing[Literal["remote", "remote_and_local"]] = UNSET, languages: Missing[ list[ Literal[ @@ -2511,6 +2512,7 @@ async def async_update_default_setup( runner_type: Missing[Literal["standard", "labeled"]] = UNSET, runner_label: Missing[Union[str, None]] = UNSET, query_suite: Missing[Literal["default", "extended"]] = UNSET, + threat_model: Missing[Literal["remote", "remote_and_local"]] = UNSET, languages: Missing[ list[ Literal[ diff --git a/githubkit/versions/v2022_11_28/rest/dependabot.py b/githubkit/versions/v2022_11_28/rest/dependabot.py index a5e728761..da6de15de 100644 --- a/githubkit/versions/v2022_11_28/rest/dependabot.py +++ b/githubkit/versions/v2022_11_28/rest/dependabot.py @@ -31,6 +31,7 @@ DependabotAlert, DependabotAlertWithRepository, DependabotPublicKey, + DependabotRepositoryAccessDetails, DependabotSecret, EmptyObject, OrganizationDependabotSecret, @@ -42,9 +43,12 @@ DependabotAlertType, DependabotAlertWithRepositoryType, DependabotPublicKeyType, + DependabotRepositoryAccessDetailsType, DependabotSecretType, EmptyObjectType, OrganizationDependabotSecretType, + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + OrganizationsOrgDependabotRepositoryAccessPatchBodyType, OrgsOrgDependabotSecretsGetResponse200Type, OrgsOrgDependabotSecretsSecretNamePutBodyType, OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, @@ -224,6 +228,400 @@ async def async_list_alerts_for_enterprise( }, ) + def repository_access_for_org( + self, + org: str, + *, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + DependabotRepositoryAccessDetails, DependabotRepositoryAccessDetailsType + ]: + """dependabot/repository-access-for-org + + GET /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/rest/dependabot/repository-access#lists-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import BasicError, DependabotRepositoryAccessDetails + + url = f"/organizations/{org}/dependabot/repository-access" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=DependabotRepositoryAccessDetails, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_repository_access_for_org( + self, + org: str, + *, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + headers: Optional[Mapping[str, str]] = None, + ) -> Response[ + DependabotRepositoryAccessDetails, DependabotRepositoryAccessDetailsType + ]: + """dependabot/repository-access-for-org + + GET /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/rest/dependabot/repository-access#lists-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import BasicError, DependabotRepositoryAccessDetails + + url = f"/organizations/{org}/dependabot/repository-access" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=DependabotRepositoryAccessDetails, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + def update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessPatchBodyType, + ) -> Response: ... + + @overload + def update_repository_access_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + repository_ids_to_add: Missing[list[int]] = UNSET, + repository_ids_to_remove: Missing[list[int]] = UNSET, + ) -> Response: ... + + def update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrganizationsOrgDependabotRepositoryAccessPatchBodyType] = UNSET, + **kwargs, + ) -> Response: + """dependabot/update-repository-access-for-org + + PATCH /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + **Example request body:** + ```json + { + "repository_ids_to_add": [123, 456], + "repository_ids_to_remove": [789] + } + ``` + + See also: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + async def async_update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessPatchBodyType, + ) -> Response: ... + + @overload + async def async_update_repository_access_for_org( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + repository_ids_to_add: Missing[list[int]] = UNSET, + repository_ids_to_remove: Missing[list[int]] = UNSET, + ) -> Response: ... + + async def async_update_repository_access_for_org( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrganizationsOrgDependabotRepositoryAccessPatchBodyType] = UNSET, + **kwargs, + ) -> Response: + """dependabot/update-repository-access-for-org + + PATCH /organizations/{org}/dependabot/repository-access + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + + **Example request body:** + ```json + { + "repository_ids_to_add": [123, 456], + "repository_ids_to_remove": [789] + } + ``` + + See also: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessPatchBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + def set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + ) -> Response: ... + + @overload + def set_repository_access_default_level( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + default_level: Literal["public", "internal"], + ) -> Response: ... + + def set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType + ] = UNSET, + **kwargs, + ) -> Response: + """dependabot/set-repository-access-default-level + + PUT /organizations/{org}/dependabot/repository-access/default-level + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Sets the default level of repository access Dependabot will have while performing an update. Available values are: + - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/rest/dependabot/repository-access#set-the-default-repository-access-level-for-dependabot + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access/default-level" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + async def async_set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + ) -> Response: ... + + @overload + async def async_set_repository_access_default_level( + self, + org: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + default_level: Literal["public", "internal"], + ) -> Response: ... + + async def async_set_repository_access_default_level( + self, + org: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType + ] = UNSET, + **kwargs, + ) -> Response: + """dependabot/set-repository-access-default-level + + PUT /organizations/{org}/dependabot/repository-access/default-level + + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Sets the default level of repository access Dependabot will have while performing an update. Available values are: + - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + + Unauthorized users will not see the existence of this endpoint. + + See also: https://docs.github.com/rest/dependabot/repository-access#set-the-default-repository-access-level-for-dependabot + """ + + from ..models import ( + BasicError, + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, + ) + + url = f"/organizations/{org}/dependabot/repository-access/default-level" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + def list_alerts_for_org( self, org: str, diff --git a/githubkit/versions/v2022_11_28/rest/orgs.py b/githubkit/versions/v2022_11_28/rest/orgs.py index a2015d339..d364c96b9 100644 --- a/githubkit/versions/v2022_11_28/rest/orgs.py +++ b/githubkit/versions/v2022_11_28/rest/orgs.py @@ -49,6 +49,7 @@ OrgHook, OrgMembership, OrgRepoCustomPropertyValues, + OrgsOrgAttestationsBulkListPostResponse200, OrgsOrgAttestationsSubjectDigestGetResponse200, OrgsOrgInstallationsGetResponse200, OrgsOrgOrganizationRolesGetResponse200, @@ -87,6 +88,8 @@ OrgHookType, OrgMembershipType, OrgRepoCustomPropertyValuesType, + OrgsOrgAttestationsBulkListPostBodyType, + OrgsOrgAttestationsBulkListPostResponse200Type, OrgsOrgAttestationsSubjectDigestGetResponse200Type, OrgsOrgHooksHookIdConfigPatchBodyType, OrgsOrgHooksHookIdPatchBodyPropConfigType, @@ -608,6 +611,190 @@ async def async_update( }, ) + @overload + def list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgAttestationsBulkListPostBodyType, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + @overload + def list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + predicate_type: Missing[str] = UNSET, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + def list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgAttestationsBulkListPostBodyType] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: + """orgs/list-attestations-bulk + + POST /orgs/{org}/attestations/bulk-list + + List a collection of artifact attestations associated with any entry in a list of subject digests owned by an organization. + + The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required. + + **Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + + See also: https://docs.github.com/rest/orgs/orgs#list-attestations-by-bulk-subject-digests + """ + + from ..models import ( + OrgsOrgAttestationsBulkListPostBody, + OrgsOrgAttestationsBulkListPostResponse200, + ) + + url = f"/orgs/{org}/attestations/bulk-list" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgAttestationsBulkListPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + params=exclude_unset(params), + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsBulkListPostResponse200, + ) + + @overload + async def async_list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: OrgsOrgAttestationsBulkListPostBodyType, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + @overload + async def async_list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + predicate_type: Missing[str] = UNSET, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: ... + + async def async_list_attestations_bulk( + self, + org: str, + *, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + headers: Optional[Mapping[str, str]] = None, + data: Missing[OrgsOrgAttestationsBulkListPostBodyType] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgAttestationsBulkListPostResponse200, + OrgsOrgAttestationsBulkListPostResponse200Type, + ]: + """orgs/list-attestations-bulk + + POST /orgs/{org}/attestations/bulk-list + + List a collection of artifact attestations associated with any entry in a list of subject digests owned by an organization. + + The collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required. + + **Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + + See also: https://docs.github.com/rest/orgs/orgs#list-attestations-by-bulk-subject-digests + """ + + from ..models import ( + OrgsOrgAttestationsBulkListPostBody, + OrgsOrgAttestationsBulkListPostResponse200, + ) + + url = f"/orgs/{org}/attestations/bulk-list" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python(OrgsOrgAttestationsBulkListPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + params=exclude_unset(params), + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsBulkListPostResponse200, + ) + def list_attestations( self, org: str, diff --git a/githubkit/versions/v2022_11_28/rest/private_registries.py b/githubkit/versions/v2022_11_28/rest/private_registries.py index 65899297a..d9b713284 100644 --- a/githubkit/versions/v2022_11_28/rest/private_registries.py +++ b/githubkit/versions/v2022_11_28/rest/private_registries.py @@ -171,7 +171,7 @@ def create_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Literal["maven_repository"], + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], username: Missing[Union[str, None]] = UNSET, encrypted_value: str, key_id: str, @@ -256,7 +256,7 @@ async def async_create_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Literal["maven_repository"], + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"], username: Missing[Union[str, None]] = UNSET, encrypted_value: str, key_id: str, @@ -554,7 +554,9 @@ def update_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Missing[Literal["maven_repository"]] = UNSET, + registry_type: Missing[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] + ] = UNSET, username: Missing[Union[str, None]] = UNSET, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, @@ -633,7 +635,9 @@ async def async_update_org_private_registry( *, data: UnsetType = UNSET, headers: Optional[Mapping[str, str]] = None, - registry_type: Missing[Literal["maven_repository"]] = UNSET, + registry_type: Missing[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] + ] = UNSET, username: Missing[Union[str, None]] = UNSET, encrypted_value: Missing[str] = UNSET, key_id: Missing[str] = UNSET, diff --git a/githubkit/versions/v2022_11_28/rest/repos.py b/githubkit/versions/v2022_11_28/rest/repos.py index 996f0b148..00795e7bb 100644 --- a/githubkit/versions/v2022_11_28/rest/repos.py +++ b/githubkit/versions/v2022_11_28/rest/repos.py @@ -1564,6 +1564,7 @@ def delete( error_models={ "403": ReposOwnerRepoDeleteResponse403, "404": BasicError, + "409": BasicError, }, ) @@ -1601,6 +1602,7 @@ async def async_delete( error_models={ "403": ReposOwnerRepoDeleteResponse403, "404": BasicError, + "409": BasicError, }, ) diff --git a/githubkit/versions/v2022_11_28/rest/secret_scanning.py b/githubkit/versions/v2022_11_28/rest/secret_scanning.py index 4eafdbb31..c45e15b92 100644 --- a/githubkit/versions/v2022_11_28/rest/secret_scanning.py +++ b/githubkit/versions/v2022_11_28/rest/secret_scanning.py @@ -75,6 +75,7 @@ def list_alerts_for_enterprise( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -114,6 +115,7 @@ def list_alerts_for_enterprise( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -145,6 +147,7 @@ async def async_list_alerts_for_enterprise( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -184,6 +187,7 @@ async def async_list_alerts_for_enterprise( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -216,6 +220,7 @@ def list_alerts_for_org( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -254,6 +259,7 @@ def list_alerts_for_org( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -286,6 +292,7 @@ async def async_list_alerts_for_org( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[ list[OrganizationSecretScanningAlert], list[OrganizationSecretScanningAlertType] @@ -324,6 +331,7 @@ async def async_list_alerts_for_org( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -357,6 +365,7 @@ def list_alerts_for_repo( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[list[SecretScanningAlert], list[SecretScanningAlertType]]: """secret-scanning/list-alerts-for-repo @@ -392,6 +401,7 @@ def list_alerts_for_repo( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -424,6 +434,7 @@ async def async_list_alerts_for_repo( validity: Missing[str] = UNSET, is_publicly_leaked: Missing[bool] = UNSET, is_multi_repo: Missing[bool] = UNSET, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[list[SecretScanningAlert], list[SecretScanningAlertType]]: """secret-scanning/list-alerts-for-repo @@ -459,6 +470,7 @@ async def async_list_alerts_for_repo( "validity": validity, "is_publicly_leaked": is_publicly_leaked, "is_multi_repo": is_multi_repo, + "hide_secret": hide_secret, } headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} @@ -480,6 +492,7 @@ def get_alert( repo: str, alert_number: int, *, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[SecretScanningAlert, SecretScanningAlertType]: """secret-scanning/get-alert @@ -502,11 +515,16 @@ def get_alert( url = f"/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}" + params = { + "hide_secret": hide_secret, + } + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return self._github.request( "GET", url, + params=exclude_unset(params), headers=exclude_unset(headers), response_model=SecretScanningAlert, error_models={ @@ -520,6 +538,7 @@ async def async_get_alert( repo: str, alert_number: int, *, + hide_secret: Missing[bool] = UNSET, headers: Optional[Mapping[str, str]] = None, ) -> Response[SecretScanningAlert, SecretScanningAlertType]: """secret-scanning/get-alert @@ -542,11 +561,16 @@ async def async_get_alert( url = f"/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}" + params = { + "hide_secret": hide_secret, + } + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} return await self._github.arequest( "GET", url, + params=exclude_unset(params), headers=exclude_unset(headers), response_model=SecretScanningAlert, error_models={ diff --git a/githubkit/versions/v2022_11_28/rest/users.py b/githubkit/versions/v2022_11_28/rest/users.py index a932febec..9a35311fc 100644 --- a/githubkit/versions/v2022_11_28/rest/users.py +++ b/githubkit/versions/v2022_11_28/rest/users.py @@ -60,6 +60,8 @@ UserSocialAccountsDeleteBodyType, UserSocialAccountsPostBodyType, UserSshSigningKeysPostBodyType, + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) @@ -3163,6 +3165,314 @@ async def async_get_by_username( }, ) + @overload + def delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ], + ) -> Response: ... + + @overload + def delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + ) -> Response: ... + + @overload + def delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + attestation_ids: list[int], + ) -> Response: ... + + def delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ] + ] = UNSET, + **kwargs, + ) -> Response: + """users/delete-attestations-bulk + + POST /users/{username}/attestations/delete-request + + Delete artifact attestations in bulk by either subject digests or unique ID. + + See also: https://docs.github.com/rest/users/attestations#delete-attestations-in-bulk + """ + + from typing import Union + + from ..models import ( + BasicError, + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) + + url = f"/users/{username}/attestations/delete-request" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ], + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + @overload + async def async_delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ], + ) -> Response: ... + + @overload + async def async_delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + subject_digests: list[str], + ) -> Response: ... + + @overload + async def async_delete_attestations_bulk( + self, + username: str, + *, + data: UnsetType = UNSET, + headers: Optional[Mapping[str, str]] = None, + attestation_ids: list[int], + ) -> Response: ... + + async def async_delete_attestations_bulk( + self, + username: str, + *, + headers: Optional[Mapping[str, str]] = None, + data: Missing[ + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ] + ] = UNSET, + **kwargs, + ) -> Response: + """users/delete-attestations-bulk + + POST /users/{username}/attestations/delete-request + + Delete artifact attestations in bulk by either subject digests or unique ID. + + See also: https://docs.github.com/rest/users/attestations#delete-attestations-in-bulk + """ + + from typing import Union + + from ..models import ( + BasicError, + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ) + + url = f"/users/{username}/attestations/delete-request" + + headers = { + "Content-Type": "application/json", + "X-GitHub-Api-Version": self._REST_API_VERSION, + **(headers or {}), + } + + json = kwargs if data is UNSET else data + if self._github.config.rest_api_validate_body: + json = type_validate_python( + Union[ + UsersUsernameAttestationsDeleteRequestPostBodyOneof0, + UsersUsernameAttestationsDeleteRequestPostBodyOneof1, + ], + json, + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + def delete_attestations_by_subject_digest( + self, + username: str, + subject_digest: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-subject-digest + + DELETE /users/{username}/attestations/digest/{subject_digest} + + Delete an artifact attestation by subject digest. + + See also: https://docs.github.com/rest/users/attestations#delete-attestations-by-subject-digest + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/digest/{subject_digest}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + async def async_delete_attestations_by_subject_digest( + self, + username: str, + subject_digest: str, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-subject-digest + + DELETE /users/{username}/attestations/digest/{subject_digest} + + Delete an artifact attestation by subject digest. + + See also: https://docs.github.com/rest/users/attestations#delete-attestations-by-subject-digest + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/digest/{subject_digest}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "404": BasicError, + }, + ) + + def delete_attestations_by_id( + self, + username: str, + attestation_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-id + + DELETE /users/{username}/attestations/{attestation_id} + + Delete an artifact attestation by unique ID that is associated with a repository owned by a user. + + See also: https://docs.github.com/rest/users/attestations#delete-attestations-by-id + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/{attestation_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_delete_attestations_by_id( + self, + username: str, + attestation_id: int, + *, + headers: Optional[Mapping[str, str]] = None, + ) -> Response: + """users/delete-attestations-by-id + + DELETE /users/{username}/attestations/{attestation_id} + + Delete an artifact attestation by unique ID that is associated with a repository owned by a user. + + See also: https://docs.github.com/rest/users/attestations#delete-attestations-by-id + """ + + from ..models import BasicError + + url = f"/users/{username}/attestations/{attestation_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + def list_attestations( self, username: str, diff --git a/githubkit/versions/v2022_11_28/types/__init__.py b/githubkit/versions/v2022_11_28/types/__init__.py index 08a6439b1..69b32299a 100644 --- a/githubkit/versions/v2022_11_28/types/__init__.py +++ b/githubkit/versions/v2022_11_28/types/__init__.py @@ -61,6 +61,9 @@ from .group_0017 import AppPermissionsType as AppPermissionsType from .group_0018 import InstallationType as InstallationType from .group_0019 import LicenseSimpleType as LicenseSimpleType + from .group_0020 import ( + RepositoryPropCodeSearchIndexStatusType as RepositoryPropCodeSearchIndexStatusType, + ) from .group_0020 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -140,8909 +143,8939 @@ DependabotAlertWithRepositoryPropDependencyType as DependabotAlertWithRepositoryPropDependencyType, ) from .group_0038 import ( + SecretScanningLocationCommitType as SecretScanningLocationCommitType, + ) + from .group_0038 import ( + SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, + ) + from .group_0038 import ( + SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, + ) + from .group_0038 import ( + SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, + ) + from .group_0038 import ( + SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, + ) + from .group_0038 import ( + SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, + ) + from .group_0038 import ( + SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, + ) + from .group_0039 import ( + SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, + ) + from .group_0039 import ( + SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, + ) + from .group_0039 import ( + SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, + ) + from .group_0039 import ( + SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, + ) + from .group_0040 import ( + SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, + ) + from .group_0040 import ( + SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, + ) + from .group_0041 import ( OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, ) - from .group_0039 import MilestoneType as MilestoneType - from .group_0040 import IssueTypeType as IssueTypeType - from .group_0041 import ReactionRollupType as ReactionRollupType - from .group_0042 import ( + from .group_0042 import MilestoneType as MilestoneType + from .group_0043 import IssueTypeType as IssueTypeType + from .group_0044 import ReactionRollupType as ReactionRollupType + from .group_0045 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0042 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0042 import IssueType as IssueType - from .group_0042 import SubIssuesSummaryType as SubIssuesSummaryType - from .group_0043 import IssueCommentType as IssueCommentType - from .group_0044 import ActorType as ActorType - from .group_0044 import ( + from .group_0045 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0045 import IssueType as IssueType + from .group_0045 import SubIssuesSummaryType as SubIssuesSummaryType + from .group_0046 import IssueCommentType as IssueCommentType + from .group_0047 import ActorType as ActorType + from .group_0047 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0044 import EventPropPayloadType as EventPropPayloadType - from .group_0044 import EventPropRepoType as EventPropRepoType - from .group_0044 import EventType as EventType - from .group_0045 import FeedPropLinksType as FeedPropLinksType - from .group_0045 import FeedType as FeedType - from .group_0045 import LinkWithTypeType as LinkWithTypeType - from .group_0046 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0046 import BaseGistType as BaseGistType - from .group_0047 import ( + from .group_0047 import EventPropPayloadType as EventPropPayloadType + from .group_0047 import EventPropRepoType as EventPropRepoType + from .group_0047 import EventType as EventType + from .group_0048 import FeedPropLinksType as FeedPropLinksType + from .group_0048 import FeedType as FeedType + from .group_0048 import LinkWithTypeType as LinkWithTypeType + from .group_0049 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0049 import BaseGistType as BaseGistType + from .group_0050 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0047 import GistHistoryType as GistHistoryType - from .group_0047 import ( + from .group_0050 import GistHistoryType as GistHistoryType + from .group_0050 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0047 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0048 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0048 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0048 import GistSimpleType as GistSimpleType - from .group_0048 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0048 import PublicUserType as PublicUserType - from .group_0049 import GistCommentType as GistCommentType - from .group_0050 import ( + from .group_0050 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0051 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0051 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0051 import GistSimpleType as GistSimpleType + from .group_0051 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0051 import PublicUserType as PublicUserType + from .group_0052 import GistCommentType as GistCommentType + from .group_0053 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0050 import GistCommitType as GistCommitType - from .group_0051 import GitignoreTemplateType as GitignoreTemplateType - from .group_0052 import LicenseType as LicenseType - from .group_0053 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0054 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0055 import ( + from .group_0053 import GistCommitType as GistCommitType + from .group_0054 import GitignoreTemplateType as GitignoreTemplateType + from .group_0055 import LicenseType as LicenseType + from .group_0056 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0057 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0058 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0055 import ( + from .group_0058 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0056 import ( + from .group_0059 import ( ApiOverviewPropDomainsPropActionsInboundType as ApiOverviewPropDomainsPropActionsInboundType, ) - from .group_0056 import ( + from .group_0059 import ( ApiOverviewPropDomainsPropArtifactAttestationsType as ApiOverviewPropDomainsPropArtifactAttestationsType, ) - from .group_0056 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0056 import ( + from .group_0059 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0059 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0056 import ApiOverviewType as ApiOverviewType - from .group_0057 import ( + from .group_0059 import ApiOverviewType as ApiOverviewType + from .group_0060 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropCodeSecurityType as SecurityAndAnalysisPropCodeSecurityType, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanningAiDetectionType as SecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0057 import ( + from .group_0060 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0057 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0058 import CodeOfConductType as CodeOfConductType - from .group_0058 import ( + from .group_0060 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0061 import CodeOfConductType as CodeOfConductType + from .group_0061 import ( + MinimalRepositoryPropCustomPropertiesType as MinimalRepositoryPropCustomPropertiesType, + ) + from .group_0061 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0058 import ( + from .group_0061 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0058 import MinimalRepositoryType as MinimalRepositoryType - from .group_0059 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0059 import ThreadType as ThreadType - from .group_0060 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0061 import OrganizationSimpleType as OrganizationSimpleType - from .group_0062 import ( + from .group_0061 import MinimalRepositoryType as MinimalRepositoryType + from .group_0062 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0062 import ThreadType as ThreadType + from .group_0063 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0064 import OrganizationSimpleType as OrganizationSimpleType + from .group_0065 import ( + DependabotRepositoryAccessDetailsType as DependabotRepositoryAccessDetailsType, + ) + from .group_0066 import ( BillingUsageReportPropUsageItemsItemsType as BillingUsageReportPropUsageItemsItemsType, ) - from .group_0062 import BillingUsageReportType as BillingUsageReportType - from .group_0063 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0063 import OrganizationFullType as OrganizationFullType - from .group_0064 import ( + from .group_0066 import BillingUsageReportType as BillingUsageReportType + from .group_0067 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0067 import OrganizationFullType as OrganizationFullType + from .group_0068 import ( ActionsCacheUsageOrgEnterpriseType as ActionsCacheUsageOrgEnterpriseType, ) - from .group_0065 import ( + from .group_0069 import ( ActionsHostedRunnerMachineSpecType as ActionsHostedRunnerMachineSpecType, ) - from .group_0066 import ( + from .group_0070 import ( ActionsHostedRunnerPoolImageType as ActionsHostedRunnerPoolImageType, ) - from .group_0066 import ActionsHostedRunnerType as ActionsHostedRunnerType - from .group_0066 import PublicIpType as PublicIpType - from .group_0067 import ActionsHostedRunnerImageType as ActionsHostedRunnerImageType - from .group_0068 import ( + from .group_0070 import ActionsHostedRunnerType as ActionsHostedRunnerType + from .group_0070 import PublicIpType as PublicIpType + from .group_0071 import ActionsHostedRunnerImageType as ActionsHostedRunnerImageType + from .group_0072 import ( ActionsHostedRunnerLimitsPropPublicIpsType as ActionsHostedRunnerLimitsPropPublicIpsType, ) - from .group_0068 import ( + from .group_0072 import ( ActionsHostedRunnerLimitsType as ActionsHostedRunnerLimitsType, ) - from .group_0069 import OidcCustomSubType as OidcCustomSubType - from .group_0070 import ( + from .group_0073 import OidcCustomSubType as OidcCustomSubType + from .group_0074 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0071 import SelectedActionsType as SelectedActionsType - from .group_0072 import ( + from .group_0075 import SelectedActionsType as SelectedActionsType + from .group_0076 import ( ActionsGetDefaultWorkflowPermissionsType as ActionsGetDefaultWorkflowPermissionsType, ) - from .group_0073 import ( + from .group_0077 import ( ActionsSetDefaultWorkflowPermissionsType as ActionsSetDefaultWorkflowPermissionsType, ) - from .group_0074 import RunnerLabelType as RunnerLabelType - from .group_0075 import RunnerType as RunnerType - from .group_0076 import RunnerApplicationType as RunnerApplicationType - from .group_0077 import ( + from .group_0078 import RunnerLabelType as RunnerLabelType + from .group_0079 import RunnerType as RunnerType + from .group_0080 import RunnerApplicationType as RunnerApplicationType + from .group_0081 import ( AuthenticationTokenPropPermissionsType as AuthenticationTokenPropPermissionsType, ) - from .group_0077 import AuthenticationTokenType as AuthenticationTokenType - from .group_0078 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0079 import TeamSimpleType as TeamSimpleType - from .group_0080 import TeamPropPermissionsType as TeamPropPermissionsType - from .group_0080 import TeamType as TeamType - from .group_0081 import ( + from .group_0081 import AuthenticationTokenType as AuthenticationTokenType + from .group_0082 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0083 import TeamSimpleType as TeamSimpleType + from .group_0084 import TeamPropPermissionsType as TeamPropPermissionsType + from .group_0084 import TeamType as TeamType + from .group_0085 import ( CampaignSummaryPropAlertStatsType as CampaignSummaryPropAlertStatsType, ) - from .group_0081 import CampaignSummaryType as CampaignSummaryType - from .group_0082 import ( + from .group_0085 import CampaignSummaryType as CampaignSummaryType + from .group_0086 import ( CodeScanningAlertRuleSummaryType as CodeScanningAlertRuleSummaryType, ) - from .group_0083 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType - from .group_0084 import ( + from .group_0087 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType + from .group_0088 import ( CodeScanningAlertInstancePropMessageType as CodeScanningAlertInstancePropMessageType, ) - from .group_0084 import ( + from .group_0088 import ( CodeScanningAlertInstanceType as CodeScanningAlertInstanceType, ) - from .group_0084 import ( + from .group_0088 import ( CodeScanningAlertLocationType as CodeScanningAlertLocationType, ) - from .group_0085 import ( + from .group_0089 import ( CodeScanningOrganizationAlertItemsType as CodeScanningOrganizationAlertItemsType, ) - from .group_0086 import CodespaceMachineType as CodespaceMachineType - from .group_0087 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0087 import ( + from .group_0090 import CodespaceMachineType as CodespaceMachineType + from .group_0091 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0091 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0087 import CodespaceType as CodespaceType - from .group_0088 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0089 import ( + from .group_0091 import CodespaceType as CodespaceType + from .group_0092 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0093 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0089 import ( + from .group_0093 import ( CopilotOrganizationSeatBreakdownType as CopilotOrganizationSeatBreakdownType, ) - from .group_0090 import CopilotSeatDetailsType as CopilotSeatDetailsType - from .group_0090 import EnterpriseTeamType as EnterpriseTeamType - from .group_0090 import ( + from .group_0094 import CopilotSeatDetailsType as CopilotSeatDetailsType + from .group_0094 import EnterpriseTeamType as EnterpriseTeamType + from .group_0094 import ( OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, ) - from .group_0091 import ( + from .group_0095 import ( CopilotDotcomChatPropModelsItemsType as CopilotDotcomChatPropModelsItemsType, ) - from .group_0091 import CopilotDotcomChatType as CopilotDotcomChatType - from .group_0091 import ( + from .group_0095 import CopilotDotcomChatType as CopilotDotcomChatType + from .group_0095 import ( CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotDotcomPullRequestsPropRepositoriesItemsType as CopilotDotcomPullRequestsPropRepositoriesItemsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotDotcomPullRequestsType as CopilotDotcomPullRequestsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeChatPropEditorsItemsPropModelsItemsType as CopilotIdeChatPropEditorsItemsPropModelsItemsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeChatPropEditorsItemsType as CopilotIdeChatPropEditorsItemsType, ) - from .group_0091 import CopilotIdeChatType as CopilotIdeChatType - from .group_0091 import ( + from .group_0095 import CopilotIdeChatType as CopilotIdeChatType + from .group_0095 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeCodeCompletionsPropEditorsItemsType as CopilotIdeCodeCompletionsPropEditorsItemsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeCodeCompletionsPropLanguagesItemsType as CopilotIdeCodeCompletionsPropLanguagesItemsType, ) - from .group_0091 import ( + from .group_0095 import ( CopilotIdeCodeCompletionsType as CopilotIdeCodeCompletionsType, ) - from .group_0091 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType - from .group_0092 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0093 import PackageType as PackageType - from .group_0094 import OrganizationInvitationType as OrganizationInvitationType - from .group_0095 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0095 import OrgHookType as OrgHookType - from .group_0096 import ( + from .group_0095 import CopilotUsageMetricsDayType as CopilotUsageMetricsDayType + from .group_0096 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0097 import PackageType as PackageType + from .group_0098 import OrganizationInvitationType as OrganizationInvitationType + from .group_0099 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0099 import OrgHookType as OrgHookType + from .group_0100 import ( ApiInsightsRouteStatsItemsType as ApiInsightsRouteStatsItemsType, ) - from .group_0097 import ( + from .group_0101 import ( ApiInsightsSubjectStatsItemsType as ApiInsightsSubjectStatsItemsType, ) - from .group_0098 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType - from .group_0099 import ( + from .group_0102 import ApiInsightsSummaryStatsType as ApiInsightsSummaryStatsType + from .group_0103 import ( ApiInsightsTimeStatsItemsType as ApiInsightsTimeStatsItemsType, ) - from .group_0100 import ( + from .group_0104 import ( ApiInsightsUserStatsItemsType as ApiInsightsUserStatsItemsType, ) - from .group_0101 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0102 import InteractionLimitType as InteractionLimitType - from .group_0103 import ( + from .group_0105 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0106 import InteractionLimitType as InteractionLimitType + from .group_0107 import ( OrganizationCreateIssueTypeType as OrganizationCreateIssueTypeType, ) - from .group_0104 import ( + from .group_0108 import ( OrganizationUpdateIssueTypeType as OrganizationUpdateIssueTypeType, ) - from .group_0105 import ( + from .group_0109 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0105 import OrgMembershipType as OrgMembershipType - from .group_0106 import MigrationType as MigrationType - from .group_0107 import OrganizationRoleType as OrganizationRoleType - from .group_0107 import ( + from .group_0109 import OrgMembershipType as OrgMembershipType + from .group_0110 import MigrationType as MigrationType + from .group_0111 import OrganizationRoleType as OrganizationRoleType + from .group_0111 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0108 import ( + from .group_0112 import ( TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, ) - from .group_0108 import TeamRoleAssignmentType as TeamRoleAssignmentType - from .group_0109 import UserRoleAssignmentType as UserRoleAssignmentType - from .group_0110 import ( + from .group_0112 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0113 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0114 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0110 import ( + from .group_0114 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0110 import ( + from .group_0114 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0110 import PackageVersionType as PackageVersionType - from .group_0111 import ( + from .group_0114 import PackageVersionType as PackageVersionType + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0111 import ( + from .group_0115 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0113 import ( + from .group_0117 import ( OrgPrivateRegistryConfigurationWithSelectedRepositoriesType as OrgPrivateRegistryConfigurationWithSelectedRepositoriesType, ) - from .group_0114 import ProjectType as ProjectType - from .group_0115 import CustomPropertyType as CustomPropertyType - from .group_0116 import CustomPropertySetPayloadType as CustomPropertySetPayloadType - from .group_0117 import CustomPropertyValueType as CustomPropertyValueType - from .group_0118 import ( + from .group_0118 import ProjectType as ProjectType + from .group_0119 import CustomPropertyType as CustomPropertyType + from .group_0120 import CustomPropertySetPayloadType as CustomPropertySetPayloadType + from .group_0121 import CustomPropertyValueType as CustomPropertyValueType + from .group_0122 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0119 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0120 import ( + from .group_0123 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0124 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0120 import ( + from .group_0124 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0120 import FullRepositoryType as FullRepositoryType - from .group_0121 import ( + from .group_0124 import FullRepositoryType as FullRepositoryType + from .group_0125 import ( RepositoryRulesetBypassActorType as RepositoryRulesetBypassActorType, ) - from .group_0122 import ( + from .group_0126 import ( RepositoryRulesetConditionsType as RepositoryRulesetConditionsType, ) - from .group_0123 import ( + from .group_0127 import ( RepositoryRulesetConditionsPropRefNameType as RepositoryRulesetConditionsPropRefNameType, ) - from .group_0124 import ( + from .group_0128 import ( RepositoryRulesetConditionsRepositoryNameTargetType as RepositoryRulesetConditionsRepositoryNameTargetType, ) - from .group_0125 import ( + from .group_0129 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0126 import ( + from .group_0130 import ( RepositoryRulesetConditionsRepositoryIdTargetType as RepositoryRulesetConditionsRepositoryIdTargetType, ) - from .group_0127 import ( + from .group_0131 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) - from .group_0128 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertyTargetType as RepositoryRulesetConditionsRepositoryPropertyTargetType, ) - from .group_0129 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) - from .group_0129 import ( + from .group_0133 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0130 import ( + from .group_0134 import ( OrgRulesetConditionsOneof0Type as OrgRulesetConditionsOneof0Type, ) - from .group_0131 import ( + from .group_0135 import ( OrgRulesetConditionsOneof1Type as OrgRulesetConditionsOneof1Type, ) - from .group_0132 import ( + from .group_0136 import ( OrgRulesetConditionsOneof2Type as OrgRulesetConditionsOneof2Type, ) - from .group_0133 import RepositoryRuleCreationType as RepositoryRuleCreationType - from .group_0133 import RepositoryRuleDeletionType as RepositoryRuleDeletionType - from .group_0133 import ( + from .group_0137 import RepositoryRuleCreationType as RepositoryRuleCreationType + from .group_0137 import RepositoryRuleDeletionType as RepositoryRuleDeletionType + from .group_0137 import ( RepositoryRuleNonFastForwardType as RepositoryRuleNonFastForwardType, ) - from .group_0133 import ( + from .group_0137 import ( RepositoryRuleRequiredSignaturesType as RepositoryRuleRequiredSignaturesType, ) - from .group_0134 import RepositoryRuleUpdateType as RepositoryRuleUpdateType - from .group_0135 import ( + from .group_0138 import RepositoryRuleUpdateType as RepositoryRuleUpdateType + from .group_0139 import ( RepositoryRuleUpdatePropParametersType as RepositoryRuleUpdatePropParametersType, ) - from .group_0136 import ( + from .group_0140 import ( RepositoryRuleRequiredLinearHistoryType as RepositoryRuleRequiredLinearHistoryType, ) - from .group_0137 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType - from .group_0138 import ( + from .group_0141 import RepositoryRuleMergeQueueType as RepositoryRuleMergeQueueType + from .group_0142 import ( RepositoryRuleMergeQueuePropParametersType as RepositoryRuleMergeQueuePropParametersType, ) - from .group_0139 import ( + from .group_0143 import ( RepositoryRuleRequiredDeploymentsType as RepositoryRuleRequiredDeploymentsType, ) - from .group_0140 import ( + from .group_0144 import ( RepositoryRuleRequiredDeploymentsPropParametersType as RepositoryRuleRequiredDeploymentsPropParametersType, ) - from .group_0141 import ( + from .group_0145 import ( RepositoryRuleParamsRequiredReviewerConfigurationType as RepositoryRuleParamsRequiredReviewerConfigurationType, ) - from .group_0141 import ( + from .group_0145 import ( RepositoryRuleParamsReviewerType as RepositoryRuleParamsReviewerType, ) - from .group_0142 import ( + from .group_0146 import ( RepositoryRulePullRequestType as RepositoryRulePullRequestType, ) - from .group_0143 import ( + from .group_0147 import ( RepositoryRulePullRequestPropParametersType as RepositoryRulePullRequestPropParametersType, ) - from .group_0144 import ( + from .group_0148 import ( RepositoryRuleRequiredStatusChecksType as RepositoryRuleRequiredStatusChecksType, ) - from .group_0145 import ( + from .group_0149 import ( RepositoryRuleParamsStatusCheckConfigurationType as RepositoryRuleParamsStatusCheckConfigurationType, ) - from .group_0145 import ( + from .group_0149 import ( RepositoryRuleRequiredStatusChecksPropParametersType as RepositoryRuleRequiredStatusChecksPropParametersType, ) - from .group_0146 import ( + from .group_0150 import ( RepositoryRuleCommitMessagePatternType as RepositoryRuleCommitMessagePatternType, ) - from .group_0147 import ( + from .group_0151 import ( RepositoryRuleCommitMessagePatternPropParametersType as RepositoryRuleCommitMessagePatternPropParametersType, ) - from .group_0148 import ( + from .group_0152 import ( RepositoryRuleCommitAuthorEmailPatternType as RepositoryRuleCommitAuthorEmailPatternType, ) - from .group_0149 import ( + from .group_0153 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0150 import ( + from .group_0154 import ( RepositoryRuleCommitterEmailPatternType as RepositoryRuleCommitterEmailPatternType, ) - from .group_0151 import ( + from .group_0155 import ( RepositoryRuleCommitterEmailPatternPropParametersType as RepositoryRuleCommitterEmailPatternPropParametersType, ) - from .group_0152 import ( + from .group_0156 import ( RepositoryRuleBranchNamePatternType as RepositoryRuleBranchNamePatternType, ) - from .group_0153 import ( + from .group_0157 import ( RepositoryRuleBranchNamePatternPropParametersType as RepositoryRuleBranchNamePatternPropParametersType, ) - from .group_0154 import ( + from .group_0158 import ( RepositoryRuleTagNamePatternType as RepositoryRuleTagNamePatternType, ) - from .group_0155 import ( + from .group_0159 import ( RepositoryRuleTagNamePatternPropParametersType as RepositoryRuleTagNamePatternPropParametersType, ) - from .group_0156 import ( + from .group_0160 import ( RepositoryRuleFilePathRestrictionType as RepositoryRuleFilePathRestrictionType, ) - from .group_0157 import ( + from .group_0161 import ( RepositoryRuleFilePathRestrictionPropParametersType as RepositoryRuleFilePathRestrictionPropParametersType, ) - from .group_0158 import ( + from .group_0162 import ( RepositoryRuleMaxFilePathLengthType as RepositoryRuleMaxFilePathLengthType, ) - from .group_0159 import ( + from .group_0163 import ( RepositoryRuleMaxFilePathLengthPropParametersType as RepositoryRuleMaxFilePathLengthPropParametersType, ) - from .group_0160 import ( + from .group_0164 import ( RepositoryRuleFileExtensionRestrictionType as RepositoryRuleFileExtensionRestrictionType, ) - from .group_0161 import ( + from .group_0165 import ( RepositoryRuleFileExtensionRestrictionPropParametersType as RepositoryRuleFileExtensionRestrictionPropParametersType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryRuleMaxFileSizeType as RepositoryRuleMaxFileSizeType, ) - from .group_0163 import ( + from .group_0167 import ( RepositoryRuleMaxFileSizePropParametersType as RepositoryRuleMaxFileSizePropParametersType, ) - from .group_0164 import ( + from .group_0168 import ( RepositoryRuleParamsRestrictedCommitsType as RepositoryRuleParamsRestrictedCommitsType, ) - from .group_0165 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType - from .group_0166 import ( + from .group_0169 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType + from .group_0170 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0166 import ( + from .group_0170 import ( RepositoryRuleWorkflowsPropParametersType as RepositoryRuleWorkflowsPropParametersType, ) - from .group_0167 import ( + from .group_0171 import ( RepositoryRuleCodeScanningType as RepositoryRuleCodeScanningType, ) - from .group_0168 import ( + from .group_0172 import ( RepositoryRuleCodeScanningPropParametersType as RepositoryRuleCodeScanningPropParametersType, ) - from .group_0168 import ( + from .group_0172 import ( RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, ) - from .group_0169 import ( + from .group_0173 import ( RepositoryRulesetPropLinksPropHtmlType as RepositoryRulesetPropLinksPropHtmlType, ) - from .group_0169 import ( + from .group_0173 import ( RepositoryRulesetPropLinksPropSelfType as RepositoryRulesetPropLinksPropSelfType, ) - from .group_0169 import ( + from .group_0173 import ( RepositoryRulesetPropLinksType as RepositoryRulesetPropLinksType, ) - from .group_0169 import RepositoryRulesetType as RepositoryRulesetType - from .group_0170 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0171 import ( + from .group_0173 import RepositoryRulesetType as RepositoryRulesetType + from .group_0174 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0175 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0171 import ( + from .group_0175 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0171 import RuleSuiteType as RuleSuiteType - from .group_0172 import RulesetVersionType as RulesetVersionType - from .group_0173 import RulesetVersionPropActorType as RulesetVersionPropActorType - from .group_0174 import RulesetVersionWithStateType as RulesetVersionWithStateType - from .group_0175 import ( + from .group_0175 import RuleSuiteType as RuleSuiteType + from .group_0176 import RulesetVersionType as RulesetVersionType + from .group_0177 import RulesetVersionPropActorType as RulesetVersionPropActorType + from .group_0178 import RulesetVersionWithStateType as RulesetVersionWithStateType + from .group_0179 import ( RulesetVersionWithStateAllof1Type as RulesetVersionWithStateAllof1Type, ) - from .group_0176 import ( + from .group_0180 import ( RulesetVersionWithStateAllof1PropStateType as RulesetVersionWithStateAllof1PropStateType, ) - from .group_0177 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0178 import ( + from .group_0181 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0182 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0178 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0178 import ( + from .group_0182 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0182 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0178 import ( + from .group_0182 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0179 import ( + from .group_0183 import ( ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, ) - from .group_0179 import ActionsBillingUsageType as ActionsBillingUsageType - from .group_0180 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0181 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0182 import NetworkSettingsType as NetworkSettingsType - from .group_0183 import TeamFullType as TeamFullType - from .group_0183 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0183 import TeamOrganizationType as TeamOrganizationType - from .group_0184 import TeamDiscussionType as TeamDiscussionType - from .group_0185 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0186 import ReactionType as ReactionType - from .group_0187 import TeamMembershipType as TeamMembershipType - from .group_0188 import ( + from .group_0183 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0184 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0185 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0186 import NetworkSettingsType as NetworkSettingsType + from .group_0187 import TeamFullType as TeamFullType + from .group_0187 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0187 import TeamOrganizationType as TeamOrganizationType + from .group_0188 import TeamDiscussionType as TeamDiscussionType + from .group_0189 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0190 import ReactionType as ReactionType + from .group_0191 import TeamMembershipType as TeamMembershipType + from .group_0192 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0188 import TeamProjectType as TeamProjectType - from .group_0189 import ( + from .group_0192 import TeamProjectType as TeamProjectType + from .group_0193 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0189 import TeamRepositoryType as TeamRepositoryType - from .group_0190 import ProjectCardType as ProjectCardType - from .group_0191 import ProjectColumnType as ProjectColumnType - from .group_0192 import ( + from .group_0193 import TeamRepositoryType as TeamRepositoryType + from .group_0194 import ProjectCardType as ProjectCardType + from .group_0195 import ProjectColumnType as ProjectColumnType + from .group_0196 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0193 import RateLimitType as RateLimitType - from .group_0194 import RateLimitOverviewType as RateLimitOverviewType - from .group_0195 import ( + from .group_0197 import RateLimitType as RateLimitType + from .group_0198 import RateLimitOverviewType as RateLimitOverviewType + from .group_0199 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0196 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0196 import ArtifactType as ArtifactType - from .group_0197 import ( + from .group_0200 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0200 import ArtifactType as ArtifactType + from .group_0201 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0197 import ActionsCacheListType as ActionsCacheListType - from .group_0198 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0198 import JobType as JobType - from .group_0199 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0200 import ActionsSecretType as ActionsSecretType - from .group_0201 import ActionsVariableType as ActionsVariableType - from .group_0202 import ( + from .group_0201 import ActionsCacheListType as ActionsCacheListType + from .group_0202 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0202 import JobType as JobType + from .group_0203 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0204 import ActionsSecretType as ActionsSecretType + from .group_0205 import ActionsVariableType as ActionsVariableType + from .group_0206 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0203 import ( + from .group_0207 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0204 import ( + from .group_0208 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0204 import ( + from .group_0208 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0204 import ( + from .group_0208 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0204 import ( + from .group_0208 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0204 import PullRequestMinimalType as PullRequestMinimalType - from .group_0205 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0205 import ( + from .group_0208 import PullRequestMinimalType as PullRequestMinimalType + from .group_0209 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0209 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0205 import SimpleCommitType as SimpleCommitType - from .group_0206 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0206 import WorkflowRunType as WorkflowRunType - from .group_0207 import ( + from .group_0209 import SimpleCommitType as SimpleCommitType + from .group_0210 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0210 import WorkflowRunType as WorkflowRunType + from .group_0211 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0207 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0208 import ( + from .group_0211 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0212 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0209 import ( + from .group_0213 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0210 import ( + from .group_0214 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0210 import ( + from .group_0214 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0210 import PendingDeploymentType as PendingDeploymentType - from .group_0211 import ( + from .group_0214 import PendingDeploymentType as PendingDeploymentType + from .group_0215 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0211 import DeploymentType as DeploymentType - from .group_0212 import ( + from .group_0215 import DeploymentType as DeploymentType + from .group_0216 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0212 import ( + from .group_0216 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0212 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0213 import ( + from .group_0216 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0217 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0213 import ( + from .group_0217 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0213 import ( + from .group_0217 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0213 import ( + from .group_0217 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0213 import WorkflowUsageType as WorkflowUsageType - from .group_0214 import ActivityType as ActivityType - from .group_0215 import AutolinkType as AutolinkType - from .group_0216 import ( + from .group_0217 import WorkflowUsageType as WorkflowUsageType + from .group_0218 import ActivityType as ActivityType + from .group_0219 import AutolinkType as AutolinkType + from .group_0220 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0217 import ( + from .group_0221 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0218 import ( + from .group_0222 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0218 import ( + from .group_0222 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0219 import ( + from .group_0223 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0219 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0220 import ( + from .group_0223 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0224 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0220 import ( + from .group_0224 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0220 import BranchProtectionType as BranchProtectionType - from .group_0220 import ( + from .group_0224 import BranchProtectionType as BranchProtectionType + from .group_0224 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0220 import ( + from .group_0224 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0220 import ( + from .group_0224 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0221 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0221 import ShortBranchType as ShortBranchType - from .group_0222 import GitUserType as GitUserType - from .group_0223 import VerificationType as VerificationType - from .group_0224 import DiffEntryType as DiffEntryType - from .group_0225 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0225 import CommitPropStatsType as CommitPropStatsType - from .group_0225 import CommitType as CommitType - from .group_0225 import EmptyObjectType as EmptyObjectType - from .group_0226 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0226 import CommitPropCommitType as CommitPropCommitType - from .group_0227 import ( + from .group_0225 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0225 import ShortBranchType as ShortBranchType + from .group_0226 import GitUserType as GitUserType + from .group_0227 import VerificationType as VerificationType + from .group_0228 import DiffEntryType as DiffEntryType + from .group_0229 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0229 import CommitPropStatsType as CommitPropStatsType + from .group_0229 import CommitType as CommitType + from .group_0229 import EmptyObjectType as EmptyObjectType + from .group_0230 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0230 import CommitPropCommitType as CommitPropCommitType + from .group_0231 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0227 import BranchWithProtectionType as BranchWithProtectionType - from .group_0228 import ( + from .group_0231 import BranchWithProtectionType as BranchWithProtectionType + from .group_0232 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0228 import ( + from .group_0232 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0228 import ProtectedBranchType as ProtectedBranchType - from .group_0228 import ( + from .group_0232 import ProtectedBranchType as ProtectedBranchType + from .group_0232 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0228 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0229 import ( + from .group_0232 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0233 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0230 import ( + from .group_0234 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0230 import ( + from .group_0234 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0231 import DeploymentSimpleType as DeploymentSimpleType - from .group_0232 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0232 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0232 import CheckRunType as CheckRunType - from .group_0233 import CheckAnnotationType as CheckAnnotationType - from .group_0234 import CheckSuiteType as CheckSuiteType - from .group_0234 import ( + from .group_0235 import DeploymentSimpleType as DeploymentSimpleType + from .group_0236 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0236 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0236 import CheckRunType as CheckRunType + from .group_0237 import CheckAnnotationType as CheckAnnotationType + from .group_0238 import CheckSuiteType as CheckSuiteType + from .group_0238 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0235 import ( + from .group_0239 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0235 import ( + from .group_0239 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0235 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0236 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0237 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0237 import CodeScanningAlertType as CodeScanningAlertType - from .group_0238 import CodeScanningAutofixType as CodeScanningAutofixType - from .group_0239 import ( + from .group_0239 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0240 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0241 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0241 import CodeScanningAlertType as CodeScanningAlertType + from .group_0242 import CodeScanningAutofixType as CodeScanningAutofixType + from .group_0243 import ( CodeScanningAutofixCommitsType as CodeScanningAutofixCommitsType, ) - from .group_0240 import ( + from .group_0244 import ( CodeScanningAutofixCommitsResponseType as CodeScanningAutofixCommitsResponseType, ) - from .group_0241 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0242 import ( + from .group_0245 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0246 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0243 import ( + from .group_0247 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0244 import ( + from .group_0248 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0245 import ( + from .group_0249 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0246 import ( + from .group_0250 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0247 import ( + from .group_0251 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0248 import ( + from .group_0252 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0248 import ( + from .group_0252 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0249 import ( + from .group_0253 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0250 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0251 import ( + from .group_0254 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0255 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0252 import ( + from .group_0256 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0253 import ( + from .group_0257 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0254 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0255 import ( + from .group_0258 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0259 import ( CodeSecurityConfigurationForRepositoryType as CodeSecurityConfigurationForRepositoryType, ) - from .group_0256 import ( + from .group_0260 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0256 import CodeownersErrorsType as CodeownersErrorsType - from .group_0257 import ( + from .group_0260 import CodeownersErrorsType as CodeownersErrorsType + from .group_0261 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0258 import RepositoryInvitationType as RepositoryInvitationType - from .group_0259 import ( + from .group_0262 import RepositoryInvitationType as RepositoryInvitationType + from .group_0263 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0259 import CollaboratorType as CollaboratorType - from .group_0259 import ( + from .group_0263 import CollaboratorType as CollaboratorType + from .group_0263 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0260 import CommitCommentType as CommitCommentType - from .group_0260 import ( + from .group_0264 import CommitCommentType as CommitCommentType + from .group_0264 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0261 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0261 import BranchShortType as BranchShortType - from .group_0262 import LinkType as LinkType - from .group_0263 import AutoMergeType as AutoMergeType - from .group_0264 import ( + from .group_0265 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0265 import BranchShortType as BranchShortType + from .group_0266 import LinkType as LinkType + from .group_0267 import AutoMergeType as AutoMergeType + from .group_0268 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0264 import PullRequestSimpleType as PullRequestSimpleType - from .group_0265 import ( + from .group_0268 import PullRequestSimpleType as PullRequestSimpleType + from .group_0269 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0265 import ( + from .group_0269 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0266 import ( + from .group_0270 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0267 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0267 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0268 import StatusType as StatusType - from .group_0269 import CommunityHealthFileType as CommunityHealthFileType - from .group_0269 import ( + from .group_0271 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0271 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0272 import StatusType as StatusType + from .group_0273 import CommunityHealthFileType as CommunityHealthFileType + from .group_0273 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0269 import CommunityProfileType as CommunityProfileType - from .group_0270 import CommitComparisonType as CommitComparisonType - from .group_0271 import ( + from .group_0273 import CommunityProfileType as CommunityProfileType + from .group_0274 import CommitComparisonType as CommitComparisonType + from .group_0275 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0271 import ( + from .group_0275 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0271 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0271 import ContentTreeType as ContentTreeType - from .group_0272 import ( + from .group_0275 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0275 import ContentTreeType as ContentTreeType + from .group_0276 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0272 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0273 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0273 import ContentFileType as ContentFileType - from .group_0274 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0274 import ContentSymlinkType as ContentSymlinkType - from .group_0275 import ( + from .group_0276 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0277 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0277 import ContentFileType as ContentFileType + from .group_0278 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0278 import ContentSymlinkType as ContentSymlinkType + from .group_0279 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0275 import ContentSubmoduleType as ContentSubmoduleType - from .group_0276 import ( + from .group_0279 import ContentSubmoduleType as ContentSubmoduleType + from .group_0280 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0276 import ( + from .group_0280 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0276 import ( + from .group_0280 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0276 import ( + from .group_0280 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0276 import ( + from .group_0280 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0276 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0276 import ( + from .group_0280 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0280 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0276 import FileCommitPropContentType as FileCommitPropContentType - from .group_0276 import FileCommitType as FileCommitType - from .group_0277 import ( + from .group_0280 import FileCommitPropContentType as FileCommitPropContentType + from .group_0280 import FileCommitType as FileCommitType + from .group_0281 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType, ) - from .group_0277 import ( + from .group_0281 import ( RepositoryRuleViolationErrorPropMetadataPropSecretScanningType as RepositoryRuleViolationErrorPropMetadataPropSecretScanningType, ) - from .group_0277 import ( + from .group_0281 import ( RepositoryRuleViolationErrorPropMetadataType as RepositoryRuleViolationErrorPropMetadataType, ) - from .group_0277 import ( + from .group_0281 import ( RepositoryRuleViolationErrorType as RepositoryRuleViolationErrorType, ) - from .group_0278 import ContributorType as ContributorType - from .group_0279 import DependabotAlertType as DependabotAlertType - from .group_0280 import ( + from .group_0282 import ContributorType as ContributorType + from .group_0283 import DependabotAlertType as DependabotAlertType + from .group_0284 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0281 import ( + from .group_0285 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0281 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0282 import ( + from .group_0285 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType as DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType, ) - from .group_0282 import ( + from .group_0286 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0282 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0283 import MetadataType as MetadataType - from .group_0284 import DependencyType as DependencyType - from .group_0285 import ManifestPropFileType as ManifestPropFileType - from .group_0285 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0285 import ManifestType as ManifestType - from .group_0286 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0286 import SnapshotPropJobType as SnapshotPropJobType - from .group_0286 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0286 import SnapshotType as SnapshotType - from .group_0287 import DeploymentStatusType as DeploymentStatusType - from .group_0288 import ( + from .group_0286 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0287 import MetadataType as MetadataType + from .group_0288 import DependencyType as DependencyType + from .group_0289 import ManifestPropFileType as ManifestPropFileType + from .group_0289 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0289 import ManifestType as ManifestType + from .group_0290 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0290 import SnapshotPropJobType as SnapshotPropJobType + from .group_0290 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0290 import SnapshotType as SnapshotType + from .group_0291 import DeploymentStatusType as DeploymentStatusType + from .group_0292 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0289 import ( + from .group_0293 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0289 import ( + from .group_0293 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0289 import EnvironmentType as EnvironmentType - from .group_0289 import ( + from .group_0293 import EnvironmentType as EnvironmentType + from .group_0293 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0290 import ( + from .group_0294 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0291 import ( + from .group_0295 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0292 import ( + from .group_0296 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0293 import ( + from .group_0297 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0294 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0295 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0295 import ( + from .group_0298 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0299 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0299 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0296 import ShortBlobType as ShortBlobType - from .group_0297 import BlobType as BlobType - from .group_0298 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0298 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0298 import ( + from .group_0300 import ShortBlobType as ShortBlobType + from .group_0301 import BlobType as BlobType + from .group_0302 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0302 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0302 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0298 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0298 import ( + from .group_0302 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0302 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0298 import GitCommitType as GitCommitType - from .group_0299 import GitRefPropObjectType as GitRefPropObjectType - from .group_0299 import GitRefType as GitRefType - from .group_0300 import GitTagPropObjectType as GitTagPropObjectType - from .group_0300 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0300 import GitTagType as GitTagType - from .group_0301 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0301 import GitTreeType as GitTreeType - from .group_0302 import HookResponseType as HookResponseType - from .group_0303 import HookType as HookType - from .group_0304 import ( + from .group_0302 import GitCommitType as GitCommitType + from .group_0303 import GitRefPropObjectType as GitRefPropObjectType + from .group_0303 import GitRefType as GitRefType + from .group_0304 import GitTagPropObjectType as GitTagPropObjectType + from .group_0304 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0304 import GitTagType as GitTagType + from .group_0305 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0305 import GitTreeType as GitTreeType + from .group_0306 import HookResponseType as HookResponseType + from .group_0307 import HookType as HookType + from .group_0308 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0304 import ImportType as ImportType - from .group_0305 import PorterAuthorType as PorterAuthorType - from .group_0306 import PorterLargeFileType as PorterLargeFileType - from .group_0307 import ( + from .group_0308 import ImportType as ImportType + from .group_0309 import PorterAuthorType as PorterAuthorType + from .group_0310 import PorterLargeFileType as PorterLargeFileType + from .group_0311 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0307 import IssueEventLabelType as IssueEventLabelType - from .group_0307 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0307 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0307 import IssueEventRenameType as IssueEventRenameType - from .group_0307 import IssueEventType as IssueEventType - from .group_0308 import ( + from .group_0311 import IssueEventLabelType as IssueEventLabelType + from .group_0311 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0311 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0311 import IssueEventRenameType as IssueEventRenameType + from .group_0311 import IssueEventType as IssueEventType + from .group_0312 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0308 import LabeledIssueEventType as LabeledIssueEventType - from .group_0309 import ( + from .group_0312 import LabeledIssueEventType as LabeledIssueEventType + from .group_0313 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0309 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0310 import AssignedIssueEventType as AssignedIssueEventType - from .group_0311 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0312 import ( + from .group_0313 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0314 import AssignedIssueEventType as AssignedIssueEventType + from .group_0315 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0316 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0312 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0313 import ( + from .group_0316 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0317 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0313 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0314 import ( + from .group_0317 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0318 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0314 import RenamedIssueEventType as RenamedIssueEventType - from .group_0315 import ( + from .group_0318 import RenamedIssueEventType as RenamedIssueEventType + from .group_0319 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0316 import ( + from .group_0320 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0317 import ( + from .group_0321 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0317 import ( + from .group_0321 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0318 import LockedIssueEventType as LockedIssueEventType - from .group_0319 import ( + from .group_0322 import LockedIssueEventType as LockedIssueEventType + from .group_0323 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0319 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0320 import ( + from .group_0323 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0324 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0320 import ( + from .group_0324 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0321 import ( + from .group_0325 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0321 import ( + from .group_0325 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0322 import ( + from .group_0326 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0322 import ( + from .group_0326 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0323 import TimelineCommentEventType as TimelineCommentEventType - from .group_0324 import ( + from .group_0327 import TimelineCommentEventType as TimelineCommentEventType + from .group_0328 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0325 import ( + from .group_0329 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0326 import ( + from .group_0330 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0326 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0327 import ( + from .group_0330 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0331 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0327 import ( + from .group_0331 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0327 import ( + from .group_0331 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0327 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0328 import ( + from .group_0331 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0332 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0328 import ( + from .group_0332 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0328 import ( + from .group_0332 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0328 import ( + from .group_0332 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0328 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0328 import ( + from .group_0332 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0332 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0329 import ( + from .group_0333 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0330 import ( + from .group_0334 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0331 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0332 import DeployKeyType as DeployKeyType - from .group_0333 import LanguageType as LanguageType - from .group_0334 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0334 import LicenseContentType as LicenseContentType - from .group_0335 import MergedUpstreamType as MergedUpstreamType - from .group_0336 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0336 import PagesSourceHashType as PagesSourceHashType - from .group_0336 import PageType as PageType - from .group_0337 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0337 import PageBuildType as PageBuildType - from .group_0338 import PageBuildStatusType as PageBuildStatusType - from .group_0339 import PageDeploymentType as PageDeploymentType - from .group_0340 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0341 import ( + from .group_0335 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0336 import DeployKeyType as DeployKeyType + from .group_0337 import LanguageType as LanguageType + from .group_0338 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0338 import LicenseContentType as LicenseContentType + from .group_0339 import MergedUpstreamType as MergedUpstreamType + from .group_0340 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0340 import PagesSourceHashType as PagesSourceHashType + from .group_0340 import PageType as PageType + from .group_0341 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0341 import PageBuildType as PageBuildType + from .group_0342 import PageBuildStatusType as PageBuildStatusType + from .group_0343 import PageDeploymentType as PageDeploymentType + from .group_0344 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0345 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0341 import ( + from .group_0345 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0341 import PagesHealthCheckType as PagesHealthCheckType - from .group_0342 import PullRequestType as PullRequestType - from .group_0343 import ( + from .group_0345 import PagesHealthCheckType as PagesHealthCheckType + from .group_0346 import PullRequestType as PullRequestType + from .group_0347 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0344 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0344 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0345 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0346 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0347 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0348 import ( + from .group_0348 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0348 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0349 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0350 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0351 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0352 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0348 import ( + from .group_0352 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0348 import ( + from .group_0352 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0348 import PullRequestReviewType as PullRequestReviewType - from .group_0349 import ReviewCommentType as ReviewCommentType - from .group_0350 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0351 import ReleaseAssetType as ReleaseAssetType - from .group_0352 import ReleaseType as ReleaseType - from .group_0353 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0354 import ( + from .group_0352 import PullRequestReviewType as PullRequestReviewType + from .group_0353 import ReviewCommentType as ReviewCommentType + from .group_0354 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0355 import ReleaseAssetType as ReleaseAssetType + from .group_0356 import ReleaseType as ReleaseType + from .group_0357 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0358 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0355 import ( + from .group_0359 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0356 import ( + from .group_0360 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0357 import ( + from .group_0361 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0358 import ( + from .group_0362 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0359 import ( + from .group_0363 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0360 import ( + from .group_0364 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0361 import ( + from .group_0365 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0362 import ( + from .group_0366 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0363 import ( + from .group_0367 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0364 import ( + from .group_0368 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0365 import ( + from .group_0369 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0366 import ( + from .group_0370 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0367 import ( + from .group_0371 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0368 import ( + from .group_0372 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0369 import ( + from .group_0373 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0370 import ( + from .group_0374 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0371 import ( + from .group_0375 import ( RepositoryRuleDetailedOneof16Type as RepositoryRuleDetailedOneof16Type, ) - from .group_0372 import ( + from .group_0376 import ( RepositoryRuleDetailedOneof17Type as RepositoryRuleDetailedOneof17Type, ) - from .group_0373 import ( + from .group_0377 import ( RepositoryRuleDetailedOneof18Type as RepositoryRuleDetailedOneof18Type, ) - from .group_0374 import ( + from .group_0378 import ( RepositoryRuleDetailedOneof19Type as RepositoryRuleDetailedOneof19Type, ) - from .group_0375 import ( + from .group_0379 import ( RepositoryRuleDetailedOneof20Type as RepositoryRuleDetailedOneof20Type, ) - from .group_0376 import SecretScanningAlertType as SecretScanningAlertType - from .group_0377 import ( + from .group_0380 import SecretScanningAlertType as SecretScanningAlertType + from .group_0381 import SecretScanningLocationType as SecretScanningLocationType + from .group_0382 import ( SecretScanningPushProtectionBypassType as SecretScanningPushProtectionBypassType, ) - from .group_0378 import ( + from .group_0383 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType, ) - from .group_0378 import ( + from .group_0383 import ( SecretScanningScanHistoryType as SecretScanningScanHistoryType, ) - from .group_0378 import SecretScanningScanType as SecretScanningScanType - from .group_0379 import ( + from .group_0383 import SecretScanningScanType as SecretScanningScanType + from .group_0384 import ( SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type as SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type, ) - from .group_0380 import ( + from .group_0385 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0380 import ( + from .group_0385 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0380 import ( + from .group_0385 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0380 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0381 import ( + from .group_0385 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0386 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0381 import ( + from .group_0386 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0381 import ( + from .group_0386 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0382 import ( + from .group_0387 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0382 import ( + from .group_0387 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0382 import ( + from .group_0387 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0382 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0383 import StargazerType as StargazerType - from .group_0384 import CommitActivityType as CommitActivityType - from .group_0385 import ( + from .group_0387 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0388 import StargazerType as StargazerType + from .group_0389 import CommitActivityType as CommitActivityType + from .group_0390 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0385 import ContributorActivityType as ContributorActivityType - from .group_0386 import ParticipationStatsType as ParticipationStatsType - from .group_0387 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0388 import TagPropCommitType as TagPropCommitType - from .group_0388 import TagType as TagType - from .group_0389 import TagProtectionType as TagProtectionType - from .group_0390 import TopicType as TopicType - from .group_0391 import TrafficType as TrafficType - from .group_0392 import CloneTrafficType as CloneTrafficType - from .group_0393 import ContentTrafficType as ContentTrafficType - from .group_0394 import ReferrerTrafficType as ReferrerTrafficType - from .group_0395 import ViewTrafficType as ViewTrafficType - from .group_0396 import ( + from .group_0390 import ContributorActivityType as ContributorActivityType + from .group_0391 import ParticipationStatsType as ParticipationStatsType + from .group_0392 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0393 import TagPropCommitType as TagPropCommitType + from .group_0393 import TagType as TagType + from .group_0394 import TagProtectionType as TagProtectionType + from .group_0395 import TopicType as TopicType + from .group_0396 import TrafficType as TrafficType + from .group_0397 import CloneTrafficType as CloneTrafficType + from .group_0398 import ContentTrafficType as ContentTrafficType + from .group_0399 import ReferrerTrafficType as ReferrerTrafficType + from .group_0400 import ViewTrafficType as ViewTrafficType + from .group_0401 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0396 import ( + from .group_0401 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0397 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0397 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0398 import ( + from .group_0402 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0402 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0403 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0398 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0398 import ( + from .group_0403 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0403 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0399 import ( + from .group_0404 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0399 import ( + from .group_0404 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0399 import ( + from .group_0404 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0400 import ( + from .group_0405 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0400 import ( + from .group_0405 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0400 import ( + from .group_0405 import ( IssueSearchResultItemPropSubIssuesSummaryType as IssueSearchResultItemPropSubIssuesSummaryType, ) - from .group_0400 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0400 import ( + from .group_0405 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0405 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0401 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0401 import ( + from .group_0406 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0406 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0402 import ( + from .group_0407 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0402 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0402 import ( + from .group_0407 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0407 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0403 import ( + from .group_0408 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0403 import ( + from .group_0408 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0403 import ( + from .group_0408 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0403 import ( + from .group_0408 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0403 import ( + from .group_0408 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0403 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0404 import ( + from .group_0408 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0409 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0404 import UserSearchResultItemType as UserSearchResultItemType - from .group_0405 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0405 import PrivateUserType as PrivateUserType - from .group_0406 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0407 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0408 import ( + from .group_0409 import UserSearchResultItemType as UserSearchResultItemType + from .group_0410 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0410 import PrivateUserType as PrivateUserType + from .group_0411 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0412 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0413 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0408 import ( + from .group_0413 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0408 import ( + from .group_0413 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0409 import EmailType as EmailType - from .group_0410 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0410 import ( + from .group_0414 import EmailType as EmailType + from .group_0415 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0415 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0410 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0410 import GpgKeyType as GpgKeyType - from .group_0411 import KeyType as KeyType - from .group_0412 import MarketplaceAccountType as MarketplaceAccountType - from .group_0412 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0413 import SocialAccountType as SocialAccountType - from .group_0414 import SshSigningKeyType as SshSigningKeyType - from .group_0415 import StarredRepositoryType as StarredRepositoryType - from .group_0416 import ( + from .group_0415 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0415 import GpgKeyType as GpgKeyType + from .group_0416 import KeyType as KeyType + from .group_0417 import MarketplaceAccountType as MarketplaceAccountType + from .group_0417 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0418 import SocialAccountType as SocialAccountType + from .group_0419 import SshSigningKeyType as SshSigningKeyType + from .group_0420 import StarredRepositoryType as StarredRepositoryType + from .group_0421 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0416 import HovercardType as HovercardType - from .group_0417 import KeySimpleType as KeySimpleType - from .group_0418 import ( + from .group_0421 import HovercardType as HovercardType + from .group_0422 import KeySimpleType as KeySimpleType + from .group_0423 import ( BillingUsageReportUserPropUsageItemsItemsType as BillingUsageReportUserPropUsageItemsItemsType, ) - from .group_0418 import BillingUsageReportUserType as BillingUsageReportUserType - from .group_0419 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0420 import SimpleInstallationType as SimpleInstallationType - from .group_0421 import ( + from .group_0423 import BillingUsageReportUserType as BillingUsageReportUserType + from .group_0424 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0425 import SimpleInstallationType as SimpleInstallationType + from .group_0426 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0422 import ( + from .group_0427 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0422 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0423 import WebhooksRuleType as WebhooksRuleType - from .group_0424 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0425 import ( + from .group_0427 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0428 import WebhooksRuleType as WebhooksRuleType + from .group_0429 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0430 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0425 import ( + from .group_0430 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0426 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0427 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0428 import WebhooksApproverType as WebhooksApproverType - from .group_0428 import ( + from .group_0431 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0432 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0433 import WebhooksApproverType as WebhooksApproverType + from .group_0433 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0428 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0429 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0430 import WebhooksUserType as WebhooksUserType - from .group_0431 import ( + from .group_0433 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0434 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0435 import WebhooksUserType as WebhooksUserType + from .group_0436 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0431 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0431 import WebhooksAnswerType as WebhooksAnswerType - from .group_0432 import ( + from .group_0436 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0436 import WebhooksAnswerType as WebhooksAnswerType + from .group_0437 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0432 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0432 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0432 import DiscussionPropUserType as DiscussionPropUserType - from .group_0432 import DiscussionType as DiscussionType - from .group_0432 import LabelType as LabelType - from .group_0433 import ( + from .group_0437 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0437 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0437 import DiscussionPropUserType as DiscussionPropUserType + from .group_0437 import DiscussionType as DiscussionType + from .group_0437 import LabelType as LabelType + from .group_0438 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0433 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0433 import WebhooksCommentType as WebhooksCommentType - from .group_0434 import WebhooksLabelType as WebhooksLabelType - from .group_0435 import ( + from .group_0438 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0438 import WebhooksCommentType as WebhooksCommentType + from .group_0439 import WebhooksLabelType as WebhooksLabelType + from .group_0440 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0436 import ( + from .group_0441 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0437 import ( + from .group_0442 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0437 import ( + from .group_0442 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0437 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0438 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0438 import WebhooksChangesType as WebhooksChangesType - from .group_0439 import ( + from .group_0442 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0443 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0443 import WebhooksChangesType as WebhooksChangesType + from .group_0444 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0439 import ( + from .group_0444 import ( WebhooksIssuePropSubIssuesSummaryType as WebhooksIssuePropSubIssuesSummaryType, ) - from .group_0439 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0439 import WebhooksIssueType as WebhooksIssueType - from .group_0440 import ( + from .group_0444 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0444 import WebhooksIssueType as WebhooksIssueType + from .group_0445 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0440 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0441 import ( + from .group_0445 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0446 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0441 import ( + from .group_0446 import ( WebhooksIssue2PropSubIssuesSummaryType as WebhooksIssue2PropSubIssuesSummaryType, ) - from .group_0441 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0441 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0442 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0443 import ( + from .group_0446 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0446 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0447 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0448 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0443 import ( + from .group_0448 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0443 import ( + from .group_0448 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0445 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0445 import WebhooksTeamType as WebhooksTeamType - from .group_0446 import MergeGroupType as MergeGroupType - from .group_0447 import ( + from .group_0450 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0450 import WebhooksTeamType as WebhooksTeamType + from .group_0451 import MergeGroupType as MergeGroupType + from .group_0452 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0447 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0448 import ( + from .group_0452 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0453 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0448 import WebhooksMembershipType as WebhooksMembershipType - from .group_0449 import ( + from .group_0453 import WebhooksMembershipType as WebhooksMembershipType + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0449 import ( + from .group_0454 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0450 import ( + from .group_0455 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0450 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0451 import ( + from .group_0455 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0456 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0451 import WebhooksProjectType as WebhooksProjectType - from .group_0452 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0453 import ProjectsV2Type as ProjectsV2Type - from .group_0454 import ( + from .group_0456 import WebhooksProjectType as WebhooksProjectType + from .group_0457 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0458 import ProjectsV2Type as ProjectsV2Type + from .group_0459 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0454 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0455 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0456 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType - from .group_0457 import PullRequestWebhookType as PullRequestWebhookType - from .group_0458 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0459 import ( + from .group_0459 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0460 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0461 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0462 import PullRequestWebhookType as PullRequestWebhookType + from .group_0463 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0464 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0459 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0460 import ( + from .group_0464 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0465 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0460 import ( + from .group_0465 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0460 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0461 import ( + from .group_0465 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0466 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0461 import ( + from .group_0466 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0461 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0461 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0461 import WebhooksReviewType as WebhooksReviewType - from .group_0462 import ( + from .group_0466 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0466 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0466 import WebhooksReviewType as WebhooksReviewType + from .group_0467 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0462 import ( + from .group_0467 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0462 import ( + from .group_0467 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0462 import ( + from .group_0467 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0462 import WebhooksReleaseType as WebhooksReleaseType - from .group_0463 import ( + from .group_0467 import WebhooksReleaseType as WebhooksReleaseType + from .group_0468 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0463 import ( + from .group_0468 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0463 import ( + from .group_0468 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0463 import ( + from .group_0468 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0463 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0464 import ( + from .group_0468 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0469 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0464 import WebhooksAlertType as WebhooksAlertType - from .group_0465 import ( + from .group_0469 import WebhooksAlertType as WebhooksAlertType + from .group_0470 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0466 import ( + from .group_0471 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0466 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0467 import ( + from .group_0471 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0472 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0467 import ( + from .group_0472 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0467 import ( + from .group_0472 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0467 import ( + from .group_0472 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0467 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0468 import ( + from .group_0472 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0473 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0468 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0468 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0469 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0469 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0470 import ( + from .group_0473 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0473 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0474 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0474 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0475 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0471 import ( + from .group_0476 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0472 import ( + from .group_0477 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0475 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0476 import ( + from .group_0480 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0481 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0477 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0478 import ( + from .group_0482 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0483 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0483 import ( + from .group_0488 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0488 import ( + from .group_0493 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0492 import ( + from .group_0497 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0492 import ( + from .group_0497 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0492 import ( + from .group_0497 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0492 import ( + from .group_0497 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0493 import WebhookCreateType as WebhookCreateType - from .group_0494 import ( + from .group_0498 import WebhookCreateType as WebhookCreateType + from .group_0499 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0495 import ( + from .group_0500 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0495 import ( + from .group_0500 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0496 import ( + from .group_0501 import ( WebhookCustomPropertyPromotedToEnterpriseType as WebhookCustomPropertyPromotedToEnterpriseType, ) - from .group_0497 import ( + from .group_0502 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0499 import WebhookDeleteType as WebhookDeleteType - from .group_0500 import ( + from .group_0504 import WebhookDeleteType as WebhookDeleteType + from .group_0505 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0504 import ( + from .group_0509 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0506 import ( + from .group_0511 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0507 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0508 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0509 import ( + from .group_0512 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0513 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0509 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0510 import ( + from .group_0514 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0515 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0511 import ( + from .group_0516 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0513 import ( + from .group_0518 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0514 import ( + from .group_0519 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0515 import ( + from .group_0520 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0517 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0518 import ( + from .group_0522 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0523 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0519 import ( + from .group_0524 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0520 import ( + from .group_0525 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0520 import ( + from .group_0525 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0520 import ( + from .group_0525 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0521 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0522 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0523 import ( + from .group_0526 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0527 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0528 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0523 import ( + from .group_0528 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0523 import ( + from .group_0528 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0523 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0524 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0525 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0526 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0527 import ( + from .group_0528 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0529 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0530 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0531 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0532 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0528 import ( + from .group_0533 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0529 import ( + from .group_0534 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0530 import ( + from .group_0535 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0532 import ( + from .group_0537 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0533 import ( + from .group_0538 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0534 import WebhookForkType as WebhookForkType - from .group_0535 import ( + from .group_0539 import WebhookForkType as WebhookForkType + from .group_0540 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0535 import ( + from .group_0540 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0535 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0536 import ( + from .group_0540 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0541 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0537 import ( + from .group_0542 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0538 import ( + from .group_0543 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0538 import ( + from .group_0543 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0538 import ( + from .group_0543 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0539 import ( + from .group_0544 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0540 import ( + from .group_0545 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0540 import WebhookGollumType as WebhookGollumType - from .group_0541 import ( + from .group_0545 import WebhookGollumType as WebhookGollumType + from .group_0546 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0542 import ( + from .group_0547 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0543 import ( + from .group_0548 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0544 import ( + from .group_0549 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0544 import ( + from .group_0549 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0554 import ( + from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0555 import ( + from .group_0560 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0557 import ( + from .group_0562 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0560 import ( + from .group_0565 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0561 import ( + from .group_0566 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0566 import ( + from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0567 import ( + from .group_0572 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0568 import ( + from .group_0573 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0568 import ( + from .group_0573 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0570 import ( + from .group_0575 import ( WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0572 import ( + from .group_0577 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0573 import ( + from .group_0578 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0578 import ( + from .group_0583 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0579 import ( + from .group_0584 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0580 import ( + from .group_0585 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0580 import ( + from .group_0585 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0582 import ( + from .group_0587 import ( WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0586 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0587 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0588 import ( + from .group_0591 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0592 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0591 import ( + from .group_0596 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0594 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0594 import ( + from .group_0599 import ( WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType as WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0595 import ( + from .group_0600 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0597 import ( + from .group_0602 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0598 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0599 import ( + from .group_0603 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType as WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0599 import ( + from .group_0604 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0602 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0603 import ( + from .group_0607 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0608 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropSubIssuesSummaryType as WebhookIssuesEditedPropIssuePropSubIssuesSummaryType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0604 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0605 import ( + from .group_0609 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType as WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0606 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0607 import ( + from .group_0611 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0612 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropSubIssuesSummaryType as WebhookIssuesLockedPropIssuePropSubIssuesSummaryType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0608 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0609 import ( + from .group_0613 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType as WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0610 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0611 import ( + from .group_0615 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0611 import ( + from .group_0616 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType as WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0614 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0615 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0616 import ( + from .group_0619 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0620 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType as WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0616 import ( + from .group_0621 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0617 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0618 import ( + from .group_0622 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0618 import ( + from .group_0623 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType as WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0619 import ( + from .group_0624 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0620 import WebhookIssuesTypedType as WebhookIssuesTypedType - from .group_0621 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0622 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0623 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0624 import ( + from .group_0625 import WebhookIssuesTypedType as WebhookIssuesTypedType + from .group_0626 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0627 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0628 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType as WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0625 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0626 import WebhookIssuesUntypedType as WebhookIssuesUntypedType - from .group_0627 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0628 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0629 import ( + from .group_0630 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0631 import WebhookIssuesUntypedType as WebhookIssuesUntypedType + from .group_0632 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0633 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0634 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0629 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0630 import ( + from .group_0634 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0635 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0634 import ( + from .group_0639 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0635 import ( + from .group_0640 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0635 import ( + from .group_0640 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0635 import ( + from .group_0640 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0635 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0636 import ( + from .group_0640 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0641 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0636 import ( + from .group_0641 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0636 import ( + from .group_0641 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0636 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0637 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0638 import ( + from .group_0641 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0642 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0643 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0638 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0639 import ( + from .group_0643 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0644 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0639 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0640 import ( + from .group_0644 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0645 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0641 import ( + from .group_0646 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0642 import ( + from .group_0647 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0642 import ( + from .group_0647 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0642 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0643 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0644 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0645 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0646 import ( + from .group_0647 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0648 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0649 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0650 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0651 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0646 import ( + from .group_0651 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0646 import ( + from .group_0651 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0646 import ( + from .group_0651 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0646 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0647 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0648 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0649 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0650 import ( + from .group_0651 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0652 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0653 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0654 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0655 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0652 import ( + from .group_0657 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0652 import ( + from .group_0657 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0652 import ( + from .group_0657 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0653 import ( + from .group_0658 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0654 import ( + from .group_0659 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0654 import ( + from .group_0659 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0654 import ( + from .group_0659 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0655 import ( + from .group_0660 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0655 import ( + from .group_0660 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0655 import ( + from .group_0660 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0655 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0656 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0657 import ( + from .group_0660 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0661 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0662 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0659 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0660 import ( + from .group_0664 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0662 import ( + from .group_0667 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0662 import ( + from .group_0667 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0662 import ( + from .group_0667 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0662 import WebhookPageBuildType as WebhookPageBuildType - from .group_0663 import ( + from .group_0667 import WebhookPageBuildType as WebhookPageBuildType + from .group_0668 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0664 import ( + from .group_0669 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0666 import ( + from .group_0671 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0667 import WebhookPingType as WebhookPingType - from .group_0668 import ( + from .group_0672 import WebhookPingType as WebhookPingType + from .group_0673 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0668 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0669 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0670 import ( + from .group_0673 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0674 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0675 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0670 import ( + from .group_0675 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0670 import ( + from .group_0675 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0671 import ( + from .group_0676 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0672 import ( + from .group_0677 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0672 import ( + from .group_0677 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0672 import ( + from .group_0677 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0673 import ( + from .group_0678 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0673 import ( + from .group_0678 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0673 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0674 import ( + from .group_0678 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0679 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0674 import ( + from .group_0679 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0674 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0675 import ( + from .group_0679 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0675 import ( + from .group_0680 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0676 import ( + from .group_0681 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0676 import ( + from .group_0681 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0677 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0678 import ( + from .group_0682 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0683 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0679 import ( + from .group_0684 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0680 import ( + from .group_0685 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0681 import ( + from .group_0686 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0682 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0683 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0684 import ( + from .group_0687 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0688 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0689 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0684 import ( + from .group_0689 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0684 import ( + from .group_0689 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0684 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0685 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0686 import ( + from .group_0689 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0690 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0691 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0687 import ( + from .group_0692 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0688 import ( + from .group_0693 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0689 import ( + from .group_0694 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0690 import ( + from .group_0695 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0691 import ( + from .group_0696 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0691 import ( + from .group_0696 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0691 import ( + from .group_0696 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0692 import ( + from .group_0697 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0693 import ( + from .group_0698 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0694 import ( + from .group_0699 import ( ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, ) - from .group_0694 import ( + from .group_0699 import ( ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0694 import ( + from .group_0699 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0695 import ( + from .group_0700 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0695 import ( + from .group_0700 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0695 import ( + from .group_0700 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0696 import ( + from .group_0701 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0697 import ( + from .group_0702 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0698 import ( + from .group_0703 import ( WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, ) - from .group_0699 import ( + from .group_0704 import ( WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, ) - from .group_0700 import ( + from .group_0705 import ( WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, ) - from .group_0701 import WebhookPublicType as WebhookPublicType - from .group_0702 import ( + from .group_0706 import WebhookPublicType as WebhookPublicType + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0702 import ( + from .group_0707 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0703 import ( + from .group_0708 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0704 import ( + from .group_0709 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0705 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0706 import ( + from .group_0710 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0711 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0707 import ( + from .group_0712 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0708 import ( + from .group_0713 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0709 import ( + from .group_0714 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0709 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0710 import ( + from .group_0714 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0710 import ( + from .group_0715 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0711 import ( + from .group_0716 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0712 import ( + from .group_0717 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0712 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0713 import ( + from .group_0717 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0718 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0714 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0715 import ( + from .group_0719 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0720 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0716 import ( + from .group_0721 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0717 import ( + from .group_0722 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0718 import ( + from .group_0723 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0719 import ( + from .group_0724 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0720 import ( + from .group_0725 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0721 import ( + from .group_0726 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0722 import ( + from .group_0727 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0723 import ( + from .group_0728 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0724 import ( + from .group_0729 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0725 import ( + from .group_0730 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0726 import ( + from .group_0731 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0727 import ( + from .group_0732 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0728 import ( + from .group_0733 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0729 import ( + from .group_0734 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0730 import ( + from .group_0735 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0731 import ( + from .group_0736 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0732 import ( + from .group_0737 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0733 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0733 import ( + from .group_0738 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0738 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0733 import ( + from .group_0738 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0733 import WebhookPushType as WebhookPushType - from .group_0734 import ( + from .group_0738 import WebhookPushType as WebhookPushType + from .group_0739 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0735 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0735 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0735 import ( + from .group_0740 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0736 import ( + from .group_0741 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0737 import ( + from .group_0742 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0738 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0738 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0738 import ( + from .group_0743 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0739 import ( + from .group_0744 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0740 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0741 import WebhookReleaseDeletedType as WebhookReleaseDeletedType - from .group_0742 import ( + from .group_0745 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0746 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0747 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesPropTagNameType as WebhookReleaseEditedPropChangesPropTagNameType, ) - from .group_0742 import ( + from .group_0747 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0742 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0743 import ( + from .group_0747 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0743 import ( + from .group_0748 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0744 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0745 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0746 import ( + from .group_0749 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0750 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0751 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0747 import ( + from .group_0752 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0748 import ( + from .group_0753 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0749 import ( + from .group_0754 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0750 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0751 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0752 import ( + from .group_0755 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0756 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0757 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0752 import ( + from .group_0757 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0753 import ( + from .group_0758 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0753 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0754 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0755 import ( + from .group_0758 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0759 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0760 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0756 import ( + from .group_0761 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0757 import ( + from .group_0762 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0757 import ( + from .group_0762 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0757 import ( + from .group_0762 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0757 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0758 import ( + from .group_0762 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0763 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0759 import ( + from .group_0764 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0760 import ( + from .group_0765 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0761 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0761 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0761 import ( + from .group_0766 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0762 import ( + from .group_0767 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0763 import ( + from .group_0768 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0764 import ( + from .group_0769 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0765 import ( + from .group_0770 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0766 import ( + from .group_0771 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0767 import ( + from .group_0772 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0768 import ( + from .group_0773 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0769 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0769 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0769 import ( + from .group_0774 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0770 import ( + from .group_0775 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0771 import ( + from .group_0776 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0772 import ( + from .group_0777 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0773 import ( - SecretScanningLocationCommitType as SecretScanningLocationCommitType, - ) - from .group_0773 import ( - SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, - ) - from .group_0773 import ( - SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, - ) - from .group_0773 import ( - SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, - ) - from .group_0773 import ( - SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, - ) - from .group_0773 import ( - SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, - ) - from .group_0773 import ( - SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, - ) - from .group_0773 import ( - SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, - ) - from .group_0773 import SecretScanningLocationType as SecretScanningLocationType - from .group_0773 import ( - SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, - ) - from .group_0773 import ( + from .group_0778 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0774 import ( + from .group_0779 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0775 import ( + from .group_0780 import ( WebhookSecretScanningAlertPubliclyLeakedType as WebhookSecretScanningAlertPubliclyLeakedType, ) - from .group_0776 import ( + from .group_0781 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0777 import ( + from .group_0782 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0778 import ( + from .group_0783 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0779 import ( + from .group_0784 import ( WebhookSecretScanningScanCompletedType as WebhookSecretScanningScanCompletedType, ) - from .group_0780 import ( + from .group_0785 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0781 import ( + from .group_0786 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0782 import ( + from .group_0787 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0783 import ( + from .group_0788 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0784 import ( + from .group_0789 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0785 import ( + from .group_0790 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0786 import ( + from .group_0791 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0787 import ( + from .group_0792 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0788 import ( + from .group_0793 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0789 import ( + from .group_0794 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0789 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0790 import ( + from .group_0794 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0795 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0791 import ( + from .group_0796 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0792 import ( + from .group_0797 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0793 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0794 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0795 import ( + from .group_0798 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0799 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0800 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0795 import ( + from .group_0800 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0795 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0795 import WebhookStatusType as WebhookStatusType - from .group_0796 import ( + from .group_0800 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0800 import WebhookStatusType as WebhookStatusType + from .group_0801 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0797 import ( + from .group_0802 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0798 import ( + from .group_0803 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0799 import ( + from .group_0804 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0800 import ( + from .group_0805 import ( WebhookSubIssuesParentIssueAddedType as WebhookSubIssuesParentIssueAddedType, ) - from .group_0801 import ( + from .group_0806 import ( WebhookSubIssuesParentIssueRemovedType as WebhookSubIssuesParentIssueRemovedType, ) - from .group_0802 import ( + from .group_0807 import ( WebhookSubIssuesSubIssueAddedType as WebhookSubIssuesSubIssueAddedType, ) - from .group_0803 import ( + from .group_0808 import ( WebhookSubIssuesSubIssueRemovedType as WebhookSubIssuesSubIssueRemovedType, ) - from .group_0804 import WebhookTeamAddType as WebhookTeamAddType - from .group_0805 import ( + from .group_0809 import WebhookTeamAddType as WebhookTeamAddType + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0805 import ( + from .group_0810 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0806 import ( + from .group_0811 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0806 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0807 import ( + from .group_0811 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0807 import ( + from .group_0812 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0807 import WebhookTeamDeletedType as WebhookTeamDeletedType - from .group_0808 import ( + from .group_0812 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0813 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0808 import ( + from .group_0813 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0808 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_0809 import ( + from .group_0813 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0809 import ( + from .group_0814 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0810 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0811 import ( + from .group_0815 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0816 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0811 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0812 import ( + from .group_0816 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0812 import ( + from .group_0817 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0812 import ( + from .group_0817 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0813 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0813 import ( + from .group_0818 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0814 import ( + from .group_0819 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0814 import ( + from .group_0819 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0815 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0815 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0815 import ( + from .group_0820 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0816 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0816 import ( + from .group_0821 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0817 import ( + from .group_0822 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0817 import ( + from .group_0822 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0818 import ( + from .group_0823 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0818 import ( + from .group_0823 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0818 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_0819 import ( + from .group_0823 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_0824 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0819 import ( + from .group_0824 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0819 import ( + from .group_0824 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0820 import ( + from .group_0825 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0821 import ( + from .group_0826 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0822 import ( + from .group_0827 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0823 import ( + from .group_0828 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0824 import ( + from .group_0829 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0825 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0826 import ( + from .group_0830 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0831 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0827 import ( + from .group_0832 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0828 import ( + from .group_0833 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0829 import ( + from .group_0834 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0830 import ( + from .group_0835 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0831 import ( + from .group_0836 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0832 import ( + from .group_0837 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0833 import ( + from .group_0838 import ( CredentialsRevokePostBodyType as CredentialsRevokePostBodyType, ) - from .group_0834 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0835 import ( + from .group_0839 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0835 import ( + from .group_0840 import ( EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType, ) - from .group_0836 import ( + from .group_0841 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0836 import ( + from .group_0841 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0837 import ( + from .group_0842 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0838 import ( + from .group_0843 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0839 import ( + from .group_0844 import ( EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0840 import ( + from .group_0845 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type as EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type, ) - from .group_0841 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0841 import GistsPostBodyType as GistsPostBodyType - from .group_0842 import ( + from .group_0846 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0846 import GistsPostBodyType as GistsPostBodyType + from .group_0847 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0842 import ( + from .group_0847 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0843 import ( + from .group_0848 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0843 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0844 import ( + from .group_0848 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0849 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0845 import ( + from .group_0850 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0846 import ( + from .group_0851 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0847 import ( + from .group_0852 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0848 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0849 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0850 import ( + from .group_0853 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0854 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0855 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0851 import ( + from .group_0856 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0852 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0853 import ( + from .group_0857 import ( + OrganizationsOrgDependabotRepositoryAccessPatchBodyType as OrganizationsOrgDependabotRepositoryAccessPatchBodyType, + ) + from .group_0858 import ( + OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType as OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType, + ) + from .group_0859 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0860 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0853 import ( + from .group_0860 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0854 import ( + from .group_0861 import ( OrgsOrgActionsHostedRunnersGetResponse200Type as OrgsOrgActionsHostedRunnersGetResponse200Type, ) - from .group_0855 import ( + from .group_0862 import ( OrgsOrgActionsHostedRunnersPostBodyPropImageType as OrgsOrgActionsHostedRunnersPostBodyPropImageType, ) - from .group_0855 import ( + from .group_0862 import ( OrgsOrgActionsHostedRunnersPostBodyType as OrgsOrgActionsHostedRunnersPostBodyType, ) - from .group_0856 import ( + from .group_0863 import ( OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type as OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type, ) - from .group_0857 import ( + from .group_0864 import ( OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type as OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type, ) - from .group_0858 import ( + from .group_0865 import ( OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type as OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type, ) - from .group_0859 import ( + from .group_0866 import ( OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type as OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type, ) - from .group_0860 import ( + from .group_0867 import ( OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType as OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType, ) - from .group_0861 import ( + from .group_0868 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0862 import ( + from .group_0869 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0863 import ( + from .group_0870 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0864 import ( + from .group_0871 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0864 import RunnerGroupsOrgType as RunnerGroupsOrgType - from .group_0865 import ( + from .group_0871 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0872 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0866 import ( + from .group_0873 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0867 import ( + from .group_0874 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type, ) - from .group_0868 import ( + from .group_0875 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0869 import ( + from .group_0876 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0870 import ( + from .group_0877 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0871 import ( + from .group_0878 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0872 import ( + from .group_0879 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0873 import ( + from .group_0880 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0874 import ( + from .group_0881 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0875 import ( + from .group_0882 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0876 import ( + from .group_0883 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0877 import ( + from .group_0884 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0878 import ( + from .group_0885 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0879 import ( + from .group_0886 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0879 import ( + from .group_0886 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0880 import ( + from .group_0887 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0881 import ( + from .group_0888 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0882 import ( + from .group_0889 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0883 import ( + from .group_0890 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0883 import ( + from .group_0890 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0884 import ( + from .group_0891 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0885 import ( + from .group_0892 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0886 import ( + from .group_0893 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0887 import ( + from .group_0894 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0888 import ( + from .group_0895 import ( + OrgsOrgAttestationsBulkListPostBodyType as OrgsOrgAttestationsBulkListPostBodyType, + ) + from .group_0896 import ( + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType as OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType, + ) + from .group_0896 import ( + OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType as OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType, + ) + from .group_0896 import ( + OrgsOrgAttestationsBulkListPostResponse200Type as OrgsOrgAttestationsBulkListPostResponse200Type, + ) + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_0888 import ( + from .group_0897 import ( OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, ) - from .group_0889 import ( + from .group_0898 import ( OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType as OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType, ) - from .group_0889 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType - from .group_0890 import ( + from .group_0898 import OrgsOrgCampaignsPostBodyType as OrgsOrgCampaignsPostBodyType + from .group_0899 import ( OrgsOrgCampaignsCampaignNumberPatchBodyType as OrgsOrgCampaignsCampaignNumberPatchBodyType, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0891 import ( + from .group_0900 import ( OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, ) - from .group_0892 import ( + from .group_0901 import ( OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType as OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType, ) - from .group_0893 import ( + from .group_0902 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, ) - from .group_0894 import ( + from .group_0903 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, ) - from .group_0895 import ( + from .group_0904 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, ) - from .group_0896 import ( + from .group_0905 import ( OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, ) - from .group_0897 import ( + from .group_0906 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0898 import ( + from .group_0907 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0899 import ( + from .group_0908 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0900 import ( + from .group_0909 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0901 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_0901 import ( + from .group_0910 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_0910 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0902 import ( + from .group_0911 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0903 import ( + from .group_0912 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0904 import ( + from .group_0913 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0905 import ( + from .group_0914 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0906 import ( + from .group_0915 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0907 import ( + from .group_0916 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0908 import ( + from .group_0917 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0909 import ( + from .group_0918 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0910 import ( + from .group_0919 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0911 import ( + from .group_0920 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0912 import ( + from .group_0921 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0913 import ( + from .group_0922 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_0913 import ( + from .group_0922 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0914 import ( + from .group_0923 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0915 import ( + from .group_0924 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0916 import ( + from .group_0925 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0917 import ( + from .group_0926 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_0917 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0918 import ( + from .group_0926 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0927 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0918 import ( + from .group_0927 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_0919 import ( + from .group_0928 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0920 import ( + from .group_0929 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0921 import ( + from .group_0930 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0922 import ( + from .group_0931 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0923 import ( + from .group_0932 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0924 import ( + from .group_0933 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0925 import ( + from .group_0934 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) - from .group_0926 import ( + from .group_0935 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0927 import ( + from .group_0936 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0928 import ( + from .group_0937 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0929 import ( + from .group_0938 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0930 import ( + from .group_0939 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0931 import ( + from .group_0940 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0932 import ( + from .group_0941 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0933 import ( + from .group_0942 import ( OrgPrivateRegistryConfigurationType as OrgPrivateRegistryConfigurationType, ) - from .group_0933 import ( + from .group_0942 import ( OrgsOrgPrivateRegistriesGetResponse200Type as OrgsOrgPrivateRegistriesGetResponse200Type, ) - from .group_0934 import ( + from .group_0943 import ( OrgsOrgPrivateRegistriesPostBodyType as OrgsOrgPrivateRegistriesPostBodyType, ) - from .group_0935 import ( + from .group_0944 import ( OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type as OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type, ) - from .group_0936 import ( + from .group_0945 import ( OrgsOrgPrivateRegistriesSecretNamePatchBodyType as OrgsOrgPrivateRegistriesSecretNamePatchBodyType, ) - from .group_0937 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0938 import ( + from .group_0946 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0947 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0939 import ( + from .group_0948 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0940 import ( + from .group_0949 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0940 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0941 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0942 import ( + from .group_0949 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0950 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0951 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0943 import NetworkConfigurationType as NetworkConfigurationType - from .group_0943 import ( + from .group_0952 import NetworkConfigurationType as NetworkConfigurationType + from .group_0952 import ( OrgsOrgSettingsNetworkConfigurationsGetResponse200Type as OrgsOrgSettingsNetworkConfigurationsGetResponse200Type, ) - from .group_0944 import ( + from .group_0953 import ( OrgsOrgSettingsNetworkConfigurationsPostBodyType as OrgsOrgSettingsNetworkConfigurationsPostBodyType, ) - from .group_0945 import ( + from .group_0954 import ( OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType as OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType, ) - from .group_0946 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0947 import ( + from .group_0955 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_0956 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_0948 import ( + from .group_0957 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0949 import ( + from .group_0958 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0950 import ( + from .group_0959 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0951 import ( + from .group_0960 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0952 import ( + from .group_0961 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0953 import ( + from .group_0962 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0954 import ( + from .group_0963 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0955 import ( + from .group_0964 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0956 import ( + from .group_0965 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0957 import ( + from .group_0966 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0958 import ( + from .group_0967 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0959 import ( + from .group_0968 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0960 import ( + from .group_0969 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_0961 import ( + from .group_0970 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0962 import ( + from .group_0971 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0963 import ( + from .group_0972 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0963 import ( + from .group_0972 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0964 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0964 import ( + from .group_0973 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0965 import ( + from .group_0974 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0966 import ( + from .group_0975 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0967 import ( + from .group_0976 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0968 import ( + from .group_0977 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0968 import ( + from .group_0977 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0969 import ( + from .group_0978 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_0970 import ( + from .group_0979 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0971 import ( + from .group_0980 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_0972 import ( + from .group_0981 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_0973 import ( + from .group_0982 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_0974 import ( + from .group_0983 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0975 import ( + from .group_0984 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_0976 import ( + from .group_0985 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_0977 import ( + from .group_0986 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_0977 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType - from .group_0978 import ( + from .group_0986 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0987 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0979 import ( + from .group_0988 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0980 import ( + from .group_0989 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0981 import ( + from .group_0990 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_0982 import ( + from .group_0991 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0983 import ( + from .group_0992 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0984 import ( + from .group_0993 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0985 import ( + from .group_0994 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0986 import ( + from .group_0995 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0987 import ( + from .group_0996 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0988 import ( + from .group_0997 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_0989 import ( + from .group_0998 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_0990 import ( + from .group_0999 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_0991 import ( + from .group_1000 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_0992 import ( + from .group_1001 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_0993 import ( + from .group_1002 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_0994 import ( + from .group_1003 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_0995 import ( + from .group_1004 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_0996 import ( + from .group_1005 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_0997 import ( + from .group_1006 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_0998 import ( + from .group_1007 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_0999 import ( + from .group_1008 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1000 import ( + from .group_1009 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1000 import WorkflowType as WorkflowType - from .group_1001 import ( + from .group_1009 import WorkflowType as WorkflowType + from .group_1010 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_1001 import ( + from .group_1010 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_1002 import ( + from .group_1011 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, ) - from .group_1003 import ( + from .group_1012 import ( ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, ) - from .group_1004 import ( + from .group_1013 import ( ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1005 import ( + from .group_1014 import ( ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, ) - from .group_1006 import ( + from .group_1015 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_1007 import ( + from .group_1016 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_1008 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_1008 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_1008 import ( + from .group_1017 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_1009 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_1009 import ( + from .group_1018 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_1010 import ( + from .group_1019 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1011 import ( + from .group_1020 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1012 import ( + from .group_1021 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_1013 import ( + from .group_1022 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType, ) - from .group_1014 import ( + from .group_1023 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType, ) - from .group_1015 import ( + from .group_1024 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType, ) - from .group_1016 import ( + from .group_1025 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_1017 import ( + from .group_1026 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_1018 import ( + from .group_1027 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_1019 import ( + from .group_1028 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType, ) - from .group_1020 import ( + from .group_1029 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType, ) - from .group_1021 import ( + from .group_1030 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType, ) - from .group_1022 import ( + from .group_1031 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1023 import ( + from .group_1032 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_1024 import ( + from .group_1033 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_1025 import ( + from .group_1034 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_1026 import ( + from .group_1035 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_1027 import ( + from .group_1036 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_1028 import ( + from .group_1037 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_1029 import ( + from .group_1038 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1030 import ( + from .group_1039 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_1030 import ( + from .group_1039 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_1031 import ( + from .group_1040 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_1032 import ( + from .group_1041 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1033 import ( + from .group_1042 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_1034 import ( + from .group_1043 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_1035 import ( + from .group_1044 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_1036 import ( + from .group_1045 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_1037 import ( + from .group_1046 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1038 import ( + from .group_1047 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1039 import ( + from .group_1048 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_1039 import ( + from .group_1048 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1040 import ( + from .group_1049 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1041 import ( + from .group_1050 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1041 import ( + from .group_1050 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1042 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1042 import ( + from .group_1051 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1051 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1043 import ( + from .group_1052 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1044 import ( + from .group_1053 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1045 import ( + from .group_1054 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1046 import ( + from .group_1055 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1047 import ( + from .group_1056 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1048 import ( + from .group_1057 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1049 import ( + from .group_1058 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1049 import ( + from .group_1058 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1049 import ( + from .group_1058 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1050 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1050 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1050 import ( + from .group_1059 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1051 import ( + from .group_1060 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1052 import DependabotSecretType as DependabotSecretType - from .group_1052 import ( + from .group_1061 import DependabotSecretType as DependabotSecretType + from .group_1061 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1053 import ( + from .group_1062 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1054 import ( + from .group_1063 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1055 import ( + from .group_1064 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1055 import ( + from .group_1064 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1056 import ( + from .group_1065 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1057 import ( + from .group_1066 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1058 import ( + from .group_1067 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1058 import ( + from .group_1067 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1059 import ( + from .group_1068 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1059 import ( + from .group_1068 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1060 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1060 import ( + from .group_1069 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1069 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_1061 import ( + from .group_1070 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_1062 import ( + from .group_1071 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_1063 import ( + from .group_1072 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_1064 import ( + from .group_1073 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1065 import ( + from .group_1074 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_1066 import ( + from .group_1075 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1067 import ( + from .group_1076 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_1068 import ( + from .group_1077 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1069 import ( + from .group_1078 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1070 import ( + from .group_1079 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1070 import ( + from .group_1079 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1070 import ( + from .group_1079 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1071 import ( + from .group_1080 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1072 import ( + from .group_1081 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1073 import ( + from .group_1082 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1073 import ( + from .group_1082 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1074 import ( + from .group_1083 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1074 import ( + from .group_1083 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1075 import ( + from .group_1084 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1075 import ( + from .group_1084 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1076 import ( + from .group_1085 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1077 import ( + from .group_1086 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1078 import ( + from .group_1087 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1079 import ( + from .group_1088 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) - from .group_1080 import ( + from .group_1089 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1081 import ( + from .group_1090 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1082 import ( + from .group_1091 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1083 import ( + from .group_1092 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1084 import ( + from .group_1093 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1084 import ( + from .group_1093 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1085 import ( + from .group_1094 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1086 import ( + from .group_1095 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1087 import ( + from .group_1096 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1087 import ( + from .group_1096 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1088 import ( + from .group_1097 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1089 import ( + from .group_1098 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1090 import ( + from .group_1099 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1091 import ( + from .group_1100 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1092 import ( + from .group_1101 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1092 import ( + from .group_1101 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1093 import ( + from .group_1102 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1094 import ( + from .group_1103 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1095 import ( + from .group_1104 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_1095 import ( + from .group_1104 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1096 import ( + from .group_1105 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1097 import ( + from .group_1106 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1098 import ( + from .group_1107 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1099 import ( + from .group_1108 import ( ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType as ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType, ) - from .group_1100 import ( + from .group_1109 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType, ) - from .group_1101 import ( + from .group_1110 import ( ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType as ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType, ) - from .group_1102 import ( + from .group_1111 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1103 import ( + from .group_1112 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1104 import ( + from .group_1113 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1105 import ( + from .group_1114 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1106 import ( + from .group_1115 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1107 import ( + from .group_1116 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1108 import ( + from .group_1117 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1109 import ( + from .group_1118 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) - from .group_1110 import ( + from .group_1119 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1111 import ( + from .group_1120 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1112 import ( + from .group_1121 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1113 import ( + from .group_1122 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1114 import ( + from .group_1123 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1115 import ( + from .group_1124 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1116 import ( + from .group_1125 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1117 import ( + from .group_1126 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1118 import ( + from .group_1127 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1119 import ( + from .group_1128 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1120 import ( + from .group_1129 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1121 import ( + from .group_1130 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1122 import ( + from .group_1131 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1123 import ( + from .group_1132 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_1124 import ( + from .group_1133 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1125 import ( + from .group_1134 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1126 import ( + from .group_1135 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_1127 import ( + from .group_1136 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1128 import ( + from .group_1137 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1129 import ( + from .group_1138 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_1130 import ( + from .group_1139 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1131 import ( + from .group_1140 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1132 import ( + from .group_1141 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1133 import ( + from .group_1142 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1134 import ( + from .group_1143 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1135 import ( + from .group_1144 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1136 import ( + from .group_1145 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1137 import ( + from .group_1146 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1137 import ( + from .group_1146 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1138 import ( + from .group_1147 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_1139 import ( + from .group_1148 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_1140 import ( + from .group_1149 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_1141 import ( + from .group_1150 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1142 import ( + from .group_1151 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1143 import ( + from .group_1152 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1144 import ( + from .group_1153 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1145 import ( + from .group_1154 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1146 import ( + from .group_1155 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) - from .group_1147 import ( + from .group_1156 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_1148 import ( + from .group_1157 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1149 import ( + from .group_1158 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1150 import ( + from .group_1159 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1151 import ( + from .group_1160 import ( ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType as ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType, ) - from .group_1152 import ( + from .group_1161 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1153 import ( + from .group_1162 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) - from .group_1154 import ( + from .group_1163 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1155 import ( + from .group_1164 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) - from .group_1156 import ( + from .group_1165 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1157 import ( + from .group_1166 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1158 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1159 import ( + from .group_1167 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1168 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) - from .group_1160 import ( + from .group_1169 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_1161 import ( + from .group_1170 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1162 import ( + from .group_1171 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_1163 import ( + from .group_1172 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1164 import ( + from .group_1173 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_1165 import ( + from .group_1174 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_1166 import ( + from .group_1175 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1167 import ( + from .group_1176 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1168 import ( + from .group_1177 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) - from .group_1169 import UserPatchBodyType as UserPatchBodyType - from .group_1170 import ( + from .group_1178 import UserPatchBodyType as UserPatchBodyType + from .group_1179 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1171 import ( + from .group_1180 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1172 import ( + from .group_1181 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_1172 import ( + from .group_1181 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1173 import CodespacesSecretType as CodespacesSecretType - from .group_1173 import ( + from .group_1182 import CodespacesSecretType as CodespacesSecretType + from .group_1182 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) - from .group_1174 import ( + from .group_1183 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_1175 import ( + from .group_1184 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1176 import ( + from .group_1185 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_1177 import ( + from .group_1186 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) - from .group_1178 import ( + from .group_1187 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_1179 import ( + from .group_1188 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from .group_1180 import ( + from .group_1189 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1181 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type - from .group_1182 import ( + from .group_1190 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_1191 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1183 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType - from .group_1184 import ( + from .group_1192 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_1193 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1185 import ( + from .group_1194 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_1186 import ( + from .group_1195 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1187 import UserKeysPostBodyType as UserKeysPostBodyType - from .group_1188 import ( + from .group_1196 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_1197 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_1189 import UserMigrationsPostBodyType as UserMigrationsPostBodyType - from .group_1190 import UserProjectsPostBodyType as UserProjectsPostBodyType - from .group_1191 import UserReposPostBodyType as UserReposPostBodyType - from .group_1192 import ( + from .group_1198 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_1199 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_1200 import UserReposPostBodyType as UserReposPostBodyType + from .group_1201 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1193 import ( + from .group_1202 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_1194 import ( + from .group_1203 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) - from .group_1195 import ( + from .group_1204 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type, + ) + from .group_1205 import ( + UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type as UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type, + ) + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, ) - from .group_1195 import ( + from .group_1206 import ( UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, ) else: @@ -9091,6 +9124,7 @@ ".group_0020": ( "RepositoryType", "RepositoryPropPermissionsType", + "RepositoryPropCodeSearchIndexStatusType", ), ".group_0021": ("InstallationTokenType",), ".group_0022": ("ScopedInstallationType",), @@ -9136,67 +9170,86 @@ ), ".group_0036": ("DependabotAlertWithRepositoryType",), ".group_0037": ("DependabotAlertWithRepositoryPropDependencyType",), - ".group_0038": ("OrganizationSecretScanningAlertType",), - ".group_0039": ("MilestoneType",), - ".group_0040": ("IssueTypeType",), - ".group_0041": ("ReactionRollupType",), - ".group_0042": ( + ".group_0038": ( + "SecretScanningLocationCommitType", + "SecretScanningLocationWikiCommitType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestReviewType", + ), + ".group_0039": ( + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationPullRequestReviewCommentType", + ), + ".group_0040": ( + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationPullRequestCommentType", + ), + ".group_0041": ("OrganizationSecretScanningAlertType",), + ".group_0042": ("MilestoneType",), + ".group_0043": ("IssueTypeType",), + ".group_0044": ("ReactionRollupType",), + ".group_0045": ( "IssueType", "SubIssuesSummaryType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0043": ("IssueCommentType",), - ".group_0044": ( + ".group_0046": ("IssueCommentType",), + ".group_0047": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0045": ( + ".group_0048": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0046": ( + ".group_0049": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0047": ( + ".group_0050": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0048": ( + ".group_0051": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0049": ("GistCommentType",), - ".group_0050": ( + ".group_0052": ("GistCommentType",), + ".group_0053": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0051": ("GitignoreTemplateType",), - ".group_0052": ("LicenseType",), - ".group_0053": ("MarketplaceListingPlanType",), - ".group_0054": ("MarketplacePurchaseType",), - ".group_0055": ( + ".group_0054": ("GitignoreTemplateType",), + ".group_0055": ("LicenseType",), + ".group_0056": ("MarketplaceListingPlanType",), + ".group_0057": ("MarketplacePurchaseType",), + ".group_0058": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0056": ( + ".group_0059": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", "ApiOverviewPropDomainsPropActionsInboundType", "ApiOverviewPropDomainsPropArtifactAttestationsType", ), - ".group_0057": ( + ".group_0060": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropCodeSecurityType", @@ -9206,85 +9259,87 @@ "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "SecurityAndAnalysisPropSecretScanningAiDetectionType", ), - ".group_0058": ( + ".group_0061": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropCustomPropertiesType", ), - ".group_0059": ( + ".group_0062": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0060": ("ThreadSubscriptionType",), - ".group_0061": ("OrganizationSimpleType",), - ".group_0062": ( + ".group_0063": ("ThreadSubscriptionType",), + ".group_0064": ("OrganizationSimpleType",), + ".group_0065": ("DependabotRepositoryAccessDetailsType",), + ".group_0066": ( "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", ), - ".group_0063": ( + ".group_0067": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0064": ("ActionsCacheUsageOrgEnterpriseType",), - ".group_0065": ("ActionsHostedRunnerMachineSpecType",), - ".group_0066": ( + ".group_0068": ("ActionsCacheUsageOrgEnterpriseType",), + ".group_0069": ("ActionsHostedRunnerMachineSpecType",), + ".group_0070": ( "ActionsHostedRunnerType", "ActionsHostedRunnerPoolImageType", "PublicIpType", ), - ".group_0067": ("ActionsHostedRunnerImageType",), - ".group_0068": ( + ".group_0071": ("ActionsHostedRunnerImageType",), + ".group_0072": ( "ActionsHostedRunnerLimitsType", "ActionsHostedRunnerLimitsPropPublicIpsType", ), - ".group_0069": ("OidcCustomSubType",), - ".group_0070": ("ActionsOrganizationPermissionsType",), - ".group_0071": ("SelectedActionsType",), - ".group_0072": ("ActionsGetDefaultWorkflowPermissionsType",), - ".group_0073": ("ActionsSetDefaultWorkflowPermissionsType",), - ".group_0074": ("RunnerLabelType",), - ".group_0075": ("RunnerType",), - ".group_0076": ("RunnerApplicationType",), - ".group_0077": ( + ".group_0073": ("OidcCustomSubType",), + ".group_0074": ("ActionsOrganizationPermissionsType",), + ".group_0075": ("SelectedActionsType",), + ".group_0076": ("ActionsGetDefaultWorkflowPermissionsType",), + ".group_0077": ("ActionsSetDefaultWorkflowPermissionsType",), + ".group_0078": ("RunnerLabelType",), + ".group_0079": ("RunnerType",), + ".group_0080": ("RunnerApplicationType",), + ".group_0081": ( "AuthenticationTokenType", "AuthenticationTokenPropPermissionsType", ), - ".group_0078": ("ActionsPublicKeyType",), - ".group_0079": ("TeamSimpleType",), - ".group_0080": ( + ".group_0082": ("ActionsPublicKeyType",), + ".group_0083": ("TeamSimpleType",), + ".group_0084": ( "TeamType", "TeamPropPermissionsType", ), - ".group_0081": ( + ".group_0085": ( "CampaignSummaryType", "CampaignSummaryPropAlertStatsType", ), - ".group_0082": ("CodeScanningAlertRuleSummaryType",), - ".group_0083": ("CodeScanningAnalysisToolType",), - ".group_0084": ( + ".group_0086": ("CodeScanningAlertRuleSummaryType",), + ".group_0087": ("CodeScanningAnalysisToolType",), + ".group_0088": ( "CodeScanningAlertInstanceType", "CodeScanningAlertLocationType", "CodeScanningAlertInstancePropMessageType", ), - ".group_0085": ("CodeScanningOrganizationAlertItemsType",), - ".group_0086": ("CodespaceMachineType",), - ".group_0087": ( + ".group_0089": ("CodeScanningOrganizationAlertItemsType",), + ".group_0090": ("CodespaceMachineType",), + ".group_0091": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0088": ("CodespacesPublicKeyType",), - ".group_0089": ( + ".group_0092": ("CodespacesPublicKeyType",), + ".group_0093": ( "CopilotOrganizationDetailsType", "CopilotOrganizationSeatBreakdownType", ), - ".group_0090": ( + ".group_0094": ( "CopilotSeatDetailsType", "EnterpriseTeamType", "OrgsOrgCopilotBillingSeatsGetResponse200Type", ), - ".group_0091": ( + ".group_0095": ( "CopilotUsageMetricsDayType", "CopilotDotcomChatType", "CopilotDotcomChatPropModelsItemsType", @@ -9300,159 +9355,159 @@ "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", ), - ".group_0092": ("DependabotPublicKeyType",), - ".group_0093": ("PackageType",), - ".group_0094": ("OrganizationInvitationType",), - ".group_0095": ( + ".group_0096": ("DependabotPublicKeyType",), + ".group_0097": ("PackageType",), + ".group_0098": ("OrganizationInvitationType",), + ".group_0099": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0096": ("ApiInsightsRouteStatsItemsType",), - ".group_0097": ("ApiInsightsSubjectStatsItemsType",), - ".group_0098": ("ApiInsightsSummaryStatsType",), - ".group_0099": ("ApiInsightsTimeStatsItemsType",), - ".group_0100": ("ApiInsightsUserStatsItemsType",), - ".group_0101": ("InteractionLimitResponseType",), - ".group_0102": ("InteractionLimitType",), - ".group_0103": ("OrganizationCreateIssueTypeType",), - ".group_0104": ("OrganizationUpdateIssueTypeType",), - ".group_0105": ( + ".group_0100": ("ApiInsightsRouteStatsItemsType",), + ".group_0101": ("ApiInsightsSubjectStatsItemsType",), + ".group_0102": ("ApiInsightsSummaryStatsType",), + ".group_0103": ("ApiInsightsTimeStatsItemsType",), + ".group_0104": ("ApiInsightsUserStatsItemsType",), + ".group_0105": ("InteractionLimitResponseType",), + ".group_0106": ("InteractionLimitType",), + ".group_0107": ("OrganizationCreateIssueTypeType",), + ".group_0108": ("OrganizationUpdateIssueTypeType",), + ".group_0109": ( "OrgMembershipType", "OrgMembershipPropPermissionsType", ), - ".group_0106": ("MigrationType",), - ".group_0107": ( + ".group_0110": ("MigrationType",), + ".group_0111": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0108": ( + ".group_0112": ( "TeamRoleAssignmentType", "TeamRoleAssignmentPropPermissionsType", ), - ".group_0109": ("UserRoleAssignmentType",), - ".group_0110": ( + ".group_0113": ("UserRoleAssignmentType",), + ".group_0114": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0111": ( + ".group_0115": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0112": ( + ".group_0116": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0113": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), - ".group_0114": ("ProjectType",), - ".group_0115": ("CustomPropertyType",), - ".group_0116": ("CustomPropertySetPayloadType",), - ".group_0117": ("CustomPropertyValueType",), - ".group_0118": ("OrgRepoCustomPropertyValuesType",), - ".group_0119": ("CodeOfConductSimpleType",), - ".group_0120": ( + ".group_0117": ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",), + ".group_0118": ("ProjectType",), + ".group_0119": ("CustomPropertyType",), + ".group_0120": ("CustomPropertySetPayloadType",), + ".group_0121": ("CustomPropertyValueType",), + ".group_0122": ("OrgRepoCustomPropertyValuesType",), + ".group_0123": ("CodeOfConductSimpleType",), + ".group_0124": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0121": ("RepositoryRulesetBypassActorType",), - ".group_0122": ("RepositoryRulesetConditionsType",), - ".group_0123": ("RepositoryRulesetConditionsPropRefNameType",), - ".group_0124": ("RepositoryRulesetConditionsRepositoryNameTargetType",), - ".group_0125": ( + ".group_0125": ("RepositoryRulesetBypassActorType",), + ".group_0126": ("RepositoryRulesetConditionsType",), + ".group_0127": ("RepositoryRulesetConditionsPropRefNameType",), + ".group_0128": ("RepositoryRulesetConditionsRepositoryNameTargetType",), + ".group_0129": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType", ), - ".group_0126": ("RepositoryRulesetConditionsRepositoryIdTargetType",), - ".group_0127": ( + ".group_0130": ("RepositoryRulesetConditionsRepositoryIdTargetType",), + ".group_0131": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType", ), - ".group_0128": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), - ".group_0129": ( + ".group_0132": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), + ".group_0133": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", "RepositoryRulesetConditionsRepositoryPropertySpecType", ), - ".group_0130": ("OrgRulesetConditionsOneof0Type",), - ".group_0131": ("OrgRulesetConditionsOneof1Type",), - ".group_0132": ("OrgRulesetConditionsOneof2Type",), - ".group_0133": ( + ".group_0134": ("OrgRulesetConditionsOneof0Type",), + ".group_0135": ("OrgRulesetConditionsOneof1Type",), + ".group_0136": ("OrgRulesetConditionsOneof2Type",), + ".group_0137": ( "RepositoryRuleCreationType", "RepositoryRuleDeletionType", "RepositoryRuleRequiredSignaturesType", "RepositoryRuleNonFastForwardType", ), - ".group_0134": ("RepositoryRuleUpdateType",), - ".group_0135": ("RepositoryRuleUpdatePropParametersType",), - ".group_0136": ("RepositoryRuleRequiredLinearHistoryType",), - ".group_0137": ("RepositoryRuleMergeQueueType",), - ".group_0138": ("RepositoryRuleMergeQueuePropParametersType",), - ".group_0139": ("RepositoryRuleRequiredDeploymentsType",), - ".group_0140": ("RepositoryRuleRequiredDeploymentsPropParametersType",), - ".group_0141": ( + ".group_0138": ("RepositoryRuleUpdateType",), + ".group_0139": ("RepositoryRuleUpdatePropParametersType",), + ".group_0140": ("RepositoryRuleRequiredLinearHistoryType",), + ".group_0141": ("RepositoryRuleMergeQueueType",), + ".group_0142": ("RepositoryRuleMergeQueuePropParametersType",), + ".group_0143": ("RepositoryRuleRequiredDeploymentsType",), + ".group_0144": ("RepositoryRuleRequiredDeploymentsPropParametersType",), + ".group_0145": ( "RepositoryRuleParamsRequiredReviewerConfigurationType", "RepositoryRuleParamsReviewerType", ), - ".group_0142": ("RepositoryRulePullRequestType",), - ".group_0143": ("RepositoryRulePullRequestPropParametersType",), - ".group_0144": ("RepositoryRuleRequiredStatusChecksType",), - ".group_0145": ( + ".group_0146": ("RepositoryRulePullRequestType",), + ".group_0147": ("RepositoryRulePullRequestPropParametersType",), + ".group_0148": ("RepositoryRuleRequiredStatusChecksType",), + ".group_0149": ( "RepositoryRuleRequiredStatusChecksPropParametersType", "RepositoryRuleParamsStatusCheckConfigurationType", ), - ".group_0146": ("RepositoryRuleCommitMessagePatternType",), - ".group_0147": ("RepositoryRuleCommitMessagePatternPropParametersType",), - ".group_0148": ("RepositoryRuleCommitAuthorEmailPatternType",), - ".group_0149": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), - ".group_0150": ("RepositoryRuleCommitterEmailPatternType",), - ".group_0151": ("RepositoryRuleCommitterEmailPatternPropParametersType",), - ".group_0152": ("RepositoryRuleBranchNamePatternType",), - ".group_0153": ("RepositoryRuleBranchNamePatternPropParametersType",), - ".group_0154": ("RepositoryRuleTagNamePatternType",), - ".group_0155": ("RepositoryRuleTagNamePatternPropParametersType",), - ".group_0156": ("RepositoryRuleFilePathRestrictionType",), - ".group_0157": ("RepositoryRuleFilePathRestrictionPropParametersType",), - ".group_0158": ("RepositoryRuleMaxFilePathLengthType",), - ".group_0159": ("RepositoryRuleMaxFilePathLengthPropParametersType",), - ".group_0160": ("RepositoryRuleFileExtensionRestrictionType",), - ".group_0161": ("RepositoryRuleFileExtensionRestrictionPropParametersType",), - ".group_0162": ("RepositoryRuleMaxFileSizeType",), - ".group_0163": ("RepositoryRuleMaxFileSizePropParametersType",), - ".group_0164": ("RepositoryRuleParamsRestrictedCommitsType",), - ".group_0165": ("RepositoryRuleWorkflowsType",), - ".group_0166": ( + ".group_0150": ("RepositoryRuleCommitMessagePatternType",), + ".group_0151": ("RepositoryRuleCommitMessagePatternPropParametersType",), + ".group_0152": ("RepositoryRuleCommitAuthorEmailPatternType",), + ".group_0153": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), + ".group_0154": ("RepositoryRuleCommitterEmailPatternType",), + ".group_0155": ("RepositoryRuleCommitterEmailPatternPropParametersType",), + ".group_0156": ("RepositoryRuleBranchNamePatternType",), + ".group_0157": ("RepositoryRuleBranchNamePatternPropParametersType",), + ".group_0158": ("RepositoryRuleTagNamePatternType",), + ".group_0159": ("RepositoryRuleTagNamePatternPropParametersType",), + ".group_0160": ("RepositoryRuleFilePathRestrictionType",), + ".group_0161": ("RepositoryRuleFilePathRestrictionPropParametersType",), + ".group_0162": ("RepositoryRuleMaxFilePathLengthType",), + ".group_0163": ("RepositoryRuleMaxFilePathLengthPropParametersType",), + ".group_0164": ("RepositoryRuleFileExtensionRestrictionType",), + ".group_0165": ("RepositoryRuleFileExtensionRestrictionPropParametersType",), + ".group_0166": ("RepositoryRuleMaxFileSizeType",), + ".group_0167": ("RepositoryRuleMaxFileSizePropParametersType",), + ".group_0168": ("RepositoryRuleParamsRestrictedCommitsType",), + ".group_0169": ("RepositoryRuleWorkflowsType",), + ".group_0170": ( "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0167": ("RepositoryRuleCodeScanningType",), - ".group_0168": ( + ".group_0171": ("RepositoryRuleCodeScanningType",), + ".group_0172": ( "RepositoryRuleCodeScanningPropParametersType", "RepositoryRuleParamsCodeScanningToolType", ), - ".group_0169": ( + ".group_0173": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", "RepositoryRulesetPropLinksPropHtmlType", ), - ".group_0170": ("RuleSuitesItemsType",), - ".group_0171": ( + ".group_0174": ("RuleSuitesItemsType",), + ".group_0175": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0172": ("RulesetVersionType",), - ".group_0173": ("RulesetVersionPropActorType",), - ".group_0174": ("RulesetVersionWithStateType",), - ".group_0175": ("RulesetVersionWithStateAllof1Type",), - ".group_0176": ("RulesetVersionWithStateAllof1PropStateType",), - ".group_0177": ("RepositoryAdvisoryCreditType",), - ".group_0178": ( + ".group_0176": ("RulesetVersionType",), + ".group_0177": ("RulesetVersionPropActorType",), + ".group_0178": ("RulesetVersionWithStateType",), + ".group_0179": ("RulesetVersionWithStateAllof1Type",), + ".group_0180": ("RulesetVersionWithStateAllof1PropStateType",), + ".group_0181": ("RepositoryAdvisoryCreditType",), + ".group_0182": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -9462,85 +9517,85 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0179": ( + ".group_0183": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0180": ("PackagesBillingUsageType",), - ".group_0181": ("CombinedBillingUsageType",), - ".group_0182": ("NetworkSettingsType",), - ".group_0183": ( + ".group_0184": ("PackagesBillingUsageType",), + ".group_0185": ("CombinedBillingUsageType",), + ".group_0186": ("NetworkSettingsType",), + ".group_0187": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0184": ("TeamDiscussionType",), - ".group_0185": ("TeamDiscussionCommentType",), - ".group_0186": ("ReactionType",), - ".group_0187": ("TeamMembershipType",), - ".group_0188": ( + ".group_0188": ("TeamDiscussionType",), + ".group_0189": ("TeamDiscussionCommentType",), + ".group_0190": ("ReactionType",), + ".group_0191": ("TeamMembershipType",), + ".group_0192": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0189": ( + ".group_0193": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0190": ("ProjectCardType",), - ".group_0191": ("ProjectColumnType",), - ".group_0192": ("ProjectCollaboratorPermissionType",), - ".group_0193": ("RateLimitType",), - ".group_0194": ("RateLimitOverviewType",), - ".group_0195": ("RateLimitOverviewPropResourcesType",), - ".group_0196": ( + ".group_0194": ("ProjectCardType",), + ".group_0195": ("ProjectColumnType",), + ".group_0196": ("ProjectCollaboratorPermissionType",), + ".group_0197": ("RateLimitType",), + ".group_0198": ("RateLimitOverviewType",), + ".group_0199": ("RateLimitOverviewPropResourcesType",), + ".group_0200": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0197": ( + ".group_0201": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0198": ( + ".group_0202": ( "JobType", "JobPropStepsItemsType", ), - ".group_0199": ("OidcCustomSubRepoType",), - ".group_0200": ("ActionsSecretType",), - ".group_0201": ("ActionsVariableType",), - ".group_0202": ("ActionsRepositoryPermissionsType",), - ".group_0203": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0204": ( + ".group_0203": ("OidcCustomSubRepoType",), + ".group_0204": ("ActionsSecretType",), + ".group_0205": ("ActionsVariableType",), + ".group_0206": ("ActionsRepositoryPermissionsType",), + ".group_0207": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0208": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0205": ( + ".group_0209": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0206": ( + ".group_0210": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0207": ( + ".group_0211": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0208": ("ReviewCustomGatesCommentRequiredType",), - ".group_0209": ("ReviewCustomGatesStateRequiredType",), - ".group_0210": ( + ".group_0212": ("ReviewCustomGatesCommentRequiredType",), + ".group_0213": ("ReviewCustomGatesStateRequiredType",), + ".group_0214": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0211": ( + ".group_0215": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0212": ( + ".group_0216": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -9550,22 +9605,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0213": ( + ".group_0217": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0214": ("ActivityType",), - ".group_0215": ("AutolinkType",), - ".group_0216": ("CheckAutomatedSecurityFixesType",), - ".group_0217": ("ProtectedBranchPullRequestReviewType",), - ".group_0218": ( + ".group_0218": ("ActivityType",), + ".group_0219": ("AutolinkType",), + ".group_0220": ("CheckAutomatedSecurityFixesType",), + ".group_0221": ("ProtectedBranchPullRequestReviewType",), + ".group_0222": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0219": ( + ".group_0223": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -9573,7 +9628,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0220": ( + ".group_0224": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -9587,28 +9642,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0221": ( + ".group_0225": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0222": ("GitUserType",), - ".group_0223": ("VerificationType",), - ".group_0224": ("DiffEntryType",), - ".group_0225": ( + ".group_0226": ("GitUserType",), + ".group_0227": ("VerificationType",), + ".group_0228": ("DiffEntryType",), + ".group_0229": ( "CommitType", "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0226": ( + ".group_0230": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0227": ( + ".group_0231": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0228": ( + ".group_0232": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -9622,117 +9677,117 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0229": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0230": ( + ".group_0233": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0234": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0231": ("DeploymentSimpleType",), - ".group_0232": ( + ".group_0235": ("DeploymentSimpleType",), + ".group_0236": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0233": ("CheckAnnotationType",), - ".group_0234": ( + ".group_0237": ("CheckAnnotationType",), + ".group_0238": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0235": ( + ".group_0239": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0236": ("CodeScanningAlertItemsType",), - ".group_0237": ( + ".group_0240": ("CodeScanningAlertItemsType",), + ".group_0241": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0238": ("CodeScanningAutofixType",), - ".group_0239": ("CodeScanningAutofixCommitsType",), - ".group_0240": ("CodeScanningAutofixCommitsResponseType",), - ".group_0241": ("CodeScanningAnalysisType",), - ".group_0242": ("CodeScanningAnalysisDeletionType",), - ".group_0243": ("CodeScanningCodeqlDatabaseType",), - ".group_0244": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0245": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0246": ("CodeScanningVariantAnalysisType",), - ".group_0247": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0248": ( + ".group_0242": ("CodeScanningAutofixType",), + ".group_0243": ("CodeScanningAutofixCommitsType",), + ".group_0244": ("CodeScanningAutofixCommitsResponseType",), + ".group_0245": ("CodeScanningAnalysisType",), + ".group_0246": ("CodeScanningAnalysisDeletionType",), + ".group_0247": ("CodeScanningCodeqlDatabaseType",), + ".group_0248": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0249": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0250": ("CodeScanningVariantAnalysisType",), + ".group_0251": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0252": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0249": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0250": ("CodeScanningDefaultSetupType",), - ".group_0251": ("CodeScanningDefaultSetupUpdateType",), - ".group_0252": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0253": ("CodeScanningSarifsReceiptType",), - ".group_0254": ("CodeScanningSarifsStatusType",), - ".group_0255": ("CodeSecurityConfigurationForRepositoryType",), - ".group_0256": ( + ".group_0253": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0254": ("CodeScanningDefaultSetupType",), + ".group_0255": ("CodeScanningDefaultSetupUpdateType",), + ".group_0256": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0257": ("CodeScanningSarifsReceiptType",), + ".group_0258": ("CodeScanningSarifsStatusType",), + ".group_0259": ("CodeSecurityConfigurationForRepositoryType",), + ".group_0260": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0257": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0258": ("RepositoryInvitationType",), - ".group_0259": ( + ".group_0261": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0262": ("RepositoryInvitationType",), + ".group_0263": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0260": ( + ".group_0264": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0261": ( + ".group_0265": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0262": ("LinkType",), - ".group_0263": ("AutoMergeType",), - ".group_0264": ( + ".group_0266": ("LinkType",), + ".group_0267": ("AutoMergeType",), + ".group_0268": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0265": ( + ".group_0269": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0266": ("PullRequestSimplePropLinksType",), - ".group_0267": ( + ".group_0270": ("PullRequestSimplePropLinksType",), + ".group_0271": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0268": ("StatusType",), - ".group_0269": ( + ".group_0272": ("StatusType",), + ".group_0273": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0270": ("CommitComparisonType",), - ".group_0271": ( + ".group_0274": ("CommitComparisonType",), + ".group_0275": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0272": ( + ".group_0276": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0273": ( + ".group_0277": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0274": ( + ".group_0278": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0275": ( + ".group_0279": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0276": ( + ".group_0280": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -9743,20 +9798,20 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0277": ( + ".group_0281": ( "RepositoryRuleViolationErrorType", "RepositoryRuleViolationErrorPropMetadataType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", ), - ".group_0278": ("ContributorType",), - ".group_0279": ("DependabotAlertType",), - ".group_0280": ("DependabotAlertPropDependencyType",), - ".group_0281": ( + ".group_0282": ("ContributorType",), + ".group_0283": ("DependabotAlertType",), + ".group_0284": ("DependabotAlertPropDependencyType",), + ".group_0285": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0282": ( + ".group_0286": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", @@ -9764,41 +9819,41 @@ "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0283": ("MetadataType",), - ".group_0284": ("DependencyType",), - ".group_0285": ( + ".group_0287": ("MetadataType",), + ".group_0288": ("DependencyType",), + ".group_0289": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0286": ( + ".group_0290": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0287": ("DeploymentStatusType",), - ".group_0288": ("DeploymentBranchPolicySettingsType",), - ".group_0289": ( + ".group_0291": ("DeploymentStatusType",), + ".group_0292": ("DeploymentBranchPolicySettingsType",), + ".group_0293": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0290": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0291": ( + ".group_0294": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0295": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0292": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0293": ("DeploymentBranchPolicyNamePatternType",), - ".group_0294": ("CustomDeploymentRuleAppType",), - ".group_0295": ( + ".group_0296": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0297": ("DeploymentBranchPolicyNamePatternType",), + ".group_0298": ("CustomDeploymentRuleAppType",), + ".group_0299": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0296": ("ShortBlobType",), - ".group_0297": ("BlobType",), - ".group_0298": ( + ".group_0300": ("ShortBlobType",), + ".group_0301": ("BlobType",), + ".group_0302": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -9806,28 +9861,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0299": ( + ".group_0303": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0300": ( + ".group_0304": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0301": ( + ".group_0305": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0302": ("HookResponseType",), - ".group_0303": ("HookType",), - ".group_0304": ( + ".group_0306": ("HookResponseType",), + ".group_0307": ("HookType",), + ".group_0308": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0305": ("PorterAuthorType",), - ".group_0306": ("PorterLargeFileType",), - ".group_0307": ( + ".group_0309": ("PorterAuthorType",), + ".group_0310": ("PorterLargeFileType",), + ".group_0311": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -9835,55 +9890,55 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0308": ( + ".group_0312": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0309": ( + ".group_0313": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0310": ("AssignedIssueEventType",), - ".group_0311": ("UnassignedIssueEventType",), - ".group_0312": ( + ".group_0314": ("AssignedIssueEventType",), + ".group_0315": ("UnassignedIssueEventType",), + ".group_0316": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0313": ( + ".group_0317": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0314": ( + ".group_0318": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0315": ("ReviewRequestedIssueEventType",), - ".group_0316": ("ReviewRequestRemovedIssueEventType",), - ".group_0317": ( + ".group_0319": ("ReviewRequestedIssueEventType",), + ".group_0320": ("ReviewRequestRemovedIssueEventType",), + ".group_0321": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0318": ("LockedIssueEventType",), - ".group_0319": ( + ".group_0322": ("LockedIssueEventType",), + ".group_0323": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0320": ( + ".group_0324": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0321": ( + ".group_0325": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0322": ( + ".group_0326": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0323": ("TimelineCommentEventType",), - ".group_0324": ("TimelineCrossReferencedEventType",), - ".group_0325": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0326": ( + ".group_0327": ("TimelineCommentEventType",), + ".group_0328": ("TimelineCrossReferencedEventType",), + ".group_0329": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0330": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -9891,13 +9946,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0327": ( + ".group_0331": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0328": ( + ".group_0332": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -9905,156 +9960,157 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0329": ("TimelineAssignedIssueEventType",), - ".group_0330": ("TimelineUnassignedIssueEventType",), - ".group_0331": ("StateChangeIssueEventType",), - ".group_0332": ("DeployKeyType",), - ".group_0333": ("LanguageType",), - ".group_0334": ( + ".group_0333": ("TimelineAssignedIssueEventType",), + ".group_0334": ("TimelineUnassignedIssueEventType",), + ".group_0335": ("StateChangeIssueEventType",), + ".group_0336": ("DeployKeyType",), + ".group_0337": ("LanguageType",), + ".group_0338": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0335": ("MergedUpstreamType",), - ".group_0336": ( + ".group_0339": ("MergedUpstreamType",), + ".group_0340": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0337": ( + ".group_0341": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0338": ("PageBuildStatusType",), - ".group_0339": ("PageDeploymentType",), - ".group_0340": ("PagesDeploymentStatusType",), - ".group_0341": ( + ".group_0342": ("PageBuildStatusType",), + ".group_0343": ("PageDeploymentType",), + ".group_0344": ("PagesDeploymentStatusType",), + ".group_0345": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0342": ("PullRequestType",), - ".group_0343": ("PullRequestPropLabelsItemsType",), - ".group_0344": ( + ".group_0346": ("PullRequestType",), + ".group_0347": ("PullRequestPropLabelsItemsType",), + ".group_0348": ( "PullRequestPropHeadType", "PullRequestPropBaseType", ), - ".group_0345": ("PullRequestPropLinksType",), - ".group_0346": ("PullRequestMergeResultType",), - ".group_0347": ("PullRequestReviewRequestType",), - ".group_0348": ( + ".group_0349": ("PullRequestPropLinksType",), + ".group_0350": ("PullRequestMergeResultType",), + ".group_0351": ("PullRequestReviewRequestType",), + ".group_0352": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0349": ("ReviewCommentType",), - ".group_0350": ("ReviewCommentPropLinksType",), - ".group_0351": ("ReleaseAssetType",), - ".group_0352": ("ReleaseType",), - ".group_0353": ("ReleaseNotesContentType",), - ".group_0354": ("RepositoryRuleRulesetInfoType",), - ".group_0355": ("RepositoryRuleDetailedOneof0Type",), - ".group_0356": ("RepositoryRuleDetailedOneof1Type",), - ".group_0357": ("RepositoryRuleDetailedOneof2Type",), - ".group_0358": ("RepositoryRuleDetailedOneof3Type",), - ".group_0359": ("RepositoryRuleDetailedOneof4Type",), - ".group_0360": ("RepositoryRuleDetailedOneof5Type",), - ".group_0361": ("RepositoryRuleDetailedOneof6Type",), - ".group_0362": ("RepositoryRuleDetailedOneof7Type",), - ".group_0363": ("RepositoryRuleDetailedOneof8Type",), - ".group_0364": ("RepositoryRuleDetailedOneof9Type",), - ".group_0365": ("RepositoryRuleDetailedOneof10Type",), - ".group_0366": ("RepositoryRuleDetailedOneof11Type",), - ".group_0367": ("RepositoryRuleDetailedOneof12Type",), - ".group_0368": ("RepositoryRuleDetailedOneof13Type",), - ".group_0369": ("RepositoryRuleDetailedOneof14Type",), - ".group_0370": ("RepositoryRuleDetailedOneof15Type",), - ".group_0371": ("RepositoryRuleDetailedOneof16Type",), - ".group_0372": ("RepositoryRuleDetailedOneof17Type",), - ".group_0373": ("RepositoryRuleDetailedOneof18Type",), - ".group_0374": ("RepositoryRuleDetailedOneof19Type",), - ".group_0375": ("RepositoryRuleDetailedOneof20Type",), - ".group_0376": ("SecretScanningAlertType",), - ".group_0377": ("SecretScanningPushProtectionBypassType",), - ".group_0378": ( + ".group_0353": ("ReviewCommentType",), + ".group_0354": ("ReviewCommentPropLinksType",), + ".group_0355": ("ReleaseAssetType",), + ".group_0356": ("ReleaseType",), + ".group_0357": ("ReleaseNotesContentType",), + ".group_0358": ("RepositoryRuleRulesetInfoType",), + ".group_0359": ("RepositoryRuleDetailedOneof0Type",), + ".group_0360": ("RepositoryRuleDetailedOneof1Type",), + ".group_0361": ("RepositoryRuleDetailedOneof2Type",), + ".group_0362": ("RepositoryRuleDetailedOneof3Type",), + ".group_0363": ("RepositoryRuleDetailedOneof4Type",), + ".group_0364": ("RepositoryRuleDetailedOneof5Type",), + ".group_0365": ("RepositoryRuleDetailedOneof6Type",), + ".group_0366": ("RepositoryRuleDetailedOneof7Type",), + ".group_0367": ("RepositoryRuleDetailedOneof8Type",), + ".group_0368": ("RepositoryRuleDetailedOneof9Type",), + ".group_0369": ("RepositoryRuleDetailedOneof10Type",), + ".group_0370": ("RepositoryRuleDetailedOneof11Type",), + ".group_0371": ("RepositoryRuleDetailedOneof12Type",), + ".group_0372": ("RepositoryRuleDetailedOneof13Type",), + ".group_0373": ("RepositoryRuleDetailedOneof14Type",), + ".group_0374": ("RepositoryRuleDetailedOneof15Type",), + ".group_0375": ("RepositoryRuleDetailedOneof16Type",), + ".group_0376": ("RepositoryRuleDetailedOneof17Type",), + ".group_0377": ("RepositoryRuleDetailedOneof18Type",), + ".group_0378": ("RepositoryRuleDetailedOneof19Type",), + ".group_0379": ("RepositoryRuleDetailedOneof20Type",), + ".group_0380": ("SecretScanningAlertType",), + ".group_0381": ("SecretScanningLocationType",), + ".group_0382": ("SecretScanningPushProtectionBypassType",), + ".group_0383": ( "SecretScanningScanHistoryType", "SecretScanningScanType", "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", ), - ".group_0379": ( + ".group_0384": ( "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type", ), - ".group_0380": ( + ".group_0385": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0381": ( + ".group_0386": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0382": ( + ".group_0387": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0383": ("StargazerType",), - ".group_0384": ("CommitActivityType",), - ".group_0385": ( + ".group_0388": ("StargazerType",), + ".group_0389": ("CommitActivityType",), + ".group_0390": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0386": ("ParticipationStatsType",), - ".group_0387": ("RepositorySubscriptionType",), - ".group_0388": ( + ".group_0391": ("ParticipationStatsType",), + ".group_0392": ("RepositorySubscriptionType",), + ".group_0393": ( "TagType", "TagPropCommitType", ), - ".group_0389": ("TagProtectionType",), - ".group_0390": ("TopicType",), - ".group_0391": ("TrafficType",), - ".group_0392": ("CloneTrafficType",), - ".group_0393": ("ContentTrafficType",), - ".group_0394": ("ReferrerTrafficType",), - ".group_0395": ("ViewTrafficType",), - ".group_0396": ( + ".group_0394": ("TagProtectionType",), + ".group_0395": ("TopicType",), + ".group_0396": ("TrafficType",), + ".group_0397": ("CloneTrafficType",), + ".group_0398": ("ContentTrafficType",), + ".group_0399": ("ReferrerTrafficType",), + ".group_0400": ("ViewTrafficType",), + ".group_0401": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0397": ( + ".group_0402": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0398": ( + ".group_0403": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0399": ( + ".group_0404": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0400": ( + ".group_0405": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", "IssueSearchResultItemPropSubIssuesSummaryType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0401": ( + ".group_0406": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0402": ( + ".group_0407": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0403": ( + ".group_0408": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -10062,49 +10118,49 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0404": ( + ".group_0409": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0405": ( + ".group_0410": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0406": ("CodespacesUserPublicKeyType",), - ".group_0407": ("CodespaceExportDetailsType",), - ".group_0408": ( + ".group_0411": ("CodespacesUserPublicKeyType",), + ".group_0412": ("CodespaceExportDetailsType",), + ".group_0413": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0409": ("EmailType",), - ".group_0410": ( + ".group_0414": ("EmailType",), + ".group_0415": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0411": ("KeyType",), - ".group_0412": ( + ".group_0416": ("KeyType",), + ".group_0417": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0413": ("SocialAccountType",), - ".group_0414": ("SshSigningKeyType",), - ".group_0415": ("StarredRepositoryType",), - ".group_0416": ( + ".group_0418": ("SocialAccountType",), + ".group_0419": ("SshSigningKeyType",), + ".group_0420": ("StarredRepositoryType",), + ".group_0421": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0417": ("KeySimpleType",), - ".group_0418": ( + ".group_0422": ("KeySimpleType",), + ".group_0423": ( "BillingUsageReportUserType", "BillingUsageReportUserPropUsageItemsItemsType", ), - ".group_0419": ("EnterpriseWebhooksType",), - ".group_0420": ("SimpleInstallationType",), - ".group_0421": ("OrganizationSimpleWebhooksType",), - ".group_0422": ( + ".group_0424": ("EnterpriseWebhooksType",), + ".group_0425": ("SimpleInstallationType",), + ".group_0426": ("OrganizationSimpleWebhooksType",), + ".group_0427": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -10112,27 +10168,27 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0423": ("WebhooksRuleType",), - ".group_0424": ("SimpleCheckSuiteType",), - ".group_0425": ( + ".group_0428": ("WebhooksRuleType",), + ".group_0429": ("SimpleCheckSuiteType",), + ".group_0430": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0426": ("WebhooksDeployKeyType",), - ".group_0427": ("WebhooksWorkflowType",), - ".group_0428": ( + ".group_0431": ("WebhooksDeployKeyType",), + ".group_0432": ("WebhooksWorkflowType",), + ".group_0433": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0429": ("WebhooksWorkflowJobRunType",), - ".group_0430": ("WebhooksUserType",), - ".group_0431": ( + ".group_0434": ("WebhooksWorkflowJobRunType",), + ".group_0435": ("WebhooksUserType",), + ".group_0436": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0432": ( + ".group_0437": ( "DiscussionType", "LabelType", "DiscussionPropAnswerChosenByType", @@ -10140,24 +10196,24 @@ "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0433": ( + ".group_0438": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0434": ("WebhooksLabelType",), - ".group_0435": ("WebhooksRepositoriesItemsType",), - ".group_0436": ("WebhooksRepositoriesAddedItemsType",), - ".group_0437": ( + ".group_0439": ("WebhooksLabelType",), + ".group_0440": ("WebhooksRepositoriesItemsType",), + ".group_0441": ("WebhooksRepositoriesAddedItemsType",), + ".group_0442": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0438": ( + ".group_0443": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0439": ( + ".group_0444": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -10172,11 +10228,11 @@ "WebhooksIssuePropSubIssuesSummaryType", "WebhooksIssuePropUserType", ), - ".group_0440": ( + ".group_0445": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0441": ( + ".group_0446": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -10191,31 +10247,31 @@ "WebhooksIssue2PropSubIssuesSummaryType", "WebhooksIssue2PropUserType", ), - ".group_0442": ("WebhooksUserMannequinType",), - ".group_0443": ( + ".group_0447": ("WebhooksUserMannequinType",), + ".group_0448": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0444": ( + ".group_0449": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0445": ( + ".group_0450": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0446": ("MergeGroupType",), - ".group_0447": ( + ".group_0451": ("MergeGroupType",), + ".group_0452": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0448": ( + ".group_0453": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0449": ( + ".group_0454": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -10231,25 +10287,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0450": ( + ".group_0455": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0451": ( + ".group_0456": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0452": ("WebhooksProjectColumnType",), - ".group_0453": ("ProjectsV2Type",), - ".group_0454": ( + ".group_0457": ("WebhooksProjectColumnType",), + ".group_0458": ("ProjectsV2Type",), + ".group_0459": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0455": ("ProjectsV2ItemType",), - ".group_0456": ("ProjectsV2StatusUpdateType",), - ".group_0457": ("PullRequestWebhookType",), - ".group_0458": ("PullRequestWebhookAllof1Type",), - ".group_0459": ( + ".group_0460": ("ProjectsV2ItemType",), + ".group_0461": ("ProjectsV2StatusUpdateType",), + ".group_0462": ("PullRequestWebhookType",), + ".group_0463": ("PullRequestWebhookAllof1Type",), + ".group_0464": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -10287,7 +10343,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0460": ( + ".group_0465": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -10296,33 +10352,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0461": ( + ".group_0466": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0462": ( + ".group_0467": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0463": ( + ".group_0468": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0464": ( + ".group_0469": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0465": ("SecretScanningAlertWebhookType",), - ".group_0466": ( + ".group_0470": ("SecretScanningAlertWebhookType",), + ".group_0471": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -10332,27 +10388,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0467": ( + ".group_0472": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0468": ( + ".group_0473": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0469": ( + ".group_0474": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0470": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0471": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0472": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0473": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0474": ( + ".group_0475": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0476": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0477": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0478": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0479": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -10367,18 +10423,18 @@ "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0475": ("WebhookCheckRunCompletedType",), - ".group_0476": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0477": ("WebhookCheckRunCreatedType",), - ".group_0478": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0479": ( + ".group_0480": ("WebhookCheckRunCompletedType",), + ".group_0481": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0482": ("WebhookCheckRunCreatedType",), + ".group_0483": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0484": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0480": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0481": ("WebhookCheckRunRerequestedType",), - ".group_0482": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0483": ( + ".group_0485": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0486": ("WebhookCheckRunRerequestedType",), + ".group_0487": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0488": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -10393,7 +10449,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0484": ( + ".group_0489": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -10408,7 +10464,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0485": ( + ".group_0490": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -10423,7 +10479,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0486": ( + ".group_0491": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -10433,7 +10489,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0487": ( + ".group_0492": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -10444,7 +10500,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", ), - ".group_0488": ( + ".group_0493": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -10453,7 +10509,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0489": ( + ".group_0494": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -10463,7 +10519,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0490": ( + ".group_0495": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -10473,7 +10529,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0491": ( + ".group_0496": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -10482,32 +10538,32 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0492": ( + ".group_0497": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0493": ("WebhookCreateType",), - ".group_0494": ("WebhookCustomPropertyCreatedType",), - ".group_0495": ( + ".group_0498": ("WebhookCreateType",), + ".group_0499": ("WebhookCustomPropertyCreatedType",), + ".group_0500": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0496": ("WebhookCustomPropertyPromotedToEnterpriseType",), - ".group_0497": ("WebhookCustomPropertyUpdatedType",), - ".group_0498": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0499": ("WebhookDeleteType",), - ".group_0500": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0501": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0502": ("WebhookDependabotAlertCreatedType",), - ".group_0503": ("WebhookDependabotAlertDismissedType",), - ".group_0504": ("WebhookDependabotAlertFixedType",), - ".group_0505": ("WebhookDependabotAlertReintroducedType",), - ".group_0506": ("WebhookDependabotAlertReopenedType",), - ".group_0507": ("WebhookDeployKeyCreatedType",), - ".group_0508": ("WebhookDeployKeyDeletedType",), - ".group_0509": ( + ".group_0501": ("WebhookCustomPropertyPromotedToEnterpriseType",), + ".group_0502": ("WebhookCustomPropertyUpdatedType",), + ".group_0503": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0504": ("WebhookDeleteType",), + ".group_0505": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0506": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0507": ("WebhookDependabotAlertCreatedType",), + ".group_0508": ("WebhookDependabotAlertDismissedType",), + ".group_0509": ("WebhookDependabotAlertFixedType",), + ".group_0510": ("WebhookDependabotAlertReintroducedType",), + ".group_0511": ("WebhookDependabotAlertReopenedType",), + ".group_0512": ("WebhookDeployKeyCreatedType",), + ".group_0513": ("WebhookDeployKeyDeletedType",), + ".group_0514": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -10529,8 +10585,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0510": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0511": ( + ".group_0515": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0516": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -10548,7 +10604,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0512": ( + ".group_0517": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -10566,7 +10622,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0513": ( + ".group_0518": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -10586,7 +10642,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0514": ( + ".group_0519": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -10614,119 +10670,119 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0515": ("WebhookDiscussionAnsweredType",), - ".group_0516": ( + ".group_0520": ("WebhookDiscussionAnsweredType",), + ".group_0521": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0517": ("WebhookDiscussionClosedType",), - ".group_0518": ("WebhookDiscussionCommentCreatedType",), - ".group_0519": ("WebhookDiscussionCommentDeletedType",), - ".group_0520": ( + ".group_0522": ("WebhookDiscussionClosedType",), + ".group_0523": ("WebhookDiscussionCommentCreatedType",), + ".group_0524": ("WebhookDiscussionCommentDeletedType",), + ".group_0525": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0521": ("WebhookDiscussionCreatedType",), - ".group_0522": ("WebhookDiscussionDeletedType",), - ".group_0523": ( + ".group_0526": ("WebhookDiscussionCreatedType",), + ".group_0527": ("WebhookDiscussionDeletedType",), + ".group_0528": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0524": ("WebhookDiscussionLabeledType",), - ".group_0525": ("WebhookDiscussionLockedType",), - ".group_0526": ("WebhookDiscussionPinnedType",), - ".group_0527": ("WebhookDiscussionReopenedType",), - ".group_0528": ("WebhookDiscussionTransferredType",), - ".group_0529": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0530": ("WebhookDiscussionUnansweredType",), - ".group_0531": ("WebhookDiscussionUnlabeledType",), - ".group_0532": ("WebhookDiscussionUnlockedType",), - ".group_0533": ("WebhookDiscussionUnpinnedType",), - ".group_0534": ("WebhookForkType",), - ".group_0535": ( + ".group_0529": ("WebhookDiscussionLabeledType",), + ".group_0530": ("WebhookDiscussionLockedType",), + ".group_0531": ("WebhookDiscussionPinnedType",), + ".group_0532": ("WebhookDiscussionReopenedType",), + ".group_0533": ("WebhookDiscussionTransferredType",), + ".group_0534": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0535": ("WebhookDiscussionUnansweredType",), + ".group_0536": ("WebhookDiscussionUnlabeledType",), + ".group_0537": ("WebhookDiscussionUnlockedType",), + ".group_0538": ("WebhookDiscussionUnpinnedType",), + ".group_0539": ("WebhookForkType",), + ".group_0540": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0536": ( + ".group_0541": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0537": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0538": ( + ".group_0542": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0543": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0539": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0540": ( + ".group_0544": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0545": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0541": ("WebhookInstallationCreatedType",), - ".group_0542": ("WebhookInstallationDeletedType",), - ".group_0543": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0544": ( + ".group_0546": ("WebhookInstallationCreatedType",), + ".group_0547": ("WebhookInstallationDeletedType",), + ".group_0548": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0549": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0545": ( + ".group_0550": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0546": ("WebhookInstallationSuspendType",), - ".group_0547": ( + ".group_0551": ("WebhookInstallationSuspendType",), + ".group_0552": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0548": ("WebhookInstallationUnsuspendType",), - ".group_0549": ("WebhookIssueCommentCreatedType",), - ".group_0550": ( + ".group_0553": ("WebhookInstallationUnsuspendType",), + ".group_0554": ("WebhookIssueCommentCreatedType",), + ".group_0555": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0551": ( + ".group_0556": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0552": ( + ".group_0557": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0553": ( + ".group_0558": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0554": ( + ".group_0559": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0555": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0556": ( + ".group_0560": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0561": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0557": ( + ".group_0562": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0558": ( + ".group_0563": ( "WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0559": ( + ".group_0564": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -10736,43 +10792,43 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0560": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0561": ( + ".group_0565": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0566": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0562": ("WebhookIssueCommentDeletedType",), - ".group_0563": ( + ".group_0567": ("WebhookIssueCommentDeletedType",), + ".group_0568": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0564": ( + ".group_0569": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0565": ( + ".group_0570": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0566": ( + ".group_0571": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0567": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0568": ( + ".group_0572": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0573": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0569": ( + ".group_0574": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0570": ( + ".group_0575": ( "WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0571": ( + ".group_0576": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -10782,43 +10838,43 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0572": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0573": ( + ".group_0577": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0578": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0574": ("WebhookIssueCommentEditedType",), - ".group_0575": ( + ".group_0579": ("WebhookIssueCommentEditedType",), + ".group_0580": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0576": ( + ".group_0581": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0577": ( + ".group_0582": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0578": ( + ".group_0583": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0579": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0580": ( + ".group_0584": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0585": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0581": ( + ".group_0586": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0582": ( + ".group_0587": ( "WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0583": ( + ".group_0588": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -10828,13 +10884,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0584": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0585": ( + ".group_0589": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0590": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0586": ("WebhookIssuesAssignedType",), - ".group_0587": ("WebhookIssuesClosedType",), - ".group_0588": ( + ".group_0591": ("WebhookIssuesAssignedType",), + ".group_0592": ("WebhookIssuesClosedType",), + ".group_0593": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -10842,7 +10898,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0589": ( + ".group_0594": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -10850,22 +10906,22 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0590": ( + ".group_0595": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0591": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0592": ( + ".group_0596": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0597": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0593": ( + ".group_0598": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0594": ( + ".group_0599": ( "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ), - ".group_0595": ( + ".group_0600": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -10875,10 +10931,10 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0596": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0597": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0598": ("WebhookIssuesDeletedType",), - ".group_0599": ( + ".group_0601": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0602": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0603": ("WebhookIssuesDeletedType",), + ".group_0604": ( "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", @@ -10893,8 +10949,8 @@ "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0600": ("WebhookIssuesDemilestonedType",), - ".group_0601": ( + ".group_0605": ("WebhookIssuesDemilestonedType",), + ".group_0606": ( "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", @@ -10909,13 +10965,13 @@ "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0602": ( + ".group_0607": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", "WebhookIssuesEditedPropChangesPropTitleType", ), - ".group_0603": ( + ".group_0608": ( "WebhookIssuesEditedPropIssueType", "WebhookIssuesEditedPropIssuePropAssigneeType", "WebhookIssuesEditedPropIssuePropAssigneesItemsType", @@ -10930,8 +10986,8 @@ "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0604": ("WebhookIssuesLabeledType",), - ".group_0605": ( + ".group_0609": ("WebhookIssuesLabeledType",), + ".group_0610": ( "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", @@ -10946,8 +11002,8 @@ "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0606": ("WebhookIssuesLockedType",), - ".group_0607": ( + ".group_0611": ("WebhookIssuesLockedType",), + ".group_0612": ( "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", "WebhookIssuesLockedPropIssuePropAssigneesItemsType", @@ -10962,8 +11018,8 @@ "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0608": ("WebhookIssuesMilestonedType",), - ".group_0609": ( + ".group_0613": ("WebhookIssuesMilestonedType",), + ".group_0614": ( "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", @@ -10978,8 +11034,8 @@ "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0610": ("WebhookIssuesOpenedType",), - ".group_0611": ( + ".group_0615": ("WebhookIssuesOpenedType",), + ".group_0616": ( "WebhookIssuesOpenedPropChangesType", "WebhookIssuesOpenedPropChangesPropOldRepositoryType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", @@ -10987,7 +11043,7 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0612": ( + ".group_0617": ( "WebhookIssuesOpenedPropChangesPropOldIssueType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", @@ -11002,7 +11058,7 @@ "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", ), - ".group_0613": ( + ".group_0618": ( "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", @@ -11017,9 +11073,9 @@ "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesOpenedPropIssuePropUserType", ), - ".group_0614": ("WebhookIssuesPinnedType",), - ".group_0615": ("WebhookIssuesReopenedType",), - ".group_0616": ( + ".group_0619": ("WebhookIssuesPinnedType",), + ".group_0620": ("WebhookIssuesReopenedType",), + ".group_0621": ( "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", @@ -11034,8 +11090,8 @@ "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0617": ("WebhookIssuesTransferredType",), - ".group_0618": ( + ".group_0622": ("WebhookIssuesTransferredType",), + ".group_0623": ( "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewRepositoryType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", @@ -11043,7 +11099,7 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0619": ( + ".group_0624": ( "WebhookIssuesTransferredPropChangesPropNewIssueType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", @@ -11058,11 +11114,11 @@ "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", ), - ".group_0620": ("WebhookIssuesTypedType",), - ".group_0621": ("WebhookIssuesUnassignedType",), - ".group_0622": ("WebhookIssuesUnlabeledType",), - ".group_0623": ("WebhookIssuesUnlockedType",), - ".group_0624": ( + ".group_0625": ("WebhookIssuesTypedType",), + ".group_0626": ("WebhookIssuesUnassignedType",), + ".group_0627": ("WebhookIssuesUnlabeledType",), + ".group_0628": ("WebhookIssuesUnlockedType",), + ".group_0629": ( "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", @@ -11077,104 +11133,104 @@ "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0625": ("WebhookIssuesUnpinnedType",), - ".group_0626": ("WebhookIssuesUntypedType",), - ".group_0627": ("WebhookLabelCreatedType",), - ".group_0628": ("WebhookLabelDeletedType",), - ".group_0629": ( + ".group_0630": ("WebhookIssuesUnpinnedType",), + ".group_0631": ("WebhookIssuesUntypedType",), + ".group_0632": ("WebhookLabelCreatedType",), + ".group_0633": ("WebhookLabelDeletedType",), + ".group_0634": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0630": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0631": ( + ".group_0635": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0636": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0632": ( + ".group_0637": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0633": ( + ".group_0638": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0634": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0635": ( + ".group_0639": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0640": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0636": ( + ".group_0641": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0637": ("WebhookMemberRemovedType",), - ".group_0638": ( + ".group_0642": ("WebhookMemberRemovedType",), + ".group_0643": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0639": ( + ".group_0644": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0640": ("WebhookMergeGroupChecksRequestedType",), - ".group_0641": ("WebhookMergeGroupDestroyedType",), - ".group_0642": ( + ".group_0645": ("WebhookMergeGroupChecksRequestedType",), + ".group_0646": ("WebhookMergeGroupDestroyedType",), + ".group_0647": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0643": ("WebhookMilestoneClosedType",), - ".group_0644": ("WebhookMilestoneCreatedType",), - ".group_0645": ("WebhookMilestoneDeletedType",), - ".group_0646": ( + ".group_0648": ("WebhookMilestoneClosedType",), + ".group_0649": ("WebhookMilestoneCreatedType",), + ".group_0650": ("WebhookMilestoneDeletedType",), + ".group_0651": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0647": ("WebhookMilestoneOpenedType",), - ".group_0648": ("WebhookOrgBlockBlockedType",), - ".group_0649": ("WebhookOrgBlockUnblockedType",), - ".group_0650": ("WebhookOrganizationDeletedType",), - ".group_0651": ("WebhookOrganizationMemberAddedType",), - ".group_0652": ( + ".group_0652": ("WebhookMilestoneOpenedType",), + ".group_0653": ("WebhookOrgBlockBlockedType",), + ".group_0654": ("WebhookOrgBlockUnblockedType",), + ".group_0655": ("WebhookOrganizationDeletedType",), + ".group_0656": ("WebhookOrganizationMemberAddedType",), + ".group_0657": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0653": ("WebhookOrganizationMemberRemovedType",), - ".group_0654": ( + ".group_0658": ("WebhookOrganizationMemberRemovedType",), + ".group_0659": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0655": ( + ".group_0660": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0656": ("WebhookPackagePublishedType",), - ".group_0657": ( + ".group_0661": ("WebhookPackagePublishedType",), + ".group_0662": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0658": ( + ".group_0663": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -11206,13 +11262,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0659": ("WebhookPackageUpdatedType",), - ".group_0660": ( + ".group_0664": ("WebhookPackageUpdatedType",), + ".group_0665": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0661": ( + ".group_0666": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -11221,75 +11277,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0662": ( + ".group_0667": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0663": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0664": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0665": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0666": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0667": ("WebhookPingType",), - ".group_0668": ( + ".group_0668": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0669": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0670": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0671": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0672": ("WebhookPingType",), + ".group_0673": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0669": ("WebhookPingFormEncodedType",), - ".group_0670": ( + ".group_0674": ("WebhookPingFormEncodedType",), + ".group_0675": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0671": ("WebhookProjectCardCreatedType",), - ".group_0672": ( + ".group_0676": ("WebhookProjectCardCreatedType",), + ".group_0677": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0673": ( + ".group_0678": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0674": ( + ".group_0679": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0675": ( + ".group_0680": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0676": ( + ".group_0681": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0677": ("WebhookProjectClosedType",), - ".group_0678": ("WebhookProjectColumnCreatedType",), - ".group_0679": ("WebhookProjectColumnDeletedType",), - ".group_0680": ( + ".group_0682": ("WebhookProjectClosedType",), + ".group_0683": ("WebhookProjectColumnCreatedType",), + ".group_0684": ("WebhookProjectColumnDeletedType",), + ".group_0685": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0681": ("WebhookProjectColumnMovedType",), - ".group_0682": ("WebhookProjectCreatedType",), - ".group_0683": ("WebhookProjectDeletedType",), - ".group_0684": ( + ".group_0686": ("WebhookProjectColumnMovedType",), + ".group_0687": ("WebhookProjectCreatedType",), + ".group_0688": ("WebhookProjectDeletedType",), + ".group_0689": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0685": ("WebhookProjectReopenedType",), - ".group_0686": ("WebhookProjectsV2ProjectClosedType",), - ".group_0687": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0688": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0689": ( + ".group_0690": ("WebhookProjectReopenedType",), + ".group_0691": ("WebhookProjectsV2ProjectClosedType",), + ".group_0692": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0693": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0694": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -11297,15 +11353,15 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0690": ("WebhookProjectsV2ItemArchivedType",), - ".group_0691": ( + ".group_0695": ("WebhookProjectsV2ItemArchivedType",), + ".group_0696": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0692": ("WebhookProjectsV2ItemCreatedType",), - ".group_0693": ("WebhookProjectsV2ItemDeletedType",), - ".group_0694": ( + ".group_0697": ("WebhookProjectsV2ItemCreatedType",), + ".group_0698": ("WebhookProjectsV2ItemDeletedType",), + ".group_0699": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", @@ -11314,16 +11370,16 @@ "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0695": ( + ".group_0700": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0696": ("WebhookProjectsV2ItemRestoredType",), - ".group_0697": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0698": ("WebhookProjectsV2StatusUpdateCreatedType",), - ".group_0699": ("WebhookProjectsV2StatusUpdateDeletedType",), - ".group_0700": ( + ".group_0701": ("WebhookProjectsV2ItemRestoredType",), + ".group_0702": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0703": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0704": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0705": ( "WebhookProjectsV2StatusUpdateEditedType", "WebhookProjectsV2StatusUpdateEditedPropChangesType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", @@ -11331,8 +11387,8 @@ "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ), - ".group_0701": ("WebhookPublicType",), - ".group_0702": ( + ".group_0706": ("WebhookPublicType",), + ".group_0707": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -11371,7 +11427,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0703": ( + ".group_0708": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -11410,7 +11466,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0704": ( + ".group_0709": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -11449,10 +11505,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0705": ("WebhookPullRequestClosedType",), - ".group_0706": ("WebhookPullRequestConvertedToDraftType",), - ".group_0707": ("WebhookPullRequestDemilestonedType",), - ".group_0708": ( + ".group_0710": ("WebhookPullRequestClosedType",), + ".group_0711": ("WebhookPullRequestConvertedToDraftType",), + ".group_0712": ("WebhookPullRequestDemilestonedType",), + ".group_0713": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -11491,7 +11547,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0709": ( + ".group_0714": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -11500,7 +11556,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0710": ( + ".group_0715": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -11539,7 +11595,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0711": ( + ".group_0716": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -11578,7 +11634,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0712": ( + ".group_0717": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -11617,11 +11673,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0713": ("WebhookPullRequestMilestonedType",), - ".group_0714": ("WebhookPullRequestOpenedType",), - ".group_0715": ("WebhookPullRequestReadyForReviewType",), - ".group_0716": ("WebhookPullRequestReopenedType",), - ".group_0717": ( + ".group_0718": ("WebhookPullRequestMilestonedType",), + ".group_0719": ("WebhookPullRequestOpenedType",), + ".group_0720": ("WebhookPullRequestReadyForReviewType",), + ".group_0721": ("WebhookPullRequestReopenedType",), + ".group_0722": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -11666,7 +11722,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0718": ( + ".group_0723": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -11704,7 +11760,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0719": ( + ".group_0724": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -11742,7 +11798,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0720": ( + ".group_0725": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -11785,7 +11841,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0721": ( + ".group_0726": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -11825,7 +11881,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0722": ( + ".group_0727": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -11865,7 +11921,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0723": ( + ".group_0728": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -11906,7 +11962,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0724": ( + ".group_0729": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -11946,7 +12002,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0725": ( + ".group_0730": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -11987,7 +12043,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0726": ( + ".group_0731": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -12025,7 +12081,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0727": ( + ".group_0732": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -12071,7 +12127,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0728": ( + ".group_0733": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -12117,7 +12173,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0729": ( + ".group_0734": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -12156,7 +12212,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0730": ( + ".group_0735": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -12195,7 +12251,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0731": ( + ".group_0736": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -12234,7 +12290,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0732": ( + ".group_0737": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -12273,7 +12329,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0733": ( + ".group_0738": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -12288,13 +12344,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0734": ("WebhookRegistryPackagePublishedType",), - ".group_0735": ( + ".group_0739": ("WebhookRegistryPackagePublishedType",), + ".group_0740": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0736": ( + ".group_0741": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -12325,13 +12381,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0737": ("WebhookRegistryPackageUpdatedType",), - ".group_0738": ( + ".group_0742": ("WebhookRegistryPackageUpdatedType",), + ".group_0743": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0739": ( + ".group_0744": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12340,9 +12396,9 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0740": ("WebhookReleaseCreatedType",), - ".group_0741": ("WebhookReleaseDeletedType",), - ".group_0742": ( + ".group_0745": ("WebhookReleaseCreatedType",), + ".group_0746": ("WebhookReleaseDeletedType",), + ".group_0747": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", @@ -12350,7 +12406,7 @@ "WebhookReleaseEditedPropChangesPropTagNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0743": ( + ".group_0748": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -12358,19 +12414,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0744": ("WebhookReleasePublishedType",), - ".group_0745": ("WebhookReleaseReleasedType",), - ".group_0746": ("WebhookReleaseUnpublishedType",), - ".group_0747": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0748": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0749": ("WebhookRepositoryArchivedType",), - ".group_0750": ("WebhookRepositoryCreatedType",), - ".group_0751": ("WebhookRepositoryDeletedType",), - ".group_0752": ( + ".group_0749": ("WebhookReleasePublishedType",), + ".group_0750": ("WebhookReleaseReleasedType",), + ".group_0751": ("WebhookReleaseUnpublishedType",), + ".group_0752": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0753": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0754": ("WebhookRepositoryArchivedType",), + ".group_0755": ("WebhookRepositoryCreatedType",), + ".group_0756": ("WebhookRepositoryDeletedType",), + ".group_0757": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0753": ( + ".group_0758": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -12378,25 +12434,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0754": ("WebhookRepositoryImportType",), - ".group_0755": ("WebhookRepositoryPrivatizedType",), - ".group_0756": ("WebhookRepositoryPublicizedType",), - ".group_0757": ( + ".group_0759": ("WebhookRepositoryImportType",), + ".group_0760": ("WebhookRepositoryPrivatizedType",), + ".group_0761": ("WebhookRepositoryPublicizedType",), + ".group_0762": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0758": ("WebhookRepositoryRulesetCreatedType",), - ".group_0759": ("WebhookRepositoryRulesetDeletedType",), - ".group_0760": ("WebhookRepositoryRulesetEditedType",), - ".group_0761": ( + ".group_0763": ("WebhookRepositoryRulesetCreatedType",), + ".group_0764": ("WebhookRepositoryRulesetDeletedType",), + ".group_0765": ("WebhookRepositoryRulesetEditedType",), + ".group_0766": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0762": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0763": ( + ".group_0767": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0768": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -12404,15 +12460,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0764": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0765": ( + ".group_0769": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0770": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0766": ( + ".group_0771": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -12420,47 +12476,31 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0767": ("WebhookRepositoryUnarchivedType",), - ".group_0768": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0769": ( + ".group_0772": ("WebhookRepositoryUnarchivedType",), + ".group_0773": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0774": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0770": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0771": ( + ".group_0775": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0776": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0772": ("WebhookSecretScanningAlertCreatedType",), - ".group_0773": ( - "WebhookSecretScanningAlertLocationCreatedType", - "SecretScanningLocationType", - "SecretScanningLocationCommitType", - "SecretScanningLocationWikiCommitType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestReviewCommentType", - ), - ".group_0774": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0775": ("WebhookSecretScanningAlertPubliclyLeakedType",), - ".group_0776": ("WebhookSecretScanningAlertReopenedType",), - ".group_0777": ("WebhookSecretScanningAlertResolvedType",), - ".group_0778": ("WebhookSecretScanningAlertValidatedType",), - ".group_0779": ("WebhookSecretScanningScanCompletedType",), - ".group_0780": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0781": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0782": ("WebhookSecurityAdvisoryWithdrawnType",), - ".group_0783": ( + ".group_0777": ("WebhookSecretScanningAlertCreatedType",), + ".group_0778": ("WebhookSecretScanningAlertLocationCreatedType",), + ".group_0779": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0780": ("WebhookSecretScanningAlertPubliclyLeakedType",), + ".group_0781": ("WebhookSecretScanningAlertReopenedType",), + ".group_0782": ("WebhookSecretScanningAlertResolvedType",), + ".group_0783": ("WebhookSecretScanningAlertValidatedType",), + ".group_0784": ("WebhookSecretScanningScanCompletedType",), + ".group_0785": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0786": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0787": ("WebhookSecurityAdvisoryWithdrawnType",), + ".group_0788": ( "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", @@ -12470,22 +12510,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0784": ("WebhookSecurityAndAnalysisType",), - ".group_0785": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0786": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0787": ("WebhookSponsorshipCancelledType",), - ".group_0788": ("WebhookSponsorshipCreatedType",), - ".group_0789": ( + ".group_0789": ("WebhookSecurityAndAnalysisType",), + ".group_0790": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0791": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0792": ("WebhookSponsorshipCancelledType",), + ".group_0793": ("WebhookSponsorshipCreatedType",), + ".group_0794": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0790": ("WebhookSponsorshipPendingCancellationType",), - ".group_0791": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0792": ("WebhookSponsorshipTierChangedType",), - ".group_0793": ("WebhookStarCreatedType",), - ".group_0794": ("WebhookStarDeletedType",), - ".group_0795": ( + ".group_0795": ("WebhookSponsorshipPendingCancellationType",), + ".group_0796": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0797": ("WebhookSponsorshipTierChangedType",), + ".group_0798": ("WebhookStarCreatedType",), + ".group_0799": ("WebhookStarDeletedType",), + ".group_0800": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -12499,16 +12539,16 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0796": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0797": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0798": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0799": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0800": ("WebhookSubIssuesParentIssueAddedType",), - ".group_0801": ("WebhookSubIssuesParentIssueRemovedType",), - ".group_0802": ("WebhookSubIssuesSubIssueAddedType",), - ".group_0803": ("WebhookSubIssuesSubIssueRemovedType",), - ".group_0804": ("WebhookTeamAddType",), - ".group_0805": ( + ".group_0801": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0802": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0803": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0804": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0805": ("WebhookSubIssuesParentIssueAddedType",), + ".group_0806": ("WebhookSubIssuesParentIssueRemovedType",), + ".group_0807": ("WebhookSubIssuesSubIssueAddedType",), + ".group_0808": ("WebhookSubIssuesSubIssueRemovedType",), + ".group_0809": ("WebhookTeamAddType",), + ".group_0810": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -12516,7 +12556,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0806": ( + ".group_0811": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -12524,7 +12564,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0807": ( + ".group_0812": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -12532,7 +12572,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0808": ( + ".group_0813": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -12548,7 +12588,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0809": ( + ".group_0814": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -12556,48 +12596,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0810": ("WebhookWatchStartedType",), - ".group_0811": ( + ".group_0815": ("WebhookWatchStartedType",), + ".group_0816": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0812": ( + ".group_0817": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0813": ( + ".group_0818": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0814": ( + ".group_0819": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0815": ( + ".group_0820": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0816": ( + ".group_0821": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0817": ( + ".group_0822": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0818": ( + ".group_0823": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0819": ( + ".group_0824": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0820": ( + ".group_0825": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -12616,7 +12656,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0821": ( + ".group_0826": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -12635,7 +12675,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0822": ( + ".group_0827": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -12654,280 +12694,290 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0823": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0824": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0825": ("AppHookConfigPatchBodyType",), - ".group_0826": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0827": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0828": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0829": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0830": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0831": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0832": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0833": ("CredentialsRevokePostBodyType",), - ".group_0834": ("EmojisGetResponse200Type",), - ".group_0835": ( + ".group_0828": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0829": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0830": ("AppHookConfigPatchBodyType",), + ".group_0831": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0832": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0833": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0834": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0835": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0836": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0837": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0838": ("CredentialsRevokePostBodyType",), + ".group_0839": ("EmojisGetResponse200Type",), + ".group_0840": ( "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0836": ( + ".group_0841": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", ), - ".group_0837": ( + ".group_0842": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0838": ( + ".group_0843": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0839": ( + ".group_0844": ( "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0840": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), - ".group_0841": ( + ".group_0845": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), + ".group_0846": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0842": ( + ".group_0847": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0843": ( + ".group_0848": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0844": ("GistsGistIdCommentsPostBodyType",), - ".group_0845": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0846": ("GistsGistIdStarGetResponse404Type",), - ".group_0847": ("InstallationRepositoriesGetResponse200Type",), - ".group_0848": ("MarkdownPostBodyType",), - ".group_0849": ("NotificationsPutBodyType",), - ".group_0850": ("NotificationsPutResponse202Type",), - ".group_0851": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0852": ("OrgsOrgPatchBodyType",), - ".group_0853": ( + ".group_0849": ("GistsGistIdCommentsPostBodyType",), + ".group_0850": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0851": ("GistsGistIdStarGetResponse404Type",), + ".group_0852": ("InstallationRepositoriesGetResponse200Type",), + ".group_0853": ("MarkdownPostBodyType",), + ".group_0854": ("NotificationsPutBodyType",), + ".group_0855": ("NotificationsPutResponse202Type",), + ".group_0856": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0857": ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",), + ".group_0858": ( + "OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType", + ), + ".group_0859": ("OrgsOrgPatchBodyType",), + ".group_0860": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0854": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), - ".group_0855": ( + ".group_0861": ("OrgsOrgActionsHostedRunnersGetResponse200Type",), + ".group_0862": ( "OrgsOrgActionsHostedRunnersPostBodyType", "OrgsOrgActionsHostedRunnersPostBodyPropImageType", ), - ".group_0856": ( + ".group_0863": ( "OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type", ), - ".group_0857": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), - ".group_0858": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), - ".group_0859": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), - ".group_0860": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), - ".group_0861": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0862": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0863": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0864": ( + ".group_0864": ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",), + ".group_0865": ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",), + ".group_0866": ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",), + ".group_0867": ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",), + ".group_0868": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0869": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0870": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0871": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0865": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0866": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0867": ( + ".group_0872": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0873": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0874": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type", ), - ".group_0868": ( + ".group_0875": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0869": ( + ".group_0876": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0870": ( + ".group_0877": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0871": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0872": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0873": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0874": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), - ".group_0875": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), - ".group_0876": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0877": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0878": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), - ".group_0879": ( + ".group_0878": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0879": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0880": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0881": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), + ".group_0882": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), + ".group_0883": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0884": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0885": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), + ".group_0886": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0880": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0881": ( + ".group_0887": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0888": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0882": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0883": ( + ".group_0889": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0890": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0884": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0885": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0886": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0887": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0888": ( + ".group_0891": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0892": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0893": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0894": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0895": ("OrgsOrgAttestationsBulkListPostBodyType",), + ".group_0896": ( + "OrgsOrgAttestationsBulkListPostResponse200Type", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", + ), + ".group_0897": ( "OrgsOrgAttestationsSubjectDigestGetResponse200Type", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_0889": ( + ".group_0898": ( "OrgsOrgCampaignsPostBodyType", "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", ), - ".group_0890": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), - ".group_0891": ( + ".group_0899": ("OrgsOrgCampaignsCampaignNumberPatchBodyType",), + ".group_0900": ( "OrgsOrgCodeSecurityConfigurationsPostBodyType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0892": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), - ".group_0893": ( + ".group_0901": ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",), + ".group_0902": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", ), - ".group_0894": ( + ".group_0903": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ), - ".group_0895": ( + ".group_0904": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ), - ".group_0896": ( + ".group_0905": ( "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", ), - ".group_0897": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0898": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0899": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0900": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0901": ( + ".group_0906": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0907": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0908": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0909": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0910": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0902": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0903": ( + ".group_0911": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0912": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0904": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0905": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0906": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0907": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0908": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0909": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0910": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0911": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0912": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0913": ( + ".group_0913": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0914": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0915": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0916": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0917": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0918": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0919": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0920": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0921": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0922": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0914": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0915": ( + ".group_0923": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0924": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0916": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0917": ( + ".group_0925": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0926": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0918": ( + ".group_0927": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0919": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0920": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0921": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0922": ("OrgsOrgInvitationsPostBodyType",), - ".group_0923": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0924": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0925": ("OrgsOrgMigrationsPostBodyType",), - ".group_0926": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0927": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0928": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0929": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0930": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0931": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0932": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0933": ( + ".group_0928": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0929": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0930": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0931": ("OrgsOrgInvitationsPostBodyType",), + ".group_0932": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0933": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0934": ("OrgsOrgMigrationsPostBodyType",), + ".group_0935": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0936": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0937": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0938": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0939": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0940": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0941": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0942": ( "OrgsOrgPrivateRegistriesGetResponse200Type", "OrgPrivateRegistryConfigurationType", ), - ".group_0934": ("OrgsOrgPrivateRegistriesPostBodyType",), - ".group_0935": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), - ".group_0936": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), - ".group_0937": ("OrgsOrgProjectsPostBodyType",), - ".group_0938": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0939": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0940": ( + ".group_0943": ("OrgsOrgPrivateRegistriesPostBodyType",), + ".group_0944": ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",), + ".group_0945": ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",), + ".group_0946": ("OrgsOrgProjectsPostBodyType",), + ".group_0947": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0948": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0949": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0941": ("OrgsOrgRulesetsPostBodyType",), - ".group_0942": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0943": ( + ".group_0950": ("OrgsOrgRulesetsPostBodyType",), + ".group_0951": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0952": ( "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", "NetworkConfigurationType", ), - ".group_0944": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), - ".group_0945": ( + ".group_0953": ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",), + ".group_0954": ( "OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType", ), - ".group_0946": ("OrgsOrgTeamsPostBodyType",), - ".group_0947": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0948": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0949": ( + ".group_0955": ("OrgsOrgTeamsPostBodyType",), + ".group_0956": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0957": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0958": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0950": ( + ".group_0959": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0951": ( + ".group_0960": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0952": ( + ".group_0961": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0953": ( + ".group_0962": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0954": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0955": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0956": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0957": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0958": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0959": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0960": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0961": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0962": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0963": ( + ".group_0963": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0964": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0965": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0966": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0967": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0968": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0969": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0970": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0971": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0972": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0964": ( + ".group_0973": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0965": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0966": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0967": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0968": ( + ".group_0974": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0975": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0976": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0977": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0969": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0970": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0971": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0972": ("ProjectsProjectIdPatchBodyType",), - ".group_0973": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0974": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0975": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0976": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0977": ( + ".group_0978": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0979": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0980": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0981": ("ProjectsProjectIdPatchBodyType",), + ".group_0982": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0983": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0984": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0985": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0986": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", @@ -12937,61 +12987,61 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", ), - ".group_0978": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0979": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0980": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0981": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0982": ( + ".group_0987": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0988": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0989": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0990": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0991": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0983": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0984": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0985": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0986": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0987": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0988": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_0989": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_0990": ( + ".group_0992": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0993": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0994": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0995": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0996": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0997": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0998": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0999": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_0991": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_0992": ( + ".group_1000": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_1001": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_0993": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_0994": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_0995": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_0996": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_0997": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_0998": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_0999": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_1000": ( + ".group_1002": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_1003": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_1004": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_1005": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_1006": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_1007": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_1008": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_1009": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_1001": ( + ".group_1010": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_1002": ( + ".group_1011": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_1003": ( + ".group_1012": ( "ReposOwnerRepoAttestationsPostBodyType", "ReposOwnerRepoAttestationsPostBodyPropBundleType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ), - ".group_1004": ("ReposOwnerRepoAttestationsPostResponse201Type",), - ".group_1005": ( + ".group_1013": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_1014": ( "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", ), - ".group_1006": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_1007": ( + ".group_1015": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_1016": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -13000,354 +13050,356 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_1008": ( + ".group_1017": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_1009": ( + ".group_1018": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_1010": ( + ".group_1019": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_1011": ( + ".group_1020": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_1012": ( + ".group_1021": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_1013": ( + ".group_1022": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType", ), - ".group_1014": ( + ".group_1023": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType", ), - ".group_1015": ( + ".group_1024": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType", ), - ".group_1016": ( + ".group_1025": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_1017": ( + ".group_1026": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_1018": ( + ".group_1027": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_1019": ( + ".group_1028": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType", ), - ".group_1020": ( + ".group_1029": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType", ), - ".group_1021": ( + ".group_1030": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType", ), - ".group_1022": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_1023": ( + ".group_1031": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_1032": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_1024": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_1025": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_1026": ( + ".group_1033": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_1034": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_1035": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_1027": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_1028": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_1029": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_1030": ( + ".group_1036": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_1037": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_1038": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_1039": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_1031": ( + ".group_1040": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_1032": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_1033": ( + ".group_1041": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_1042": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_1034": ( + ".group_1043": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_1035": ( + ".group_1044": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_1036": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_1037": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_1038": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_1039": ( + ".group_1045": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_1046": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_1047": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1048": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_1040": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_1041": ( + ".group_1049": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1050": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_1042": ( + ".group_1051": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_1043": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_1044": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_1045": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1046": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1047": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1048": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1049": ( + ".group_1052": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1053": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1054": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1055": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1056": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1057": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1058": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1050": ( + ".group_1059": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1051": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1052": ( + ".group_1060": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1061": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1053": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1054": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1055": ( + ".group_1062": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1063": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1064": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1056": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1057": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1058": ( + ".group_1065": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1066": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1067": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1059": ( + ".group_1068": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1060": ( + ".group_1069": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1061": ( + ".group_1070": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1062": ( + ".group_1071": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1063": ( + ".group_1072": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1064": ( + ".group_1073": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1065": ( + ".group_1074": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1066": ( + ".group_1075": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1067": ( + ".group_1076": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1068": ("ReposOwnerRepoForksPostBodyType",), - ".group_1069": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1070": ( + ".group_1077": ("ReposOwnerRepoForksPostBodyType",), + ".group_1078": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1079": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1071": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1072": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1073": ( + ".group_1080": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1081": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1082": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1074": ( + ".group_1083": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1075": ( + ".group_1084": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1076": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1077": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1078": ("ReposOwnerRepoImportPutBodyType",), - ".group_1079": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1080": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1081": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1082": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1083": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1084": ( + ".group_1085": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1086": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1087": ("ReposOwnerRepoImportPutBodyType",), + ".group_1088": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1089": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1090": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1091": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1092": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1093": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1085": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1086": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1087": ( + ".group_1094": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1095": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1096": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1088": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1089": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1090": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1091": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1092": ( + ".group_1097": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1098": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1099": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1100": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1101": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1093": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1094": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1095": ( + ".group_1102": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1103": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1104": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1096": ( + ".group_1105": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1097": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1098": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1099": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), - ".group_1100": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), - ".group_1101": ( + ".group_1106": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1107": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1108": ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",), + ".group_1109": ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",), + ".group_1110": ( "ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType", ), - ".group_1102": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1103": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1104": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1105": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1106": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1107": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1108": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1109": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1110": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1111": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1112": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1113": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1114": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1115": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1116": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1117": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1118": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1119": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1120": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1121": ( + ".group_1111": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1112": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1113": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1114": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1115": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1116": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1117": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1118": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1119": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1120": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1121": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1122": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1123": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1124": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1125": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1126": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1127": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1128": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1129": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1130": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1122": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1123": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1124": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1125": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1126": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1127": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1128": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1129": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1130": ( + ".group_1131": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1132": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1133": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1134": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1135": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1136": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1137": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1138": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1139": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1131": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1132": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1133": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1134": ( + ".group_1140": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1141": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1142": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1143": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1135": ( + ".group_1144": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1136": ( + ".group_1145": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1137": ( + ".group_1146": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1138": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1139": ( + ".group_1147": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1148": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1140": ( + ".group_1149": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1141": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1142": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1143": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1144": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1145": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1146": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1147": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1148": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1149": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1150": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1151": ( + ".group_1150": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1151": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1152": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1153": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1154": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1155": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1156": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1157": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1158": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1159": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1160": ( "ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType", ), - ".group_1152": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1153": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1154": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1155": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1156": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1157": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1158": ("TeamsTeamIdPatchBodyType",), - ".group_1159": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1160": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1161": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1162": ( + ".group_1161": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1162": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1163": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1164": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1165": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1166": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1167": ("TeamsTeamIdPatchBodyType",), + ".group_1168": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1169": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1170": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1171": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1163": ( + ".group_1172": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1164": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1165": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1166": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1167": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1168": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1169": ("UserPatchBodyType",), - ".group_1170": ("UserCodespacesGetResponse200Type",), - ".group_1171": ("UserCodespacesPostBodyOneof0Type",), - ".group_1172": ( + ".group_1173": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1174": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1175": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1176": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1177": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1178": ("UserPatchBodyType",), + ".group_1179": ("UserCodespacesGetResponse200Type",), + ".group_1180": ("UserCodespacesPostBodyOneof0Type",), + ".group_1181": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1173": ( + ".group_1182": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1174": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1175": ( + ".group_1183": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1184": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1176": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1177": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1178": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1179": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1180": ("UserEmailVisibilityPatchBodyType",), - ".group_1181": ("UserEmailsPostBodyOneof0Type",), - ".group_1182": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1183": ("UserGpgKeysPostBodyType",), - ".group_1184": ("UserInstallationsGetResponse200Type",), - ".group_1185": ( + ".group_1185": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1186": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1187": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1188": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1189": ("UserEmailVisibilityPatchBodyType",), + ".group_1190": ("UserEmailsPostBodyOneof0Type",), + ".group_1191": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1192": ("UserGpgKeysPostBodyType",), + ".group_1193": ("UserInstallationsGetResponse200Type",), + ".group_1194": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1186": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1187": ("UserKeysPostBodyType",), - ".group_1188": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1189": ("UserMigrationsPostBodyType",), - ".group_1190": ("UserProjectsPostBodyType",), - ".group_1191": ("UserReposPostBodyType",), - ".group_1192": ("UserSocialAccountsPostBodyType",), - ".group_1193": ("UserSocialAccountsDeleteBodyType",), - ".group_1194": ("UserSshSigningKeysPostBodyType",), - ".group_1195": ( + ".group_1195": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1196": ("UserKeysPostBodyType",), + ".group_1197": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1198": ("UserMigrationsPostBodyType",), + ".group_1199": ("UserProjectsPostBodyType",), + ".group_1200": ("UserReposPostBodyType",), + ".group_1201": ("UserSocialAccountsPostBodyType",), + ".group_1202": ("UserSocialAccountsDeleteBodyType",), + ".group_1203": ("UserSshSigningKeysPostBodyType",), + ".group_1204": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",), + ".group_1205": ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",), + ".group_1206": ( "UsersUsernameAttestationsSubjectDigestGetResponse200Type", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", diff --git a/githubkit/versions/v2022_11_28/types/group_0010.py b/githubkit/versions/v2022_11_28/types/group_0010.py index 34d9ac7cc..cd45ad29f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0010.py +++ b/githubkit/versions/v2022_11_28/types/group_0010.py @@ -41,9 +41,6 @@ class actors within GitHub. permissions: IntegrationPropPermissionsType events: list[str] installations_count: NotRequired[int] - client_secret: NotRequired[str] - webhook_secret: NotRequired[Union[str, None]] - pem: NotRequired[str] __all__ = ("IntegrationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0020.py b/githubkit/versions/v2022_11_28/types/group_0020.py index b20421e03..9d10c4127 100644 --- a/githubkit/versions/v2022_11_28/types/group_0020.py +++ b/githubkit/versions/v2022_11_28/types/group_0020.py @@ -120,6 +120,7 @@ class RepositoryType(TypedDict): master_branch: NotRequired[str] starred_at: NotRequired[str] anonymous_access_enabled: NotRequired[bool] + code_search_index_status: NotRequired[RepositoryPropCodeSearchIndexStatusType] class RepositoryPropPermissionsType(TypedDict): @@ -132,7 +133,18 @@ class RepositoryPropPermissionsType(TypedDict): maintain: NotRequired[bool] +class RepositoryPropCodeSearchIndexStatusType(TypedDict): + """RepositoryPropCodeSearchIndexStatus + + The status of the code search index for this repository + """ + + lexical_search_ok: NotRequired[bool] + lexical_commit_sha: NotRequired[str] + + __all__ = ( + "RepositoryPropCodeSearchIndexStatusType", "RepositoryPropPermissionsType", "RepositoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0038.py b/githubkit/versions/v2022_11_28/types/group_0038.py index 95cd102ca..b50ccb144 100644 --- a/githubkit/versions/v2022_11_28/types/group_0038.py +++ b/githubkit/versions/v2022_11_28/types/group_0038.py @@ -9,45 +9,101 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0031 import SimpleRepositoryType - - -class OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - - -__all__ = ("OrganizationSecretScanningAlertType",) +from typing_extensions import TypedDict + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +__all__ = ( + "SecretScanningLocationCommitType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationWikiCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0039.py b/githubkit/versions/v2022_11_28/types/group_0039.py index 1bd13ab39..f78b830c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0039.py +++ b/githubkit/versions/v2022_11_28/types/group_0039.py @@ -9,35 +9,53 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str + + +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str -class MilestoneType(TypedDict): - """Milestone - A collection of related issues and pull requests. +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. """ - url: str - html_url: str - labels_url: str - id: int - node_id: str - number: int - state: Literal["open", "closed"] - title: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - open_issues: int - closed_issues: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - due_on: Union[datetime, None] - - -__all__ = ("MilestoneType",) + pull_request_review_comment_url: str + + +__all__ = ( + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationPullRequestReviewCommentType", + "SecretScanningLocationPullRequestTitleType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0040.py b/githubkit/versions/v2022_11_28/types/group_0040.py index a99164b42..fad48635c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0040.py +++ b/githubkit/versions/v2022_11_28/types/group_0040.py @@ -9,32 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class IssueTypeType(TypedDict): - """Issue Type +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody - The type of issue. + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. """ - id: int - node_id: str - name: str - description: Union[str, None] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - is_enabled: NotRequired[bool] - - -__all__ = ("IssueTypeType",) + discussion_body_url: str + + +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +__all__ = ( + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationPullRequestCommentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0041.py b/githubkit/versions/v2022_11_28/types/group_0041.py index 8a6080a74..b8941504e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0041.py +++ b/githubkit/versions/v2022_11_28/types/group_0041.py @@ -9,22 +9,83 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0031 import SimpleRepositoryType +from .group_0038 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0039 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0040 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -class ReactionRollupType(TypedDict): - """Reaction Rollup""" - url: str - total_count: int - plus_one: int - minus_one: int - laugh: int - confused: int - heart: int - hooray: int - eyes: int - rocket: int +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + repository: NotRequired[SimpleRepositoryType] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + has_more_locations: NotRequired[bool] -__all__ = ("ReactionRollupType",) + +__all__ = ("OrganizationSecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0042.py b/githubkit/versions/v2022_11_28/types/group_0042.py index 72eeeba4d..1bd13ab39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0042.py +++ b/githubkit/versions/v2022_11_28/types/group_0042.py @@ -11,105 +11,33 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0039 import MilestoneType -from .group_0040 import IssueTypeType -from .group_0041 import ReactionRollupType -class IssueType(TypedDict): - """Issue +class MilestoneType(TypedDict): + """Milestone - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. + A collection of related issues and pull requests. """ - id: int - node_id: str url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str html_url: str + labels_url: str + id: int + node_id: str number: int - state: str - state_reason: NotRequired[ - Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] - ] + state: Literal["open", "closed"] title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] + description: Union[str, None] + creator: Union[None, SimpleUserType] + open_issues: int + closed_issues: int created_at: datetime updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - sub_issues_summary: NotRequired[SubIssuesSummaryType] - - -class SubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssuePropLabelsItemsOneof1Type(TypedDict): - """IssuePropLabelsItemsOneof1""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - default: NotRequired[bool] - - -class IssuePropPullRequestType(TypedDict): - """IssuePropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] + closed_at: Union[datetime, None] + due_on: Union[datetime, None] -__all__ = ( - "IssuePropLabelsItemsOneof1Type", - "IssuePropPullRequestType", - "IssueType", - "SubIssuesSummaryType", -) +__all__ = ("MilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0043.py b/githubkit/versions/v2022_11_28/types/group_0043.py index 7e1c5403d..a99164b42 100644 --- a/githubkit/versions/v2022_11_28/types/group_0043.py +++ b/githubkit/versions/v2022_11_28/types/group_0043.py @@ -13,40 +13,28 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0041 import ReactionRollupType +class IssueTypeType(TypedDict): + """Issue Type -class IssueCommentType(TypedDict): - """Issue Comment - - Comments provide a way for people to collaborate on an issue. + The type of issue. """ id: int node_id: str - url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + name: str + description: Union[str, None] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + is_enabled: NotRequired[bool] -__all__ = ("IssueCommentType",) +__all__ = ("IssueTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0044.py b/githubkit/versions/v2022_11_28/types/group_0044.py index 7b53f0ccf..8a6080a74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0044.py +++ b/githubkit/versions/v2022_11_28/types/group_0044.py @@ -9,76 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0042 import IssueType -from .group_0043 import IssueCommentType +class ReactionRollupType(TypedDict): + """Reaction Rollup""" -class EventPropPayloadType(TypedDict): - """EventPropPayload""" - - action: NotRequired[str] - issue: NotRequired[IssueType] - comment: NotRequired[IssueCommentType] - pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] - - -class EventPropPayloadPropPagesItemsType(TypedDict): - """EventPropPayloadPropPagesItems""" - - page_name: NotRequired[str] - title: NotRequired[str] - summary: NotRequired[Union[str, None]] - action: NotRequired[str] - sha: NotRequired[str] - html_url: NotRequired[str] - - -class EventType(TypedDict): - """Event - - Event - """ - - id: str - type: Union[str, None] - actor: ActorType - repo: EventPropRepoType - org: NotRequired[ActorType] - payload: EventPropPayloadType - public: bool - created_at: Union[datetime, None] - - -class ActorType(TypedDict): - """Actor - - Actor - """ - - id: int - login: str - display_login: NotRequired[str] - gravatar_id: Union[str, None] url: str - avatar_url: str - - -class EventPropRepoType(TypedDict): - """EventPropRepo""" - - id: int - name: str - url: str - - -__all__ = ( - "ActorType", - "EventPropPayloadPropPagesItemsType", - "EventPropPayloadType", - "EventPropRepoType", - "EventType", -) + total_count: int + plus_one: int + minus_one: int + laugh: int + confused: int + heart: int + hooray: int + eyes: int + rocket: int + + +__all__ = ("ReactionRollupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0045.py b/githubkit/versions/v2022_11_28/types/group_0045.py index b0afe5713..2eff7eea1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0045.py +++ b/githubkit/versions/v2022_11_28/types/group_0045.py @@ -9,55 +9,107 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0042 import MilestoneType +from .group_0043 import IssueTypeType +from .group_0044 import ReactionRollupType -class FeedType(TypedDict): - """Feed - Feed - """ +class IssueType(TypedDict): + """Issue - timeline_url: str - user_url: str - current_user_public_url: NotRequired[str] - current_user_url: NotRequired[str] - current_user_actor_url: NotRequired[str] - current_user_organization_url: NotRequired[str] - current_user_organization_urls: NotRequired[list[str]] - security_advisories_url: NotRequired[str] - repository_discussions_url: NotRequired[str] - repository_discussions_category_url: NotRequired[str] - links: FeedPropLinksType - - -class FeedPropLinksType(TypedDict): - """FeedPropLinks""" - - timeline: LinkWithTypeType - user: LinkWithTypeType - security_advisories: NotRequired[LinkWithTypeType] - current_user: NotRequired[LinkWithTypeType] - current_user_public: NotRequired[LinkWithTypeType] - current_user_actor: NotRequired[LinkWithTypeType] - current_user_organization: NotRequired[LinkWithTypeType] - current_user_organizations: NotRequired[list[LinkWithTypeType]] - repository_discussions: NotRequired[LinkWithTypeType] - repository_discussions_category: NotRequired[LinkWithTypeType] - - -class LinkWithTypeType(TypedDict): - """Link With Type - - Hypermedia Link with Type + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - href: str - type: str + id: int + node_id: str + url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned", "duplicate"]] + ] + title: str + body: NotRequired[Union[str, None]] + user: Union[None, SimpleUserType] + labels: list[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] + sub_issues_summary: NotRequired[SubIssuesSummaryType] + + +class SubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssuePropLabelsItemsOneof1Type(TypedDict): + """IssuePropLabelsItemsOneof1""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + default: NotRequired[bool] + + +class IssuePropPullRequestType(TypedDict): + """IssuePropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] __all__ = ( - "FeedPropLinksType", - "FeedType", - "LinkWithTypeType", + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", + "IssueType", + "SubIssuesSummaryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0046.py b/githubkit/versions/v2022_11_28/types/group_0046.py index 0b66a8534..7bb30bcd6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0046.py +++ b/githubkit/versions/v2022_11_28/types/group_0046.py @@ -10,47 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0044 import ReactionRollupType -class BaseGistType(TypedDict): - """Base Gist +class IssueCommentType(TypedDict): + """Issue Comment - Base Gist + Comments provide a way for people to collaborate on an issue. """ - url: str - forks_url: str - commits_url: str - id: str + id: int node_id: str - git_pull_url: str - git_push_url: str + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] html_url: str - files: BaseGistPropFilesType - public: bool + user: Union[None, SimpleUserType] created_at: datetime updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -BaseGistPropFilesType: TypeAlias = dict[str, Any] -"""BaseGistPropFiles -""" - - -__all__ = ( - "BaseGistPropFilesType", - "BaseGistType", -) + issue_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("IssueCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0047.py b/githubkit/versions/v2022_11_28/types/group_0047.py index 7969063ff..897ccf926 100644 --- a/githubkit/versions/v2022_11_28/types/group_0047.py +++ b/githubkit/versions/v2022_11_28/types/group_0047.py @@ -10,70 +10,75 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0045 import IssueType +from .group_0046 import IssueCommentType -class GistHistoryType(TypedDict): - """Gist History +class EventPropPayloadType(TypedDict): + """EventPropPayload""" - Gist History - """ - - user: NotRequired[Union[None, SimpleUserType]] - version: NotRequired[str] - committed_at: NotRequired[datetime] - change_status: NotRequired[GistHistoryPropChangeStatusType] - url: NotRequired[str] + action: NotRequired[str] + issue: NotRequired[IssueType] + comment: NotRequired[IssueCommentType] + pages: NotRequired[list[EventPropPayloadPropPagesItemsType]] -class GistHistoryPropChangeStatusType(TypedDict): - """GistHistoryPropChangeStatus""" +class EventPropPayloadPropPagesItemsType(TypedDict): + """EventPropPayloadPropPagesItems""" - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] + page_name: NotRequired[str] + title: NotRequired[str] + summary: NotRequired[Union[str, None]] + action: NotRequired[str] + sha: NotRequired[str] + html_url: NotRequired[str] -class GistSimplePropForkOfType(TypedDict): - """Gist +class EventType(TypedDict): + """Event - Gist + Event """ - url: str - forks_url: str - commits_url: str id: str - node_id: str - git_pull_url: str - git_push_url: str - html_url: str - files: GistSimplePropForkOfPropFilesType + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType public: bool - created_at: datetime - updated_at: datetime - description: Union[str, None] - comments: int - comments_enabled: NotRequired[bool] - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[Union[None, SimpleUserType]] - truncated: NotRequired[bool] - forks: NotRequired[list[Any]] - history: NotRequired[list[Any]] - - -GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropForkOfPropFiles -""" + created_at: Union[datetime, None] + + +class ActorType(TypedDict): + """Actor + + Actor + """ + + id: int + login: str + display_login: NotRequired[str] + gravatar_id: Union[str, None] + url: str + avatar_url: str + + +class EventPropRepoType(TypedDict): + """EventPropRepo""" + + id: int + name: str + url: str __all__ = ( - "GistHistoryPropChangeStatusType", - "GistHistoryType", - "GistSimplePropForkOfPropFilesType", - "GistSimplePropForkOfType", + "ActorType", + "EventPropPayloadPropPagesItemsType", + "EventPropPayloadType", + "EventPropRepoType", + "EventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0048.py b/githubkit/versions/v2022_11_28/types/group_0048.py index 009d63719..b0afe5713 100644 --- a/githubkit/versions/v2022_11_28/types/group_0048.py +++ b/githubkit/versions/v2022_11_28/types/group_0048.py @@ -9,120 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0047 import GistHistoryType, GistSimplePropForkOfType +class FeedType(TypedDict): + """Feed -class GistSimpleType(TypedDict): - """Gist Simple - - Gist Simple + Feed """ - forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] - history: NotRequired[Union[list[GistHistoryType], None]] - fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] - url: NotRequired[str] - forks_url: NotRequired[str] - commits_url: NotRequired[str] - id: NotRequired[str] - node_id: NotRequired[str] - git_pull_url: NotRequired[str] - git_push_url: NotRequired[str] - html_url: NotRequired[str] - files: NotRequired[GistSimplePropFilesType] - public: NotRequired[bool] - created_at: NotRequired[str] - updated_at: NotRequired[str] - description: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_enabled: NotRequired[bool] - user: NotRequired[Union[str, None]] - comments_url: NotRequired[str] - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - - -GistSimplePropFilesType: TypeAlias = dict[str, Any] -"""GistSimplePropFiles -""" - - -class GistSimplePropForksItemsType(TypedDict): - """GistSimplePropForksItems""" - - id: NotRequired[str] - url: NotRequired[str] - user: NotRequired[PublicUserType] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -class PublicUserType(TypedDict): - """Public User - - Public User + timeline_url: str + user_url: str + current_user_public_url: NotRequired[str] + current_user_url: NotRequired[str] + current_user_actor_url: NotRequired[str] + current_user_organization_url: NotRequired[str] + current_user_organization_urls: NotRequired[list[str]] + security_advisories_url: NotRequired[str] + repository_discussions_url: NotRequired[str] + repository_discussions_category_url: NotRequired[str] + links: FeedPropLinksType + + +class FeedPropLinksType(TypedDict): + """FeedPropLinks""" + + timeline: LinkWithTypeType + user: LinkWithTypeType + security_advisories: NotRequired[LinkWithTypeType] + current_user: NotRequired[LinkWithTypeType] + current_user_public: NotRequired[LinkWithTypeType] + current_user_actor: NotRequired[LinkWithTypeType] + current_user_organization: NotRequired[LinkWithTypeType] + current_user_organizations: NotRequired[list[LinkWithTypeType]] + repository_discussions: NotRequired[LinkWithTypeType] + repository_discussions_category: NotRequired[LinkWithTypeType] + + +class LinkWithTypeType(TypedDict): + """Link With Type + + Hypermedia Link with Type """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str + href: str type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int - created_at: datetime - updated_at: datetime - plan: NotRequired[PublicUserPropPlanType] - private_gists: NotRequired[int] - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - disk_usage: NotRequired[int] - collaborators: NotRequired[int] - - -class PublicUserPropPlanType(TypedDict): - """PublicUserPropPlan""" - - collaborators: int - name: str - space: int - private_repos: int __all__ = ( - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "GistSimpleType", - "PublicUserPropPlanType", - "PublicUserType", + "FeedPropLinksType", + "FeedType", + "LinkWithTypeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0049.py b/githubkit/versions/v2022_11_28/types/group_0049.py index d69692063..0b66a8534 100644 --- a/githubkit/versions/v2022_11_28/types/group_0049.py +++ b/githubkit/versions/v2022_11_28/types/group_0049.py @@ -10,35 +10,47 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -class GistCommentType(TypedDict): - """Gist Comment +class BaseGistType(TypedDict): + """Base Gist - A comment made to a gist. + Base Gist """ - id: int - node_id: str url: str - body: str - user: Union[None, SimpleUserType] + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: BaseGistPropFilesType + public: bool created_at: datetime updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -__all__ = ("GistCommentType",) + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + forks: NotRequired[list[Any]] + history: NotRequired[list[Any]] + + +BaseGistPropFilesType: TypeAlias = dict[str, Any] +"""BaseGistPropFiles +""" + + +__all__ = ( + "BaseGistPropFilesType", + "BaseGistType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0050.py b/githubkit/versions/v2022_11_28/types/group_0050.py index a6cb34469..7969063ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0050.py +++ b/githubkit/versions/v2022_11_28/types/group_0050.py @@ -10,34 +10,70 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -class GistCommitType(TypedDict): - """Gist Commit +class GistHistoryType(TypedDict): + """Gist History - Gist Commit + Gist History """ - url: str - version: str - user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime + user: NotRequired[Union[None, SimpleUserType]] + version: NotRequired[str] + committed_at: NotRequired[datetime] + change_status: NotRequired[GistHistoryPropChangeStatusType] + url: NotRequired[str] -class GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" +class GistHistoryPropChangeStatusType(TypedDict): + """GistHistoryPropChangeStatus""" total: NotRequired[int] additions: NotRequired[int] deletions: NotRequired[int] +class GistSimplePropForkOfType(TypedDict): + """Gist + + Gist + """ + + url: str + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: GistSimplePropForkOfPropFilesType + public: bool + created_at: datetime + updated_at: datetime + description: Union[str, None] + comments: int + comments_enabled: NotRequired[bool] + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[Union[None, SimpleUserType]] + truncated: NotRequired[bool] + forks: NotRequired[list[Any]] + history: NotRequired[list[Any]] + + +GistSimplePropForkOfPropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropForkOfPropFiles +""" + + __all__ = ( - "GistCommitPropChangeStatusType", - "GistCommitType", + "GistHistoryPropChangeStatusType", + "GistHistoryType", + "GistSimplePropForkOfPropFilesType", + "GistSimplePropForkOfType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0051.py b/githubkit/versions/v2022_11_28/types/group_0051.py index 69bf98302..fb7c39806 100644 --- a/githubkit/versions/v2022_11_28/types/group_0051.py +++ b/githubkit/versions/v2022_11_28/types/group_0051.py @@ -9,17 +9,120 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0050 import GistHistoryType, GistSimplePropForkOfType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template +class GistSimpleType(TypedDict): + """Gist Simple + + Gist Simple """ + forks: NotRequired[Union[list[GistSimplePropForksItemsType], None]] + history: NotRequired[Union[list[GistHistoryType], None]] + fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] + url: NotRequired[str] + forks_url: NotRequired[str] + commits_url: NotRequired[str] + id: NotRequired[str] + node_id: NotRequired[str] + git_pull_url: NotRequired[str] + git_push_url: NotRequired[str] + html_url: NotRequired[str] + files: NotRequired[GistSimplePropFilesType] + public: NotRequired[bool] + created_at: NotRequired[str] + updated_at: NotRequired[str] + description: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_enabled: NotRequired[bool] + user: NotRequired[Union[str, None]] + comments_url: NotRequired[str] + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + + +GistSimplePropFilesType: TypeAlias = dict[str, Any] +"""GistSimplePropFiles +""" + + +class GistSimplePropForksItemsType(TypedDict): + """GistSimplePropForksItems""" + + id: NotRequired[str] + url: NotRequired[str] + user: NotRequired[PublicUserType] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class PublicUserType(TypedDict): + """Public User + + Public User + """ + + login: str + id: int + user_view_type: NotRequired[str] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int + created_at: datetime + updated_at: datetime + plan: NotRequired[PublicUserPropPlanType] + private_gists: NotRequired[int] + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + disk_usage: NotRequired[int] + collaborators: NotRequired[int] + + +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" + + collaborators: int name: str - source: str + space: int + private_repos: int -__all__ = ("GitignoreTemplateType",) +__all__ = ( + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "GistSimpleType", + "PublicUserPropPlanType", + "PublicUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0052.py b/githubkit/versions/v2022_11_28/types/group_0052.py index f471d8c73..d69692063 100644 --- a/githubkit/versions/v2022_11_28/types/group_0052.py +++ b/githubkit/versions/v2022_11_28/types/group_0052.py @@ -9,29 +9,36 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class LicenseType(TypedDict): - """License - License +class GistCommentType(TypedDict): + """Gist Comment + + A comment made to a gist. """ - key: str - name: str - spdx_id: Union[str, None] - url: Union[str, None] + id: int node_id: str - html_url: str - description: str - implementation: str - permissions: list[str] - conditions: list[str] - limitations: list[str] + url: str body: str - featured: bool - - -__all__ = ("LicenseType",) + user: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +__all__ = ("GistCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0053.py b/githubkit/versions/v2022_11_28/types/group_0053.py index 59d9a8af7..a6cb34469 100644 --- a/githubkit/versions/v2022_11_28/types/group_0053.py +++ b/githubkit/versions/v2022_11_28/types/group_0053.py @@ -9,29 +9,35 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistCommitType(TypedDict): + """Gist Commit + + Gist Commit """ url: str - accounts_url: str - id: int - number: int - name: str - description: str - monthly_price_in_cents: int - yearly_price_in_cents: int - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - has_free_trial: bool - unit_name: Union[str, None] - state: str - bullets: list[str] - - -__all__ = ("MarketplaceListingPlanType",) + version: str + user: Union[None, SimpleUserType] + change_status: GistCommitPropChangeStatusType + committed_at: datetime + + +class GistCommitPropChangeStatusType(TypedDict): + """GistCommitPropChangeStatus""" + + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] + + +__all__ = ( + "GistCommitPropChangeStatusType", + "GistCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0054.py b/githubkit/versions/v2022_11_28/types/group_0054.py index 39f419685..69bf98302 100644 --- a/githubkit/versions/v2022_11_28/types/group_0054.py +++ b/githubkit/versions/v2022_11_28/types/group_0054.py @@ -9,31 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0055 import ( - MarketplacePurchasePropMarketplacePendingChangeType, - MarketplacePurchasePropMarketplacePurchaseType, -) +class GitignoreTemplateType(TypedDict): + """Gitignore Template -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase - - Marketplace Purchase + Gitignore Template """ - url: str - type: str - id: int - login: str - organization_billing_email: NotRequired[str] - email: NotRequired[Union[str, None]] - marketplace_pending_change: NotRequired[ - Union[MarketplacePurchasePropMarketplacePendingChangeType, None] - ] - marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType + name: str + source: str -__all__ = ("MarketplacePurchaseType",) +__all__ = ("GitignoreTemplateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0055.py b/githubkit/versions/v2022_11_28/types/group_0055.py index e1d98be9f..f471d8c73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0055.py +++ b/githubkit/versions/v2022_11_28/types/group_0055.py @@ -10,35 +10,28 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0053 import MarketplaceListingPlanType +class LicenseType(TypedDict): + """License -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" + License + """ - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] + key: str + name: str + spdx_id: Union[str, None] + url: Union[str, None] + node_id: str + html_url: str + description: str + implementation: str + permissions: list[str] + conditions: list[str] + limitations: list[str] + body: str + featured: bool -class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: NotRequired[str] - next_billing_date: NotRequired[Union[str, None]] - is_installed: NotRequired[bool] - unit_count: NotRequired[Union[int, None]] - on_free_trial: NotRequired[bool] - free_trial_ends_on: NotRequired[Union[str, None]] - updated_at: NotRequired[str] - plan: NotRequired[MarketplaceListingPlanType] - - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChangeType", - "MarketplacePurchasePropMarketplacePurchaseType", -) +__all__ = ("LicenseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0056.py b/githubkit/versions/v2022_11_28/types/group_0056.py index d0e33aad3..59d9a8af7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0056.py +++ b/githubkit/versions/v2022_11_28/types/group_0056.py @@ -9,75 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class ApiOverviewType(TypedDict): - """Api Overview +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan - Api Overview + Marketplace Listing Plan """ - verifiable_password_authentication: bool - ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] - ssh_keys: NotRequired[list[str]] - hooks: NotRequired[list[str]] - github_enterprise_importer: NotRequired[list[str]] - web: NotRequired[list[str]] - api: NotRequired[list[str]] - git: NotRequired[list[str]] - packages: NotRequired[list[str]] - pages: NotRequired[list[str]] - importer: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_macos: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - dependabot: NotRequired[list[str]] - copilot: NotRequired[list[str]] - domains: NotRequired[ApiOverviewPropDomainsType] - - -class ApiOverviewPropSshKeyFingerprintsType(TypedDict): - """ApiOverviewPropSshKeyFingerprints""" - - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] - - -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" - - website: NotRequired[list[str]] - codespaces: NotRequired[list[str]] - copilot: NotRequired[list[str]] - packages: NotRequired[list[str]] - actions: NotRequired[list[str]] - actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] - artifact_attestations: NotRequired[ - ApiOverviewPropDomainsPropArtifactAttestationsType - ] - - -class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): - """ApiOverviewPropDomainsPropActionsInbound""" - - full_domains: NotRequired[list[str]] - wildcard_domains: NotRequired[list[str]] - - -class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): - """ApiOverviewPropDomainsPropArtifactAttestations""" - - trust_domain: NotRequired[str] - services: NotRequired[list[str]] - - -__all__ = ( - "ApiOverviewPropDomainsPropActionsInboundType", - "ApiOverviewPropDomainsPropArtifactAttestationsType", - "ApiOverviewPropDomainsType", - "ApiOverviewPropSshKeyFingerprintsType", - "ApiOverviewType", -) + url: str + accounts_url: str + id: int + number: int + name: str + description: str + monthly_price_in_cents: int + yearly_price_in_cents: int + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + has_free_trial: bool + unit_name: Union[str, None] + state: str + bullets: list[str] + + +__all__ = ("MarketplaceListingPlanType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0057.py b/githubkit/versions/v2022_11_28/types/group_0057.py index 978532cb5..e69ac01bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0057.py +++ b/githubkit/versions/v2022_11_28/types/group_0057.py @@ -9,82 +9,31 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict - -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" - - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - SecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - secret_scanning_ai_detection: NotRequired[ - SecurityAndAnalysisPropSecretScanningAiDetectionType - ] - - -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropCodeSecurityType(TypedDict): - """SecurityAndAnalysisPropCodeSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] +from .group_0058 import ( + MarketplacePurchasePropMarketplacePendingChangeType, + MarketplacePurchasePropMarketplacePurchaseType, +) -class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): - """SecurityAndAnalysisPropDependabotSecurityUpdates +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase - Enable or disable Dependabot security updates for the repository. + Marketplace Purchase """ - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningType(TypedDict): - """SecurityAndAnalysisPropSecretScanning""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): - """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningAiDetection""" - - status: NotRequired[Literal["enabled", "disabled"]] + url: str + type: str + id: int + login: str + organization_billing_email: NotRequired[str] + email: NotRequired[Union[str, None]] + marketplace_pending_change: NotRequired[ + Union[MarketplacePurchasePropMarketplacePendingChangeType, None] + ] + marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType -__all__ = ( - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropCodeSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningAiDetectionType", - "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisType", -) +__all__ = ("MarketplacePurchaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0058.py b/githubkit/versions/v2022_11_28/types/group_0058.py index 2c16a6819..27fcf1ac9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0058.py +++ b/githubkit/versions/v2022_11_28/types/group_0058.py @@ -9,145 +9,36 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0057 import SecurityAndAnalysisType +from .group_0056 import MarketplaceListingPlanType -class MinimalRepositoryType(TypedDict): - """Minimal Repository +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" - Minimal Repository - """ + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: NotRequired[str] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: NotRequired[str] - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: NotRequired[str] - mirror_url: NotRequired[Union[str, None]] - hooks_url: str - svn_url: NotRequired[str] - homepage: NotRequired[Union[str, None]] - language: NotRequired[Union[str, None]] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - has_discussions: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[Union[datetime, None]] - created_at: NotRequired[Union[datetime, None]] - updated_at: NotRequired[Union[datetime, None]] - permissions: NotRequired[MinimalRepositoryPropPermissionsType] - role_name: NotRequired[str] - temp_clone_token: NotRequired[Union[str, None]] - delete_branch_on_merge: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - code_of_conduct: NotRequired[CodeOfConductType] - license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] - forks: NotRequired[int] - open_issues: NotRequired[int] - watchers: NotRequired[int] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] +class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" -class CodeOfConductType(TypedDict): - """Code Of Conduct - - Code Of Conduct - """ - - key: str - name: str - url: str - body: NotRequired[str] - html_url: Union[str, None] - - -class MinimalRepositoryPropPermissionsType(TypedDict): - """MinimalRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] - - -class MinimalRepositoryPropLicenseType(TypedDict): - """MinimalRepositoryPropLicense""" - - key: NotRequired[str] - name: NotRequired[str] - spdx_id: NotRequired[str] - url: NotRequired[str] - node_id: NotRequired[str] + billing_cycle: NotRequired[str] + next_billing_date: NotRequired[Union[str, None]] + is_installed: NotRequired[bool] + unit_count: NotRequired[Union[int, None]] + on_free_trial: NotRequired[bool] + free_trial_ends_on: NotRequired[Union[str, None]] + updated_at: NotRequired[str] + plan: NotRequired[MarketplaceListingPlanType] __all__ = ( - "CodeOfConductType", - "MinimalRepositoryPropLicenseType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0059.py b/githubkit/versions/v2022_11_28/types/group_0059.py index 21d8eb395..d0e33aad3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0059.py +++ b/githubkit/versions/v2022_11_28/types/group_0059.py @@ -9,39 +9,75 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0058 import MinimalRepositoryType +class ApiOverviewType(TypedDict): + """Api Overview -class ThreadType(TypedDict): - """Thread - - Thread + Api Overview """ - id: str - repository: MinimalRepositoryType - subject: ThreadPropSubjectType - reason: str - unread: bool - updated_at: str - last_read_at: Union[str, None] - url: str - subscription_url: str + verifiable_password_authentication: bool + ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] + ssh_keys: NotRequired[list[str]] + hooks: NotRequired[list[str]] + github_enterprise_importer: NotRequired[list[str]] + web: NotRequired[list[str]] + api: NotRequired[list[str]] + git: NotRequired[list[str]] + packages: NotRequired[list[str]] + pages: NotRequired[list[str]] + importer: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_macos: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + dependabot: NotRequired[list[str]] + copilot: NotRequired[list[str]] + domains: NotRequired[ApiOverviewPropDomainsType] + + +class ApiOverviewPropSshKeyFingerprintsType(TypedDict): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: NotRequired[str] + sha256_dsa: NotRequired[str] + sha256_ecdsa: NotRequired[str] + sha256_ed25519: NotRequired[str] + + +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" + + website: NotRequired[list[str]] + codespaces: NotRequired[list[str]] + copilot: NotRequired[list[str]] + packages: NotRequired[list[str]] + actions: NotRequired[list[str]] + actions_inbound: NotRequired[ApiOverviewPropDomainsPropActionsInboundType] + artifact_attestations: NotRequired[ + ApiOverviewPropDomainsPropArtifactAttestationsType + ] + + +class ApiOverviewPropDomainsPropActionsInboundType(TypedDict): + """ApiOverviewPropDomainsPropActionsInbound""" + + full_domains: NotRequired[list[str]] + wildcard_domains: NotRequired[list[str]] -class ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" +class ApiOverviewPropDomainsPropArtifactAttestationsType(TypedDict): + """ApiOverviewPropDomainsPropArtifactAttestations""" - title: str - url: str - latest_comment_url: str - type: str + trust_domain: NotRequired[str] + services: NotRequired[list[str]] __all__ = ( - "ThreadPropSubjectType", - "ThreadType", + "ApiOverviewPropDomainsPropActionsInboundType", + "ApiOverviewPropDomainsPropArtifactAttestationsType", + "ApiOverviewPropDomainsType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0060.py b/githubkit/versions/v2022_11_28/types/group_0060.py index f0966921a..978532cb5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0060.py +++ b/githubkit/versions/v2022_11_28/types/group_0060.py @@ -9,24 +9,82 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ThreadSubscriptionType(TypedDict): - """Thread Subscription +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" - Thread Subscription + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + code_security: NotRequired[SecurityAndAnalysisPropCodeSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_ai_detection: NotRequired[ + SecurityAndAnalysisPropSecretScanningAiDetectionType + ] + + +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropCodeSecurityType(TypedDict): + """SecurityAndAnalysisPropCodeSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, None] - url: str - thread_url: NotRequired[str] - repository_url: NotRequired[str] + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningType(TypedDict): + """SecurityAndAnalysisPropSecretScanning""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningAiDetectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningAiDetection""" + + status: NotRequired[Literal["enabled", "disabled"]] -__all__ = ("ThreadSubscriptionType",) +__all__ = ( + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropCodeSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningAiDetectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0061.py b/githubkit/versions/v2022_11_28/types/group_0061.py index 4b96a4953..0af881666 100644 --- a/githubkit/versions/v2022_11_28/types/group_0061.py +++ b/githubkit/versions/v2022_11_28/types/group_0061.py @@ -9,28 +9,156 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0060 import SecurityAndAnalysisType -class OrganizationSimpleType(TypedDict): - """Organization Simple - A GitHub organization. +class MinimalRepositoryType(TypedDict): + """Minimal Repository + + Minimal Repository """ - login: str id: int node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool url: str - repos_url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str events_url: str - hooks_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[MinimalRepositoryPropCustomPropertiesType] + + +class CodeOfConductType(TypedDict): + """Code Of Conduct + + Code Of Conduct + """ + + key: str + name: str + url: str + body: NotRequired[str] + html_url: Union[str, None] + + +class MinimalRepositoryPropPermissionsType(TypedDict): + """MinimalRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] + + +class MinimalRepositoryPropLicenseType(TypedDict): + """MinimalRepositoryPropLicense""" + + key: NotRequired[str] + name: NotRequired[str] + spdx_id: NotRequired[str] + url: NotRequired[str] + node_id: NotRequired[str] + + +MinimalRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""MinimalRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -__all__ = ("OrganizationSimpleType",) +__all__ = ( + "CodeOfConductType", + "MinimalRepositoryPropCustomPropertiesType", + "MinimalRepositoryPropLicenseType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0062.py b/githubkit/versions/v2022_11_28/types/group_0062.py index 8b794ad2d..d65ecdbf2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0062.py +++ b/githubkit/versions/v2022_11_28/types/group_0062.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0061 import MinimalRepositoryType -class BillingUsageReportType(TypedDict): - """BillingUsageReport""" - usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] +class ThreadType(TypedDict): + """Thread + Thread + """ -class BillingUsageReportPropUsageItemsItemsType(TypedDict): - """BillingUsageReportPropUsageItemsItems""" + id: str + repository: MinimalRepositoryType + subject: ThreadPropSubjectType + reason: str + unread: bool + updated_at: str + last_read_at: Union[str, None] + url: str + subscription_url: str - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - organization_name: str - repository_name: NotRequired[str] + +class ThreadPropSubjectType(TypedDict): + """ThreadPropSubject""" + + title: str + url: str + latest_comment_url: str + type: str __all__ = ( - "BillingUsageReportPropUsageItemsItemsType", - "BillingUsageReportType", + "ThreadPropSubjectType", + "ThreadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0063.py b/githubkit/versions/v2022_11_28/types/group_0063.py index 940a3ae68..f0966921a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0063.py +++ b/githubkit/versions/v2022_11_28/types/group_0063.py @@ -14,83 +14,19 @@ from typing_extensions import NotRequired, TypedDict -class OrganizationFullType(TypedDict): - """Organization Full +class ThreadSubscriptionType(TypedDict): + """Thread Subscription - Organization Full + Thread Subscription """ - login: str - id: int - node_id: str + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[OrganizationFullPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] - deploy_keys_enabled_for_repositories: NotRequired[bool] + thread_url: NotRequired[str] + repository_url: NotRequired[str] -class OrganizationFullPropPlanType(TypedDict): - """OrganizationFullPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] - - -__all__ = ( - "OrganizationFullPropPlanType", - "OrganizationFullType", -) +__all__ = ("ThreadSubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0064.py b/githubkit/versions/v2022_11_28/types/group_0064.py index a41742c81..4b96a4953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0064.py +++ b/githubkit/versions/v2022_11_28/types/group_0064.py @@ -9,14 +9,28 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ActionsCacheUsageOrgEnterpriseType(TypedDict): - """ActionsCacheUsageOrgEnterprise""" +class OrganizationSimpleType(TypedDict): + """Organization Simple - total_active_caches_count: int - total_active_caches_size_in_bytes: int + A GitHub organization. + """ + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] -__all__ = ("ActionsCacheUsageOrgEnterpriseType",) + +__all__ = ("OrganizationSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0065.py b/githubkit/versions/v2022_11_28/types/group_0065.py index a22762330..62a84e2b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0065.py +++ b/githubkit/versions/v2022_11_28/types/group_0065.py @@ -9,19 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0031 import SimpleRepositoryType -class ActionsHostedRunnerMachineSpecType(TypedDict): - """Github-owned VM details. - Provides details of a particular machine spec. +class DependabotRepositoryAccessDetailsType(TypedDict): + """Dependabot Repository Access Details + + Information about repositories that Dependabot is able to access in an + organization """ - id: str - cpu_cores: int - memory_gb: int - storage_gb: int + default_level: NotRequired[Union[None, Literal["public", "internal"]]] + accessible_repositories: NotRequired[list[Union[None, SimpleRepositoryType]]] -__all__ = ("ActionsHostedRunnerMachineSpecType",) +__all__ = ("DependabotRepositoryAccessDetailsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0066.py b/githubkit/versions/v2022_11_28/types/group_0066.py index 6bfdf6c8a..8b794ad2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0066.py +++ b/githubkit/versions/v2022_11_28/types/group_0066.py @@ -9,57 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0065 import ActionsHostedRunnerMachineSpecType +class BillingUsageReportType(TypedDict): + """BillingUsageReport""" -class ActionsHostedRunnerType(TypedDict): - """GitHub-hosted hosted runner + usage_items: NotRequired[list[BillingUsageReportPropUsageItemsItemsType]] - A Github-hosted hosted runner. - """ - id: int - name: str - runner_group_id: NotRequired[int] - image_details: Union[None, ActionsHostedRunnerPoolImageType] - machine_size_details: ActionsHostedRunnerMachineSpecType - status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] - platform: str - maximum_runners: NotRequired[int] - public_ip_enabled: bool - public_ips: NotRequired[list[PublicIpType]] - last_active_on: NotRequired[Union[datetime, None]] +class BillingUsageReportPropUsageItemsItemsType(TypedDict): + """BillingUsageReportPropUsageItemsItems""" - -class ActionsHostedRunnerPoolImageType(TypedDict): - """GitHub-hosted runner image details. - - Provides details of a hosted runner image - """ - - id: str - size_gb: int - display_name: str - source: Literal["github", "partner", "custom"] - - -class PublicIpType(TypedDict): - """Public IP for a GitHub-hosted larger runners. - - Provides details of Public IP for a GitHub-hosted larger runners - """ - - enabled: NotRequired[bool] - prefix: NotRequired[str] - length: NotRequired[int] + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + organization_name: str + repository_name: NotRequired[str] __all__ = ( - "ActionsHostedRunnerPoolImageType", - "ActionsHostedRunnerType", - "PublicIpType", + "BillingUsageReportPropUsageItemsItemsType", + "BillingUsageReportType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0067.py b/githubkit/versions/v2022_11_28/types/group_0067.py index 8840d8ecc..3775053e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0067.py +++ b/githubkit/versions/v2022_11_28/types/group_0067.py @@ -9,21 +9,97 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ActionsHostedRunnerImageType(TypedDict): - """GitHub-hosted runner image details. +class OrganizationFullType(TypedDict): + """Organization Full - Provides details of a hosted runner image + Organization Full """ - id: str - platform: str - size_gb: int - display_name: str - source: Literal["github", "partner", "custom"] + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[OrganizationFullPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + default_repository_branch: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_delete_repositories: NotRequired[bool] + members_can_change_repo_visibility: NotRequired[bool] + members_can_invite_outside_collaborators: NotRequired[bool] + members_can_delete_issues: NotRequired[bool] + display_commenter_full_name_setting_enabled: NotRequired[bool] + readers_can_create_discussions: NotRequired[bool] + members_can_create_teams: NotRequired[bool] + members_can_view_dependency_insights: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] + deploy_keys_enabled_for_repositories: NotRequired[bool] -__all__ = ("ActionsHostedRunnerImageType",) +class OrganizationFullPropPlanType(TypedDict): + """OrganizationFullPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] + + +__all__ = ( + "OrganizationFullPropPlanType", + "OrganizationFullType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0068.py b/githubkit/versions/v2022_11_28/types/group_0068.py index 7fbef21bb..a41742c81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0068.py +++ b/githubkit/versions/v2022_11_28/types/group_0068.py @@ -12,23 +12,11 @@ from typing_extensions import TypedDict -class ActionsHostedRunnerLimitsType(TypedDict): - """ActionsHostedRunnerLimits""" +class ActionsCacheUsageOrgEnterpriseType(TypedDict): + """ActionsCacheUsageOrgEnterprise""" - public_ips: ActionsHostedRunnerLimitsPropPublicIpsType + total_active_caches_count: int + total_active_caches_size_in_bytes: int -class ActionsHostedRunnerLimitsPropPublicIpsType(TypedDict): - """Static public IP Limits for GitHub-hosted Hosted Runners. - - Provides details of static public IP limits for GitHub-hosted Hosted Runners - """ - - maximum: int - current_usage: int - - -__all__ = ( - "ActionsHostedRunnerLimitsPropPublicIpsType", - "ActionsHostedRunnerLimitsType", -) +__all__ = ("ActionsCacheUsageOrgEnterpriseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0069.py b/githubkit/versions/v2022_11_28/types/group_0069.py index f8ed08e06..a22762330 100644 --- a/githubkit/versions/v2022_11_28/types/group_0069.py +++ b/githubkit/versions/v2022_11_28/types/group_0069.py @@ -12,13 +12,16 @@ from typing_extensions import TypedDict -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization +class ActionsHostedRunnerMachineSpecType(TypedDict): + """Github-owned VM details. - Actions OIDC Subject customization + Provides details of a particular machine spec. """ - include_claim_keys: list[str] + id: str + cpu_cores: int + memory_gb: int + storage_gb: int -__all__ = ("OidcCustomSubType",) +__all__ = ("ActionsHostedRunnerMachineSpecType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0070.py b/githubkit/versions/v2022_11_28/types/group_0070.py index f02f87f3d..45f884773 100644 --- a/githubkit/versions/v2022_11_28/types/group_0070.py +++ b/githubkit/versions/v2022_11_28/types/group_0070.py @@ -9,17 +9,57 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0069 import ActionsHostedRunnerMachineSpecType -class ActionsOrganizationPermissionsType(TypedDict): - """ActionsOrganizationPermissions""" - enabled_repositories: Literal["all", "none", "selected"] - selected_repositories_url: NotRequired[str] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] +class ActionsHostedRunnerType(TypedDict): + """GitHub-hosted hosted runner + A Github-hosted hosted runner. + """ -__all__ = ("ActionsOrganizationPermissionsType",) + id: int + name: str + runner_group_id: NotRequired[int] + image_details: Union[None, ActionsHostedRunnerPoolImageType] + machine_size_details: ActionsHostedRunnerMachineSpecType + status: Literal["Ready", "Provisioning", "Shutdown", "Deleting", "Stuck"] + platform: str + maximum_runners: NotRequired[int] + public_ip_enabled: bool + public_ips: NotRequired[list[PublicIpType]] + last_active_on: NotRequired[Union[datetime, None]] + + +class ActionsHostedRunnerPoolImageType(TypedDict): + """GitHub-hosted runner image details. + + Provides details of a hosted runner image + """ + + id: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] + + +class PublicIpType(TypedDict): + """Public IP for a GitHub-hosted larger runners. + + Provides details of Public IP for a GitHub-hosted larger runners + """ + + enabled: NotRequired[bool] + prefix: NotRequired[str] + length: NotRequired[int] + + +__all__ = ( + "ActionsHostedRunnerPoolImageType", + "ActionsHostedRunnerType", + "PublicIpType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0071.py b/githubkit/versions/v2022_11_28/types/group_0071.py index 7abe76199..8840d8ecc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0071.py +++ b/githubkit/versions/v2022_11_28/types/group_0071.py @@ -9,15 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class SelectedActionsType(TypedDict): - """SelectedActions""" +class ActionsHostedRunnerImageType(TypedDict): + """GitHub-hosted runner image details. - github_owned_allowed: NotRequired[bool] - verified_allowed: NotRequired[bool] - patterns_allowed: NotRequired[list[str]] + Provides details of a hosted runner image + """ + id: str + platform: str + size_gb: int + display_name: str + source: Literal["github", "partner", "custom"] -__all__ = ("SelectedActionsType",) + +__all__ = ("ActionsHostedRunnerImageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0072.py b/githubkit/versions/v2022_11_28/types/group_0072.py index 87512f917..7fbef21bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0072.py +++ b/githubkit/versions/v2022_11_28/types/group_0072.py @@ -9,15 +9,26 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ActionsGetDefaultWorkflowPermissionsType(TypedDict): - """ActionsGetDefaultWorkflowPermissions""" +class ActionsHostedRunnerLimitsType(TypedDict): + """ActionsHostedRunnerLimits""" - default_workflow_permissions: Literal["read", "write"] - can_approve_pull_request_reviews: bool + public_ips: ActionsHostedRunnerLimitsPropPublicIpsType -__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) +class ActionsHostedRunnerLimitsPropPublicIpsType(TypedDict): + """Static public IP Limits for GitHub-hosted Hosted Runners. + + Provides details of static public IP limits for GitHub-hosted Hosted Runners + """ + + maximum: int + current_usage: int + + +__all__ = ( + "ActionsHostedRunnerLimitsPropPublicIpsType", + "ActionsHostedRunnerLimitsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0073.py b/githubkit/versions/v2022_11_28/types/group_0073.py index 0e0c798a4..f8ed08e06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0073.py +++ b/githubkit/versions/v2022_11_28/types/group_0073.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsSetDefaultWorkflowPermissionsType(TypedDict): - """ActionsSetDefaultWorkflowPermissions""" +class OidcCustomSubType(TypedDict): + """Actions OIDC Subject customization - default_workflow_permissions: NotRequired[Literal["read", "write"]] - can_approve_pull_request_reviews: NotRequired[bool] + Actions OIDC Subject customization + """ + include_claim_keys: list[str] -__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) + +__all__ = ("OidcCustomSubType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0074.py b/githubkit/versions/v2022_11_28/types/group_0074.py index aab282720..f02f87f3d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0074.py +++ b/githubkit/versions/v2022_11_28/types/group_0074.py @@ -13,15 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RunnerLabelType(TypedDict): - """Self hosted runner label +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" - A label for a self hosted runner - """ + enabled_repositories: Literal["all", "none", "selected"] + selected_repositories_url: NotRequired[str] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - id: NotRequired[int] - name: str - type: NotRequired[Literal["read-only", "custom"]] - -__all__ = ("RunnerLabelType",) +__all__ = ("ActionsOrganizationPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0075.py b/githubkit/versions/v2022_11_28/types/group_0075.py index 6c39ac0f3..7abe76199 100644 --- a/githubkit/versions/v2022_11_28/types/group_0075.py +++ b/githubkit/versions/v2022_11_28/types/group_0075.py @@ -11,23 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0074 import RunnerLabelType +class SelectedActionsType(TypedDict): + """SelectedActions""" -class RunnerType(TypedDict): - """Self hosted runners + github_owned_allowed: NotRequired[bool] + verified_allowed: NotRequired[bool] + patterns_allowed: NotRequired[list[str]] - A self hosted runner - """ - id: int - runner_group_id: NotRequired[int] - name: str - os: str - status: str - busy: bool - labels: list[RunnerLabelType] - ephemeral: NotRequired[bool] - - -__all__ = ("RunnerType",) +__all__ = ("SelectedActionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0076.py b/githubkit/versions/v2022_11_28/types/group_0076.py index c8ef6e908..87512f917 100644 --- a/githubkit/versions/v2022_11_28/types/group_0076.py +++ b/githubkit/versions/v2022_11_28/types/group_0076.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class RunnerApplicationType(TypedDict): - """Runner Application +class ActionsGetDefaultWorkflowPermissionsType(TypedDict): + """ActionsGetDefaultWorkflowPermissions""" - Runner Application - """ + default_workflow_permissions: Literal["read", "write"] + can_approve_pull_request_reviews: bool - os: str - architecture: str - download_url: str - filename: str - temp_download_token: NotRequired[str] - sha256_checksum: NotRequired[str] - -__all__ = ("RunnerApplicationType",) +__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0077.py b/githubkit/versions/v2022_11_28/types/group_0077.py index b1d20d9db..0e0c798a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0077.py +++ b/githubkit/versions/v2022_11_28/types/group_0077.py @@ -9,36 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +class ActionsSetDefaultWorkflowPermissionsType(TypedDict): + """ActionsSetDefaultWorkflowPermissions""" -class AuthenticationTokenType(TypedDict): - """Authentication Token + default_workflow_permissions: NotRequired[Literal["read", "write"]] + can_approve_pull_request_reviews: NotRequired[bool] - Authentication Token - """ - token: str - expires_at: datetime - permissions: NotRequired[AuthenticationTokenPropPermissionsType] - repositories: NotRequired[list[RepositoryType]] - single_file: NotRequired[Union[str, None]] - repository_selection: NotRequired[Literal["all", "selected"]] - - -class AuthenticationTokenPropPermissionsType(TypedDict): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -__all__ = ( - "AuthenticationTokenPropPermissionsType", - "AuthenticationTokenType", -) +__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0078.py b/githubkit/versions/v2022_11_28/types/group_0078.py index f67033a97..aab282720 100644 --- a/githubkit/versions/v2022_11_28/types/group_0078.py +++ b/githubkit/versions/v2022_11_28/types/group_0078.py @@ -9,21 +9,19 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ActionsPublicKeyType(TypedDict): - """ActionsPublicKey +class RunnerLabelType(TypedDict): + """Self hosted runner label - The public key used for setting Actions Secrets. + A label for a self hosted runner """ - key_id: str - key: str id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + name: str + type: NotRequired[Literal["read-only", "custom"]] -__all__ = ("ActionsPublicKeyType",) +__all__ = ("RunnerLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0079.py b/githubkit/versions/v2022_11_28/types/group_0079.py index 9755ad7ef..0f9ffb206 100644 --- a/githubkit/versions/v2022_11_28/types/group_0079.py +++ b/githubkit/versions/v2022_11_28/types/group_0079.py @@ -9,29 +9,25 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0078 import RunnerLabelType -class TeamSimpleType(TypedDict): - """Team Simple - Groups of organization members that gives permissions on specified repositories. +class RunnerType(TypedDict): + """Self hosted runners + + A self hosted runner """ id: int - node_id: str - url: str - members_url: str + runner_group_id: NotRequired[int] name: str - description: Union[str, None] - permission: str - privacy: NotRequired[str] - notification_setting: NotRequired[str] - html_url: str - repositories_url: str - slug: str - ldap_dn: NotRequired[str] + os: str + status: str + busy: bool + labels: list[RunnerLabelType] + ephemeral: NotRequired[bool] -__all__ = ("TeamSimpleType",) +__all__ = ("RunnerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0080.py b/githubkit/versions/v2022_11_28/types/group_0080.py index 1ef9aa131..c8ef6e908 100644 --- a/githubkit/versions/v2022_11_28/types/group_0080.py +++ b/githubkit/versions/v2022_11_28/types/group_0080.py @@ -9,45 +9,21 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0079 import TeamSimpleType +class RunnerApplicationType(TypedDict): + """Runner Application -class TeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + Runner Application """ - id: int - node_id: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamPropPermissionsType(TypedDict): - """TeamPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamPropPermissionsType", - "TeamType", -) + os: str + architecture: str + download_url: str + filename: str + temp_download_token: NotRequired[str] + sha256_checksum: NotRequired[str] + + +__all__ = ("RunnerApplicationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0081.py b/githubkit/versions/v2022_11_28/types/group_0081.py index ea757ac75..b1d20d9db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0081.py +++ b/githubkit/versions/v2022_11_28/types/group_0081.py @@ -13,40 +13,32 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0080 import TeamType +from .group_0020 import RepositoryType -class CampaignSummaryType(TypedDict): - """Campaign summary +class AuthenticationTokenType(TypedDict): + """Authentication Token - The campaign metadata and alert stats. + Authentication Token """ - number: int - created_at: datetime - updated_at: datetime - name: NotRequired[str] - description: str - managers: list[SimpleUserType] - team_managers: NotRequired[list[TeamType]] - published_at: NotRequired[datetime] - ends_at: datetime - closed_at: NotRequired[Union[datetime, None]] - state: Literal["open", "closed"] - contact_link: Union[str, None] - alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] + token: str + expires_at: datetime + permissions: NotRequired[AuthenticationTokenPropPermissionsType] + repositories: NotRequired[list[RepositoryType]] + single_file: NotRequired[Union[str, None]] + repository_selection: NotRequired[Literal["all", "selected"]] -class CampaignSummaryPropAlertStatsType(TypedDict): - """CampaignSummaryPropAlertStats""" +class AuthenticationTokenPropPermissionsType(TypedDict): + """AuthenticationTokenPropPermissions - open_count: int - closed_count: int - in_progress_count: int + Examples: + {'issues': 'read', 'deployments': 'write'} + """ __all__ = ( - "CampaignSummaryPropAlertStatsType", - "CampaignSummaryType", + "AuthenticationTokenPropPermissionsType", + "AuthenticationTokenType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0082.py b/githubkit/versions/v2022_11_28/types/group_0082.py index 3319f338b..f67033a97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0082.py +++ b/githubkit/versions/v2022_11_28/types/group_0082.py @@ -9,24 +9,21 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningAlertRuleSummaryType(TypedDict): - """CodeScanningAlertRuleSummary""" +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] + The public key used for setting Actions Secrets. + """ + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ("CodeScanningAlertRuleSummaryType",) + +__all__ = ("ActionsPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0083.py b/githubkit/versions/v2022_11_28/types/group_0083.py index 33e4a93fd..9755ad7ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0083.py +++ b/githubkit/versions/v2022_11_28/types/group_0083.py @@ -13,12 +13,25 @@ from typing_extensions import NotRequired, TypedDict -class CodeScanningAnalysisToolType(TypedDict): - """CodeScanningAnalysisTool""" - - name: NotRequired[str] - version: NotRequired[Union[str, None]] - guid: NotRequired[Union[str, None]] - - -__all__ = ("CodeScanningAnalysisToolType",) +class TeamSimpleType(TypedDict): + """Team Simple + + Groups of organization members that gives permissions on specified repositories. + """ + + id: int + node_id: str + url: str + members_url: str + name: str + description: Union[str, None] + permission: str + privacy: NotRequired[str] + notification_setting: NotRequired[str] + html_url: str + repositories_url: str + slug: str + ldap_dn: NotRequired[str] + + +__all__ = ("TeamSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0084.py b/githubkit/versions/v2022_11_28/types/group_0084.py index d84b22102..dc6ea0a1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0084.py +++ b/githubkit/versions/v2022_11_28/types/group_0084.py @@ -9,52 +9,45 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0083 import TeamSimpleType -class CodeScanningAlertInstanceType(TypedDict): - """CodeScanningAlertInstance""" - ref: NotRequired[str] - analysis_key: NotRequired[str] - environment: NotRequired[str] - category: NotRequired[str] - state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] - commit_sha: NotRequired[str] - message: NotRequired[CodeScanningAlertInstancePropMessageType] - location: NotRequired[CodeScanningAlertLocationType] - html_url: NotRequired[str] - classifications: NotRequired[ - list[ - Union[ - None, Literal["source", "generated", "test", "library", "documentation"] - ] - ] - ] +class TeamType(TypedDict): + """Team - -class CodeScanningAlertLocationType(TypedDict): - """CodeScanningAlertLocation - - Describe a region within a file for the alert. + Groups of organization members that gives permissions on specified repositories. """ - path: NotRequired[str] - start_line: NotRequired[int] - end_line: NotRequired[int] - start_column: NotRequired[int] - end_column: NotRequired[int] + id: int + node_id: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamPropPermissionsType] + url: str + html_url: str + members_url: str + repositories_url: str + parent: Union[None, TeamSimpleType] -class CodeScanningAlertInstancePropMessageType(TypedDict): - """CodeScanningAlertInstancePropMessage""" +class TeamPropPermissionsType(TypedDict): + """TeamPropPermissions""" - text: NotRequired[str] + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "CodeScanningAlertInstancePropMessageType", - "CodeScanningAlertInstanceType", - "CodeScanningAlertLocationType", + "TeamPropPermissionsType", + "TeamType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0085.py b/githubkit/versions/v2022_11_28/types/group_0085.py index ea574a983..b0289cb86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0085.py +++ b/githubkit/versions/v2022_11_28/types/group_0085.py @@ -14,34 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0031 import SimpleRepositoryType -from .group_0082 import CodeScanningAlertRuleSummaryType -from .group_0083 import CodeScanningAnalysisToolType -from .group_0084 import CodeScanningAlertInstanceType +from .group_0084 import TeamType -class CodeScanningOrganizationAlertItemsType(TypedDict): - """CodeScanningOrganizationAlertItems""" +class CampaignSummaryType(TypedDict): + """Campaign summary + + The campaign metadata and alert stats. + """ number: int created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - repository: SimpleRepositoryType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] - - -__all__ = ("CodeScanningOrganizationAlertItemsType",) + updated_at: datetime + name: NotRequired[str] + description: str + managers: list[SimpleUserType] + team_managers: NotRequired[list[TeamType]] + published_at: NotRequired[datetime] + ends_at: datetime + closed_at: NotRequired[Union[datetime, None]] + state: Literal["open", "closed"] + contact_link: Union[str, None] + alert_stats: NotRequired[CampaignSummaryPropAlertStatsType] + + +class CampaignSummaryPropAlertStatsType(TypedDict): + """CampaignSummaryPropAlertStats""" + + open_count: int + closed_count: int + in_progress_count: int + + +__all__ = ( + "CampaignSummaryPropAlertStatsType", + "CampaignSummaryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0086.py b/githubkit/versions/v2022_11_28/types/group_0086.py index febb2d4f6..3319f338b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0086.py +++ b/githubkit/versions/v2022_11_28/types/group_0086.py @@ -10,22 +10,23 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodespaceMachineType(TypedDict): - """Codespace machine +class CodeScanningAlertRuleSummaryType(TypedDict): + """CodeScanningAlertRuleSummary""" - A description of the machine powering a codespace. - """ + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] - name: str - display_name: str - operating_system: str - storage_in_bytes: int - memory_in_bytes: int - cpus: int - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] - -__all__ = ("CodespaceMachineType",) +__all__ = ("CodeScanningAlertRuleSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0087.py b/githubkit/versions/v2022_11_28/types/group_0087.py index e60b2d4a5..33e4a93fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0087.py +++ b/githubkit/versions/v2022_11_28/types/group_0087.py @@ -9,94 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0058 import MinimalRepositoryType -from .group_0086 import CodespaceMachineType +class CodeScanningAnalysisToolType(TypedDict): + """CodeScanningAnalysisTool""" -class CodespaceType(TypedDict): - """Codespace + name: NotRequired[str] + version: NotRequired[Union[str, None]] + guid: NotRequired[Union[str, None]] - A codespace. - """ - id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: MinimalRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespacePropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - last_known_stop_notice: NotRequired[Union[str, None]] - - -class CodespacePropGitStatusType(TypedDict): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespacePropRuntimeConstraintsType(TypedDict): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] - - -__all__ = ( - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", - "CodespaceType", -) +__all__ = ("CodeScanningAnalysisToolType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0088.py b/githubkit/versions/v2022_11_28/types/group_0088.py index 3f68d2a84..d84b22102 100644 --- a/githubkit/versions/v2022_11_28/types/group_0088.py +++ b/githubkit/versions/v2022_11_28/types/group_0088.py @@ -9,21 +9,52 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey +class CodeScanningAlertInstanceType(TypedDict): + """CodeScanningAlertInstance""" - The public key used for setting Codespaces secrets. + ref: NotRequired[str] + analysis_key: NotRequired[str] + environment: NotRequired[str] + category: NotRequired[str] + state: NotRequired[Union[None, Literal["open", "dismissed", "fixed"]]] + commit_sha: NotRequired[str] + message: NotRequired[CodeScanningAlertInstancePropMessageType] + location: NotRequired[CodeScanningAlertLocationType] + html_url: NotRequired[str] + classifications: NotRequired[ + list[ + Union[ + None, Literal["source", "generated", "test", "library", "documentation"] + ] + ] + ] + + +class CodeScanningAlertLocationType(TypedDict): + """CodeScanningAlertLocation + + Describe a region within a file for the alert. """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + path: NotRequired[str] + start_line: NotRequired[int] + end_line: NotRequired[int] + start_column: NotRequired[int] + end_column: NotRequired[int] + + +class CodeScanningAlertInstancePropMessageType(TypedDict): + """CodeScanningAlertInstancePropMessage""" + + text: NotRequired[str] -__all__ = ("CodespacesPublicKeyType",) +__all__ = ( + "CodeScanningAlertInstancePropMessageType", + "CodeScanningAlertInstanceType", + "CodeScanningAlertLocationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0089.py b/githubkit/versions/v2022_11_28/types/group_0089.py index 3446a1559..85032e51f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0089.py +++ b/githubkit/versions/v2022_11_28/types/group_0089.py @@ -9,43 +9,39 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Organization Details - - Information about the seat breakdown and policies set for an organization with a - Copilot Business or Copilot Enterprise subscription. - """ - - seat_breakdown: CopilotOrganizationSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" +from .group_0003 import SimpleUserType +from .group_0031 import SimpleRepositoryType +from .group_0086 import CodeScanningAlertRuleSummaryType +from .group_0087 import CodeScanningAnalysisToolType +from .group_0088 import CodeScanningAlertInstanceType + + +class CodeScanningOrganizationAlertItemsType(TypedDict): + """CodeScanningOrganizationAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - plan_type: NotRequired[Literal["business", "enterprise"]] - - -class CopilotOrganizationSeatBreakdownType(TypedDict): - """Copilot Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: NotRequired[int] - added_this_cycle: NotRequired[int] - pending_cancellation: NotRequired[int] - pending_invitation: NotRequired[int] - active_this_cycle: NotRequired[int] - inactive_this_cycle: NotRequired[int] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + repository: SimpleRepositoryType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] -__all__ = ( - "CopilotOrganizationDetailsType", - "CopilotOrganizationSeatBreakdownType", -) +__all__ = ("CodeScanningOrganizationAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0090.py b/githubkit/versions/v2022_11_28/types/group_0090.py index 8fc6c9479..febb2d4f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0090.py +++ b/githubkit/versions/v2022_11_28/types/group_0090.py @@ -9,61 +9,23 @@ from __future__ import annotations -from datetime import date, datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0061 import OrganizationSimpleType -from .group_0080 import TeamType +class CodespaceMachineType(TypedDict): + """Codespace machine -class CopilotSeatDetailsType(TypedDict): - """Copilot Business Seat Detail - - Information about a Copilot Business seat assignment for a user, team, or - organization. + A description of the machine powering a codespace. """ - assignee: NotRequired[Union[None, SimpleUserType]] - organization: NotRequired[Union[None, OrganizationSimpleType]] - assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] - pending_cancellation_date: NotRequired[Union[date, None]] - last_activity_at: NotRequired[Union[datetime, None]] - last_activity_editor: NotRequired[Union[str, None]] - created_at: datetime - updated_at: NotRequired[datetime] - plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] - - -class EnterpriseTeamType(TypedDict): - """Enterprise Team - - Group of enterprise owners and/or members - """ - - id: int name: str - slug: str - url: str - sync_to_organizations: str - group_id: NotRequired[Union[str, None]] - group_name: NotRequired[Union[str, None]] - html_url: str - members_url: str - created_at: datetime - updated_at: datetime - - -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: NotRequired[int] - seats: NotRequired[list[CopilotSeatDetailsType]] + display_name: str + operating_system: str + storage_in_bytes: int + memory_in_bytes: int + cpus: int + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] -__all__ = ( - "CopilotSeatDetailsType", - "EnterpriseTeamType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", -) +__all__ = ("CodespaceMachineType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0091.py b/githubkit/versions/v2022_11_28/types/group_0091.py index c28ab10cb..5295464cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0091.py +++ b/githubkit/versions/v2022_11_28/types/group_0091.py @@ -9,192 +9,94 @@ from __future__ import annotations -from datetime import date -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0061 import MinimalRepositoryType +from .group_0090 import CodespaceMachineType -class CopilotUsageMetricsDayType(TypedDict): - """Copilot Usage Metrics - Copilot usage metrics for a given day. - """ - - date: date - total_active_users: NotRequired[int] - total_engaged_users: NotRequired[int] - copilot_ide_code_completions: NotRequired[ - Union[CopilotIdeCodeCompletionsType, None] - ] - copilot_ide_chat: NotRequired[Union[CopilotIdeChatType, None]] - copilot_dotcom_chat: NotRequired[Union[CopilotDotcomChatType, None]] - copilot_dotcom_pull_requests: NotRequired[ - Union[CopilotDotcomPullRequestsType, None] - ] - - -class CopilotDotcomChatType(TypedDict): - """CopilotDotcomChat - - Usage metrics for Copilot Chat in GitHub.com - """ - - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotDotcomChatPropModelsItemsType]] - - -class CopilotDotcomChatPropModelsItemsType(TypedDict): - """CopilotDotcomChatPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - - -class CopilotIdeChatType(TypedDict): - """CopilotIdeChat - - Usage metrics for Copilot Chat in the IDE. - """ - - total_engaged_users: NotRequired[int] - editors: NotRequired[list[CopilotIdeChatPropEditorsItemsType]] - - -class CopilotIdeChatPropEditorsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItems - - Copilot Chat metrics, for active editors. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[list[CopilotIdeChatPropEditorsItemsPropModelsItemsType]] - - -class CopilotIdeChatPropEditorsItemsPropModelsItemsType(TypedDict): - """CopilotIdeChatPropEditorsItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - total_chats: NotRequired[int] - total_chat_insertion_events: NotRequired[int] - total_chat_copy_events: NotRequired[int] - - -class CopilotDotcomPullRequestsType(TypedDict): - """CopilotDotcomPullRequests +class CodespaceType(TypedDict): + """Codespace - Usage metrics for Copilot for pull requests. + A codespace. """ - total_engaged_users: NotRequired[int] - repositories: NotRequired[list[CopilotDotcomPullRequestsPropRepositoriesItemsType]] - - -class CopilotDotcomPullRequestsPropRepositoriesItemsType(TypedDict): - """CopilotDotcomPullRequestsPropRepositoriesItems""" - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[ - list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType] + id: int + name: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: MinimalRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] + created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", ] - - -class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType(TypedDict): - """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_pr_summaries_created: NotRequired[int] - total_engaged_users: NotRequired[int] - - -class CopilotIdeCodeCompletionsType(TypedDict): - """CopilotIdeCodeCompletions - - Usage metrics for Copilot editor code completions in the IDE. - """ - - total_engaged_users: NotRequired[int] - languages: NotRequired[list[CopilotIdeCodeCompletionsPropLanguagesItemsType]] - editors: NotRequired[list[CopilotIdeCodeCompletionsPropEditorsItemsType]] - - -class CopilotIdeCodeCompletionsPropLanguagesItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. + url: str + git_status: CodespacePropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + last_known_stop_notice: NotRequired[Union[str, None]] + + +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus + + Details about the codespace's git repository. """ - name: NotRequired[str] - total_engaged_users: NotRequired[int] - - -class CopilotIdeCodeCompletionsPropEditorsItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropEditorsItems - - Copilot code completion metrics for active editors. - """ - - name: NotRequired[str] - total_engaged_users: NotRequired[int] - models: NotRequired[ - list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType] - ] + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType(TypedDict): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" - - name: NotRequired[str] - is_custom_model: NotRequired[bool] - custom_model_training_date: NotRequired[Union[str, None]] - total_engaged_users: NotRequired[int] - languages: NotRequired[ - list[ - CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType - ] - ] - - -class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( - TypedDict -): - """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems - - Usage metrics for a given language for the given editor for Copilot code - completions. - """ +class CodespacePropRuntimeConstraintsType(TypedDict): + """CodespacePropRuntimeConstraints""" - name: NotRequired[str] - total_engaged_users: NotRequired[int] - total_code_suggestions: NotRequired[int] - total_code_acceptances: NotRequired[int] - total_code_lines_suggested: NotRequired[int] - total_code_lines_accepted: NotRequired[int] + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] __all__ = ( - "CopilotDotcomChatPropModelsItemsType", - "CopilotDotcomChatType", - "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", - "CopilotDotcomPullRequestsPropRepositoriesItemsType", - "CopilotDotcomPullRequestsType", - "CopilotIdeChatPropEditorsItemsPropModelsItemsType", - "CopilotIdeChatPropEditorsItemsType", - "CopilotIdeChatType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", - "CopilotIdeCodeCompletionsPropEditorsItemsType", - "CopilotIdeCodeCompletionsPropLanguagesItemsType", - "CopilotIdeCodeCompletionsType", - "CopilotUsageMetricsDayType", + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", + "CodespaceType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0092.py b/githubkit/versions/v2022_11_28/types/group_0092.py index fb3981a7a..3f68d2a84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0092.py +++ b/githubkit/versions/v2022_11_28/types/group_0092.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class DependabotPublicKeyType(TypedDict): - """DependabotPublicKey +class CodespacesPublicKeyType(TypedDict): + """CodespacesPublicKey - The public key used for setting Dependabot Secrets. + The public key used for setting Codespaces secrets. """ key_id: str key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ("DependabotPublicKeyType",) +__all__ = ("CodespacesPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0093.py b/githubkit/versions/v2022_11_28/types/group_0093.py index 66cfbeee5..3446a1559 100644 --- a/githubkit/versions/v2022_11_28/types/group_0093.py +++ b/githubkit/versions/v2022_11_28/types/group_0093.py @@ -9,31 +9,43 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0058 import MinimalRepositoryType +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Organization Details -class PackageType(TypedDict): - """Package + Information about the seat breakdown and policies set for an organization with a + Copilot Business or Copilot Enterprise subscription. + """ + + seat_breakdown: CopilotOrganizationSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] + plan_type: NotRequired[Literal["business", "enterprise"]] + + +class CopilotOrganizationSeatBreakdownType(TypedDict): + """Copilot Seat Breakdown - A software package + The breakdown of Copilot Business seats for the organization. """ - id: int - name: str - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - url: str - html_url: str - version_count: int - visibility: Literal["private", "public"] - owner: NotRequired[Union[None, SimpleUserType]] - repository: NotRequired[Union[None, MinimalRepositoryType]] - created_at: datetime - updated_at: datetime + total: NotRequired[int] + added_this_cycle: NotRequired[int] + pending_cancellation: NotRequired[int] + pending_invitation: NotRequired[int] + active_this_cycle: NotRequired[int] + inactive_this_cycle: NotRequired[int] -__all__ = ("PackageType",) +__all__ = ( + "CopilotOrganizationDetailsType", + "CopilotOrganizationSeatBreakdownType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0094.py b/githubkit/versions/v2022_11_28/types/group_0094.py index 23c54a38b..55379c558 100644 --- a/githubkit/versions/v2022_11_28/types/group_0094.py +++ b/githubkit/versions/v2022_11_28/types/group_0094.py @@ -9,30 +9,63 @@ from __future__ import annotations -from typing import Union +from datetime import date, datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0064 import OrganizationSimpleType +from .group_0084 import TeamType -class OrganizationInvitationType(TypedDict): - """Organization Invitation +class CopilotSeatDetailsType(TypedDict): + """Copilot Business Seat Detail - Organization Invitation + Information about a Copilot Business seat assignment for a user, team, or + organization. + """ + + assignee: NotRequired[Union[None, SimpleUserType]] + organization: NotRequired[Union[None, OrganizationSimpleType]] + assigning_team: NotRequired[Union[TeamType, EnterpriseTeamType, None]] + pending_cancellation_date: NotRequired[Union[date, None]] + last_activity_at: NotRequired[Union[datetime, None]] + last_activity_editor: NotRequired[Union[str, None]] + created_at: datetime + updated_at: NotRequired[datetime] + plan_type: NotRequired[Literal["business", "enterprise", "unknown"]] + + +class EnterpriseTeamType(TypedDict): + """Enterprise Team + + Group of enterprise owners and/or members """ id: int - login: Union[str, None] - email: Union[str, None] - role: str - created_at: str - failed_at: NotRequired[Union[str, None]] - failed_reason: NotRequired[Union[str, None]] - inviter: SimpleUserType - team_count: int - node_id: str - invitation_teams_url: str - invitation_source: NotRequired[str] - - -__all__ = ("OrganizationInvitationType",) + name: str + description: NotRequired[str] + slug: str + url: str + sync_to_organizations: NotRequired[str] + organization_selection_type: NotRequired[str] + group_id: NotRequired[Union[str, None]] + group_name: NotRequired[Union[str, None]] + html_url: str + members_url: str + created_at: datetime + updated_at: datetime + + +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + + total_seats: NotRequired[int] + seats: NotRequired[list[CopilotSeatDetailsType]] + + +__all__ = ( + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrgsOrgCopilotBillingSeatsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0095.py b/githubkit/versions/v2022_11_28/types/group_0095.py index dd28f2299..c28ab10cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0095.py +++ b/githubkit/versions/v2022_11_28/types/group_0095.py @@ -9,39 +9,192 @@ from __future__ import annotations -from datetime import datetime +from datetime import date +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgHookType(TypedDict): - """Org Hook +class CopilotUsageMetricsDayType(TypedDict): + """Copilot Usage Metrics - Org Hook + Copilot usage metrics for a given day. """ - id: int - url: str - ping_url: str - deliveries_url: NotRequired[str] - name: str - events: list[str] - active: bool - config: OrgHookPropConfigType - updated_at: datetime - created_at: datetime - type: str + date: date + total_active_users: NotRequired[int] + total_engaged_users: NotRequired[int] + copilot_ide_code_completions: NotRequired[ + Union[CopilotIdeCodeCompletionsType, None] + ] + copilot_ide_chat: NotRequired[Union[CopilotIdeChatType, None]] + copilot_dotcom_chat: NotRequired[Union[CopilotDotcomChatType, None]] + copilot_dotcom_pull_requests: NotRequired[ + Union[CopilotDotcomPullRequestsType, None] + ] -class OrgHookPropConfigType(TypedDict): - """OrgHookPropConfig""" +class CopilotDotcomChatType(TypedDict): + """CopilotDotcomChat - url: NotRequired[str] - insecure_ssl: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] + Usage metrics for Copilot Chat in GitHub.com + """ + + total_engaged_users: NotRequired[int] + models: NotRequired[list[CopilotDotcomChatPropModelsItemsType]] + + +class CopilotDotcomChatPropModelsItemsType(TypedDict): + """CopilotDotcomChatPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + total_chats: NotRequired[int] + + +class CopilotIdeChatType(TypedDict): + """CopilotIdeChat + + Usage metrics for Copilot Chat in the IDE. + """ + + total_engaged_users: NotRequired[int] + editors: NotRequired[list[CopilotIdeChatPropEditorsItemsType]] + + +class CopilotIdeChatPropEditorsItemsType(TypedDict): + """CopilotIdeChatPropEditorsItems + + Copilot Chat metrics, for active editors. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[list[CopilotIdeChatPropEditorsItemsPropModelsItemsType]] + + +class CopilotIdeChatPropEditorsItemsPropModelsItemsType(TypedDict): + """CopilotIdeChatPropEditorsItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + total_chats: NotRequired[int] + total_chat_insertion_events: NotRequired[int] + total_chat_copy_events: NotRequired[int] + + +class CopilotDotcomPullRequestsType(TypedDict): + """CopilotDotcomPullRequests + + Usage metrics for Copilot for pull requests. + """ + + total_engaged_users: NotRequired[int] + repositories: NotRequired[list[CopilotDotcomPullRequestsPropRepositoriesItemsType]] + + +class CopilotDotcomPullRequestsPropRepositoriesItemsType(TypedDict): + """CopilotDotcomPullRequestsPropRepositoriesItems""" + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[ + list[CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType] + ] + + +class CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType(TypedDict): + """CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_pr_summaries_created: NotRequired[int] + total_engaged_users: NotRequired[int] + + +class CopilotIdeCodeCompletionsType(TypedDict): + """CopilotIdeCodeCompletions + + Usage metrics for Copilot editor code completions in the IDE. + """ + + total_engaged_users: NotRequired[int] + languages: NotRequired[list[CopilotIdeCodeCompletionsPropLanguagesItemsType]] + editors: NotRequired[list[CopilotIdeCodeCompletionsPropEditorsItemsType]] + + +class CopilotIdeCodeCompletionsPropLanguagesItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + + +class CopilotIdeCodeCompletionsPropEditorsItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropEditorsItems + + Copilot code completion metrics for active editors. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + models: NotRequired[ + list[CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType] + ] + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType(TypedDict): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItems""" + + name: NotRequired[str] + is_custom_model: NotRequired[bool] + custom_model_training_date: NotRequired[Union[str, None]] + total_engaged_users: NotRequired[int] + languages: NotRequired[ + list[ + CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType + ] + ] + + +class CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType( + TypedDict +): + """CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItems + + Usage metrics for a given language for the given editor for Copilot code + completions. + """ + + name: NotRequired[str] + total_engaged_users: NotRequired[int] + total_code_suggestions: NotRequired[int] + total_code_acceptances: NotRequired[int] + total_code_lines_suggested: NotRequired[int] + total_code_lines_accepted: NotRequired[int] __all__ = ( - "OrgHookPropConfigType", - "OrgHookType", + "CopilotDotcomChatPropModelsItemsType", + "CopilotDotcomChatType", + "CopilotDotcomPullRequestsPropRepositoriesItemsPropModelsItemsType", + "CopilotDotcomPullRequestsPropRepositoriesItemsType", + "CopilotDotcomPullRequestsType", + "CopilotIdeChatPropEditorsItemsPropModelsItemsType", + "CopilotIdeChatPropEditorsItemsType", + "CopilotIdeChatType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsPropModelsItemsType", + "CopilotIdeCodeCompletionsPropEditorsItemsType", + "CopilotIdeCodeCompletionsPropLanguagesItemsType", + "CopilotIdeCodeCompletionsType", + "CopilotUsageMetricsDayType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0096.py b/githubkit/versions/v2022_11_28/types/group_0096.py index eecf40a48..fb3981a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0096.py +++ b/githubkit/versions/v2022_11_28/types/group_0096.py @@ -9,19 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ApiInsightsRouteStatsItemsType(TypedDict): - """ApiInsightsRouteStatsItems""" +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey - http_method: NotRequired[str] - api_route: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] + The public key used for setting Dependabot Secrets. + """ + key_id: str + key: str -__all__ = ("ApiInsightsRouteStatsItemsType",) + +__all__ = ("DependabotPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0097.py b/githubkit/versions/v2022_11_28/types/group_0097.py index a652aaeff..0341cf749 100644 --- a/githubkit/versions/v2022_11_28/types/group_0097.py +++ b/githubkit/versions/v2022_11_28/types/group_0097.py @@ -9,20 +9,31 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0061 import MinimalRepositoryType -class ApiInsightsSubjectStatsItemsType(TypedDict): - """ApiInsightsSubjectStatsItems""" - subject_type: NotRequired[str] - subject_name: NotRequired[str] - subject_id: NotRequired[int] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] - last_rate_limited_timestamp: NotRequired[Union[str, None]] - last_request_timestamp: NotRequired[str] +class PackageType(TypedDict): + """Package + A software package + """ -__all__ = ("ApiInsightsSubjectStatsItemsType",) + id: int + name: str + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + url: str + html_url: str + version_count: int + visibility: Literal["private", "public"] + owner: NotRequired[Union[None, SimpleUserType]] + repository: NotRequired[Union[None, MinimalRepositoryType]] + created_at: datetime + updated_at: datetime + + +__all__ = ("PackageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0098.py b/githubkit/versions/v2022_11_28/types/group_0098.py index efa213a4a..23c54a38b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0098.py +++ b/githubkit/versions/v2022_11_28/types/group_0098.py @@ -9,17 +9,30 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ApiInsightsSummaryStatsType(TypedDict): - """Summary Stats - API Insights usage summary stats for an organization - """ - - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] +class OrganizationInvitationType(TypedDict): + """Organization Invitation + Organization Invitation + """ -__all__ = ("ApiInsightsSummaryStatsType",) + id: int + login: Union[str, None] + email: Union[str, None] + role: str + created_at: str + failed_at: NotRequired[Union[str, None]] + failed_reason: NotRequired[Union[str, None]] + inviter: SimpleUserType + team_count: int + node_id: str + invitation_teams_url: str + invitation_source: NotRequired[str] + + +__all__ = ("OrganizationInvitationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0099.py b/githubkit/versions/v2022_11_28/types/group_0099.py index b1ac3a080..dd28f2299 100644 --- a/githubkit/versions/v2022_11_28/types/group_0099.py +++ b/githubkit/versions/v2022_11_28/types/group_0099.py @@ -9,15 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ApiInsightsTimeStatsItemsType(TypedDict): - """ApiInsightsTimeStatsItems""" +class OrgHookType(TypedDict): + """Org Hook - timestamp: NotRequired[str] - total_request_count: NotRequired[int] - rate_limited_request_count: NotRequired[int] + Org Hook + """ + id: int + url: str + ping_url: str + deliveries_url: NotRequired[str] + name: str + events: list[str] + active: bool + config: OrgHookPropConfigType + updated_at: datetime + created_at: datetime + type: str -__all__ = ("ApiInsightsTimeStatsItemsType",) + +class OrgHookPropConfigType(TypedDict): + """OrgHookPropConfig""" + + url: NotRequired[str] + insecure_ssl: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + + +__all__ = ( + "OrgHookPropConfigType", + "OrgHookType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0100.py b/githubkit/versions/v2022_11_28/types/group_0100.py index 810ca5b00..eecf40a48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0100.py +++ b/githubkit/versions/v2022_11_28/types/group_0100.py @@ -13,18 +13,15 @@ from typing_extensions import NotRequired, TypedDict -class ApiInsightsUserStatsItemsType(TypedDict): - """ApiInsightsUserStatsItems""" - - actor_type: NotRequired[str] - actor_name: NotRequired[str] - actor_id: NotRequired[int] - integration_id: NotRequired[Union[int, None]] - oauth_application_id: NotRequired[Union[int, None]] +class ApiInsightsRouteStatsItemsType(TypedDict): + """ApiInsightsRouteStatsItems""" + + http_method: NotRequired[str] + api_route: NotRequired[str] total_request_count: NotRequired[int] rate_limited_request_count: NotRequired[int] last_rate_limited_timestamp: NotRequired[Union[str, None]] last_request_timestamp: NotRequired[str] -__all__ = ("ApiInsightsUserStatsItemsType",) +__all__ = ("ApiInsightsRouteStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0101.py b/githubkit/versions/v2022_11_28/types/group_0101.py index 86b7b0b1e..a652aaeff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0101.py +++ b/githubkit/versions/v2022_11_28/types/group_0101.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class InteractionLimitResponseType(TypedDict): - """Interaction Limits +class ApiInsightsSubjectStatsItemsType(TypedDict): + """ApiInsightsSubjectStatsItems""" - Interaction limit settings. - """ + subject_type: NotRequired[str] + subject_name: NotRequired[str] + subject_id: NotRequired[int] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime - -__all__ = ("InteractionLimitResponseType",) +__all__ = ("ApiInsightsSubjectStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0102.py b/githubkit/versions/v2022_11_28/types/group_0102.py index 7711ae8ae..efa213a4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0102.py +++ b/githubkit/versions/v2022_11_28/types/group_0102.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class InteractionLimitType(TypedDict): - """Interaction Restrictions +class ApiInsightsSummaryStatsType(TypedDict): + """Summary Stats - Limit interactions to a specific type of user for a specified duration + API Insights usage summary stats for an organization """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - expiry: NotRequired[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] -__all__ = ("InteractionLimitType",) +__all__ = ("ApiInsightsSummaryStatsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0103.py b/githubkit/versions/v2022_11_28/types/group_0103.py index 2d5d28056..b1ac3a080 100644 --- a/githubkit/versions/v2022_11_28/types/group_0103.py +++ b/githubkit/versions/v2022_11_28/types/group_0103.py @@ -9,24 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrganizationCreateIssueTypeType(TypedDict): - """OrganizationCreateIssueType""" +class ApiInsightsTimeStatsItemsType(TypedDict): + """ApiInsightsTimeStatsItems""" - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] + timestamp: NotRequired[str] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] -__all__ = ("OrganizationCreateIssueTypeType",) +__all__ = ("ApiInsightsTimeStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0104.py b/githubkit/versions/v2022_11_28/types/group_0104.py index e6f7b909d..810ca5b00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0104.py +++ b/githubkit/versions/v2022_11_28/types/group_0104.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrganizationUpdateIssueTypeType(TypedDict): - """OrganizationUpdateIssueType""" +class ApiInsightsUserStatsItemsType(TypedDict): + """ApiInsightsUserStatsItems""" - name: str - is_enabled: bool - description: NotRequired[Union[str, None]] - color: NotRequired[ - Union[ - None, - Literal[ - "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" - ], - ] - ] + actor_type: NotRequired[str] + actor_name: NotRequired[str] + actor_id: NotRequired[int] + integration_id: NotRequired[Union[int, None]] + oauth_application_id: NotRequired[Union[int, None]] + total_request_count: NotRequired[int] + rate_limited_request_count: NotRequired[int] + last_rate_limited_timestamp: NotRequired[Union[str, None]] + last_request_timestamp: NotRequired[str] -__all__ = ("OrganizationUpdateIssueTypeType",) +__all__ = ("ApiInsightsUserStatsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0105.py b/githubkit/versions/v2022_11_28/types/group_0105.py index b1b6b22fe..86b7b0b1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0105.py +++ b/githubkit/versions/v2022_11_28/types/group_0105.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0061 import OrganizationSimpleType +class InteractionLimitResponseType(TypedDict): + """Interaction Limits -class OrgMembershipType(TypedDict): - """Org Membership - - Org Membership + Interaction limit settings. """ - url: str - state: Literal["active", "pending"] - role: Literal["admin", "member", "billing_manager"] - organization_url: str - organization: OrganizationSimpleType - user: Union[None, SimpleUserType] - permissions: NotRequired[OrgMembershipPropPermissionsType] - - -class OrgMembershipPropPermissionsType(TypedDict): - """OrgMembershipPropPermissions""" - - can_create_repository: bool + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime -__all__ = ( - "OrgMembershipPropPermissionsType", - "OrgMembershipType", -) +__all__ = ("InteractionLimitResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0106.py b/githubkit/versions/v2022_11_28/types/group_0106.py index b0bdc2624..7711ae8ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0106.py +++ b/githubkit/versions/v2022_11_28/types/group_0106.py @@ -9,38 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType +class InteractionLimitType(TypedDict): + """Interaction Restrictions -class MigrationType(TypedDict): - """Migration - - A migration. + Limit interactions to a specific type of user for a specified duration """ - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: list[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[list[str]] - - -__all__ = ("MigrationType",) + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] + + +__all__ = ("InteractionLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0107.py b/githubkit/versions/v2022_11_28/types/group_0107.py index fb3b706a0..2d5d28056 100644 --- a/githubkit/versions/v2022_11_28/types/group_0107.py +++ b/githubkit/versions/v2022_11_28/types/group_0107.py @@ -9,42 +9,24 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class OrganizationCreateIssueTypeType(TypedDict): + """OrganizationCreateIssueType""" -class OrganizationRoleType(TypedDict): - """Organization Role - - Organization roles - """ - - id: int name: str + is_enabled: bool description: NotRequired[Union[str, None]] - base_role: NotRequired[ - Union[None, Literal["read", "triage", "write", "maintain", "admin"]] - ] - source: NotRequired[ - Union[None, Literal["Organization", "Enterprise", "Predefined"]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] ] - permissions: list[str] - organization: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - - -class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): - """OrgsOrgOrganizationRolesGetResponse200""" - - total_count: NotRequired[int] - roles: NotRequired[list[OrganizationRoleType]] -__all__ = ( - "OrganizationRoleType", - "OrgsOrgOrganizationRolesGetResponse200Type", -) +__all__ = ("OrganizationCreateIssueTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0108.py b/githubkit/versions/v2022_11_28/types/group_0108.py index 54212348a..e6f7b909d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0108.py +++ b/githubkit/versions/v2022_11_28/types/group_0108.py @@ -12,43 +12,21 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0079 import TeamSimpleType +class OrganizationUpdateIssueTypeType(TypedDict): + """OrganizationUpdateIssueType""" -class TeamRoleAssignmentType(TypedDict): - """A Role Assignment for a Team - - The Relationship a Team has with a role. - """ - - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - id: int - node_id: str name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamRoleAssignmentPropPermissionsType(TypedDict): - """TeamRoleAssignmentPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamRoleAssignmentPropPermissionsType", - "TeamRoleAssignmentType", -) + is_enabled: bool + description: NotRequired[Union[str, None]] + color: NotRequired[ + Union[ + None, + Literal[ + "gray", "blue", "green", "yellow", "orange", "red", "pink", "purple" + ], + ] + ] + + +__all__ = ("OrganizationUpdateIssueTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0109.py b/githubkit/versions/v2022_11_28/types/group_0109.py index 0af0532a8..b543edc58 100644 --- a/githubkit/versions/v2022_11_28/types/group_0109.py +++ b/githubkit/versions/v2022_11_28/types/group_0109.py @@ -12,39 +12,32 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0079 import TeamSimpleType +from .group_0003 import SimpleUserType +from .group_0064 import OrganizationSimpleType -class UserRoleAssignmentType(TypedDict): - """A Role Assignment for a User +class OrgMembershipType(TypedDict): + """Org Membership - The Relationship a User has with a role. + Org Membership """ - assignment: NotRequired[Literal["direct", "indirect", "mixed"]] - inherited_from: NotRequired[list[TeamSimpleType]] - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - starred_at: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("UserRoleAssignmentType",) + state: Literal["active", "pending"] + role: Literal["admin", "member", "billing_manager"] + organization_url: str + organization: OrganizationSimpleType + user: Union[None, SimpleUserType] + permissions: NotRequired[OrgMembershipPropPermissionsType] + + +class OrgMembershipPropPermissionsType(TypedDict): + """OrgMembershipPropPermissions""" + + can_create_repository: bool + + +__all__ = ( + "OrgMembershipPropPermissionsType", + "OrgMembershipType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0110.py b/githubkit/versions/v2022_11_28/types/group_0110.py index 9b4b7ff6c..b0bdc2624 100644 --- a/githubkit/versions/v2022_11_28/types/group_0110.py +++ b/githubkit/versions/v2022_11_28/types/group_0110.py @@ -10,52 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class PackageVersionType(TypedDict): - """Package Version - A version of a software package +class MigrationType(TypedDict): + """Migration + + A migration. """ id: int - name: str + owner: Union[None, SimpleUserType] + guid: str + state: str + lock_repositories: bool + exclude_metadata: bool + exclude_git_data: bool + exclude_attachments: bool + exclude_releases: bool + exclude_owner_projects: bool + org_metadata_only: bool + repositories: list[RepositoryType] url: str - package_html_url: str - html_url: NotRequired[str] - license_: NotRequired[str] - description: NotRequired[str] created_at: datetime updated_at: datetime - deleted_at: NotRequired[datetime] - metadata: NotRequired[PackageVersionPropMetadataType] - - -class PackageVersionPropMetadataType(TypedDict): - """Package Version Metadata""" - - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - container: NotRequired[PackageVersionPropMetadataPropContainerType] - docker: NotRequired[PackageVersionPropMetadataPropDockerType] - - -class PackageVersionPropMetadataPropContainerType(TypedDict): - """Container Metadata""" - - tags: list[str] - - -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" - - tag: NotRequired[list[str]] + node_id: str + archive_url: NotRequired[str] + exclude: NotRequired[list[str]] -__all__ = ( - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", - "PackageVersionPropMetadataType", - "PackageVersionType", -) +__all__ = ("MigrationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0111.py b/githubkit/versions/v2022_11_28/types/group_0111.py index 4979cd78c..fb3b706a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0111.py +++ b/githubkit/versions/v2022_11_28/types/group_0111.py @@ -9,75 +9,42 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request +class OrganizationRoleType(TypedDict): + """Organization Role - Minimal representation of an organization programmatic access grant request for - enumerations + Organization roles """ id: int - reason: Union[str, None] - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType + name: str + description: NotRequired[Union[str, None]] + base_role: NotRequired[ + Union[None, Literal["read", "triage", "write", "maintain", "admin"]] ] - other: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType + source: NotRequired[ + Union[None, Literal["Organization", "Enterprise", "Predefined"]] ] + permissions: list[str] + organization: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization -""" +class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): + """OrgsOrgOrganizationRolesGetResponse200""" - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository -""" - - -OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther -""" + total_count: NotRequired[int] + roles: NotRequired[list[OrganizationRoleType]] __all__ = ( - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", - "OrganizationProgrammaticAccessGrantRequestType", + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0112.py b/githubkit/versions/v2022_11_28/types/group_0112.py index 54bd740d2..53e39e707 100644 --- a/githubkit/versions/v2022_11_28/types/group_0112.py +++ b/githubkit/versions/v2022_11_28/types/group_0112.py @@ -9,72 +9,46 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +from .group_0083 import TeamSimpleType -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team - Minimal representation of an organization programmatic access grant for - enumerations + The Relationship a Team has with a role. """ + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] id: int - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] + node_id: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] + url: str + html_url: str + members_url: str repositories_url: str - permissions: OrganizationProgrammaticAccessGrantPropPermissionsType - access_granted_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + parent: Union[None, TeamSimpleType] -class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissions +class TeamRoleAssignmentPropPermissionsType(TypedDict): + """TeamRoleAssignmentPropPermissions""" - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType - ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] - - -OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( - dict[str, Any] -) -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization -""" - - -OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository -""" - - -OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ - str, Any -] -"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther -""" + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantType", + "TeamRoleAssignmentPropPermissionsType", + "TeamRoleAssignmentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0113.py b/githubkit/versions/v2022_11_28/types/group_0113.py index d9d5c738f..2f5d923ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0113.py +++ b/githubkit/versions/v2022_11_28/types/group_0113.py @@ -9,24 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0083 import TeamSimpleType -class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): - """Organization private registry - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository"] - username: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] - created_at: datetime - updated_at: datetime +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User + The Relationship a User has with a role. + """ -__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) + assignment: NotRequired[Literal["direct", "indirect", "mixed"]] + inherited_from: NotRequired[list[TeamSimpleType]] + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("UserRoleAssignmentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0114.py b/githubkit/versions/v2022_11_28/types/group_0114.py index 9f42888f5..9b4b7ff6c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0114.py +++ b/githubkit/versions/v2022_11_28/types/group_0114.py @@ -10,33 +10,52 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class PackageVersionType(TypedDict): + """Package Version -class ProjectType(TypedDict): - """Project - - Projects are a way to organize columns and cards of work. + A version of a software package """ - owner_url: str - url: str - html_url: str - columns_url: str id: int - node_id: str name: str - body: Union[str, None] - number: int - state: str - creator: Union[None, SimpleUserType] + url: str + package_html_url: str + html_url: NotRequired[str] + license_: NotRequired[str] + description: NotRequired[str] created_at: datetime updated_at: datetime - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + deleted_at: NotRequired[datetime] + metadata: NotRequired[PackageVersionPropMetadataType] + + +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" + + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] + + +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + + tags: list[str] + + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[list[str]] -__all__ = ("ProjectType",) +__all__ = ( + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", + "PackageVersionPropMetadataType", + "PackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0115.py b/githubkit/versions/v2022_11_28/types/group_0115.py index 0ddc5174c..4979cd78c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0115.py +++ b/githubkit/versions/v2022_11_28/types/group_0115.py @@ -9,27 +9,75 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class CustomPropertyType(TypedDict): - """Organization Custom Property - Custom property defined on an organization +class OrganizationProgrammaticAccessGrantRequestType(TypedDict): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations """ - property_name: str - url: NotRequired[str] - source_type: NotRequired[Literal["organization", "enterprise"]] - value_type: Literal["string", "single_select", "multi_select", "true_false"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, list[str], None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[list[str], None]] - values_editable_by: NotRequired[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] + id: int + reason: Union[str, None] + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType ] + other: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType + ] + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther +""" -__all__ = ("CustomPropertyType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0116.py b/githubkit/versions/v2022_11_28/types/group_0116.py index 1a1a48cd7..54bd740d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0116.py +++ b/githubkit/versions/v2022_11_28/types/group_0116.py @@ -9,24 +9,72 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class CustomPropertySetPayloadType(TypedDict): - """Custom Property Set Payload - Custom property set payload +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations + """ + + id: int + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantPropPermissionsType + access_granted_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. """ - value_type: Literal["string", "single_select", "multi_select", "true_false"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, list[str], None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[list[str], None]] - values_editable_by: NotRequired[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] + organization: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + ] + other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType: TypeAlias = ( + dict[str, Any] +) +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropRepository +""" + + +OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType: TypeAlias = dict[ + str, Any +] +"""OrganizationProgrammaticAccessGrantPropPermissionsPropOther +""" -__all__ = ("CustomPropertySetPayloadType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantPropPermissionsType", + "OrganizationProgrammaticAccessGrantType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0117.py b/githubkit/versions/v2022_11_28/types/group_0117.py index c3784542a..a3a79cbc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0117.py +++ b/githubkit/versions/v2022_11_28/types/group_0117.py @@ -9,18 +9,24 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class CustomPropertyValueType(TypedDict): - """Custom Property Value +class OrgPrivateRegistryConfigurationWithSelectedRepositoriesType(TypedDict): + """Organization private registry - Custom property name and associated value + Private registry configuration for an organization """ - property_name: str - value: Union[str, list[str], None] + name: str + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] + username: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] + created_at: datetime + updated_at: datetime -__all__ = ("CustomPropertyValueType",) +__all__ = ("OrgPrivateRegistryConfigurationWithSelectedRepositoriesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0118.py b/githubkit/versions/v2022_11_28/types/group_0118.py index 9b8064a6c..9f42888f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0118.py +++ b/githubkit/versions/v2022_11_28/types/group_0118.py @@ -9,21 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0117 import CustomPropertyValueType +from .group_0003 import SimpleUserType -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values +class ProjectType(TypedDict): + """Project - List of custom property values for a repository + Projects are a way to organize columns and cards of work. """ - repository_id: int - repository_name: str - repository_full_name: str - properties: list[CustomPropertyValueType] - - -__all__ = ("OrgRepoCustomPropertyValuesType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] + + +__all__ = ("ProjectType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0119.py b/githubkit/versions/v2022_11_28/types/group_0119.py index cac6eb986..0ddc5174c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0119.py +++ b/githubkit/versions/v2022_11_28/types/group_0119.py @@ -9,20 +9,27 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple +class CustomPropertyType(TypedDict): + """Organization Custom Property - Code of Conduct Simple + Custom property defined on an organization """ - url: str - key: str - name: str - html_url: Union[str, None] + property_name: str + url: NotRequired[str] + source_type: NotRequired[Literal["organization", "enterprise"]] + value_type: Literal["string", "single_select", "multi_select", "true_false"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, list[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[list[str], None]] + values_editable_by: NotRequired[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] + ] -__all__ = ("CodeOfConductSimpleType",) +__all__ = ("CustomPropertyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0120.py b/githubkit/versions/v2022_11_28/types/group_0120.py index 1a00665d3..1a1a48cd7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0120.py +++ b/githubkit/versions/v2022_11_28/types/group_0120.py @@ -9,151 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType -from .group_0020 import RepositoryType -from .group_0057 import SecurityAndAnalysisType -from .group_0119 import CodeOfConductSimpleType +class CustomPropertySetPayloadType(TypedDict): + """Custom Property Set Payload -class FullRepositoryType(TypedDict): - """Full Repository - - Full Repository + Custom property set payload """ - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: NotRequired[bool] - has_discussions: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: datetime - created_at: datetime - updated_at: datetime - permissions: NotRequired[FullRepositoryPropPermissionsType] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[Union[None, RepositoryType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + value_type: Literal["string", "single_select", "multi_select", "true_false"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, list[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[list[str], None]] + values_editable_by: NotRequired[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: int - network_count: int - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - parent: NotRequired[RepositoryType] - source: NotRequired[RepositoryType] - forks: int - master_branch: NotRequired[str] - open_issues: int - watchers: int - anonymous_access_enabled: NotRequired[bool] - code_of_conduct: NotRequired[CodeOfConductSimpleType] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] - - -class FullRepositoryPropPermissionsType(TypedDict): - """FullRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""FullRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" -__all__ = ( - "FullRepositoryPropCustomPropertiesType", - "FullRepositoryPropPermissionsType", - "FullRepositoryType", -) +__all__ = ("CustomPropertySetPayloadType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0121.py b/githubkit/versions/v2022_11_28/types/group_0121.py index 48d5f291c..c3784542a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0121.py +++ b/githubkit/versions/v2022_11_28/types/group_0121.py @@ -9,21 +9,18 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class RepositoryRulesetBypassActorType(TypedDict): - """Repository Ruleset Bypass Actor +class CustomPropertyValueType(TypedDict): + """Custom Property Value - An actor that can bypass rules in a ruleset + Custom property name and associated value """ - actor_id: NotRequired[Union[int, None]] - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] - bypass_mode: NotRequired[Literal["always", "pull_request"]] + property_name: str + value: Union[str, list[str], None] -__all__ = ("RepositoryRulesetBypassActorType",) +__all__ = ("CustomPropertyValueType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0122.py b/githubkit/versions/v2022_11_28/types/group_0122.py index 30b527088..612f2dcca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0122.py +++ b/githubkit/versions/v2022_11_28/types/group_0122.py @@ -9,18 +9,21 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0123 import RepositoryRulesetConditionsPropRefNameType +from .group_0121 import CustomPropertyValueType -class RepositoryRulesetConditionsType(TypedDict): - """Repository ruleset conditions for ref names +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values - Parameters for a repository ruleset ref name condition + List of custom property values for a repository """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: int + repository_name: str + repository_full_name: str + properties: list[CustomPropertyValueType] -__all__ = ("RepositoryRulesetConditionsType",) +__all__ = ("OrgRepoCustomPropertyValuesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0123.py b/githubkit/versions/v2022_11_28/types/group_0123.py index bf8990574..cac6eb986 100644 --- a/githubkit/versions/v2022_11_28/types/group_0123.py +++ b/githubkit/versions/v2022_11_28/types/group_0123.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -class RepositoryRulesetConditionsPropRefNameType(TypedDict): - """RepositoryRulesetConditionsPropRefName""" +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] + Code of Conduct Simple + """ + url: str + key: str + name: str + html_url: Union[str, None] -__all__ = ("RepositoryRulesetConditionsPropRefNameType",) + +__all__ = ("CodeOfConductSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0124.py b/githubkit/versions/v2022_11_28/types/group_0124.py index 6d9316519..27e1c520a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0124.py +++ b/githubkit/versions/v2022_11_28/types/group_0124.py @@ -9,22 +9,151 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0125 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0020 import RepositoryType +from .group_0060 import SecurityAndAnalysisType +from .group_0123 import CodeOfConductSimpleType -class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): - """Repository ruleset conditions for repository names +class FullRepositoryType(TypedDict): + """Full Repository - Parameters for a repository name condition + Full Repository """ - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: NotRequired[bool] + has_discussions: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: datetime + created_at: datetime + updated_at: datetime + permissions: NotRequired[FullRepositoryPropPermissionsType] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[Union[None, RepositoryType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: int + network_count: int + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + parent: NotRequired[RepositoryType] + source: NotRequired[RepositoryType] + forks: int + master_branch: NotRequired[str] + open_issues: int + watchers: int + anonymous_access_enabled: NotRequired[bool] + code_of_conduct: NotRequired[CodeOfConductSimpleType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] + + +class FullRepositoryPropPermissionsType(TypedDict): + """FullRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + +FullRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""FullRepositoryPropCustomProperties -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +__all__ = ( + "FullRepositoryPropCustomPropertiesType", + "FullRepositoryPropPermissionsType", + "FullRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0125.py b/githubkit/versions/v2022_11_28/types/group_0125.py index f2a6b8a4a..48d5f291c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0125.py +++ b/githubkit/versions/v2022_11_28/types/group_0125.py @@ -9,15 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class RepositoryRulesetBypassActorType(TypedDict): + """Repository Ruleset Bypass Actor - include: NotRequired[list[str]] - exclude: NotRequired[list[str]] - protected: NotRequired[bool] + An actor that can bypass rules in a ruleset + """ + actor_id: NotRequired[Union[int, None]] + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] + bypass_mode: NotRequired[Literal["always", "pull_request"]] -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) + +__all__ = ("RepositoryRulesetBypassActorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0126.py b/githubkit/versions/v2022_11_28/types/group_0126.py index 40eb7ed74..b2f66d69e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0126.py +++ b/githubkit/versions/v2022_11_28/types/group_0126.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0127 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +from .group_0127 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetConditionsType(TypedDict): + """Repository ruleset conditions for ref names - Parameters for a repository ID condition + Parameters for a repository ruleset ref name condition """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) +__all__ = ("RepositoryRulesetConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0127.py b/githubkit/versions/v2022_11_28/types/group_0127.py index ab014ee2b..bf8990574 100644 --- a/githubkit/versions/v2022_11_28/types/group_0127.py +++ b/githubkit/versions/v2022_11_28/types/group_0127.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRulesetConditionsPropRefNameType(TypedDict): + """RepositoryRulesetConditionsPropRefName""" - repository_ids: NotRequired[list[int]] + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) +__all__ = ("RepositoryRulesetConditionsPropRefNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0128.py b/githubkit/versions/v2022_11_28/types/group_0128.py index 9b6c4e5b1..828a20531 100644 --- a/githubkit/versions/v2022_11_28/types/group_0128.py +++ b/githubkit/versions/v2022_11_28/types/group_0128.py @@ -12,19 +12,19 @@ from typing_extensions import TypedDict from .group_0129 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) -class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): - """Repository ruleset conditions for repository properties +class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): + """Repository ruleset conditions for repository names - Parameters for a repository property condition + Parameters for a repository name condition """ - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType ) -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0129.py b/githubkit/versions/v2022_11_28/types/group_0129.py index 57df7a1f1..f2a6b8a4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0129.py +++ b/githubkit/versions/v2022_11_28/types/group_0129.py @@ -9,31 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( - TypedDict -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] - exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] + include: NotRequired[list[str]] + exclude: NotRequired[list[str]] + protected: NotRequired[bool] -class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): - """Repository ruleset property targeting definition - - Parameters for a targeting a repository property - """ - - name: str - property_values: list[str] - source: NotRequired[Literal["custom", "system"]] - - -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertySpecType", - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0130.py b/githubkit/versions/v2022_11_28/types/group_0130.py index 0f285e963..8b78b7b34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0130.py +++ b/githubkit/versions/v2022_11_28/types/group_0130.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0123 import RepositoryRulesetConditionsPropRefNameType -from .group_0125 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +from .group_0131 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) -class OrgRulesetConditionsOneof0Type(TypedDict): - """repository_name_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by name and refs by name + Parameters for a repository ID condition """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ("OrgRulesetConditionsOneof0Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0131.py b/githubkit/versions/v2022_11_28/types/group_0131.py index c47100d71..ab014ee2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0131.py +++ b/githubkit/versions/v2022_11_28/types/group_0131.py @@ -11,20 +11,11 @@ from typing_extensions import NotRequired, TypedDict -from .group_0123 import RepositoryRulesetConditionsPropRefNameType -from .group_0127 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class OrgRulesetConditionsOneof1Type(TypedDict): - """repository_id_and_ref_name + repository_ids: NotRequired[list[int]] - Conditions to target repositories by id and refs by name - """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType - - -__all__ = ("OrgRulesetConditionsOneof1Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0132.py b/githubkit/versions/v2022_11_28/types/group_0132.py index da33bb106..1c24c3f15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0132.py +++ b/githubkit/versions/v2022_11_28/types/group_0132.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0123 import RepositoryRulesetConditionsPropRefNameType -from .group_0129 import ( +from .group_0133 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) -class OrgRulesetConditionsOneof2Type(TypedDict): - """repository_property_and_ref_name +class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): + """Repository ruleset conditions for repository properties - Conditions to target repositories by property and refs by name + Parameters for a repository property condition """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] repository_property: ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType ) -__all__ = ("OrgRulesetConditionsOneof2Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0133.py b/githubkit/versions/v2022_11_28/types/group_0133.py index 31548ad70..57df7a1f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0133.py +++ b/githubkit/versions/v2022_11_28/types/group_0133.py @@ -10,48 +10,30 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCreationType(TypedDict): - """creation +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( + TypedDict +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] - - -class RepositoryRuleDeletionType(TypedDict): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] - - -class RepositoryRuleRequiredSignaturesType(TypedDict): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] + include: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] + exclude: NotRequired[list[RepositoryRulesetConditionsRepositoryPropertySpecType]] -class RepositoryRuleNonFastForwardType(TypedDict): - """non_fast_forward +class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): + """Repository ruleset property targeting definition - Prevent users with push access from force pushing to refs. + Parameters for a targeting a repository property """ - type: Literal["non_fast_forward"] + name: str + property_values: list[str] + source: NotRequired[Literal["custom", "system"]] __all__ = ( - "RepositoryRuleCreationType", - "RepositoryRuleDeletionType", - "RepositoryRuleNonFastForwardType", - "RepositoryRuleRequiredSignaturesType", + "RepositoryRulesetConditionsRepositoryPropertySpecType", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0134.py b/githubkit/versions/v2022_11_28/types/group_0134.py index a5fed1233..62b3a814b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0134.py +++ b/githubkit/versions/v2022_11_28/types/group_0134.py @@ -9,20 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0135 import RepositoryRuleUpdatePropParametersType +from .group_0127 import RepositoryRulesetConditionsPropRefNameType +from .group_0129 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class RepositoryRuleUpdateType(TypedDict): - """update +class OrgRulesetConditionsOneof0Type(TypedDict): + """repository_name_and_ref_name - Only allow users with bypass permission to update matching refs. + Conditions to target repositories by name and refs by name """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) -__all__ = ("RepositoryRuleUpdateType",) +__all__ = ("OrgRulesetConditionsOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0135.py b/githubkit/versions/v2022_11_28/types/group_0135.py index 4de519b89..198f4ffb6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0135.py +++ b/githubkit/versions/v2022_11_28/types/group_0135.py @@ -9,13 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0127 import RepositoryRulesetConditionsPropRefNameType +from .group_0131 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class RepositoryRuleUpdatePropParametersType(TypedDict): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool +class OrgRulesetConditionsOneof1Type(TypedDict): + """repository_id_and_ref_name + Conditions to target repositories by id and refs by name + """ -__all__ = ("RepositoryRuleUpdatePropParametersType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + + +__all__ = ("OrgRulesetConditionsOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0136.py b/githubkit/versions/v2022_11_28/types/group_0136.py index c531884ff..bee28cd0f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0136.py +++ b/githubkit/versions/v2022_11_28/types/group_0136.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0127 import RepositoryRulesetConditionsPropRefNameType +from .group_0133 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleRequiredLinearHistoryType(TypedDict): - """required_linear_history - Prevent merge commits from being pushed to matching refs. +class OrgRulesetConditionsOneof2Type(TypedDict): + """repository_property_and_ref_name + + Conditions to target repositories by property and refs by name """ - type: Literal["required_linear_history"] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -__all__ = ("RepositoryRuleRequiredLinearHistoryType",) +__all__ = ("OrgRulesetConditionsOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0137.py b/githubkit/versions/v2022_11_28/types/group_0137.py index be836a883..31548ad70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0137.py +++ b/githubkit/versions/v2022_11_28/types/group_0137.py @@ -10,19 +10,48 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0138 import RepositoryRuleMergeQueuePropParametersType +class RepositoryRuleCreationType(TypedDict): + """creation -class RepositoryRuleMergeQueueType(TypedDict): - """merge_queue + Only allow users with bypass permission to create matching refs. + """ + + type: Literal["creation"] + + +class RepositoryRuleDeletionType(TypedDict): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] + + +class RepositoryRuleRequiredSignaturesType(TypedDict): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] + + +class RepositoryRuleNonFastForwardType(TypedDict): + """non_fast_forward - Merges must be performed via a merge queue. + Prevent users with push access from force pushing to refs. """ - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + type: Literal["non_fast_forward"] -__all__ = ("RepositoryRuleMergeQueueType",) +__all__ = ( + "RepositoryRuleCreationType", + "RepositoryRuleDeletionType", + "RepositoryRuleNonFastForwardType", + "RepositoryRuleRequiredSignaturesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0138.py b/githubkit/versions/v2022_11_28/types/group_0138.py index 4d32d8491..c4c96b951 100644 --- a/githubkit/versions/v2022_11_28/types/group_0138.py +++ b/githubkit/versions/v2022_11_28/types/group_0138.py @@ -10,19 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0139 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleMergeQueuePropParametersType(TypedDict): - """RepositoryRuleMergeQueuePropParameters""" - check_response_timeout_minutes: int - grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] - max_entries_to_build: int - max_entries_to_merge: int - merge_method: Literal["MERGE", "SQUASH", "REBASE"] - min_entries_to_merge: int - min_entries_to_merge_wait_minutes: int +class RepositoryRuleUpdateType(TypedDict): + """update + Only allow users with bypass permission to update matching refs. + """ -__all__ = ("RepositoryRuleMergeQueuePropParametersType",) + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + + +__all__ = ("RepositoryRuleUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0139.py b/githubkit/versions/v2022_11_28/types/group_0139.py index 6f4c3d7b0..4de519b89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0139.py +++ b/githubkit/versions/v2022_11_28/types/group_0139.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0140 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleUpdatePropParametersType(TypedDict): + """RepositoryRuleUpdatePropParameters""" -class RepositoryRuleRequiredDeploymentsType(TypedDict): - """required_deployments + update_allows_fetch_and_merge: bool - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. - """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] - - -__all__ = ("RepositoryRuleRequiredDeploymentsType",) +__all__ = ("RepositoryRuleUpdatePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0140.py b/githubkit/versions/v2022_11_28/types/group_0140.py index ef0c8d1d9..c531884ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0140.py +++ b/githubkit/versions/v2022_11_28/types/group_0140.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleRequiredLinearHistoryType(TypedDict): + """required_linear_history - required_deployment_environments: list[str] + Prevent merge commits from being pushed to matching refs. + """ + type: Literal["required_linear_history"] -__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) + +__all__ = ("RepositoryRuleRequiredLinearHistoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0141.py b/githubkit/versions/v2022_11_28/types/group_0141.py index beedb5329..cd47fbb63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0141.py +++ b/githubkit/versions/v2022_11_28/types/group_0141.py @@ -10,32 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0142 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): - """RequiredReviewerConfiguration - A reviewing team, and file patterns describing which files they must approve - changes to. - """ - - file_patterns: list[str] - minimum_approvals: int - reviewer: RepositoryRuleParamsReviewerType - - -class RepositoryRuleParamsReviewerType(TypedDict): - """Reviewer +class RepositoryRuleMergeQueueType(TypedDict): + """merge_queue - A required reviewing team + Merges must be performed via a merge queue. """ - id: int - type: Literal["Team"] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] -__all__ = ( - "RepositoryRuleParamsRequiredReviewerConfigurationType", - "RepositoryRuleParamsReviewerType", -) +__all__ = ("RepositoryRuleMergeQueueType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0142.py b/githubkit/versions/v2022_11_28/types/group_0142.py index 3d40b52fe..4d32d8491 100644 --- a/githubkit/versions/v2022_11_28/types/group_0142.py +++ b/githubkit/versions/v2022_11_28/types/group_0142.py @@ -10,20 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0143 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleMergeQueuePropParametersType(TypedDict): + """RepositoryRuleMergeQueuePropParameters""" -class RepositoryRulePullRequestType(TypedDict): - """pull_request + check_response_timeout_minutes: int + grouping_strategy: Literal["ALLGREEN", "HEADGREEN"] + max_entries_to_build: int + max_entries_to_merge: int + merge_method: Literal["MERGE", "SQUASH", "REBASE"] + min_entries_to_merge: int + min_entries_to_merge_wait_minutes: int - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. - """ - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] - - -__all__ = ("RepositoryRulePullRequestType",) +__all__ = ("RepositoryRuleMergeQueuePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0143.py b/githubkit/versions/v2022_11_28/types/group_0143.py index 1543217d1..be6731ac4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0143.py +++ b/githubkit/versions/v2022_11_28/types/group_0143.py @@ -12,17 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0144 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRulePullRequestPropParametersType(TypedDict): - """RepositoryRulePullRequestPropParameters""" - allowed_merge_methods: NotRequired[list[Literal["merge", "squash", "rebase"]]] - automatic_copilot_code_review_enabled: NotRequired[bool] - dismiss_stale_reviews_on_push: bool - require_code_owner_review: bool - require_last_push_approval: bool - required_approving_review_count: int - required_review_thread_resolution: bool +class RepositoryRuleRequiredDeploymentsType(TypedDict): + """required_deployments + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. + """ -__all__ = ("RepositoryRulePullRequestPropParametersType",) + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + + +__all__ = ("RepositoryRuleRequiredDeploymentsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0144.py b/githubkit/versions/v2022_11_28/types/group_0144.py index dab632fbb..ef0c8d1d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0144.py +++ b/githubkit/versions/v2022_11_28/types/group_0144.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0145 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): + """RepositoryRuleRequiredDeploymentsPropParameters""" -class RepositoryRuleRequiredStatusChecksType(TypedDict): - """required_status_checks + required_deployment_environments: list[str] - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. - """ - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] - - -__all__ = ("RepositoryRuleRequiredStatusChecksType",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0145.py b/githubkit/versions/v2022_11_28/types/group_0145.py index 82ebfc8c9..beedb5329 100644 --- a/githubkit/versions/v2022_11_28/types/group_0145.py +++ b/githubkit/versions/v2022_11_28/types/group_0145.py @@ -9,28 +9,33 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleParamsRequiredReviewerConfigurationType(TypedDict): + """RequiredReviewerConfiguration - do_not_enforce_on_create: NotRequired[bool] - required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] - strict_required_status_checks_policy: bool + A reviewing team, and file patterns describing which files they must approve + changes to. + """ + + file_patterns: list[str] + minimum_approvals: int + reviewer: RepositoryRuleParamsReviewerType -class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): - """StatusCheckConfiguration +class RepositoryRuleParamsReviewerType(TypedDict): + """Reviewer - Required status check + A required reviewing team """ - context: str - integration_id: NotRequired[int] + id: int + type: Literal["Team"] __all__ = ( - "RepositoryRuleParamsStatusCheckConfigurationType", - "RepositoryRuleRequiredStatusChecksPropParametersType", + "RepositoryRuleParamsRequiredReviewerConfigurationType", + "RepositoryRuleParamsReviewerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0146.py b/githubkit/versions/v2022_11_28/types/group_0146.py index c6fd4e318..8efbe83e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0146.py +++ b/githubkit/versions/v2022_11_28/types/group_0146.py @@ -12,17 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0147 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0147 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleCommitMessagePatternType(TypedDict): - """commit_message_pattern +class RepositoryRulePullRequestType(TypedDict): + """pull_request - Parameters to be used for the commit_message_pattern rule + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] -__all__ = ("RepositoryRuleCommitMessagePatternType",) +__all__ = ("RepositoryRulePullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0147.py b/githubkit/versions/v2022_11_28/types/group_0147.py index b6fc6932b..1543217d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0147.py +++ b/githubkit/versions/v2022_11_28/types/group_0147.py @@ -13,13 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRulePullRequestPropParametersType(TypedDict): + """RepositoryRulePullRequestPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str + allowed_merge_methods: NotRequired[list[Literal["merge", "squash", "rebase"]]] + automatic_copilot_code_review_enabled: NotRequired[bool] + dismiss_stale_reviews_on_push: bool + require_code_owner_review: bool + require_last_push_approval: bool + required_approving_review_count: int + required_review_thread_resolution: bool -__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) +__all__ = ("RepositoryRulePullRequestPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0148.py b/githubkit/versions/v2022_11_28/types/group_0148.py index 0d48b4780..0e23dcd59 100644 --- a/githubkit/versions/v2022_11_28/types/group_0148.py +++ b/githubkit/versions/v2022_11_28/types/group_0148.py @@ -12,17 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0149 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): - """commit_author_email_pattern +class RepositoryRuleRequiredStatusChecksType(TypedDict): + """required_status_checks - Parameters to be used for the commit_author_email_pattern rule + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. """ - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] -__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) +__all__ = ("RepositoryRuleRequiredStatusChecksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0149.py b/githubkit/versions/v2022_11_28/types/group_0149.py index d6712bb18..82ebfc8c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0149.py +++ b/githubkit/versions/v2022_11_28/types/group_0149.py @@ -9,17 +9,28 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" +class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): + """RepositoryRuleRequiredStatusChecksPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str + do_not_enforce_on_create: NotRequired[bool] + required_status_checks: list[RepositoryRuleParamsStatusCheckConfigurationType] + strict_required_status_checks_policy: bool -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) +class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): + """StatusCheckConfiguration + + Required status check + """ + + context: str + integration_id: NotRequired[int] + + +__all__ = ( + "RepositoryRuleParamsStatusCheckConfigurationType", + "RepositoryRuleRequiredStatusChecksPropParametersType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0150.py b/githubkit/versions/v2022_11_28/types/group_0150.py index 6826fb3f4..94bfe28db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0150.py +++ b/githubkit/versions/v2022_11_28/types/group_0150.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0151 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0151 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleCommitterEmailPatternType(TypedDict): - """committer_email_pattern +class RepositoryRuleCommitMessagePatternType(TypedDict): + """commit_message_pattern - Parameters to be used for the committer_email_pattern rule + Parameters to be used for the commit_message_pattern rule """ - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] -__all__ = ("RepositoryRuleCommitterEmailPatternType",) +__all__ = ("RepositoryRuleCommitMessagePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0151.py b/githubkit/versions/v2022_11_28/types/group_0151.py index a6567de4b..b6fc6932b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0151.py +++ b/githubkit/versions/v2022_11_28/types/group_0151.py @@ -13,8 +13,8 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitterEmailPatternPropParameters""" +class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): + """RepositoryRuleCommitMessagePatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0152.py b/githubkit/versions/v2022_11_28/types/group_0152.py index d5b3dcc69..f01a930b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0152.py +++ b/githubkit/versions/v2022_11_28/types/group_0152.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0153 import RepositoryRuleBranchNamePatternPropParametersType +from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleBranchNamePatternType(TypedDict): - """branch_name_pattern +class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): + """commit_author_email_pattern - Parameters to be used for the branch_name_pattern rule + Parameters to be used for the commit_author_email_pattern rule """ - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] -__all__ = ("RepositoryRuleBranchNamePatternType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0153.py b/githubkit/versions/v2022_11_28/types/group_0153.py index da29fc42d..d6712bb18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0153.py +++ b/githubkit/versions/v2022_11_28/types/group_0153.py @@ -13,8 +13,8 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): - """RepositoryRuleBranchNamePatternPropParameters""" +class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0154.py b/githubkit/versions/v2022_11_28/types/group_0154.py index 2e2ec915e..e686850dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0154.py +++ b/githubkit/versions/v2022_11_28/types/group_0154.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0155 import RepositoryRuleTagNamePatternPropParametersType +from .group_0155 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleTagNamePatternType(TypedDict): - """tag_name_pattern +class RepositoryRuleCommitterEmailPatternType(TypedDict): + """committer_email_pattern - Parameters to be used for the tag_name_pattern rule + Parameters to be used for the committer_email_pattern rule """ - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] -__all__ = ("RepositoryRuleTagNamePatternType",) +__all__ = ("RepositoryRuleCommitterEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0155.py b/githubkit/versions/v2022_11_28/types/group_0155.py index cbfa3546b..a6567de4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0155.py +++ b/githubkit/versions/v2022_11_28/types/group_0155.py @@ -13,8 +13,8 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleTagNamePatternPropParametersType(TypedDict): - """RepositoryRuleTagNamePatternPropParameters""" +class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitterEmailPatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleTagNamePatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0156.py b/githubkit/versions/v2022_11_28/types/group_0156.py index 536acfb15..9411371c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0156.py +++ b/githubkit/versions/v2022_11_28/types/group_0156.py @@ -12,19 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0157 import RepositoryRuleFilePathRestrictionPropParametersType +from .group_0157 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleFilePathRestrictionType(TypedDict): - """file_path_restriction +class RepositoryRuleBranchNamePatternType(TypedDict): + """branch_name_pattern - Prevent commits that include changes in specified file and folder paths from - being pushed to the commit graph. This includes absolute paths that contain file - names. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] -__all__ = ("RepositoryRuleFilePathRestrictionType",) +__all__ = ("RepositoryRuleBranchNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0157.py b/githubkit/versions/v2022_11_28/types/group_0157.py index 7e198ed48..da29fc42d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0157.py +++ b/githubkit/versions/v2022_11_28/types/group_0157.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleFilePathRestrictionPropParametersType(TypedDict): - """RepositoryRuleFilePathRestrictionPropParameters""" +class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): + """RepositoryRuleBranchNamePatternPropParameters""" - restricted_file_paths: list[str] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -__all__ = ("RepositoryRuleFilePathRestrictionPropParametersType",) +__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0158.py b/githubkit/versions/v2022_11_28/types/group_0158.py index 0db624975..2b2660b35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0158.py +++ b/githubkit/versions/v2022_11_28/types/group_0158.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0159 import RepositoryRuleMaxFilePathLengthPropParametersType +from .group_0159 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleMaxFilePathLengthType(TypedDict): - """max_file_path_length +class RepositoryRuleTagNamePatternType(TypedDict): + """tag_name_pattern - Prevent commits that include file paths that exceed the specified character - limit from being pushed to the commit graph. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] -__all__ = ("RepositoryRuleMaxFilePathLengthType",) +__all__ = ("RepositoryRuleTagNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0159.py b/githubkit/versions/v2022_11_28/types/group_0159.py index 7f4773214..cbfa3546b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0159.py +++ b/githubkit/versions/v2022_11_28/types/group_0159.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleMaxFilePathLengthPropParametersType(TypedDict): - """RepositoryRuleMaxFilePathLengthPropParameters""" +class RepositoryRuleTagNamePatternPropParametersType(TypedDict): + """RepositoryRuleTagNamePatternPropParameters""" - max_file_path_length: int + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -__all__ = ("RepositoryRuleMaxFilePathLengthPropParametersType",) +__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0160.py b/githubkit/versions/v2022_11_28/types/group_0160.py index bd1b865bd..4d4a585ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0160.py +++ b/githubkit/versions/v2022_11_28/types/group_0160.py @@ -12,18 +12,19 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0161 import RepositoryRuleFileExtensionRestrictionPropParametersType +from .group_0161 import RepositoryRuleFilePathRestrictionPropParametersType -class RepositoryRuleFileExtensionRestrictionType(TypedDict): - """file_extension_restriction +class RepositoryRuleFilePathRestrictionType(TypedDict): + """file_path_restriction - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Prevent commits that include changes in specified file and folder paths from + being pushed to the commit graph. This includes absolute paths that contain file + names. """ - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] -__all__ = ("RepositoryRuleFileExtensionRestrictionType",) +__all__ = ("RepositoryRuleFilePathRestrictionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0161.py b/githubkit/versions/v2022_11_28/types/group_0161.py index e8886bc56..7e198ed48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0161.py +++ b/githubkit/versions/v2022_11_28/types/group_0161.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class RepositoryRuleFileExtensionRestrictionPropParametersType(TypedDict): - """RepositoryRuleFileExtensionRestrictionPropParameters""" +class RepositoryRuleFilePathRestrictionPropParametersType(TypedDict): + """RepositoryRuleFilePathRestrictionPropParameters""" - restricted_file_extensions: list[str] + restricted_file_paths: list[str] -__all__ = ("RepositoryRuleFileExtensionRestrictionPropParametersType",) +__all__ = ("RepositoryRuleFilePathRestrictionPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0162.py b/githubkit/versions/v2022_11_28/types/group_0162.py index d3ca21e91..cc88bca52 100644 --- a/githubkit/versions/v2022_11_28/types/group_0162.py +++ b/githubkit/versions/v2022_11_28/types/group_0162.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0163 import RepositoryRuleMaxFileSizePropParametersType +from .group_0163 import RepositoryRuleMaxFilePathLengthPropParametersType -class RepositoryRuleMaxFileSizeType(TypedDict): - """max_file_size +class RepositoryRuleMaxFilePathLengthType(TypedDict): + """max_file_path_length - Prevent commits with individual files that exceed the specified limit from being - pushed to the commit graph. + Prevent commits that include file paths that exceed the specified character + limit from being pushed to the commit graph. """ - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] -__all__ = ("RepositoryRuleMaxFileSizeType",) +__all__ = ("RepositoryRuleMaxFilePathLengthType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0163.py b/githubkit/versions/v2022_11_28/types/group_0163.py index f3b12569b..7f4773214 100644 --- a/githubkit/versions/v2022_11_28/types/group_0163.py +++ b/githubkit/versions/v2022_11_28/types/group_0163.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class RepositoryRuleMaxFileSizePropParametersType(TypedDict): - """RepositoryRuleMaxFileSizePropParameters""" +class RepositoryRuleMaxFilePathLengthPropParametersType(TypedDict): + """RepositoryRuleMaxFilePathLengthPropParameters""" - max_file_size: int + max_file_path_length: int -__all__ = ("RepositoryRuleMaxFileSizePropParametersType",) +__all__ = ("RepositoryRuleMaxFilePathLengthPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0164.py b/githubkit/versions/v2022_11_28/types/group_0164.py index 7464769b7..667400cd7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0164.py +++ b/githubkit/versions/v2022_11_28/types/group_0164.py @@ -9,17 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParametersType -class RepositoryRuleParamsRestrictedCommitsType(TypedDict): - """RestrictedCommits - Restricted commit +class RepositoryRuleFileExtensionRestrictionType(TypedDict): + """file_extension_restriction + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. """ - oid: str - reason: NotRequired[str] + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] -__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) +__all__ = ("RepositoryRuleFileExtensionRestrictionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0165.py b/githubkit/versions/v2022_11_28/types/group_0165.py index 06dc4873b..e8886bc56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0165.py +++ b/githubkit/versions/v2022_11_28/types/group_0165.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0166 import RepositoryRuleWorkflowsPropParametersType +class RepositoryRuleFileExtensionRestrictionPropParametersType(TypedDict): + """RepositoryRuleFileExtensionRestrictionPropParameters""" -class RepositoryRuleWorkflowsType(TypedDict): - """workflows + restricted_file_extensions: list[str] - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. - """ - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] - - -__all__ = ("RepositoryRuleWorkflowsType",) +__all__ = ("RepositoryRuleFileExtensionRestrictionPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0166.py b/githubkit/versions/v2022_11_28/types/group_0166.py index c26b4894e..3dc839b9d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0166.py +++ b/githubkit/versions/v2022_11_28/types/group_0166.py @@ -9,29 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0167 import RepositoryRuleMaxFileSizePropParametersType -class RepositoryRuleWorkflowsPropParametersType(TypedDict): - """RepositoryRuleWorkflowsPropParameters""" - do_not_enforce_on_create: NotRequired[bool] - workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] +class RepositoryRuleMaxFileSizeType(TypedDict): + """max_file_size - -class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): - """WorkflowFileReference - - A workflow that must run for this rule to pass + Prevent commits with individual files that exceed the specified limit from being + pushed to the commit graph. """ - path: str - ref: NotRequired[str] - repository_id: int - sha: NotRequired[str] + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] -__all__ = ( - "RepositoryRuleParamsWorkflowFileReferenceType", - "RepositoryRuleWorkflowsPropParametersType", -) +__all__ = ("RepositoryRuleMaxFileSizeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0167.py b/githubkit/versions/v2022_11_28/types/group_0167.py index c095295a3..f3b12569b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0167.py +++ b/githubkit/versions/v2022_11_28/types/group_0167.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0168 import RepositoryRuleCodeScanningPropParametersType +class RepositoryRuleMaxFileSizePropParametersType(TypedDict): + """RepositoryRuleMaxFileSizePropParameters""" -class RepositoryRuleCodeScanningType(TypedDict): - """code_scanning + max_file_size: int - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. - """ - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] - - -__all__ = ("RepositoryRuleCodeScanningType",) +__all__ = ("RepositoryRuleMaxFileSizePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0168.py b/githubkit/versions/v2022_11_28/types/group_0168.py index 0ce3aaee0..7464769b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0168.py +++ b/githubkit/versions/v2022_11_28/types/group_0168.py @@ -9,30 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class RepositoryRuleCodeScanningPropParametersType(TypedDict): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleParamsRestrictedCommitsType(TypedDict): + """RestrictedCommits - code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] - - -class RepositoryRuleParamsCodeScanningToolType(TypedDict): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. + Restricted commit """ - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] - tool: str + oid: str + reason: NotRequired[str] -__all__ = ( - "RepositoryRuleCodeScanningPropParametersType", - "RepositoryRuleParamsCodeScanningToolType", -) +__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0169.py b/githubkit/versions/v2022_11_28/types/group_0169.py index bc65e25c7..4d0214ddb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0169.py +++ b/githubkit/versions/v2022_11_28/types/group_0169.py @@ -9,120 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0121 import RepositoryRulesetBypassActorType -from .group_0122 import RepositoryRulesetConditionsType -from .group_0130 import OrgRulesetConditionsOneof0Type -from .group_0131 import OrgRulesetConditionsOneof1Type -from .group_0132 import OrgRulesetConditionsOneof2Type -from .group_0133 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0134 import RepositoryRuleUpdateType -from .group_0136 import RepositoryRuleRequiredLinearHistoryType -from .group_0137 import RepositoryRuleMergeQueueType -from .group_0139 import RepositoryRuleRequiredDeploymentsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0156 import RepositoryRuleFilePathRestrictionType -from .group_0158 import RepositoryRuleMaxFilePathLengthType -from .group_0160 import RepositoryRuleFileExtensionRestrictionType -from .group_0162 import RepositoryRuleMaxFileSizeType -from .group_0165 import RepositoryRuleWorkflowsType -from .group_0167 import RepositoryRuleCodeScanningType +from .group_0170 import RepositoryRuleWorkflowsPropParametersType -class RepositoryRulesetType(TypedDict): - """Repository ruleset +class RepositoryRuleWorkflowsType(TypedDict): + """workflows - A set of rules to apply when specified conditions are met. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - id: int - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] - source: str - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - current_user_can_bypass: NotRequired[ - Literal["always", "pull_requests_only", "never"] - ] - node_id: NotRequired[str] - links: NotRequired[RepositoryRulesetPropLinksType] - conditions: NotRequired[ - Union[ - RepositoryRulesetConditionsType, - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - None, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] -class RepositoryRulesetPropLinksType(TypedDict): - """RepositoryRulesetPropLinks""" - - self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] - html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] - - -class RepositoryRulesetPropLinksPropSelfType(TypedDict): - """RepositoryRulesetPropLinksPropSelf""" - - href: NotRequired[str] - - -class RepositoryRulesetPropLinksPropHtmlType(TypedDict): - """RepositoryRulesetPropLinksPropHtml""" - - href: NotRequired[str] - - -__all__ = ( - "RepositoryRulesetPropLinksPropHtmlType", - "RepositoryRulesetPropLinksPropSelfType", - "RepositoryRulesetPropLinksType", - "RepositoryRulesetType", -) +__all__ = ("RepositoryRuleWorkflowsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0170.py b/githubkit/versions/v2022_11_28/types/group_0170.py index 74f027a0f..c26b4894e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0170.py +++ b/githubkit/versions/v2022_11_28/types/group_0170.py @@ -9,25 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" +class RepositoryRuleWorkflowsPropParametersType(TypedDict): + """RepositoryRuleWorkflowsPropParameters""" - id: NotRequired[int] - actor_id: NotRequired[int] - actor_name: NotRequired[str] - before_sha: NotRequired[str] - after_sha: NotRequired[str] + do_not_enforce_on_create: NotRequired[bool] + workflows: list[RepositoryRuleParamsWorkflowFileReferenceType] + + +class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): + """WorkflowFileReference + + A workflow that must run for this rule to pass + """ + + path: str ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] + repository_id: int + sha: NotRequired[str] -__all__ = ("RuleSuitesItemsType",) +__all__ = ( + "RepositoryRuleParamsWorkflowFileReferenceType", + "RepositoryRuleWorkflowsPropParametersType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0171.py b/githubkit/versions/v2022_11_28/types/group_0171.py index edb6fa30e..bb987dd3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0171.py +++ b/githubkit/versions/v2022_11_28/types/group_0171.py @@ -9,51 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0172 import RepositoryRuleCodeScanningPropParametersType -class RuleSuiteType(TypedDict): - """Rule Suite - Response - """ - - id: NotRequired[int] - actor_id: NotRequired[Union[int, None]] - actor_name: NotRequired[Union[str, None]] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] - rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] - - -class RuleSuitePropRuleEvaluationsItemsType(TypedDict): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRuleCodeScanningType(TypedDict): + """code_scanning - rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] - enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] - result: NotRequired[Literal["pass", "fail"]] - rule_type: NotRequired[str] - details: NotRequired[Union[str, None]] - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ - type: NotRequired[str] - id: NotRequired[Union[int, None]] - name: NotRequired[Union[str, None]] + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] -__all__ = ( - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuiteType", -) +__all__ = ("RepositoryRuleCodeScanningType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0172.py b/githubkit/versions/v2022_11_28/types/group_0172.py index ea674d199..0ce3aaee0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0172.py +++ b/githubkit/versions/v2022_11_28/types/group_0172.py @@ -9,21 +9,30 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict -from .group_0173 import RulesetVersionPropActorType +class RepositoryRuleCodeScanningPropParametersType(TypedDict): + """RepositoryRuleCodeScanningPropParameters""" -class RulesetVersionType(TypedDict): - """Ruleset version + code_scanning_tools: list[RepositoryRuleParamsCodeScanningToolType] - The historical version of a ruleset + +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - version_id: int - actor: RulesetVersionPropActorType - updated_at: datetime + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" + ] + tool: str -__all__ = ("RulesetVersionType",) +__all__ = ( + "RepositoryRuleCodeScanningPropParametersType", + "RepositoryRuleParamsCodeScanningToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0173.py b/githubkit/versions/v2022_11_28/types/group_0173.py index 8966c1c93..fb356c137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0173.py +++ b/githubkit/versions/v2022_11_28/types/group_0173.py @@ -9,17 +9,120 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0125 import RepositoryRulesetBypassActorType +from .group_0126 import RepositoryRulesetConditionsType +from .group_0134 import OrgRulesetConditionsOneof0Type +from .group_0135 import OrgRulesetConditionsOneof1Type +from .group_0136 import OrgRulesetConditionsOneof2Type +from .group_0137 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0138 import RepositoryRuleUpdateType +from .group_0140 import RepositoryRuleRequiredLinearHistoryType +from .group_0141 import RepositoryRuleMergeQueueType +from .group_0143 import RepositoryRuleRequiredDeploymentsType +from .group_0146 import RepositoryRulePullRequestType +from .group_0148 import RepositoryRuleRequiredStatusChecksType +from .group_0150 import RepositoryRuleCommitMessagePatternType +from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0154 import RepositoryRuleCommitterEmailPatternType +from .group_0156 import RepositoryRuleBranchNamePatternType +from .group_0158 import RepositoryRuleTagNamePatternType +from .group_0160 import RepositoryRuleFilePathRestrictionType +from .group_0162 import RepositoryRuleMaxFilePathLengthType +from .group_0164 import RepositoryRuleFileExtensionRestrictionType +from .group_0166 import RepositoryRuleMaxFileSizeType +from .group_0169 import RepositoryRuleWorkflowsType +from .group_0171 import RepositoryRuleCodeScanningType -class RulesetVersionPropActorType(TypedDict): - """RulesetVersionPropActor - The actor who updated the ruleset +class RepositoryRulesetType(TypedDict): + """Repository ruleset + + A set of rules to apply when specified conditions are met. """ - id: NotRequired[int] - type: NotRequired[str] + id: int + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + source_type: NotRequired[Literal["Repository", "Organization", "Enterprise"]] + source: str + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + current_user_can_bypass: NotRequired[ + Literal["always", "pull_requests_only", "never"] + ] + node_id: NotRequired[str] + links: NotRequired[RepositoryRulesetPropLinksType] + conditions: NotRequired[ + Union[ + RepositoryRulesetConditionsType, + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + None, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class RepositoryRulesetPropLinksType(TypedDict): + """RepositoryRulesetPropLinks""" + + self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] + html: NotRequired[Union[RepositoryRulesetPropLinksPropHtmlType, None]] + + +class RepositoryRulesetPropLinksPropSelfType(TypedDict): + """RepositoryRulesetPropLinksPropSelf""" + + href: NotRequired[str] + + +class RepositoryRulesetPropLinksPropHtmlType(TypedDict): + """RepositoryRulesetPropLinksPropHtml""" + + href: NotRequired[str] -__all__ = ("RulesetVersionPropActorType",) +__all__ = ( + "RepositoryRulesetPropLinksPropHtmlType", + "RepositoryRulesetPropLinksPropSelfType", + "RepositoryRulesetPropLinksType", + "RepositoryRulesetType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0174.py b/githubkit/versions/v2022_11_28/types/group_0174.py index 078063aaa..74f027a0f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0174.py +++ b/githubkit/versions/v2022_11_28/types/group_0174.py @@ -10,19 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0173 import RulesetVersionPropActorType -from .group_0176 import RulesetVersionWithStateAllof1PropStateType +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" -class RulesetVersionWithStateType(TypedDict): - """RulesetVersionWithState""" + id: NotRequired[int] + actor_id: NotRequired[int] + actor_name: NotRequired[str] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail", "bypass"]] - version_id: int - actor: RulesetVersionPropActorType - updated_at: datetime - state: RulesetVersionWithStateAllof1PropStateType - -__all__ = ("RulesetVersionWithStateType",) +__all__ = ("RuleSuitesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0175.py b/githubkit/versions/v2022_11_28/types/group_0175.py index 57899f8e7..edb6fa30e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0175.py +++ b/githubkit/versions/v2022_11_28/types/group_0175.py @@ -9,15 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0176 import RulesetVersionWithStateAllof1PropStateType +class RuleSuiteType(TypedDict): + """Rule Suite -class RulesetVersionWithStateAllof1Type(TypedDict): - """RulesetVersionWithStateAllof1""" + Response + """ - state: RulesetVersionWithStateAllof1PropStateType + id: NotRequired[int] + actor_id: NotRequired[Union[int, None]] + actor_name: NotRequired[Union[str, None]] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Union[None, Literal["pass", "fail", "bypass"]]] + rule_evaluations: NotRequired[list[RuleSuitePropRuleEvaluationsItemsType]] -__all__ = ("RulesetVersionWithStateAllof1Type",) +class RuleSuitePropRuleEvaluationsItemsType(TypedDict): + """RuleSuitePropRuleEvaluationsItems""" + + rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] + enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] + result: NotRequired[Literal["pass", "fail"]] + rule_type: NotRequired[str] + details: NotRequired[Union[str, None]] + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: NotRequired[str] + id: NotRequired[Union[int, None]] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuiteType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0176.py b/githubkit/versions/v2022_11_28/types/group_0176.py index c09a8e009..54f855e48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0176.py +++ b/githubkit/versions/v2022_11_28/types/group_0176.py @@ -9,14 +9,21 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict +from .group_0177 import RulesetVersionPropActorType -class RulesetVersionWithStateAllof1PropStateType(TypedDict): - """RulesetVersionWithStateAllof1PropState - The state of the ruleset version +class RulesetVersionType(TypedDict): + """Ruleset version + + The historical version of a ruleset """ + version_id: int + actor: RulesetVersionPropActorType + updated_at: datetime + -__all__ = ("RulesetVersionWithStateAllof1PropStateType",) +__all__ = ("RulesetVersionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0177.py b/githubkit/versions/v2022_11_28/types/group_0177.py index ef2fcae57..8966c1c93 100644 --- a/githubkit/versions/v2022_11_28/types/group_0177.py +++ b/githubkit/versions/v2022_11_28/types/group_0177.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class RulesetVersionPropActorType(TypedDict): + """RulesetVersionPropActor -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit - - A credit given to a user for a repository security advisory. + The actor who updated the ruleset """ - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - state: Literal["accepted", "declined", "pending"] - - -__all__ = ("RepositoryAdvisoryCreditType",) + id: NotRequired[int] + type: NotRequired[str] + + +__all__ = ("RulesetVersionPropActorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0178.py b/githubkit/versions/v2022_11_28/types/group_0178.py index ab174d378..071c46a09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0178.py +++ b/githubkit/versions/v2022_11_28/types/group_0178.py @@ -10,141 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0001 import CvssSeveritiesType -from .group_0003 import SimpleUserType -from .group_0080 import TeamType -from .group_0177 import RepositoryAdvisoryCreditType +from .group_0177 import RulesetVersionPropActorType +from .group_0180 import RulesetVersionWithStateAllof1PropStateType -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory +class RulesetVersionWithStateType(TypedDict): + """RulesetVersionWithState""" - A repository security advisory. - """ + version_id: int + actor: RulesetVersionPropActorType + updated_at: datetime + state: RulesetVersionWithStateAllof1PropStateType - ghsa_id: str - cve_id: Union[str, None] - url: str - html_url: str - summary: str - description: Union[str, None] - severity: Union[None, Literal["critical", "high", "medium", "low"]] - author: None - publisher: None - identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] - state: Literal["published", "closed", "withdrawn", "draft", "triage"] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - published_at: Union[datetime, None] - closed_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - submission: Union[RepositoryAdvisoryPropSubmissionType, None] - vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] - cvss: Union[RepositoryAdvisoryPropCvssType, None] - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] - cwe_ids: Union[list[str], None] - credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] - credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] - collaborating_users: Union[list[SimpleUserType], None] - collaborating_teams: Union[list[TeamType], None] - private_fork: None - -class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): - """RepositoryAdvisoryPropIdentifiersItems""" - - type: Literal["CVE", "GHSA"] - value: str - - -class RepositoryAdvisoryPropSubmissionType(TypedDict): - """RepositoryAdvisoryPropSubmission""" - - accepted: bool - - -class RepositoryAdvisoryPropCvssType(TypedDict): - """RepositoryAdvisoryPropCvss""" - - vector_string: Union[str, None] - score: Union[float, None] - - -class RepositoryAdvisoryPropCwesItemsType(TypedDict): - """RepositoryAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class RepositoryAdvisoryPropCreditsItemsType(TypedDict): - """RepositoryAdvisoryPropCreditsItems""" - - login: NotRequired[str] - type: NotRequired[ - Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - ] - - -class RepositoryAdvisoryVulnerabilityType(TypedDict): - """RepositoryAdvisoryVulnerability - - A product affected by the vulnerability detailed in a repository security - advisory. - """ - - package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - patched_versions: Union[str, None] - vulnerable_functions: Union[list[str], None] - - -class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: Union[str, None] - - -__all__ = ( - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryType", - "RepositoryAdvisoryVulnerabilityPropPackageType", - "RepositoryAdvisoryVulnerabilityType", -) +__all__ = ("RulesetVersionWithStateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0179.py b/githubkit/versions/v2022_11_28/types/group_0179.py index fb14d5d5d..d8ca98e5c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0179.py +++ b/githubkit/versions/v2022_11_28/types/group_0179.py @@ -9,39 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict - - -class ActionsBillingUsageType(TypedDict): - """ActionsBillingUsage""" - - total_minutes_used: int - total_paid_minutes_used: int - included_minutes: int - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType - - -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" - - ubuntu: NotRequired[int] - macos: NotRequired[int] - windows: NotRequired[int] - ubuntu_4_core: NotRequired[int] - ubuntu_8_core: NotRequired[int] - ubuntu_16_core: NotRequired[int] - ubuntu_32_core: NotRequired[int] - ubuntu_64_core: NotRequired[int] - windows_4_core: NotRequired[int] - windows_8_core: NotRequired[int] - windows_16_core: NotRequired[int] - windows_32_core: NotRequired[int] - windows_64_core: NotRequired[int] - macos_12_core: NotRequired[int] - total: NotRequired[int] - - -__all__ = ( - "ActionsBillingUsagePropMinutesUsedBreakdownType", - "ActionsBillingUsageType", -) +from typing_extensions import TypedDict + +from .group_0180 import RulesetVersionWithStateAllof1PropStateType + + +class RulesetVersionWithStateAllof1Type(TypedDict): + """RulesetVersionWithStateAllof1""" + + state: RulesetVersionWithStateAllof1PropStateType + + +__all__ = ("RulesetVersionWithStateAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0180.py b/githubkit/versions/v2022_11_28/types/group_0180.py index cac22c41a..c09a8e009 100644 --- a/githubkit/versions/v2022_11_28/types/group_0180.py +++ b/githubkit/versions/v2022_11_28/types/group_0180.py @@ -12,12 +12,11 @@ from typing_extensions import TypedDict -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" +class RulesetVersionWithStateAllof1PropStateType(TypedDict): + """RulesetVersionWithStateAllof1PropState - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int + The state of the ruleset version + """ -__all__ = ("PackagesBillingUsageType",) +__all__ = ("RulesetVersionWithStateAllof1PropStateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0181.py b/githubkit/versions/v2022_11_28/types/group_0181.py index 15a19a09d..ef2fcae57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0181.py +++ b/githubkit/versions/v2022_11_28/types/group_0181.py @@ -9,15 +9,32 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit + A credit given to a user for a repository security advisory. + """ -__all__ = ("CombinedBillingUsageType",) + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + state: Literal["accepted", "declined", "pending"] + + +__all__ = ("RepositoryAdvisoryCreditType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0182.py b/githubkit/versions/v2022_11_28/types/group_0182.py index c2fd7df78..73e2c655c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0182.py +++ b/githubkit/versions/v2022_11_28/types/group_0182.py @@ -9,20 +9,142 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0084 import TeamType +from .group_0181 import RepositoryAdvisoryCreditType -class NetworkSettingsType(TypedDict): - """Hosted compute network settings resource - A hosted compute network settings resource. +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory + + A repository security advisory. """ - id: str - network_configuration_id: NotRequired[str] + ghsa_id: str + cve_id: Union[str, None] + url: str + html_url: str + summary: str + description: Union[str, None] + severity: Union[None, Literal["critical", "high", "medium", "low"]] + author: None + publisher: None + identifiers: list[RepositoryAdvisoryPropIdentifiersItemsType] + state: Literal["published", "closed", "withdrawn", "draft", "triage"] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + published_at: Union[datetime, None] + closed_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + submission: Union[RepositoryAdvisoryPropSubmissionType, None] + vulnerabilities: Union[list[RepositoryAdvisoryVulnerabilityType], None] + cvss: Union[RepositoryAdvisoryPropCvssType, None] + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: Union[list[RepositoryAdvisoryPropCwesItemsType], None] + cwe_ids: Union[list[str], None] + credits_: Union[list[RepositoryAdvisoryPropCreditsItemsType], None] + credits_detailed: Union[list[RepositoryAdvisoryCreditType], None] + collaborating_users: Union[list[SimpleUserType], None] + collaborating_teams: Union[list[TeamType], None] + private_fork: None + + +class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class RepositoryAdvisoryPropSubmissionType(TypedDict): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool + + +class RepositoryAdvisoryPropCvssType(TypedDict): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class RepositoryAdvisoryPropCwesItemsType(TypedDict): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str name: str - subnet_id: str - region: str -__all__ = ("NetworkSettingsType",) +class RepositoryAdvisoryPropCreditsItemsType(TypedDict): + """RepositoryAdvisoryPropCreditsItems""" + + login: NotRequired[str] + type: NotRequired[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[list[str], None] + + +class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: Union[str, None] + + +__all__ = ( + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryType", + "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryAdvisoryVulnerabilityType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0183.py b/githubkit/versions/v2022_11_28/types/group_0183.py index 19091a1ca..fb14d5d5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0183.py +++ b/githubkit/versions/v2022_11_28/types/group_0183.py @@ -9,111 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0079 import TeamSimpleType +class ActionsBillingUsageType(TypedDict): + """ActionsBillingUsage""" -class TeamFullType(TypedDict): - """Full Team + total_minutes_used: int + total_paid_minutes_used: int + included_minutes: int + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType - Groups of organization members that gives permissions on specified repositories. - """ - id: int - node_id: str - url: str - html_url: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: str - members_url: str - repositories_url: str - parent: NotRequired[Union[None, TeamSimpleType]] - members_count: int - repos_count: int - created_at: datetime - updated_at: datetime - organization: TeamOrganizationType - ldap_dn: NotRequired[str] +class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): + """ActionsBillingUsagePropMinutesUsedBreakdown""" - -class TeamOrganizationType(TypedDict): - """Team Organization - - Team Organization - """ - - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - created_at: datetime - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[TeamOrganizationPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - updated_at: datetime - archived_at: Union[datetime, None] - - -class TeamOrganizationPropPlanType(TypedDict): - """TeamOrganizationPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + ubuntu: NotRequired[int] + macos: NotRequired[int] + windows: NotRequired[int] + ubuntu_4_core: NotRequired[int] + ubuntu_8_core: NotRequired[int] + ubuntu_16_core: NotRequired[int] + ubuntu_32_core: NotRequired[int] + ubuntu_64_core: NotRequired[int] + windows_4_core: NotRequired[int] + windows_8_core: NotRequired[int] + windows_16_core: NotRequired[int] + windows_32_core: NotRequired[int] + windows_64_core: NotRequired[int] + macos_12_core: NotRequired[int] + total: NotRequired[int] __all__ = ( - "TeamFullType", - "TeamOrganizationPropPlanType", - "TeamOrganizationType", + "ActionsBillingUsagePropMinutesUsedBreakdownType", + "ActionsBillingUsageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0184.py b/githubkit/versions/v2022_11_28/types/group_0184.py index bad54e14b..cac22c41a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0184.py +++ b/githubkit/versions/v2022_11_28/types/group_0184.py @@ -9,39 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0041 import ReactionRollupType - - -class TeamDiscussionType(TypedDict): - """Team Discussion - - A team discussion is a persistent record of a free-form conversation within a - team. - """ - - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str - node_id: str - number: int - pinned: bool - private: bool - team_url: str - title: str - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TeamDiscussionType",) +from typing_extensions import TypedDict + + +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" + + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int + + +__all__ = ("PackagesBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0185.py b/githubkit/versions/v2022_11_28/types/group_0185.py index 16f233932..15a19a09d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0185.py +++ b/githubkit/versions/v2022_11_28/types/group_0185.py @@ -9,33 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0041 import ReactionRollupType +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int - A reply to a discussion within a team. - """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - created_at: datetime - last_edited_at: Union[datetime, None] - discussion_url: str - html_url: str - node_id: str - number: int - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TeamDiscussionCommentType",) +__all__ = ("CombinedBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0186.py b/githubkit/versions/v2022_11_28/types/group_0186.py index 29fb93bc6..c2fd7df78 100644 --- a/githubkit/versions/v2022_11_28/types/group_0186.py +++ b/githubkit/versions/v2022_11_28/types/group_0186.py @@ -9,27 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class NetworkSettingsType(TypedDict): + """Hosted compute network settings resource -class ReactionType(TypedDict): - """Reaction - - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + A hosted compute network settings resource. """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - created_at: datetime + id: str + network_configuration_id: NotRequired[str] + name: str + subnet_id: str + region: str -__all__ = ("ReactionType",) +__all__ = ("NetworkSettingsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0187.py b/githubkit/versions/v2022_11_28/types/group_0187.py index 201ca0a17..13d18ee80 100644 --- a/githubkit/versions/v2022_11_28/types/group_0187.py +++ b/githubkit/versions/v2022_11_28/types/group_0187.py @@ -9,19 +9,111 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0083 import TeamSimpleType -class TeamMembershipType(TypedDict): - """Team Membership - Team Membership +class TeamFullType(TypedDict): + """Full Team + + Groups of organization members that gives permissions on specified repositories. + """ + + id: int + node_id: str + url: str + html_url: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[Literal["closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: str + members_url: str + repositories_url: str + parent: NotRequired[Union[None, TeamSimpleType]] + members_count: int + repos_count: int + created_at: datetime + updated_at: datetime + organization: TeamOrganizationType + ldap_dn: NotRequired[str] + + +class TeamOrganizationType(TypedDict): + """Team Organization + + Team Organization """ + login: str + id: int + node_id: str url: str - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + created_at: datetime + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[TeamOrganizationPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + updated_at: datetime + archived_at: Union[datetime, None] + + +class TeamOrganizationPropPlanType(TypedDict): + """TeamOrganizationPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] -__all__ = ("TeamMembershipType",) +__all__ = ( + "TeamFullType", + "TeamOrganizationPropPlanType", + "TeamOrganizationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0188.py b/githubkit/versions/v2022_11_28/types/group_0188.py index eac617342..3f1c1ba37 100644 --- a/githubkit/versions/v2022_11_28/types/group_0188.py +++ b/githubkit/versions/v2022_11_28/types/group_0188.py @@ -9,45 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0044 import ReactionRollupType -class TeamProjectType(TypedDict): - """Team Project +class TeamDiscussionType(TypedDict): + """Team Discussion - A team's access to a project. + A team discussion is a persistent record of a free-form conversation within a + team. """ - owner_url: str - url: str + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + comments_count: int + comments_url: str + created_at: datetime + last_edited_at: Union[datetime, None] html_url: str - columns_url: str - id: int node_id: str - name: str - body: Union[str, None] number: int - state: str - creator: SimpleUserType - created_at: str - updated_at: str - organization_permission: NotRequired[str] - private: NotRequired[bool] - permissions: TeamProjectPropPermissionsType - - -class TeamProjectPropPermissionsType(TypedDict): - """TeamProjectPropPermissions""" - - read: bool - write: bool - admin: bool + pinned: bool + private: bool + team_url: str + title: str + updated_at: datetime + url: str + reactions: NotRequired[ReactionRollupType] -__all__ = ( - "TeamProjectPropPermissionsType", - "TeamProjectType", -) +__all__ = ("TeamDiscussionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0189.py b/githubkit/versions/v2022_11_28/types/group_0189.py index d648ae260..565efa676 100644 --- a/githubkit/versions/v2022_11_28/types/group_0189.py +++ b/githubkit/versions/v2022_11_28/types/group_0189.py @@ -14,117 +14,28 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +from .group_0044 import ReactionRollupType -class TeamRepositoryType(TypedDict): - """Team Repository +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment - A team's access to a repository. + A reply to a discussion within a team. """ - id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[TeamRepositoryPropPermissionsType] - role_name: NotRequired[str] - owner: Union[None, SimpleUserType] - private: bool + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + created_at: datetime + last_edited_at: Union[datetime, None] + discussion_url: str html_url: str - description: Union[str, None] - fork: bool + node_id: str + number: int + updated_at: datetime url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - - -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + reactions: NotRequired[ReactionRollupType] -__all__ = ( - "TeamRepositoryPropPermissionsType", - "TeamRepositoryType", -) +__all__ = ("TeamDiscussionCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0190.py b/githubkit/versions/v2022_11_28/types/group_0190.py index fdc7baddd..29fb93bc6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0190.py +++ b/githubkit/versions/v2022_11_28/types/group_0190.py @@ -10,31 +10,26 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -class ProjectCardType(TypedDict): - """Project Card +class ReactionType(TypedDict): + """Reaction - Project cards represent a scope of work. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - url: str id: int node_id: str - note: Union[str, None] - creator: Union[None, SimpleUserType] + user: Union[None, SimpleUserType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] created_at: datetime - updated_at: datetime - archived: NotRequired[bool] - column_name: NotRequired[str] - project_id: NotRequired[str] - column_url: str - content_url: NotRequired[str] - project_url: str -__all__ = ("ProjectCardType",) +__all__ = ("ReactionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0191.py b/githubkit/versions/v2022_11_28/types/group_0191.py index d23a9ab67..201ca0a17 100644 --- a/githubkit/versions/v2022_11_28/types/group_0191.py +++ b/githubkit/versions/v2022_11_28/types/group_0191.py @@ -9,24 +9,19 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict -class ProjectColumnType(TypedDict): - """Project Column +class TeamMembershipType(TypedDict): + """Team Membership - Project columns contain cards of work. + Team Membership """ url: str - project_url: str - cards_url: str - id: int - node_id: str - name: str - created_at: datetime - updated_at: datetime + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ("ProjectColumnType",) +__all__ = ("TeamMembershipType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0192.py b/githubkit/versions/v2022_11_28/types/group_0192.py index 45af07517..eac617342 100644 --- a/githubkit/versions/v2022_11_28/types/group_0192.py +++ b/githubkit/versions/v2022_11_28/types/group_0192.py @@ -10,19 +10,44 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission +class TeamProjectType(TypedDict): + """Team Project - Project Collaborator Permission + A team's access to a project. """ - permission: str - user: Union[None, SimpleUserType] - - -__all__ = ("ProjectCollaboratorPermissionType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: SimpleUserType + created_at: str + updated_at: str + organization_permission: NotRequired[str] + private: NotRequired[bool] + permissions: TeamProjectPropPermissionsType + + +class TeamProjectPropPermissionsType(TypedDict): + """TeamProjectPropPermissions""" + + read: bool + write: bool + admin: bool + + +__all__ = ( + "TeamProjectPropPermissionsType", + "TeamProjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0193.py b/githubkit/versions/v2022_11_28/types/group_0193.py index 7564a62f1..d648ae260 100644 --- a/githubkit/versions/v2022_11_28/types/group_0193.py +++ b/githubkit/versions/v2022_11_28/types/group_0193.py @@ -9,16 +9,122 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class RateLimitType(TypedDict): - """Rate Limit""" - limit: int - remaining: int - reset: int - used: int +class TeamRepositoryType(TypedDict): + """Team Repository + A team's access to a repository. + """ -__all__ = ("RateLimitType",) + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + + +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +__all__ = ( + "TeamRepositoryPropPermissionsType", + "TeamRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0194.py b/githubkit/versions/v2022_11_28/types/group_0194.py index 7fc6ac6fc..fdc7baddd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0194.py +++ b/githubkit/versions/v2022_11_28/types/group_0194.py @@ -9,20 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0193 import RateLimitType -from .group_0195 import RateLimitOverviewPropResourcesType +from .group_0003 import SimpleUserType -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview +class ProjectCardType(TypedDict): + """Project Card - Rate Limit Overview + Project cards represent a scope of work. """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType - - -__all__ = ("RateLimitOverviewType",) + url: str + id: int + node_id: str + note: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + archived: NotRequired[bool] + column_name: NotRequired[str] + project_id: NotRequired[str] + column_url: str + content_url: NotRequired[str] + project_url: str + + +__all__ = ("ProjectCardType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0195.py b/githubkit/versions/v2022_11_28/types/group_0195.py index cb6ffc5a8..d23a9ab67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0195.py +++ b/githubkit/versions/v2022_11_28/types/group_0195.py @@ -9,25 +9,24 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -from .group_0193 import RateLimitType +class ProjectColumnType(TypedDict): + """Project Column -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" + Project columns contain cards of work. + """ - core: RateLimitType - graphql: NotRequired[RateLimitType] - search: RateLimitType - code_search: NotRequired[RateLimitType] - source_import: NotRequired[RateLimitType] - integration_manifest: NotRequired[RateLimitType] - code_scanning_upload: NotRequired[RateLimitType] - actions_runner_registration: NotRequired[RateLimitType] - scim: NotRequired[RateLimitType] - dependency_snapshots: NotRequired[RateLimitType] - code_scanning_autofix: NotRequired[RateLimitType] + url: str + project_url: str + cards_url: str + id: int + node_id: str + name: str + created_at: datetime + updated_at: datetime -__all__ = ("RateLimitOverviewPropResourcesType",) +__all__ = ("ProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0196.py b/githubkit/versions/v2022_11_28/types/group_0196.py index 02e909e24..45af07517 100644 --- a/githubkit/versions/v2022_11_28/types/group_0196.py +++ b/githubkit/versions/v2022_11_28/types/group_0196.py @@ -9,42 +9,20 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ArtifactType(TypedDict): - """Artifact - An artifact +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission + + Project Collaborator Permission """ - id: int - node_id: str - name: str - size_in_bytes: int - url: str - archive_download_url: str - expired: bool - created_at: Union[datetime, None] - expires_at: Union[datetime, None] - updated_at: Union[datetime, None] - digest: NotRequired[Union[str, None]] - workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] - - -class ArtifactPropWorkflowRunType(TypedDict): - """ArtifactPropWorkflowRun""" - - id: NotRequired[int] - repository_id: NotRequired[int] - head_repository_id: NotRequired[int] - head_branch: NotRequired[str] - head_sha: NotRequired[str] - - -__all__ = ( - "ArtifactPropWorkflowRunType", - "ArtifactType", -) + permission: str + user: Union[None, SimpleUserType] + + +__all__ = ("ProjectCollaboratorPermissionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0197.py b/githubkit/versions/v2022_11_28/types/group_0197.py index 88facf6b2..7564a62f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0197.py +++ b/githubkit/versions/v2022_11_28/types/group_0197.py @@ -9,33 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ActionsCacheListType(TypedDict): - """Repository actions caches +class RateLimitType(TypedDict): + """Rate Limit""" - Repository actions caches - """ + limit: int + remaining: int + reset: int + used: int - total_count: int - actions_caches: list[ActionsCacheListPropActionsCachesItemsType] - -class ActionsCacheListPropActionsCachesItemsType(TypedDict): - """ActionsCacheListPropActionsCachesItems""" - - id: NotRequired[int] - ref: NotRequired[str] - key: NotRequired[str] - version: NotRequired[str] - last_accessed_at: NotRequired[datetime] - created_at: NotRequired[datetime] - size_in_bytes: NotRequired[int] - - -__all__ = ( - "ActionsCacheListPropActionsCachesItemsType", - "ActionsCacheListType", -) +__all__ = ("RateLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0198.py b/githubkit/versions/v2022_11_28/types/group_0198.py index 1d359461a..71f75cecc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0198.py +++ b/githubkit/versions/v2022_11_28/types/group_0198.py @@ -9,67 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0197 import RateLimitType +from .group_0199 import RateLimitOverviewPropResourcesType -class JobType(TypedDict): - """Job - Information of a job execution in a workflow run - """ - - id: int - run_id: int - run_url: str - run_attempt: NotRequired[int] - node_id: str - head_sha: str - url: str - html_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - created_at: datetime - started_at: datetime - completed_at: Union[datetime, None] - name: str - steps: NotRequired[list[JobPropStepsItemsType]] - check_run_url: str - labels: list[str] - runner_id: Union[int, None] - runner_name: Union[str, None] - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - workflow_name: Union[str, None] - head_branch: Union[str, None] +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + Rate Limit Overview + """ -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] - conclusion: Union[str, None] - name: str - number: int - started_at: NotRequired[Union[datetime, None]] - completed_at: NotRequired[Union[datetime, None]] + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType -__all__ = ( - "JobPropStepsItemsType", - "JobType", -) +__all__ = ("RateLimitOverviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0199.py b/githubkit/versions/v2022_11_28/types/group_0199.py index faacb2b0b..45d024730 100644 --- a/githubkit/versions/v2022_11_28/types/group_0199.py +++ b/githubkit/versions/v2022_11_28/types/group_0199.py @@ -11,15 +11,23 @@ from typing_extensions import NotRequired, TypedDict +from .group_0197 import RateLimitType -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" - use_default: bool - include_claim_keys: NotRequired[list[str]] + core: RateLimitType + graphql: NotRequired[RateLimitType] + search: RateLimitType + code_search: NotRequired[RateLimitType] + source_import: NotRequired[RateLimitType] + integration_manifest: NotRequired[RateLimitType] + code_scanning_upload: NotRequired[RateLimitType] + actions_runner_registration: NotRequired[RateLimitType] + scim: NotRequired[RateLimitType] + dependency_snapshots: NotRequired[RateLimitType] + code_scanning_autofix: NotRequired[RateLimitType] -__all__ = ("OidcCustomSubRepoType",) +__all__ = ("RateLimitOverviewPropResourcesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0200.py b/githubkit/versions/v2022_11_28/types/group_0200.py index 7d6ae5032..02e909e24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0200.py +++ b/githubkit/versions/v2022_11_28/types/group_0200.py @@ -10,18 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ActionsSecretType(TypedDict): - """Actions Secret +class ArtifactType(TypedDict): + """Artifact - Set secrets for GitHub Actions. + An artifact """ + id: int + node_id: str name: str - created_at: datetime - updated_at: datetime - - -__all__ = ("ActionsSecretType",) + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + digest: NotRequired[Union[str, None]] + workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] + + +class ArtifactPropWorkflowRunType(TypedDict): + """ArtifactPropWorkflowRun""" + + id: NotRequired[int] + repository_id: NotRequired[int] + head_repository_id: NotRequired[int] + head_branch: NotRequired[str] + head_sha: NotRequired[str] + + +__all__ = ( + "ArtifactPropWorkflowRunType", + "ArtifactType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0201.py b/githubkit/versions/v2022_11_28/types/group_0201.py index eb13c7e2f..88facf6b2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0201.py +++ b/githubkit/versions/v2022_11_28/types/group_0201.py @@ -10,16 +10,32 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsVariableType(TypedDict): - """Actions Variable""" +class ActionsCacheListType(TypedDict): + """Repository actions caches - name: str - value: str - created_at: datetime - updated_at: datetime + Repository actions caches + """ + total_count: int + actions_caches: list[ActionsCacheListPropActionsCachesItemsType] -__all__ = ("ActionsVariableType",) + +class ActionsCacheListPropActionsCachesItemsType(TypedDict): + """ActionsCacheListPropActionsCachesItems""" + + id: NotRequired[int] + ref: NotRequired[str] + key: NotRequired[str] + version: NotRequired[str] + last_accessed_at: NotRequired[datetime] + created_at: NotRequired[datetime] + size_in_bytes: NotRequired[int] + + +__all__ = ( + "ActionsCacheListPropActionsCachesItemsType", + "ActionsCacheListType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0202.py b/githubkit/versions/v2022_11_28/types/group_0202.py index eb7ddcbc1..1d359461a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0202.py +++ b/githubkit/versions/v2022_11_28/types/group_0202.py @@ -9,16 +9,67 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" +class JobType(TypedDict): + """Job - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Information of a job execution in a workflow run + """ + id: int + run_id: int + run_url: str + run_attempt: NotRequired[int] + node_id: str + head_sha: str + url: str + html_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + created_at: datetime + started_at: datetime + completed_at: Union[datetime, None] + name: str + steps: NotRequired[list[JobPropStepsItemsType]] + check_run_url: str + labels: list[str] + runner_id: Union[int, None] + runner_name: Union[str, None] + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + workflow_name: Union[str, None] + head_branch: Union[str, None] -__all__ = ("ActionsRepositoryPermissionsType",) + +class JobPropStepsItemsType(TypedDict): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] + conclusion: Union[str, None] + name: str + number: int + started_at: NotRequired[Union[datetime, None]] + completed_at: NotRequired[Union[datetime, None]] + + +__all__ = ( + "JobPropStepsItemsType", + "JobType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0203.py b/githubkit/versions/v2022_11_28/types/group_0203.py index 7678cad21..faacb2b0b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0203.py +++ b/githubkit/versions/v2022_11_28/types/group_0203.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository - access_level: Literal["none", "user", "organization"] + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ActionsWorkflowAccessToRepositoryType",) + +__all__ = ("OidcCustomSubRepoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0204.py b/githubkit/versions/v2022_11_28/types/group_0204.py index 7879ad294..7d6ae5032 100644 --- a/githubkit/versions/v2022_11_28/types/group_0204.py +++ b/githubkit/versions/v2022_11_28/types/group_0204.py @@ -9,55 +9,19 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class ActionsSecretType(TypedDict): + """Actions Secret - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType + Set secrets for GitHub Actions. + """ - -class PullRequestMinimalPropHeadType(TypedDict): - """PullRequestMinimalPropHead""" - - ref: str - sha: str - repo: PullRequestMinimalPropHeadPropRepoType - - -class PullRequestMinimalPropHeadPropRepoType(TypedDict): - """PullRequestMinimalPropHeadPropRepo""" - - id: int - url: str - name: str - - -class PullRequestMinimalPropBaseType(TypedDict): - """PullRequestMinimalPropBase""" - - ref: str - sha: str - repo: PullRequestMinimalPropBasePropRepoType - - -class PullRequestMinimalPropBasePropRepoType(TypedDict): - """PullRequestMinimalPropBasePropRepo""" - - id: int - url: str name: str + created_at: datetime + updated_at: datetime -__all__ = ( - "PullRequestMinimalPropBasePropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalType", -) +__all__ = ("ActionsSecretType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0205.py b/githubkit/versions/v2022_11_28/types/group_0205.py index d8e989649..eb13c7e2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0205.py +++ b/githubkit/versions/v2022_11_28/types/group_0205.py @@ -10,46 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import Union from typing_extensions import TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit - - A commit. - """ - - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] - - -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer - """ +class ActionsVariableType(TypedDict): + """Actions Variable""" name: str - email: str + value: str + created_at: datetime + updated_at: datetime -__all__ = ( - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", - "SimpleCommitType", -) +__all__ = ("ActionsVariableType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0206.py b/githubkit/versions/v2022_11_28/types/group_0206.py index 922a569b2..eb7ddcbc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0206.py +++ b/githubkit/versions/v2022_11_28/types/group_0206.py @@ -9,72 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0058 import MinimalRepositoryType -from .group_0204 import PullRequestMinimalType -from .group_0205 import SimpleCommitType +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" -class WorkflowRunType(TypedDict): - """Workflow Run + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - An invocation of a workflow - """ - id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int - url: str - html_url: str - pull_requests: Union[list[PullRequestMinimalType], None] - created_at: datetime - updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str - sha: str - ref: NotRequired[str] - - -__all__ = ( - "ReferencedWorkflowType", - "WorkflowRunType", -) +__all__ = ("ActionsRepositoryPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0207.py b/githubkit/versions/v2022_11_28/types/group_0207.py index 8003cc5ba..7678cad21 100644 --- a/githubkit/versions/v2022_11_28/types/group_0207.py +++ b/githubkit/versions/v2022_11_28/types/group_0207.py @@ -9,38 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" -class EnvironmentApprovalsType(TypedDict): - """Environment Approval + access_level: Literal["none", "user", "organization"] - An entry in the reviews log for environment deployments - """ - environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str - - -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -__all__ = ( - "EnvironmentApprovalsPropEnvironmentsItemsType", - "EnvironmentApprovalsType", -) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0208.py b/githubkit/versions/v2022_11_28/types/group_0208.py index 909bb75c8..7879ad294 100644 --- a/githubkit/versions/v2022_11_28/types/group_0208.py +++ b/githubkit/versions/v2022_11_28/types/group_0208.py @@ -12,11 +12,52 @@ from typing_extensions import TypedDict -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" - environment_name: str - comment: str + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType -__all__ = ("ReviewCustomGatesCommentRequiredType",) +class PullRequestMinimalPropHeadType(TypedDict): + """PullRequestMinimalPropHead""" + + ref: str + sha: str + repo: PullRequestMinimalPropHeadPropRepoType + + +class PullRequestMinimalPropHeadPropRepoType(TypedDict): + """PullRequestMinimalPropHeadPropRepo""" + + id: int + url: str + name: str + + +class PullRequestMinimalPropBaseType(TypedDict): + """PullRequestMinimalPropBase""" + + ref: str + sha: str + repo: PullRequestMinimalPropBasePropRepoType + + +class PullRequestMinimalPropBasePropRepoType(TypedDict): + """PullRequestMinimalPropBasePropRepo""" + + id: int + url: str + name: str + + +__all__ = ( + "PullRequestMinimalPropBasePropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0209.py b/githubkit/versions/v2022_11_28/types/group_0209.py index 75b0bb6f6..d8e989649 100644 --- a/githubkit/versions/v2022_11_28/types/group_0209.py +++ b/githubkit/versions/v2022_11_28/types/group_0209.py @@ -9,16 +9,47 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict -class ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" +class SimpleCommitType(TypedDict): + """Simple Commit - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] + A commit. + """ + id: str + tree_id: str + message: str + timestamp: datetime + author: Union[SimpleCommitPropAuthorType, None] + committer: Union[SimpleCommitPropCommitterType, None] -__all__ = ("ReviewCustomGatesStateRequiredType",) + +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor + + Information about the Git author + """ + + name: str + email: str + + +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str + email: str + + +__all__ = ( + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", + "SimpleCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0210.py b/githubkit/versions/v2022_11_28/types/group_0210.py index f9c1eb2a7..fe8a487e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0210.py +++ b/githubkit/versions/v2022_11_28/types/group_0210.py @@ -10,45 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0080 import TeamType +from .group_0061 import MinimalRepositoryType +from .group_0208 import PullRequestMinimalType +from .group_0209 import SimpleCommitType -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" +class WorkflowRunType(TypedDict): + """Workflow Run - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] - - -class PendingDeploymentType(TypedDict): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass + An invocation of a workflow """ - environment: PendingDeploymentPropEnvironmentType - wait_timer: int - wait_timer_started_at: Union[datetime, None] - current_user_can_approve: bool - reviewers: list[PendingDeploymentPropReviewersItemsType] - - -class PendingDeploymentPropEnvironmentType(TypedDict): - """PendingDeploymentPropEnvironment""" + id: int + name: NotRequired[Union[str, None]] + node_id: str + check_suite_id: NotRequired[int] + check_suite_node_id: NotRequired[str] + head_branch: Union[str, None] + head_sha: str + path: str + run_number: int + run_attempt: NotRequired[int] + referenced_workflows: NotRequired[Union[list[ReferencedWorkflowType], None]] + event: str + status: Union[str, None] + conclusion: Union[str, None] + workflow_id: int + url: str + html_url: str + pull_requests: Union[list[PullRequestMinimalType], None] + created_at: datetime + updated_at: datetime + actor: NotRequired[SimpleUserType] + triggering_actor: NotRequired[SimpleUserType] + run_started_at: NotRequired[datetime] + jobs_url: str + logs_url: str + check_suite_url: str + artifacts_url: str + cancel_url: str + rerun_url: str + previous_attempt_url: NotRequired[Union[str, None]] + workflow_url: str + head_commit: Union[None, SimpleCommitType] + repository: MinimalRepositoryType + head_repository: MinimalRepositoryType + head_repository_id: NotRequired[int] + display_title: str + + +class ReferencedWorkflowType(TypedDict): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] + path: str + sha: str + ref: NotRequired[str] __all__ = ( - "PendingDeploymentPropEnvironmentType", - "PendingDeploymentPropReviewersItemsType", - "PendingDeploymentType", + "ReferencedWorkflowType", + "WorkflowRunType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0211.py b/githubkit/versions/v2022_11_28/types/group_0211.py index 92437789e..8003cc5ba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0211.py +++ b/githubkit/versions/v2022_11_28/types/group_0211.py @@ -10,45 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -class DeploymentType(TypedDict): - """Deployment +class EnvironmentApprovalsType(TypedDict): + """Environment Approval - A request for a specific ref(branch,sha,tag) to be deployed + An entry in the reviews log for environment deployments """ - url: str - id: int - node_id: str - sha: str - ref: str - task: str - payload: Union[DeploymentPropPayloadOneof0Type, str] - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""DeploymentPropPayloadOneof0 -""" + environments: list[EnvironmentApprovalsPropEnvironmentsItemsType] + state: Literal["approved", "rejected", "pending"] + user: SimpleUserType + comment: str + + +class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] __all__ = ( - "DeploymentPropPayloadOneof0Type", - "DeploymentType", + "EnvironmentApprovalsPropEnvironmentsItemsType", + "EnvironmentApprovalsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0212.py b/githubkit/versions/v2022_11_28/types/group_0212.py index f9d6d4cf5..909bb75c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0212.py +++ b/githubkit/versions/v2022_11_28/types/group_0212.py @@ -9,85 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WorkflowRunUsageType(TypedDict): - """Workflow Run Usage +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" - Workflow Run Usage - """ + environment_name: str + comment: str - billable: WorkflowRunUsagePropBillableType - run_duration_ms: NotRequired[int] - -class WorkflowRunUsagePropBillableType(TypedDict): - """WorkflowRunUsagePropBillable""" - - ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] - - -class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropMacosType(TypedDict): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int - duration_ms: int - - -__all__ = ( - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsageType", -) +__all__ = ("ReviewCustomGatesCommentRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0213.py b/githubkit/versions/v2022_11_28/types/group_0213.py index 6cefd47bb..75b0bb6f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0213.py +++ b/githubkit/versions/v2022_11_28/types/group_0213.py @@ -9,48 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WorkflowUsageType(TypedDict): - """Workflow Usage +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" - Workflow Usage - """ + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] - billable: WorkflowUsagePropBillableType - -class WorkflowUsagePropBillableType(TypedDict): - """WorkflowUsagePropBillable""" - - ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] - - -class WorkflowUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: NotRequired[int] - - -__all__ = ( - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropWindowsType", - "WorkflowUsagePropBillableType", - "WorkflowUsageType", -) +__all__ = ("ReviewCustomGatesStateRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0214.py b/githubkit/versions/v2022_11_28/types/group_0214.py index 1deac10b0..750ab745e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0214.py +++ b/githubkit/versions/v2022_11_28/types/group_0214.py @@ -11,32 +11,44 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0084 import TeamType -class ActivityType(TypedDict): - """Activity +class PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" - Activity + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] + + +class PendingDeploymentType(TypedDict): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - id: int - node_id: str - before: str - after: str - ref: str - timestamp: datetime - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] - actor: Union[None, SimpleUserType] - - -__all__ = ("ActivityType",) + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: list[PendingDeploymentPropReviewersItemsType] + + +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + + +__all__ = ( + "PendingDeploymentPropEnvironmentType", + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0215.py b/githubkit/versions/v2022_11_28/types/group_0215.py index 8b6890539..92437789e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0215.py +++ b/githubkit/versions/v2022_11_28/types/group_0215.py @@ -9,19 +9,46 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class AutolinkType(TypedDict): - """Autolink reference - An autolink reference. +class DeploymentType(TypedDict): + """Deployment + + A request for a specific ref(branch,sha,tag) to be deployed """ + url: str id: int - key_prefix: str - url_template: str - is_alphanumeric: bool + node_id: str + sha: str + ref: str + task: str + payload: Union[DeploymentPropPayloadOneof0Type, str] + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +DeploymentPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""DeploymentPropPayloadOneof0 +""" -__all__ = ("AutolinkType",) +__all__ = ( + "DeploymentPropPayloadOneof0Type", + "DeploymentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0216.py b/githubkit/versions/v2022_11_28/types/group_0216.py index deb29de44..f9d6d4cf5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0216.py +++ b/githubkit/versions/v2022_11_28/types/group_0216.py @@ -9,17 +9,85 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Dependabot security updates +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage - Check Dependabot security updates + Workflow Run Usage """ - enabled: bool - paused: bool + billable: WorkflowRunUsagePropBillableType + run_duration_ms: NotRequired[int] -__all__ = ("CheckAutomatedSecurityFixesType",) +class WorkflowRunUsagePropBillableType(TypedDict): + """WorkflowRunUsagePropBillable""" + + ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] + + +class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropMacosType(TypedDict): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + list[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int + duration_ms: int + + +__all__ = ( + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0217.py b/githubkit/versions/v2022_11_28/types/group_0217.py index effc8d804..6cefd47bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0217.py +++ b/githubkit/versions/v2022_11_28/types/group_0217.py @@ -11,29 +11,46 @@ from typing_extensions import NotRequired, TypedDict -from .group_0218 import ( - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, -) - -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review +class WorkflowUsageType(TypedDict): + """Workflow Usage - Protected Branch Pull Request Review + Workflow Usage """ - url: NotRequired[str] - dismissal_restrictions: NotRequired[ - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType - ] - dismiss_stale_reviews: bool - require_code_owner_reviews: bool - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] + billable: WorkflowUsagePropBillableType + + +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" + + ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] + + +class WorkflowUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: NotRequired[int] -__all__ = ("ProtectedBranchPullRequestReviewType",) +class WorkflowUsagePropBillablePropMacosType(TypedDict): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropWindowsType(TypedDict): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: NotRequired[int] + + +__all__ = ( + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropWindowsType", + "WorkflowUsagePropBillableType", + "WorkflowUsageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0218.py b/githubkit/versions/v2022_11_28/types/group_0218.py index 8df6652ce..1deac10b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0218.py +++ b/githubkit/versions/v2022_11_28/types/group_0218.py @@ -9,37 +9,34 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0080 import TeamType -class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class ActivityType(TypedDict): + """Activity - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] - url: NotRequired[str] - users_url: NotRequired[str] - teams_url: NotRequired[str] - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + Activity """ - users: NotRequired[list[SimpleUserType]] - teams: NotRequired[list[TeamType]] - apps: NotRequired[list[Union[IntegrationType, None]]] - - -__all__ = ( - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", -) + id: int + node_id: str + before: str + after: str + ref: str + timestamp: datetime + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] + actor: Union[None, SimpleUserType] + + +__all__ = ("ActivityType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0219.py b/githubkit/versions/v2022_11_28/types/group_0219.py index f6fd03a7a..8b6890539 100644 --- a/githubkit/versions/v2022_11_28/types/group_0219.py +++ b/githubkit/versions/v2022_11_28/types/group_0219.py @@ -9,128 +9,19 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BranchRestrictionPolicyType(TypedDict): - """Branch Restriction Policy +class AutolinkType(TypedDict): + """Autolink reference - Branch Restriction Policy + An autolink reference. """ - url: str - users_url: str - teams_url: str - apps_url: str - users: list[BranchRestrictionPolicyPropUsersItemsType] - teams: list[BranchRestrictionPolicyPropTeamsItemsType] - apps: list[BranchRestrictionPolicyPropAppsItemsType] + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -class BranchRestrictionPolicyPropUsersItemsType(TypedDict): - """BranchRestrictionPolicyPropUsersItems""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): - """BranchRestrictionPolicyPropTeamsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - name: NotRequired[str] - slug: NotRequired[str] - description: NotRequired[Union[str, None]] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: NotRequired[str] - members_url: NotRequired[str] - repositories_url: NotRequired[str] - parent: NotRequired[Union[str, None]] - - -class BranchRestrictionPolicyPropAppsItemsType(TypedDict): - """BranchRestrictionPolicyPropAppsItems""" - - id: NotRequired[int] - slug: NotRequired[str] - node_id: NotRequired[str] - owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] - name: NotRequired[str] - client_id: NotRequired[str] - description: NotRequired[str] - external_url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] - events: NotRequired[list[str]] - - -class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - hooks_url: NotRequired[str] - issues_url: NotRequired[str] - members_url: NotRequired[str] - public_members_url: NotRequired[str] - avatar_url: NotRequired[str] - description: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - user_view_type: NotRequired[str] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] - - -__all__ = ( - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyType", -) +__all__ = ("AutolinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0220.py b/githubkit/versions/v2022_11_28/types/group_0220.py index 2273b0747..deb29de44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0220.py +++ b/githubkit/versions/v2022_11_28/types/group_0220.py @@ -9,138 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0217 import ProtectedBranchPullRequestReviewType -from .group_0219 import BranchRestrictionPolicyType +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Dependabot security updates -class BranchProtectionType(TypedDict): - """Branch Protection - - Branch Protection - """ - - url: NotRequired[str] - enabled: NotRequired[bool] - required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] - enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] - required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] - allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] - block_creations: NotRequired[BranchProtectionPropBlockCreationsType] - required_conversation_resolution: NotRequired[ - BranchProtectionPropRequiredConversationResolutionType - ] - name: NotRequired[str] - protection_url: NotRequired[str] - required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] - lock_branch: NotRequired[BranchProtectionPropLockBranchType] - allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] - - -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced + Check Dependabot security updates """ - url: str enabled: bool + paused: bool -class BranchProtectionPropRequiredLinearHistoryType(TypedDict): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForcePushesType(TypedDict): - """BranchProtectionPropAllowForcePushes""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowDeletionsType(TypedDict): - """BranchProtectionPropAllowDeletions""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropBlockCreationsType(TypedDict): - """BranchProtectionPropBlockCreations""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredConversationResolutionType(TypedDict): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredSignaturesType(TypedDict): - """BranchProtectionPropRequiredSignatures""" - - url: str - enabled: bool - - -class BranchProtectionPropLockBranchType(TypedDict): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForkSyncingType(TypedDict): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckType(TypedDict): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: NotRequired[str] - enforcement_level: NotRequired[str] - contexts: list[str] - checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] - contexts_url: NotRequired[str] - strict: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str - app_id: Union[int, None] - - -__all__ = ( - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowForkSyncingType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", - "ProtectedBranchRequiredStatusCheckType", -) +__all__ = ("CheckAutomatedSecurityFixesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0221.py b/githubkit/versions/v2022_11_28/types/group_0221.py index 3abca3343..8cfc78730 100644 --- a/githubkit/versions/v2022_11_28/types/group_0221.py +++ b/githubkit/versions/v2022_11_28/types/group_0221.py @@ -11,30 +11,29 @@ from typing_extensions import NotRequired, TypedDict -from .group_0220 import BranchProtectionType +from .group_0222 import ( + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, +) -class ShortBranchType(TypedDict): - """Short Branch +class ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review - Short Branch + Protected Branch Pull Request Review """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[str] - - -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" + url: NotRequired[str] + dismissal_restrictions: NotRequired[ + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType + ] + dismiss_stale_reviews: bool + require_code_owner_reviews: bool + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] - sha: str - url: str - -__all__ = ( - "ShortBranchPropCommitType", - "ShortBranchType", -) +__all__ = ("ProtectedBranchPullRequestReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0222.py b/githubkit/versions/v2022_11_28/types/group_0222.py index 7c317075a..945ea39d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0222.py +++ b/githubkit/versions/v2022_11_28/types/group_0222.py @@ -9,19 +9,37 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0084 import TeamType -class GitUserType(TypedDict): - """Git User - Metaproperties for Git author/committer information. +class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] + url: NotRequired[str] + users_url: NotRequired[str] + teams_url: NotRequired[str] + + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[datetime] + users: NotRequired[list[SimpleUserType]] + teams: NotRequired[list[TeamType]] + apps: NotRequired[list[Union[IntegrationType, None]]] -__all__ = ("GitUserType",) +__all__ = ( + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0223.py b/githubkit/versions/v2022_11_28/types/group_0223.py index 54e368f8f..f6fd03a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0223.py +++ b/githubkit/versions/v2022_11_28/types/group_0223.py @@ -10,17 +10,127 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class VerificationType(TypedDict): - """Verification""" +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] - verified_at: Union[str, None] + Branch Restriction Policy + """ + url: str + users_url: str + teams_url: str + apps_url: str + users: list[BranchRestrictionPolicyPropUsersItemsType] + teams: list[BranchRestrictionPolicyPropTeamsItemsType] + apps: list[BranchRestrictionPolicyPropAppsItemsType] -__all__ = ("VerificationType",) + +class BranchRestrictionPolicyPropUsersItemsType(TypedDict): + """BranchRestrictionPolicyPropUsersItems""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] + + +class BranchRestrictionPolicyPropTeamsItemsType(TypedDict): + """BranchRestrictionPolicyPropTeamsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + name: NotRequired[str] + slug: NotRequired[str] + description: NotRequired[Union[str, None]] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: NotRequired[str] + members_url: NotRequired[str] + repositories_url: NotRequired[str] + parent: NotRequired[Union[str, None]] + + +class BranchRestrictionPolicyPropAppsItemsType(TypedDict): + """BranchRestrictionPolicyPropAppsItems""" + + id: NotRequired[int] + slug: NotRequired[str] + node_id: NotRequired[str] + owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] + name: NotRequired[str] + client_id: NotRequired[str] + description: NotRequired[str] + external_url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[BranchRestrictionPolicyPropAppsItemsPropPermissionsType] + events: NotRequired[list[str]] + + +class BranchRestrictionPolicyPropAppsItemsPropOwnerType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + hooks_url: NotRequired[str] + issues_url: NotRequired[str] + members_url: NotRequired[str] + public_members_url: NotRequired[str] + avatar_url: NotRequired[str] + description: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + user_view_type: NotRequired[str] + + +class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: NotRequired[str] + contents: NotRequired[str] + issues: NotRequired[str] + single_file: NotRequired[str] + + +__all__ = ( + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0224.py b/githubkit/versions/v2022_11_28/types/group_0224.py index bb2e4713b..19e21683a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0224.py +++ b/githubkit/versions/v2022_11_28/types/group_0224.py @@ -9,29 +9,138 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0221 import ProtectedBranchPullRequestReviewType +from .group_0223 import BranchRestrictionPolicyType -class DiffEntryType(TypedDict): - """Diff Entry - Diff Entry +class BranchProtectionType(TypedDict): + """Branch Protection + + Branch Protection """ - sha: Union[str, None] - filename: str - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + url: NotRequired[str] + enabled: NotRequired[bool] + required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] + enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] + required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] + allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] + block_creations: NotRequired[BranchProtectionPropBlockCreationsType] + required_conversation_resolution: NotRequired[ + BranchProtectionPropRequiredConversationResolutionType ] - additions: int - deletions: int - changes: int - blob_url: Union[str, None] - raw_url: Union[str, None] - contents_url: str - patch: NotRequired[str] - previous_filename: NotRequired[str] + name: NotRequired[str] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + + +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str + enabled: bool + + +class BranchProtectionPropRequiredLinearHistoryType(TypedDict): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForcePushesType(TypedDict): + """BranchProtectionPropAllowForcePushes""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowDeletionsType(TypedDict): + """BranchProtectionPropAllowDeletions""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropBlockCreationsType(TypedDict): + """BranchProtectionPropBlockCreations""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredConversationResolutionType(TypedDict): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredSignaturesType(TypedDict): + """BranchProtectionPropRequiredSignatures""" + + url: str + enabled: bool + + +class BranchProtectionPropLockBranchType(TypedDict): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForkSyncingType(TypedDict): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckType(TypedDict): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: NotRequired[str] + enforcement_level: NotRequired[str] + contexts: list[str] + checks: list[ProtectedBranchRequiredStatusCheckPropChecksItemsType] + contexts_url: NotRequired[str] + strict: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str + app_id: Union[int, None] -__all__ = ("DiffEntryType",) +__all__ = ( + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowForkSyncingType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", + "ProtectedBranchRequiredStatusCheckType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0225.py b/githubkit/versions/v2022_11_28/types/group_0225.py index b431cdbcb..379d359ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0225.py +++ b/githubkit/versions/v2022_11_28/types/group_0225.py @@ -9,59 +9,32 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0224 import DiffEntryType -from .group_0226 import CommitPropCommitType +from .group_0224 import BranchProtectionType -class CommitType(TypedDict): - """Commit +class ShortBranchType(TypedDict): + """Short Branch - Commit + Short Branch """ - url: str - sha: str - node_id: str - html_url: str - comments_url: str - commit: CommitPropCommitType - author: Union[SimpleUserType, EmptyObjectType, None] - committer: Union[SimpleUserType, EmptyObjectType, None] - parents: list[CommitPropParentsItemsType] - stats: NotRequired[CommitPropStatsType] - files: NotRequired[list[DiffEntryType]] - + name: str + commit: ShortBranchPropCommitType + protected: bool + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] -class EmptyObjectType(TypedDict): - """Empty Object - - An object without any properties. - """ - -class CommitPropParentsItemsType(TypedDict): - """CommitPropParentsItems""" +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" sha: str url: str - html_url: NotRequired[str] - - -class CommitPropStatsType(TypedDict): - """CommitPropStats""" - - additions: NotRequired[int] - deletions: NotRequired[int] - total: NotRequired[int] __all__ = ( - "CommitPropParentsItemsType", - "CommitPropStatsType", - "CommitType", - "EmptyObjectType", + "ShortBranchPropCommitType", + "ShortBranchType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0226.py b/githubkit/versions/v2022_11_28/types/group_0226.py index e28370c03..7c317075a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0226.py +++ b/githubkit/versions/v2022_11_28/types/group_0226.py @@ -9,33 +9,19 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_0222 import GitUserType -from .group_0223 import VerificationType +class GitUserType(TypedDict): + """Git User -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" + Metaproperties for Git author/committer information. + """ - url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] -class CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitPropCommitPropTreeType", - "CommitPropCommitType", -) +__all__ = ("GitUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0227.py b/githubkit/versions/v2022_11_28/types/group_0227.py index 9436e98a1..54e368f8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0227.py +++ b/githubkit/versions/v2022_11_28/types/group_0227.py @@ -9,36 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0220 import BranchProtectionType -from .group_0225 import CommitType +class VerificationType(TypedDict): + """Verification""" -class BranchWithProtectionType(TypedDict): - """Branch With Protection + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] + verified_at: Union[str, None] - Branch With Protection - """ - name: str - commit: CommitType - links: BranchWithProtectionPropLinksType - protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] - - -class BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" - - html: str - self_: str - - -__all__ = ( - "BranchWithProtectionPropLinksType", - "BranchWithProtectionType", -) +__all__ = ("VerificationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0228.py b/githubkit/versions/v2022_11_28/types/group_0228.py index abea56fe9..bb2e4713b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0228.py +++ b/githubkit/versions/v2022_11_28/types/group_0228.py @@ -9,133 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0219 import BranchRestrictionPolicyType -from .group_0229 import ProtectedBranchPropRequiredPullRequestReviewsType +class DiffEntryType(TypedDict): + """Diff Entry -class ProtectedBranchType(TypedDict): - """Protected Branch - - Branch protections protect branches + Diff Entry """ - url: str - required_status_checks: NotRequired[StatusCheckPolicyType] - required_pull_request_reviews: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsType - ] - required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] - enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] - required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] - allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_conversation_resolution: NotRequired[ - ProtectedBranchPropRequiredConversationResolutionType + sha: Union[str, None] + filename: str + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" ] - block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] - lock_branch: NotRequired[ProtectedBranchPropLockBranchType] - allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] - - -class ProtectedBranchPropRequiredSignaturesType(TypedDict): - """ProtectedBranchPropRequiredSignatures""" - - url: str - enabled: bool - - -class ProtectedBranchPropEnforceAdminsType(TypedDict): - """ProtectedBranchPropEnforceAdmins""" - - url: str - enabled: bool - - -class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool - - -class ProtectedBranchPropAllowForcePushesType(TypedDict): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool - - -class ProtectedBranchPropAllowDeletionsType(TypedDict): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool - - -class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class ProtectedBranchPropBlockCreationsType(TypedDict): - """ProtectedBranchPropBlockCreations""" - - enabled: bool - - -class ProtectedBranchPropLockBranchType(TypedDict): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchPropAllowForkSyncingType(TypedDict): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class StatusCheckPolicyType(TypedDict): - """Status Check Policy - - Status Check Policy - """ - - url: str - strict: bool - contexts: list[str] - checks: list[StatusCheckPolicyPropChecksItemsType] - contexts_url: str - - -class StatusCheckPolicyPropChecksItemsType(TypedDict): - """StatusCheckPolicyPropChecksItems""" - - context: str - app_id: Union[int, None] + additions: int + deletions: int + changes: int + blob_url: Union[str, None] + raw_url: Union[str, None] + contents_url: str + patch: NotRequired[str] + previous_filename: NotRequired[str] -__all__ = ( - "ProtectedBranchPropAllowDeletionsType", - "ProtectedBranchPropAllowForcePushesType", - "ProtectedBranchPropAllowForkSyncingType", - "ProtectedBranchPropBlockCreationsType", - "ProtectedBranchPropEnforceAdminsType", - "ProtectedBranchPropLockBranchType", - "ProtectedBranchPropRequiredConversationResolutionType", - "ProtectedBranchPropRequiredLinearHistoryType", - "ProtectedBranchPropRequiredSignaturesType", - "ProtectedBranchType", - "StatusCheckPolicyPropChecksItemsType", - "StatusCheckPolicyType", -) +__all__ = ("DiffEntryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0229.py b/githubkit/versions/v2022_11_28/types/group_0229.py index cd16f1469..331596e82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0229.py +++ b/githubkit/versions/v2022_11_28/types/group_0229.py @@ -9,28 +9,59 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0230 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, -) +from .group_0003 import SimpleUserType +from .group_0228 import DiffEntryType +from .group_0230 import CommitPropCommitType + +class CommitType(TypedDict): + """Commit -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + Commit + """ url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) + sha: str + node_id: str + html_url: str + comments_url: str + commit: CommitPropCommitType + author: Union[SimpleUserType, EmptyObjectType, None] + committer: Union[SimpleUserType, EmptyObjectType, None] + parents: list[CommitPropParentsItemsType] + stats: NotRequired[CommitPropStatsType] + files: NotRequired[list[DiffEntryType]] + + +class EmptyObjectType(TypedDict): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItemsType(TypedDict): + """CommitPropParentsItems""" + + sha: str + url: str + html_url: NotRequired[str] + + +class CommitPropStatsType(TypedDict): + """CommitPropStats""" + + additions: NotRequired[int] + deletions: NotRequired[int] + total: NotRequired[int] + + +__all__ = ( + "CommitPropParentsItemsType", + "CommitPropStatsType", + "CommitType", + "EmptyObjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0230.py b/githubkit/versions/v2022_11_28/types/group_0230.py index a4a6ff585..ccde88b8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0230.py +++ b/githubkit/versions/v2022_11_28/types/group_0230.py @@ -12,35 +12,30 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0080 import TeamType +from .group_0226 import GitUserType +from .group_0227 import VerificationType -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" url: str - users_url: str - teams_url: str - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" - users: list[SimpleUserType] - teams: list[TeamType] - apps: NotRequired[list[Union[IntegrationType, None]]] + sha: str + url: str __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "CommitPropCommitPropTreeType", + "CommitPropCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0231.py b/githubkit/versions/v2022_11_28/types/group_0231.py index daf967d0f..59cebe85b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0231.py +++ b/githubkit/versions/v2022_11_28/types/group_0231.py @@ -9,34 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType +from .group_0224 import BranchProtectionType +from .group_0229 import CommitType -class DeploymentSimpleType(TypedDict): - """Deployment +class BranchWithProtectionType(TypedDict): + """Branch With Protection - A deployment created as the result of an Actions check run from a workflow that - references an environment + Branch With Protection """ - url: str - id: int - node_id: str - task: str - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentSimpleType",) + name: str + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] + required_approving_review_count: NotRequired[int] + + +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" + + html: str + self_: str + + +__all__ = ( + "BranchWithProtectionPropLinksType", + "BranchWithProtectionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0232.py b/githubkit/versions/v2022_11_28/types/group_0232.py index 9e2b5b65a..0ed7a1feb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0232.py +++ b/githubkit/versions/v2022_11_28/types/group_0232.py @@ -9,71 +9,133 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType -from .group_0204 import PullRequestMinimalType -from .group_0231 import DeploymentSimpleType +from .group_0223 import BranchRestrictionPolicyType +from .group_0233 import ProtectedBranchPropRequiredPullRequestReviewsType -class CheckRunType(TypedDict): - """CheckRun +class ProtectedBranchType(TypedDict): + """Protected Branch - A check performed on the code of a given code change + Branch protections protect branches """ - id: int - head_sha: str - node_id: str - external_id: Union[str, None] url: str - html_url: Union[str, None] - details_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" + required_status_checks: NotRequired[StatusCheckPolicyType] + required_pull_request_reviews: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsType ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], + required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] + enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] + required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] + allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_conversation_resolution: NotRequired[ + ProtectedBranchPropRequiredConversationResolutionType ] - started_at: Union[datetime, None] - completed_at: Union[datetime, None] - output: CheckRunPropOutputType - name: str - check_suite: Union[CheckRunPropCheckSuiteType, None] - app: Union[None, IntegrationType, None] - pull_requests: list[PullRequestMinimalType] - deployment: NotRequired[DeploymentSimpleType] + block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] + lock_branch: NotRequired[ProtectedBranchPropLockBranchType] + allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] -class CheckRunPropOutputType(TypedDict): - """CheckRunPropOutput""" +class ProtectedBranchPropRequiredSignaturesType(TypedDict): + """ProtectedBranchPropRequiredSignatures""" - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str + url: str + enabled: bool + + +class ProtectedBranchPropEnforceAdminsType(TypedDict): + """ProtectedBranchPropEnforceAdmins""" + + url: str + enabled: bool + + +class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool + + +class ProtectedBranchPropAllowForcePushesType(TypedDict): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool + + +class ProtectedBranchPropAllowDeletionsType(TypedDict): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool + + +class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class ProtectedBranchPropBlockCreationsType(TypedDict): + """ProtectedBranchPropBlockCreations""" + + enabled: bool + + +class ProtectedBranchPropLockBranchType(TypedDict): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchPropAllowForkSyncingType(TypedDict): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class StatusCheckPolicyType(TypedDict): + """Status Check Policy + + Status Check Policy + """ + + url: str + strict: bool + contexts: list[str] + checks: list[StatusCheckPolicyPropChecksItemsType] + contexts_url: str -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" - id: int + context: str + app_id: Union[int, None] __all__ = ( - "CheckRunPropCheckSuiteType", - "CheckRunPropOutputType", - "CheckRunType", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowForkSyncingType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchType", + "StatusCheckPolicyPropChecksItemsType", + "StatusCheckPolicyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0233.py b/githubkit/versions/v2022_11_28/types/group_0233.py index 82fbb570d..fdbe2422e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0233.py +++ b/githubkit/versions/v2022_11_28/types/group_0233.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0234 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, +) -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation - """ +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str + url: str + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + dismissal_restrictions: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] -__all__ = ("CheckAnnotationType",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0234.py b/githubkit/versions/v2022_11_28/types/group_0234.py index 4b3aba448..fd51796b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0234.py +++ b/githubkit/versions/v2022_11_28/types/group_0234.py @@ -9,69 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0058 import MinimalRepositoryType -from .group_0204 import PullRequestMinimalType -from .group_0205 import SimpleCommitType +from .group_0084 import TeamType -class CheckSuiteType(TypedDict): - """CheckSuite +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - A suite of checks performed on the code of a given code change - """ + url: str + users_url: str + teams_url: str + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] - id: int - node_id: str - head_branch: Union[str, None] - head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] - url: Union[str, None] - before: Union[str, None] - after: Union[str, None] - pull_requests: Union[list[PullRequestMinimalType], None] - app: Union[None, IntegrationType, None] - repository: MinimalRepositoryType - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - head_commit: SimpleCommitType - latest_check_runs_count: int - check_runs_url: str - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - - total_count: int - check_suites: list[CheckSuiteType] + users: list[SimpleUserType] + teams: list[TeamType] + apps: NotRequired[list[Union[IntegrationType, None]]] __all__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0235.py b/githubkit/versions/v2022_11_28/types/group_0235.py index d7eaf6c62..daf967d0f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0235.py +++ b/githubkit/versions/v2022_11_28/types/group_0235.py @@ -9,38 +9,34 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0058 import MinimalRepositoryType +from .group_0010 import IntegrationType -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference +class DeploymentSimpleType(TypedDict): + """Deployment - Check suite configuration preferences for a repository. + A deployment created as the result of an Actions check run from a workflow that + references an environment """ - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType - - -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: NotRequired[ - list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] - ] - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferenceType", -) + url: str + id: int + node_id: str + task: str + original_environment: NotRequired[str] + environment: str + description: Union[str, None] + created_at: datetime + updated_at: datetime + statuses_url: str + repository_url: str + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0236.py b/githubkit/versions/v2022_11_28/types/group_0236.py index 055936eec..da31e8e58 100644 --- a/githubkit/versions/v2022_11_28/types/group_0236.py +++ b/githubkit/versions/v2022_11_28/types/group_0236.py @@ -13,33 +13,67 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0082 import CodeScanningAlertRuleSummaryType -from .group_0083 import CodeScanningAnalysisToolType -from .group_0084 import CodeScanningAlertInstanceType +from .group_0010 import IntegrationType +from .group_0208 import PullRequestMinimalType +from .group_0235 import DeploymentSimpleType -class CodeScanningAlertItemsType(TypedDict): - """CodeScanningAlertItems""" +class CheckRunType(TypedDict): + """CheckRun - number: int - created_at: datetime - updated_at: NotRequired[datetime] + A check performed on the code of a given code change + """ + + id: int + head_sha: str + node_id: str + external_id: Union[str, None] url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + html_url: Union[str, None] + details_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + started_at: Union[datetime, None] + completed_at: Union[datetime, None] + output: CheckRunPropOutputType + name: str + check_suite: Union[CheckRunPropCheckSuiteType, None] + app: Union[None, IntegrationType, None] + pull_requests: list[PullRequestMinimalType] + deployment: NotRequired[DeploymentSimpleType] + + +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" + + title: Union[str, None] + summary: Union[str, None] + text: Union[str, None] + annotations_count: int + annotations_url: str + + +class CheckRunPropCheckSuiteType(TypedDict): + """CheckRunPropCheckSuite""" + + id: int -__all__ = ("CodeScanningAlertItemsType",) +__all__ = ( + "CheckRunPropCheckSuiteType", + "CheckRunPropOutputType", + "CheckRunType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0237.py b/githubkit/versions/v2022_11_28/types/group_0237.py index 702d1038b..82fbb570d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0237.py +++ b/githubkit/versions/v2022_11_28/types/group_0237.py @@ -9,55 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0083 import CodeScanningAnalysisToolType -from .group_0084 import CodeScanningAlertInstanceType - - -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Union[None, Literal["open", "dismissed", "fixed"]] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] - - -class CodeScanningAlertRuleType(TypedDict): - """CodeScanningAlertRule""" - - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[list[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - - -__all__ = ( - "CodeScanningAlertRuleType", - "CodeScanningAlertType", -) +from typing import Union +from typing_extensions import TypedDict + + +class CheckAnnotationType(TypedDict): + """Check Annotation + + Check Annotation + """ + + path: str + start_line: int + end_line: int + start_column: Union[int, None] + end_column: Union[int, None] + annotation_level: Union[str, None] + title: Union[str, None] + message: Union[str, None] + raw_details: Union[str, None] + blob_href: str + + +__all__ = ("CheckAnnotationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0238.py b/githubkit/versions/v2022_11_28/types/group_0238.py index 1a155e137..a2d10f8a5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0238.py +++ b/githubkit/versions/v2022_11_28/types/group_0238.py @@ -11,15 +11,67 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0061 import MinimalRepositoryType +from .group_0208 import PullRequestMinimalType +from .group_0209 import SimpleCommitType -class CodeScanningAutofixType(TypedDict): - """CodeScanningAutofix""" - status: Literal["pending", "error", "success", "outdated"] - description: Union[str, None] - started_at: datetime +class CheckSuiteType(TypedDict): + """CheckSuite + A suite of checks performed on the code of a given code change + """ -__all__ = ("CodeScanningAutofixType",) + id: int + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] + url: Union[str, None] + before: Union[str, None] + after: Union[str, None] + pull_requests: Union[list[PullRequestMinimalType], None] + app: Union[None, IntegrationType, None] + repository: MinimalRepositoryType + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + head_commit: SimpleCommitType + latest_check_runs_count: int + check_runs_url: str + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int + check_suites: list[CheckSuiteType] + + +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0239.py b/githubkit/versions/v2022_11_28/types/group_0239.py index 8ec0e8374..dc3766802 100644 --- a/githubkit/versions/v2022_11_28/types/group_0239.py +++ b/githubkit/versions/v2022_11_28/types/group_0239.py @@ -11,15 +11,36 @@ from typing_extensions import NotRequired, TypedDict +from .group_0061 import MinimalRepositoryType -class CodeScanningAutofixCommitsType(TypedDict): - """CodeScanningAutofixCommits - Commit an autofix for a code scanning alert +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference + + Check suite configuration preferences for a repository. """ - target_ref: NotRequired[str] - message: NotRequired[str] + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType + + +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + list[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] + ] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool -__all__ = ("CodeScanningAutofixCommitsType",) +__all__ = ( + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferenceType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0240.py b/githubkit/versions/v2022_11_28/types/group_0240.py index 2cbf6f579..84a757d87 100644 --- a/githubkit/versions/v2022_11_28/types/group_0240.py +++ b/githubkit/versions/v2022_11_28/types/group_0240.py @@ -9,14 +9,37 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class CodeScanningAutofixCommitsResponseType(TypedDict): - """CodeScanningAutofixCommitsResponse""" - - target_ref: NotRequired[str] - sha: NotRequired[str] - - -__all__ = ("CodeScanningAutofixCommitsResponseType",) +from .group_0003 import SimpleUserType +from .group_0086 import CodeScanningAlertRuleSummaryType +from .group_0087 import CodeScanningAnalysisToolType +from .group_0088 import CodeScanningAlertInstanceType + + +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0241.py b/githubkit/versions/v2022_11_28/types/group_0241.py index 4216a340a..e6a27a860 100644 --- a/githubkit/versions/v2022_11_28/types/group_0241.py +++ b/githubkit/versions/v2022_11_28/types/group_0241.py @@ -10,29 +10,54 @@ from __future__ import annotations from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0083 import CodeScanningAnalysisToolType +from .group_0003 import SimpleUserType +from .group_0087 import CodeScanningAnalysisToolType +from .group_0088 import CodeScanningAlertInstanceType -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" - ref: str - commit_sha: str - analysis_key: str - environment: str - category: NotRequired[str] - error: str + number: int created_at: datetime - results_count: int - rules_count: int - id: int + updated_at: NotRequired[datetime] url: str - sarif_id: str + html_url: str + instances_url: str + state: Union[None, Literal["open", "dismissed", "fixed"]] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType tool: CodeScanningAnalysisToolType - deletable: bool - warning: str - - -__all__ = ("CodeScanningAnalysisType",) + most_recent_instance: CodeScanningAlertInstanceType + dismissal_approved_by: NotRequired[Union[None, SimpleUserType]] + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[list[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertRuleType", + "CodeScanningAlertType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0242.py b/githubkit/versions/v2022_11_28/types/group_0242.py index a217f8af1..1a155e137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0242.py +++ b/githubkit/versions/v2022_11_28/types/group_0242.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import TypedDict -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion +class CodeScanningAutofixType(TypedDict): + """CodeScanningAutofix""" - Successful deletion of a code scanning analysis - """ + status: Literal["pending", "error", "success", "outdated"] + description: Union[str, None] + started_at: datetime - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] - -__all__ = ("CodeScanningAnalysisDeletionType",) +__all__ = ("CodeScanningAutofixType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0243.py b/githubkit/versions/v2022_11_28/types/group_0243.py index 279371ebd..8ec0e8374 100644 --- a/githubkit/versions/v2022_11_28/types/group_0243.py +++ b/githubkit/versions/v2022_11_28/types/group_0243.py @@ -9,29 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class CodeScanningAutofixCommitsType(TypedDict): + """CodeScanningAutofixCommits -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database - - A CodeQL database. + Commit an autofix for a code scanning alert """ - id: int - name: str - language: str - uploader: SimpleUserType - content_type: str - size: int - created_at: datetime - updated_at: datetime - url: str - commit_oid: NotRequired[Union[str, None]] + target_ref: NotRequired[str] + message: NotRequired[str] -__all__ = ("CodeScanningCodeqlDatabaseType",) +__all__ = ("CodeScanningAutofixCommitsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0244.py b/githubkit/versions/v2022_11_28/types/group_0244.py index 86f33d140..2cbf6f579 100644 --- a/githubkit/versions/v2022_11_28/types/group_0244.py +++ b/githubkit/versions/v2022_11_28/types/group_0244.py @@ -9,23 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier +class CodeScanningAutofixCommitsResponseType(TypedDict): + """CodeScanningAutofixCommitsResponse""" - Repository Identifier - """ + target_ref: NotRequired[str] + sha: NotRequired[str] - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] - -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +__all__ = ("CodeScanningAutofixCommitsResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0245.py b/githubkit/versions/v2022_11_28/types/group_0245.py index ed1154184..6224105ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0245.py +++ b/githubkit/versions/v2022_11_28/types/group_0245.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0244 import CodeScanningVariantAnalysisRepositoryType +from .group_0087 import CodeScanningAnalysisToolType -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" - repository_count: int - repositories: list[CodeScanningVariantAnalysisRepositoryType] + ref: str + commit_sha: str + analysis_key: str + environment: str + category: NotRequired[str] + error: str + created_at: datetime + results_count: int + rules_count: int + id: int + url: str + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) +__all__ = ("CodeScanningAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0246.py b/githubkit/versions/v2022_11_28/types/group_0246.py index 52e709818..a217f8af1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0246.py +++ b/githubkit/versions/v2022_11_28/types/group_0246.py @@ -9,43 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0031 import SimpleRepositoryType -from .group_0247 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -from .group_0248 import CodeScanningVariantAnalysisPropSkippedRepositoriesType +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Successful deletion of a code scanning analysis """ - id: int - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] + + +__all__ = ("CodeScanningAnalysisDeletionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0247.py b/githubkit/versions/v2022_11_28/types/group_0247.py index c3416ddda..279371ebd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0247.py +++ b/githubkit/versions/v2022_11_28/types/group_0247.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0244 import CodeScanningVariantAnalysisRepositoryType +from .group_0003 import SimpleUserType -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database - repository: CodeScanningVariantAnalysisRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - result_count: NotRequired[int] - artifact_size_in_bytes: NotRequired[int] - failure_message: NotRequired[str] + A CodeQL database. + """ + id: int + name: str + language: str + uploader: SimpleUserType + content_type: str + size: int + created_at: datetime + updated_at: datetime + url: str + commit_oid: NotRequired[Union[str, None]] -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) + +__all__ = ("CodeScanningCodeqlDatabaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0248.py b/githubkit/versions/v2022_11_28/types/group_0248.py index 2545ac18a..86f33d140 100644 --- a/githubkit/versions/v2022_11_28/types/group_0248.py +++ b/githubkit/versions/v2022_11_28/types/group_0248.py @@ -9,36 +9,23 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -from .group_0245 import CodeScanningVariantAnalysisSkippedRepoGroupType +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories - - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Repository Identifier """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - not_found_repos: ( - CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType - ) - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( - TypedDict -): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int - repository_full_names: list[str] + id: int + name: str + full_name: str + private: bool + stargazers_count: int + updated_at: Union[datetime, None] -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", - "CodeScanningVariantAnalysisPropSkippedRepositoriesType", -) +__all__ = ("CodeScanningVariantAnalysisRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0249.py b/githubkit/versions/v2022_11_28/types/group_0249.py index 3cababe12..b76a3c75c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0249.py +++ b/githubkit/versions/v2022_11_28/types/group_0249.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0031 import SimpleRepositoryType +from .group_0248 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - repository: SimpleRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - artifact_size_in_bytes: NotRequired[int] - result_count: NotRequired[int] - failure_message: NotRequired[str] - database_commit_sha: NotRequired[str] - source_location_prefix: NotRequired[str] - artifact_url: NotRequired[str] + repository_count: int + repositories: list[CodeScanningVariantAnalysisRepositoryType] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0250.py b/githubkit/versions/v2022_11_28/types/group_0250.py index 6a3c39b96..8cfdddfae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0250.py +++ b/githubkit/versions/v2022_11_28/types/group_0250.py @@ -13,36 +13,39 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0031 import SimpleRepositoryType +from .group_0251 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +from .group_0252 import CodeScanningVariantAnalysisPropSkippedRepositoriesType -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack_url: str + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + completed_at: NotRequired[Union[datetime, None]] + status: Literal["in_progress", "succeeded", "failed", "cancelled"] + actions_workflow_run_id: NotRequired[int] + failure_reason: NotRequired[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] + scanned_repositories: NotRequired[ + list[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] + ] + skipped_repositories: NotRequired[ + CodeScanningVariantAnalysisPropSkippedRepositoriesType ] - runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] -__all__ = ("CodeScanningDefaultSetupType",) +__all__ = ("CodeScanningVariantAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0251.py b/githubkit/versions/v2022_11_28/types/group_0251.py index 8e432c42b..517d82c02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0251.py +++ b/githubkit/versions/v2022_11_28/types/group_0251.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0248 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningDefaultSetupUpdateType(TypedDict): - """CodeScanningDefaultSetupUpdate - - Configuration for code scanning default setup. - """ - - state: NotRequired[Literal["configured", "not-configured"]] - runner_type: NotRequired[Literal["standard", "labeled"]] - runner_label: NotRequired[Union[str, None]] - query_suite: NotRequired[Literal["default", "extended"]] - languages: NotRequired[ - list[ - Literal[ - "actions", - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] + +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + + repository: CodeScanningVariantAnalysisRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] + result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] + failure_message: NotRequired[str] -__all__ = ("CodeScanningDefaultSetupUpdateType",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0252.py b/githubkit/versions/v2022_11_28/types/group_0252.py index f363fa4b1..fbce97911 100644 --- a/githubkit/versions/v2022_11_28/types/group_0252.py +++ b/githubkit/versions/v2022_11_28/types/group_0252.py @@ -9,19 +9,36 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0249 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. +class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): + """CodeScanningVariantAnalysisPropSkippedRepositories + + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - run_id: NotRequired[int] - run_url: NotRequired[str] + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + not_found_repos: ( + CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType + ) + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( + TypedDict +): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int + repository_full_names: list[str] -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", + "CodeScanningVariantAnalysisPropSkippedRepositoriesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0253.py b/githubkit/versions/v2022_11_28/types/group_0253.py index 5a45d64e1..3cababe12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0253.py +++ b/githubkit/versions/v2022_11_28/types/group_0253.py @@ -9,14 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0031 import SimpleRepositoryType -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - id: NotRequired[str] - url: NotRequired[str] +class CodeScanningVariantAnalysisRepoTaskType(TypedDict): + """CodeScanningVariantAnalysisRepoTask""" + repository: SimpleRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] + artifact_size_in_bytes: NotRequired[int] + result_count: NotRequired[int] + failure_message: NotRequired[str] + database_commit_sha: NotRequired[str] + source_location_prefix: NotRequired[str] + artifact_url: NotRequired[str] -__all__ = ("CodeScanningSarifsReceiptType",) + +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0254.py b/githubkit/versions/v2022_11_28/types/group_0254.py index 3b46d219b..481da9df9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0254.py +++ b/githubkit/versions/v2022_11_28/types/group_0254.py @@ -9,16 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" - - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[list[str], None]] - - -__all__ = ("CodeScanningSarifsStatusType",) +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup + + Configuration for code scanning default setup. + """ + + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + runner_type: NotRequired[Union[None, Literal["standard", "labeled"]]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0255.py b/githubkit/versions/v2022_11_28/types/group_0255.py index 39746fa67..69c76e214 100644 --- a/githubkit/versions/v2022_11_28/types/group_0255.py +++ b/githubkit/versions/v2022_11_28/types/group_0255.py @@ -9,31 +9,36 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0028 import CodeSecurityConfigurationType +class CodeScanningDefaultSetupUpdateType(TypedDict): + """CodeScanningDefaultSetupUpdate -class CodeSecurityConfigurationForRepositoryType(TypedDict): - """CodeSecurityConfigurationForRepository - - Code security configuration associated with a repository and attachment status + Configuration for code scanning default setup. """ - status: NotRequired[ - Literal[ - "attached", - "attaching", - "detached", - "removed", - "enforced", - "failed", - "updating", - "removed_by_enterprise", + state: NotRequired[Literal["configured", "not-configured"]] + runner_type: NotRequired[Literal["standard", "labeled"]] + runner_label: NotRequired[Union[str, None]] + query_suite: NotRequired[Literal["default", "extended"]] + threat_model: NotRequired[Literal["remote", "remote_and_local"]] + languages: NotRequired[ + list[ + Literal[ + "actions", + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] ] ] - configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("CodeSecurityConfigurationForRepositoryType",) +__all__ = ("CodeScanningDefaultSetupUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0256.py b/githubkit/versions/v2022_11_28/types/group_0256.py index 4480d357f..f363fa4b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0256.py +++ b/githubkit/versions/v2022_11_28/types/group_0256.py @@ -9,32 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse - A list of errors found in a repo's CODEOWNERS file + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - errors: list[CodeownersErrorsPropErrorsItemsType] + run_id: NotRequired[int] + run_url: NotRequired[str] -class CodeownersErrorsPropErrorsItemsType(TypedDict): - """CodeownersErrorsPropErrorsItems""" - - line: int - column: int - source: NotRequired[str] - kind: str - suggestion: NotRequired[Union[str, None]] - message: str - path: str - - -__all__ = ( - "CodeownersErrorsPropErrorsItemsType", - "CodeownersErrorsType", -) +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0257.py b/githubkit/versions/v2022_11_28/types/group_0257.py index e1c93e03b..5a45d64e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0257.py +++ b/githubkit/versions/v2022_11_28/types/group_0257.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" - Permission check result for a given devcontainer config. - """ + id: NotRequired[str] + url: NotRequired[str] - accepted: bool - -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) +__all__ = ("CodeScanningSarifsReceiptType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0258.py b/githubkit/versions/v2022_11_28/types/group_0258.py index 109daec07..3b46d219b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0258.py +++ b/githubkit/versions/v2022_11_28/types/group_0258.py @@ -9,30 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0058 import MinimalRepositoryType +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" -class RepositoryInvitationType(TypedDict): - """Repository Invitation + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[list[str], None]] - Repository invitations let you manage who you collaborate with. - """ - id: int - repository: MinimalRepositoryType - invitee: Union[None, SimpleUserType] - inviter: Union[None, SimpleUserType] - permissions: Literal["read", "write", "admin", "triage", "maintain"] - created_at: datetime - expired: NotRequired[bool] - url: str - html_url: str - node_id: str - - -__all__ = ("RepositoryInvitationType",) +__all__ = ("CodeScanningSarifsStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0259.py b/githubkit/versions/v2022_11_28/types/group_0259.py index 10af54a9e..39746fa67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0259.py +++ b/githubkit/versions/v2022_11_28/types/group_0259.py @@ -9,64 +9,31 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission - - Repository Collaborator Permission - """ - - permission: str - role_name: str - user: Union[None, CollaboratorType] +class CodeSecurityConfigurationForRepositoryType(TypedDict): + """CodeSecurityConfigurationForRepository -class CollaboratorType(TypedDict): - """Collaborator - - Collaborator + Code security configuration associated with a repository and attachment status """ - login: str - id: int - email: NotRequired[Union[str, None]] - name: NotRequired[Union[str, None]] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - permissions: NotRequired[CollaboratorPropPermissionsType] - role_name: str - user_view_type: NotRequired[str] - - -class CollaboratorPropPermissionsType(TypedDict): - """CollaboratorPropPermissions""" - - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - admin: bool - - -__all__ = ( - "CollaboratorPropPermissionsType", - "CollaboratorType", - "RepositoryCollaboratorPermissionType", -) + status: NotRequired[ + Literal[ + "attached", + "attaching", + "detached", + "removed", + "enforced", + "failed", + "updating", + "removed_by_enterprise", + ] + ] + configuration: NotRequired[CodeSecurityConfigurationType] + + +__all__ = ("CodeSecurityConfigurationForRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0260.py b/githubkit/versions/v2022_11_28/types/group_0260.py index 0bf55da9e..4480d357f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0260.py +++ b/githubkit/versions/v2022_11_28/types/group_0260.py @@ -9,58 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0041 import ReactionRollupType +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors -class CommitCommentType(TypedDict): - """Commit Comment - - Commit Comment + A list of errors found in a repo's CODEOWNERS file """ - html_url: str - url: str - id: int - node_id: str - body: str - path: Union[str, None] - position: Union[int, None] - line: Union[int, None] - commit_id: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - + errors: list[CodeownersErrorsPropErrorsItemsType] -class TimelineCommitCommentedEventType(TypedDict): - """Timeline Commit Commented Event - Timeline Commit Commented Event - """ +class CodeownersErrorsPropErrorsItemsType(TypedDict): + """CodeownersErrorsPropErrorsItems""" - event: NotRequired[Literal["commit_commented"]] - node_id: NotRequired[str] - commit_id: NotRequired[str] - comments: NotRequired[list[CommitCommentType]] + line: int + column: int + source: NotRequired[str] + kind: str + suggestion: NotRequired[Union[str, None]] + message: str + path: str __all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", + "CodeownersErrorsPropErrorsItemsType", + "CodeownersErrorsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0261.py b/githubkit/versions/v2022_11_28/types/group_0261.py index 997250710..e1c93e03b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0261.py +++ b/githubkit/versions/v2022_11_28/types/group_0261.py @@ -12,25 +12,13 @@ from typing_extensions import TypedDict -class BranchShortType(TypedDict): - """Branch Short +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check - Branch Short + Permission check result for a given devcontainer config. """ - name: str - commit: BranchShortPropCommitType - protected: bool + accepted: bool -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" - - sha: str - url: str - - -__all__ = ( - "BranchShortPropCommitType", - "BranchShortType", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0262.py b/githubkit/versions/v2022_11_28/types/group_0262.py index 064aa0ae7..acd7df962 100644 --- a/githubkit/versions/v2022_11_28/types/group_0262.py +++ b/githubkit/versions/v2022_11_28/types/group_0262.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0061 import MinimalRepositoryType -class LinkType(TypedDict): - """Link - Hypermedia Link +class RepositoryInvitationType(TypedDict): + """Repository Invitation + + Repository invitations let you manage who you collaborate with. """ - href: str + id: int + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] + created_at: datetime + expired: NotRequired[bool] + url: str + html_url: str + node_id: str -__all__ = ("LinkType",) +__all__ = ("RepositoryInvitationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0263.py b/githubkit/versions/v2022_11_28/types/group_0263.py index ac1473211..10af54a9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0263.py +++ b/githubkit/versions/v2022_11_28/types/group_0263.py @@ -9,22 +9,64 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission -class AutoMergeType(TypedDict): - """Auto merge + Repository Collaborator Permission + """ + + permission: str + role_name: str + user: Union[None, CollaboratorType] + + +class CollaboratorType(TypedDict): + """Collaborator - The status of auto merging a pull request. + Collaborator """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + login: str + id: int + email: NotRequired[Union[str, None]] + name: NotRequired[Union[str, None]] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + permissions: NotRequired[CollaboratorPropPermissionsType] + role_name: str + user_view_type: NotRequired[str] + + +class CollaboratorPropPermissionsType(TypedDict): + """CollaboratorPropPermissions""" + + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + admin: bool -__all__ = ("AutoMergeType",) +__all__ = ( + "CollaboratorPropPermissionsType", + "CollaboratorType", + "RepositoryCollaboratorPermissionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0264.py b/githubkit/versions/v2022_11_28/types/group_0264.py index 0f24412c8..1cf79a458 100644 --- a/githubkit/versions/v2022_11_28/types/group_0264.py +++ b/githubkit/versions/v2022_11_28/types/group_0264.py @@ -14,52 +14,27 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0039 import MilestoneType -from .group_0080 import TeamType -from .group_0263 import AutoMergeType -from .group_0265 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -from .group_0266 import PullRequestSimplePropLinksType +from .group_0044 import ReactionRollupType -class PullRequestSimpleType(TypedDict): - """Pull Request Simple +class CommitCommentType(TypedDict): + """Commit Comment - Pull Request Simple + Commit Comment """ + html_url: str url: str id: int node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: str - locked: bool - title: str + body: str + path: Union[str, None] + position: Union[int, None] + line: Union[int, None] + commit_id: str user: Union[None, SimpleUserType] - body: Union[str, None] - labels: list[PullRequestSimplePropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] created_at: datetime updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamType], None]] - head: PullRequestSimplePropHeadType - base: PullRequestSimplePropBaseType - links: PullRequestSimplePropLinksType author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -70,23 +45,22 @@ class PullRequestSimpleType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] + reactions: NotRequired[ReactionRollupType] -class PullRequestSimplePropLabelsItemsType(TypedDict): - """PullRequestSimplePropLabelsItems""" +class TimelineCommitCommentedEventType(TypedDict): + """Timeline Commit Commented Event - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + Timeline Commit Commented Event + """ + + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[list[CommitCommentType]] __all__ = ( - "PullRequestSimplePropLabelsItemsType", - "PullRequestSimpleType", + "CommitCommentType", + "TimelineCommitCommentedEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0265.py b/githubkit/versions/v2022_11_28/types/group_0265.py index 1c03aef11..997250710 100644 --- a/githubkit/versions/v2022_11_28/types/group_0265.py +++ b/githubkit/versions/v2022_11_28/types/group_0265.py @@ -9,34 +9,28 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType +class BranchShortType(TypedDict): + """Branch Short -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" + Branch Short + """ - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + name: str + commit: BranchShortPropCommitType + protected: bool -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" - label: str - ref: str - repo: RepositoryType sha: str - user: Union[None, SimpleUserType] + url: str __all__ = ( - "PullRequestSimplePropBaseType", - "PullRequestSimplePropHeadType", + "BranchShortPropCommitType", + "BranchShortType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0266.py b/githubkit/versions/v2022_11_28/types/group_0266.py index f3cf378b3..064aa0ae7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0266.py +++ b/githubkit/versions/v2022_11_28/types/group_0266.py @@ -11,20 +11,14 @@ from typing_extensions import TypedDict -from .group_0262 import LinkType +class LinkType(TypedDict): + """Link -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" + Hypermedia Link + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + href: str -__all__ = ("PullRequestSimplePropLinksType",) +__all__ = ("LinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0267.py b/githubkit/versions/v2022_11_28/types/group_0267.py index d971c63ae..ac1473211 100644 --- a/githubkit/versions/v2022_11_28/types/group_0267.py +++ b/githubkit/versions/v2022_11_28/types/group_0267.py @@ -9,45 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0058 import MinimalRepositoryType +from .group_0003 import SimpleUserType -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status +class AutoMergeType(TypedDict): + """Auto merge - Combined Commit Status + The status of auto merging a pull request. """ - state: str - statuses: list[SimpleCommitStatusType] - sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str - url: str - - -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" - - description: Union[str, None] - id: int - node_id: str - state: str - context: str - target_url: Union[str, None] - required: NotRequired[Union[bool, None]] - avatar_url: Union[str, None] - url: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", -) + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] + + +__all__ = ("AutoMergeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0268.py b/githubkit/versions/v2022_11_28/types/group_0268.py index 13b770a02..b48208711 100644 --- a/githubkit/versions/v2022_11_28/types/group_0268.py +++ b/githubkit/versions/v2022_11_28/types/group_0268.py @@ -9,29 +9,84 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0042 import MilestoneType +from .group_0084 import TeamType +from .group_0267 import AutoMergeType +from .group_0269 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +from .group_0270 import PullRequestSimplePropLinksType -class StatusType(TypedDict): - """Status +class PullRequestSimpleType(TypedDict): + """Pull Request Simple - The status of a commit. + Pull Request Simple """ url: str - avatar_url: Union[str, None] id: int node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int state: str + locked: bool + title: str + user: Union[None, SimpleUserType] + body: Union[str, None] + labels: list[PullRequestSimplePropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamType], None]] + head: PullRequestSimplePropHeadType + base: PullRequestSimplePropBaseType + links: PullRequestSimplePropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + + +class PullRequestSimplePropLabelsItemsType(TypedDict): + """PullRequestSimplePropLabelsItems""" + + id: int + node_id: str + url: str + name: str description: Union[str, None] - target_url: Union[str, None] - context: str - created_at: str - updated_at: str - creator: Union[None, SimpleUserType] + color: str + default: bool -__all__ = ("StatusType",) +__all__ = ( + "PullRequestSimplePropLabelsItemsType", + "PullRequestSimpleType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0269.py b/githubkit/versions/v2022_11_28/types/group_0269.py index dba59f788..1c03aef11 100644 --- a/githubkit/versions/v2022_11_28/types/group_0269.py +++ b/githubkit/versions/v2022_11_28/types/group_0269.py @@ -9,49 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0019 import LicenseSimpleType -from .group_0119 import CodeOfConductSimpleType +from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" - code_of_conduct: Union[None, CodeOfConductSimpleType] - code_of_conduct_file: Union[None, CommunityHealthFileType] - license_: Union[None, LicenseSimpleType] - contributing: Union[None, CommunityHealthFileType] - readme: Union[None, CommunityHealthFileType] - issue_template: Union[None, CommunityHealthFileType] - pull_request_template: Union[None, CommunityHealthFileType] + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] + sha: str + user: Union[None, SimpleUserType] -class CommunityHealthFileType(TypedDict): - """Community Health File""" +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" - url: str - html_url: str - - -class CommunityProfileType(TypedDict): - """Community Profile - - Community Profile - """ - - health_percentage: int - description: Union[str, None] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + label: str + ref: str + repo: RepositoryType + sha: str + user: Union[None, SimpleUserType] __all__ = ( - "CommunityHealthFileType", - "CommunityProfilePropFilesType", - "CommunityProfileType", + "PullRequestSimplePropBaseType", + "PullRequestSimplePropHeadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0270.py b/githubkit/versions/v2022_11_28/types/group_0270.py index 1a0f41da1..7d99b4362 100644 --- a/githubkit/versions/v2022_11_28/types/group_0270.py +++ b/githubkit/versions/v2022_11_28/types/group_0270.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0224 import DiffEntryType -from .group_0225 import CommitType +from .group_0266 import LinkType -class CommitComparisonType(TypedDict): - """Commit Comparison +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" - Commit Comparison - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - url: str - html_url: str - permalink_url: str - diff_url: str - patch_url: str - base_commit: CommitType - merge_base_commit: CommitType - status: Literal["diverged", "ahead", "behind", "identical"] - ahead_by: int - behind_by: int - total_commits: int - commits: list[CommitType] - files: NotRequired[list[DiffEntryType]] - -__all__ = ("CommitComparisonType",) +__all__ = ("PullRequestSimplePropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0271.py b/githubkit/versions/v2022_11_28/types/group_0271.py index 3c6f67fc5..7ffc6c74e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0271.py +++ b/githubkit/versions/v2022_11_28/types/group_0271.py @@ -9,65 +9,45 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0061 import MinimalRepositoryType -class ContentTreeType(TypedDict): - """Content Tree - Content Tree +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status + + Combined Commit Status """ - type: str - size: int - name: str - path: str + state: str + statuses: list[SimpleCommitStatusType] sha: str - content: NotRequired[str] + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - entries: NotRequired[list[ContentTreePropEntriesItemsType]] - encoding: NotRequired[str] - links: ContentTreePropLinksType - - -class ContentTreePropLinksType(TypedDict): - """ContentTreePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str -class ContentTreePropEntriesItemsType(TypedDict): - """ContentTreePropEntriesItems""" +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - type: str - size: int - name: str - path: str - sha: str + description: Union[str, None] + id: int + node_id: str + state: str + context: str + target_url: Union[str, None] + required: NotRequired[Union[bool, None]] + avatar_url: Union[str, None] url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentTreePropEntriesItemsPropLinksType - - -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str + created_at: datetime + updated_at: datetime __all__ = ( - "ContentTreePropEntriesItemsPropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropLinksType", - "ContentTreeType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0272.py b/githubkit/versions/v2022_11_28/types/group_0272.py index 74ee6a6e4..13b770a02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0272.py +++ b/githubkit/versions/v2022_11_28/types/group_0272.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType - - -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" +class StatusType(TypedDict): + """Status - git: Union[str, None] - html: Union[str, None] - self_: str + The status of a commit. + """ - -__all__ = ( - "ContentDirectoryItemsPropLinksType", - "ContentDirectoryItemsType", -) + url: str + avatar_url: Union[str, None] + id: int + node_id: str + state: str + description: Union[str, None] + target_url: Union[str, None] + context: str + created_at: str + updated_at: str + creator: Union[None, SimpleUserType] + + +__all__ = ("StatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0273.py b/githubkit/versions/v2022_11_28/types/group_0273.py index 2ad4b4ca8..72f37c3db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0273.py +++ b/githubkit/versions/v2022_11_28/types/group_0273.py @@ -9,41 +9,49 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0019 import LicenseSimpleType +from .group_0123 import CodeOfConductSimpleType -class ContentFileType(TypedDict): - """Content File - Content File - """ +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimpleType] + code_of_conduct_file: Union[None, CommunityHealthFileType] + license_: Union[None, LicenseSimpleType] + contributing: Union[None, CommunityHealthFileType] + readme: Union[None, CommunityHealthFileType] + issue_template: Union[None, CommunityHealthFileType] + pull_request_template: Union[None, CommunityHealthFileType] + + +class CommunityHealthFileType(TypedDict): + """Community Health File""" - type: Literal["file"] - encoding: str - size: int - name: str - path: str - content: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentFilePropLinksType - target: NotRequired[str] - submodule_git_url: NotRequired[str] + html_url: str + +class CommunityProfileType(TypedDict): + """Community Profile -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" + Community Profile + """ - git: Union[str, None] - html: Union[str, None] - self_: str + health_percentage: int + description: Union[str, None] + documentation: Union[str, None] + files: CommunityProfilePropFilesType + updated_at: Union[datetime, None] + content_reports_enabled: NotRequired[bool] __all__ = ( - "ContentFilePropLinksType", - "ContentFileType", + "CommunityHealthFileType", + "CommunityProfilePropFilesType", + "CommunityProfileType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0274.py b/githubkit/versions/v2022_11_28/types/group_0274.py index 0998eda68..bbf3df355 100644 --- a/githubkit/versions/v2022_11_28/types/group_0274.py +++ b/githubkit/versions/v2022_11_28/types/group_0274.py @@ -9,38 +9,32 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0228 import DiffEntryType +from .group_0229 import CommitType -class ContentSymlinkType(TypedDict): - """Symlink Content - An object describing a symlink +class CommitComparisonType(TypedDict): + """Commit Comparison + + Commit Comparison """ - type: Literal["symlink"] - target: str - size: int - name: str - path: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSymlinkPropLinksType - - -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentSymlinkPropLinksType", - "ContentSymlinkType", -) + html_url: str + permalink_url: str + diff_url: str + patch_url: str + base_commit: CommitType + merge_base_commit: CommitType + status: Literal["diverged", "ahead", "behind", "identical"] + ahead_by: int + behind_by: int + total_commits: int + commits: list[CommitType] + files: NotRequired[list[DiffEntryType]] + + +__all__ = ("CommitComparisonType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0275.py b/githubkit/versions/v2022_11_28/types/group_0275.py index b80d6984e..3c6f67fc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0275.py +++ b/githubkit/versions/v2022_11_28/types/group_0275.py @@ -9,31 +9,56 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ContentSubmoduleType(TypedDict): - """Submodule Content +class ContentTreeType(TypedDict): + """Content Tree - An object describing a submodule + Content Tree """ - type: Literal["submodule"] - submodule_git_url: str + type: str size: int name: str path: str sha: str + content: NotRequired[str] url: str git_url: Union[str, None] html_url: Union[str, None] download_url: Union[str, None] - links: ContentSubmodulePropLinksType + entries: NotRequired[list[ContentTreePropEntriesItemsType]] + encoding: NotRequired[str] + links: ContentTreePropLinksType -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" +class ContentTreePropLinksType(TypedDict): + """ContentTreePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +class ContentTreePropEntriesItemsType(TypedDict): + """ContentTreePropEntriesItems""" + + type: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentTreePropEntriesItemsPropLinksType + + +class ContentTreePropEntriesItemsPropLinksType(TypedDict): + """ContentTreePropEntriesItemsPropLinks""" git: Union[str, None] html: Union[str, None] @@ -41,6 +66,8 @@ class ContentSubmodulePropLinksType(TypedDict): __all__ = ( - "ContentSubmodulePropLinksType", - "ContentSubmoduleType", + "ContentTreePropEntriesItemsPropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropLinksType", + "ContentTreeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0276.py b/githubkit/versions/v2022_11_28/types/group_0276.py index 78a4cf43d..74ee6a6e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0276.py +++ b/githubkit/versions/v2022_11_28/types/group_0276.py @@ -9,107 +9,35 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class FileCommitType(TypedDict): - """File Commit +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" - File Commit - """ + type: Literal["dir", "file", "submodule", "symlink"] + size: int + name: str + path: str + content: NotRequired[str] + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentDirectoryItemsPropLinksType - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" -class FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" - - name: NotRequired[str] - path: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - html_url: NotRequired[str] - git_url: NotRequired[str] - download_url: NotRequired[str] - type: NotRequired[str] - links: NotRequired[FileCommitPropContentPropLinksType] - - -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" - - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] - - -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" - - sha: NotRequired[str] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - author: NotRequired[FileCommitPropCommitPropAuthorType] - committer: NotRequired[FileCommitPropCommitPropCommitterType] - message: NotRequired[str] - tree: NotRequired[FileCommitPropCommitPropTreeType] - parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] - verification: NotRequired[FileCommitPropCommitPropVerificationType] - - -class FileCommitPropCommitPropAuthorType(TypedDict): - """FileCommitPropCommitPropAuthor""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropCommitterType(TypedDict): - """FileCommitPropCommitPropCommitter""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropTreeType(TypedDict): - """FileCommitPropCommitPropTree""" - - url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropParentsItemsType(TypedDict): - """FileCommitPropCommitPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropVerificationType(TypedDict): - """FileCommitPropCommitPropVerification""" - - verified: NotRequired[bool] - reason: NotRequired[str] - signature: NotRequired[Union[str, None]] - payload: NotRequired[Union[str, None]] - verified_at: NotRequired[Union[str, None]] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropVerificationType", - "FileCommitPropCommitType", - "FileCommitPropContentPropLinksType", - "FileCommitPropContentType", - "FileCommitType", + "ContentDirectoryItemsPropLinksType", + "ContentDirectoryItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0277.py b/githubkit/versions/v2022_11_28/types/group_0277.py index 82a56dc68..2ad4b4ca8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0277.py +++ b/githubkit/versions/v2022_11_28/types/group_0277.py @@ -9,53 +9,41 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class RepositoryRuleViolationErrorType(TypedDict): - """RepositoryRuleViolationError +class ContentFileType(TypedDict): + """Content File - Repository rule violation was detected + Content File """ - message: NotRequired[str] - documentation_url: NotRequired[str] - status: NotRequired[str] - metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] + type: Literal["file"] + encoding: str + size: int + name: str + path: str + content: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] -class RepositoryRuleViolationErrorPropMetadataType(TypedDict): - """RepositoryRuleViolationErrorPropMetadata""" +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" - secret_scanning: NotRequired[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningType - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" - - bypass_placeholders: NotRequired[ - list[ - RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType - ] - ] - - -class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( - TypedDict -): - """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders - Items - """ - - placeholder_id: NotRequired[str] - token_type: NotRequired[str] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", - "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", - "RepositoryRuleViolationErrorPropMetadataType", - "RepositoryRuleViolationErrorType", + "ContentFilePropLinksType", + "ContentFileType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0278.py b/githubkit/versions/v2022_11_28/types/group_0278.py index 0bcf70515..0998eda68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0278.py +++ b/githubkit/versions/v2022_11_28/types/group_0278.py @@ -9,38 +9,38 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -class ContributorType(TypedDict): - """Contributor +class ContentSymlinkType(TypedDict): + """Symlink Content - Contributor + An object describing a symlink """ - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[Union[str, None]] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: str - site_admin: NotRequired[bool] - contributions: int - email: NotRequired[str] - name: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("ContributorType",) + type: Literal["symlink"] + target: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSymlinkPropLinksType + + +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentSymlinkPropLinksType", + "ContentSymlinkType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0279.py b/githubkit/versions/v2022_11_28/types/group_0279.py index 1461b2bab..b80d6984e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0279.py +++ b/githubkit/versions/v2022_11_28/types/group_0279.py @@ -9,42 +9,38 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0034 import DependabotAlertSecurityVulnerabilityType -from .group_0035 import DependabotAlertSecurityAdvisoryType -from .group_0280 import DependabotAlertPropDependencyType +class ContentSubmoduleType(TypedDict): + """Submodule Content -class DependabotAlertType(TypedDict): - """DependabotAlert - - A Dependabot alert. + An object describing a submodule """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType + type: Literal["submodule"] + submodule_git_url: str + size: int + name: str + path: str + sha: str url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("DependabotAlertType",) + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSubmodulePropLinksType + + +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentSubmodulePropLinksType", + "ContentSubmoduleType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0280.py b/githubkit/versions/v2022_11_28/types/group_0280.py index 2907afce5..78a4cf43d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0280.py +++ b/githubkit/versions/v2022_11_28/types/group_0280.py @@ -9,22 +9,107 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0033 import DependabotAlertPackageType +class FileCommitType(TypedDict): + """File Commit -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + File Commit """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] - relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] + content: Union[FileCommitPropContentType, None] + commit: FileCommitPropCommitType + + +class FileCommitPropContentType(TypedDict): + """FileCommitPropContent""" + + name: NotRequired[str] + path: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] + html_url: NotRequired[str] + git_url: NotRequired[str] + download_url: NotRequired[str] + type: NotRequired[str] + links: NotRequired[FileCommitPropContentPropLinksType] + + +class FileCommitPropContentPropLinksType(TypedDict): + """FileCommitPropContentPropLinks""" + + self_: NotRequired[str] + git: NotRequired[str] + html: NotRequired[str] + + +class FileCommitPropCommitType(TypedDict): + """FileCommitPropCommit""" + + sha: NotRequired[str] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + author: NotRequired[FileCommitPropCommitPropAuthorType] + committer: NotRequired[FileCommitPropCommitPropCommitterType] + message: NotRequired[str] + tree: NotRequired[FileCommitPropCommitPropTreeType] + parents: NotRequired[list[FileCommitPropCommitPropParentsItemsType]] + verification: NotRequired[FileCommitPropCommitPropVerificationType] + + +class FileCommitPropCommitPropAuthorType(TypedDict): + """FileCommitPropCommitPropAuthor""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropCommitterType(TypedDict): + """FileCommitPropCommitPropCommitter""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropTreeType(TypedDict): + """FileCommitPropCommitPropTree""" + + url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropParentsItemsType(TypedDict): + """FileCommitPropCommitPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropVerificationType(TypedDict): + """FileCommitPropCommitPropVerification""" + + verified: NotRequired[bool] + reason: NotRequired[str] + signature: NotRequired[Union[str, None]] + payload: NotRequired[Union[str, None]] + verified_at: NotRequired[Union[str, None]] -__all__ = ("DependabotAlertPropDependencyType",) +__all__ = ( + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropVerificationType", + "FileCommitPropCommitType", + "FileCommitPropContentPropLinksType", + "FileCommitPropContentType", + "FileCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0281.py b/githubkit/versions/v2022_11_28/types/group_0281.py index b061be26e..82a56dc68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0281.py +++ b/githubkit/versions/v2022_11_28/types/group_0281.py @@ -9,35 +9,53 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class DependencyGraphDiffItemsType(TypedDict): - """DependencyGraphDiffItems""" +class RepositoryRuleViolationErrorType(TypedDict): + """RepositoryRuleViolationError - change_type: Literal["added", "removed"] - manifest: str - ecosystem: str - name: str - version: str - package_url: Union[str, None] - license_: Union[str, None] - source_repository_url: Union[str, None] - vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] - scope: Literal["unknown", "runtime", "development"] + Repository rule violation was detected + """ + message: NotRequired[str] + documentation_url: NotRequired[str] + status: NotRequired[str] + metadata: NotRequired[RepositoryRuleViolationErrorPropMetadataType] -class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - severity: str - advisory_ghsa_id: str - advisory_summary: str - advisory_url: str +class RepositoryRuleViolationErrorPropMetadataType(TypedDict): + """RepositoryRuleViolationErrorPropMetadata""" + + secret_scanning: NotRequired[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningType + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningType(TypedDict): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanning""" + + bypass_placeholders: NotRequired[ + list[ + RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType + ] + ] + + +class RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType( + TypedDict +): + """RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholders + Items + """ + + placeholder_id: NotRequired[str] + token_type: NotRequired[str] __all__ = ( - "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", - "DependencyGraphDiffItemsType", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningPropBypassPlaceholdersItemsType", + "RepositoryRuleViolationErrorPropMetadataPropSecretScanningType", + "RepositoryRuleViolationErrorPropMetadataType", + "RepositoryRuleViolationErrorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0282.py b/githubkit/versions/v2022_11_28/types/group_0282.py index 489a3ce99..0bcf70515 100644 --- a/githubkit/versions/v2022_11_28/types/group_0282.py +++ b/githubkit/versions/v2022_11_28/types/group_0282.py @@ -9,81 +9,38 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM +class ContributorType(TypedDict): + """Contributor - A schema for the SPDX JSON format returned by the Dependency Graph. + Contributor """ - sbom: DependencyGraphSpdxSbomPropSbomType - - -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str - spdx_version: str - comment: NotRequired[str] - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType - name: str - data_license: str - document_namespace: str - packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] - relationships: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str - creators: list[str] - - -class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" - - relationship_type: NotRequired[str] - spdx_element_id: NotRequired[str] - related_spdx_element: NotRequired[str] - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: NotRequired[str] + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[Union[str, None]] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: str + site_admin: NotRequired[bool] + contributions: int + email: NotRequired[str] name: NotRequired[str] - version_info: NotRequired[str] - download_location: NotRequired[str] - files_analyzed: NotRequired[bool] - license_concluded: NotRequired[str] - license_declared: NotRequired[str] - supplier: NotRequired[str] - copyright_text: NotRequired[str] - external_refs: NotRequired[ - list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( - TypedDict -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - - reference_category: str - reference_locator: str - reference_type: str + user_view_type: NotRequired[str] -__all__ = ( - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomType", -) +__all__ = ("ContributorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0283.py b/githubkit/versions/v2022_11_28/types/group_0283.py index 75968e9b1..2ecc60cd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0283.py +++ b/githubkit/versions/v2022_11_28/types/group_0283.py @@ -9,15 +9,42 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias - -MetadataType: TypeAlias = dict[str, Any] -"""metadata - -User-defined metadata to store domain-specific information limited to 8 keys -with scalar values. -""" - - -__all__ = ("MetadataType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0034 import DependabotAlertSecurityVulnerabilityType +from .group_0035 import DependabotAlertSecurityAdvisoryType +from .group_0284 import DependabotAlertPropDependencyType + + +class DependabotAlertType(TypedDict): + """DependabotAlert + + A Dependabot alert. + """ + + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType + url: str + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + + +__all__ = ("DependabotAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0284.py b/githubkit/versions/v2022_11_28/types/group_0284.py index 8f87b5ef6..2907afce5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0284.py +++ b/githubkit/versions/v2022_11_28/types/group_0284.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0283 import MetadataType +from .group_0033 import DependabotAlertPackageType -class DependencyType(TypedDict): - """Dependency""" +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[list[str]] + Details for the vulnerable dependency. + """ + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + relationship: NotRequired[Union[None, Literal["unknown", "direct", "transitive"]]] -__all__ = ("DependencyType",) + +__all__ = ("DependabotAlertPropDependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0285.py b/githubkit/versions/v2022_11_28/types/group_0285.py index 524b20184..b061be26e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0285.py +++ b/githubkit/versions/v2022_11_28/types/group_0285.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import TypedDict -from .group_0283 import MetadataType +class DependencyGraphDiffItemsType(TypedDict): + """DependencyGraphDiffItems""" -class ManifestType(TypedDict): - """Manifest""" - + change_type: Literal["added", "removed"] + manifest: str + ecosystem: str name: str - file: NotRequired[ManifestPropFileType] - metadata: NotRequired[MetadataType] - resolved: NotRequired[ManifestPropResolvedType] - - -class ManifestPropFileType(TypedDict): - """ManifestPropFile""" + version: str + package_url: Union[str, None] + license_: Union[str, None] + source_repository_url: Union[str, None] + vulnerabilities: list[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] + scope: Literal["unknown", "runtime", "development"] - source_location: NotRequired[str] +class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" -ManifestPropResolvedType: TypeAlias = dict[str, Any] -"""ManifestPropResolved - -A collection of resolved package dependencies. -""" + severity: str + advisory_ghsa_id: str + advisory_summary: str + advisory_url: str __all__ = ( - "ManifestPropFileType", - "ManifestPropResolvedType", - "ManifestType", + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "DependencyGraphDiffItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0286.py b/githubkit/versions/v2022_11_28/types/group_0286.py index 119ba7464..489a3ce99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0286.py +++ b/githubkit/versions/v2022_11_28/types/group_0286.py @@ -9,59 +9,81 @@ from __future__ import annotations -from datetime import datetime -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0283 import MetadataType +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM -class SnapshotType(TypedDict): - """snapshot - - Create a new snapshot of a repository's dependencies. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType - metadata: NotRequired[MetadataType] - manifests: NotRequired[SnapshotPropManifestsType] - scanned: datetime + sbom: DependencyGraphSpdxSbomPropSbomType -class SnapshotPropJobType(TypedDict): - """SnapshotPropJob""" +class DependencyGraphSpdxSbomPropSbomType(TypedDict): + """DependencyGraphSpdxSbomPropSbom""" - id: str - correlator: str - html_url: NotRequired[str] + spdxid: str + spdx_version: str + comment: NotRequired[str] + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType + name: str + data_license: str + document_namespace: str + packages: list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] + relationships: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType] + ] -class SnapshotPropDetectorType(TypedDict): - """SnapshotPropDetector +class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - A description of the detector used. - """ + created: str + creators: list[str] - name: str - version: str - url: str +class DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropRelationshipsItems""" -SnapshotPropManifestsType: TypeAlias = dict[str, Any] -"""SnapshotPropManifests + relationship_type: NotRequired[str] + spdx_element_id: NotRequired[str] + related_spdx_element: NotRequired[str] -A collection of package manifests, which are a collection of related -dependencies declared in a file or representing a logical group of dependencies. -""" + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: NotRequired[str] + name: NotRequired[str] + version_info: NotRequired[str] + download_location: NotRequired[str] + files_analyzed: NotRequired[bool] + license_concluded: NotRequired[str] + license_declared: NotRequired[str] + supplier: NotRequired[str] + copyright_text: NotRequired[str] + external_refs: NotRequired[ + list[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] + ] + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( + TypedDict +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" + + reference_category: str + reference_locator: str + reference_type: str __all__ = ( - "SnapshotPropDetectorType", - "SnapshotPropJobType", - "SnapshotPropManifestsType", - "SnapshotType", + "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", + "DependencyGraphSpdxSbomPropSbomPropRelationshipsItemsType", + "DependencyGraphSpdxSbomPropSbomType", + "DependencyGraphSpdxSbomType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0287.py b/githubkit/versions/v2022_11_28/types/group_0287.py index 8e3d71848..75968e9b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0287.py +++ b/githubkit/versions/v2022_11_28/types/group_0287.py @@ -9,37 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType - - -class DeploymentStatusType(TypedDict): - """Deployment Status - - The status of a deployment. - """ - - url: str - id: int - node_id: str - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] - creator: Union[None, SimpleUserType] - description: str - environment: NotRequired[str] - target_url: str - created_at: datetime - updated_at: datetime - deployment_url: str - repository_url: str - environment_url: NotRequired[str] - log_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentStatusType",) +from typing import Any +from typing_extensions import TypeAlias + +MetadataType: TypeAlias = dict[str, Any] +"""metadata + +User-defined metadata to store domain-specific information limited to 8 keys +with scalar values. +""" + + +__all__ = ("MetadataType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0288.py b/githubkit/versions/v2022_11_28/types/group_0288.py index 2b9241c94..bdd324af1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0288.py +++ b/githubkit/versions/v2022_11_28/types/group_0288.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0287 import MetadataType -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ +class DependencyType(TypedDict): + """Dependency""" - protected_branches: bool - custom_branch_policies: bool + package_url: NotRequired[str] + metadata: NotRequired[MetadataType] + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[list[str]] -__all__ = ("DeploymentBranchPolicySettingsType",) +__all__ = ("DependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0289.py b/githubkit/versions/v2022_11_28/types/group_0289.py index c81684ed5..45ad48267 100644 --- a/githubkit/versions/v2022_11_28/types/group_0289.py +++ b/githubkit/versions/v2022_11_28/types/group_0289.py @@ -9,68 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0288 import DeploymentBranchPolicySettingsType -from .group_0290 import EnvironmentPropProtectionRulesItemsAnyof1Type +from .group_0287 import MetadataType -class EnvironmentType(TypedDict): - """Environment +class ManifestType(TypedDict): + """Manifest""" - Details of a deployment environment - """ - - id: int - node_id: str name: str - url: str - html_url: str - created_at: datetime - updated_at: datetime - protection_rules: NotRequired[ - list[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0Type, - EnvironmentPropProtectionRulesItemsAnyof1Type, - EnvironmentPropProtectionRulesItemsAnyof2Type, - ] - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] - - -class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof0""" + file: NotRequired[ManifestPropFileType] + metadata: NotRequired[MetadataType] + resolved: NotRequired[ManifestPropResolvedType] - id: int - node_id: str - type: str - wait_timer: NotRequired[int] +class ManifestPropFileType(TypedDict): + """ManifestPropFile""" -class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof2""" + source_location: NotRequired[str] - id: int - node_id: str - type: str +ManifestPropResolvedType: TypeAlias = dict[str, Any] +"""ManifestPropResolved -class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: NotRequired[int] - environments: NotRequired[list[EnvironmentType]] +A collection of resolved package dependencies. +""" __all__ = ( - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "EnvironmentType", - "ReposOwnerRepoEnvironmentsGetResponse200Type", + "ManifestPropFileType", + "ManifestPropResolvedType", + "ManifestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0290.py b/githubkit/versions/v2022_11_28/types/group_0290.py index c675406e4..040e9dcc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0290.py +++ b/githubkit/versions/v2022_11_28/types/group_0290.py @@ -9,21 +9,59 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0291 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +from .group_0287 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class SnapshotType(TypedDict): + """snapshot - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] + Create a new snapshot of a repository's dependencies. + """ + version: int + job: SnapshotPropJobType + sha: str + ref: str + detector: SnapshotPropDetectorType + metadata: NotRequired[MetadataType] + manifests: NotRequired[SnapshotPropManifestsType] + scanned: datetime -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) + +class SnapshotPropJobType(TypedDict): + """SnapshotPropJob""" + + id: str + correlator: str + html_url: NotRequired[str] + + +class SnapshotPropDetectorType(TypedDict): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str + version: str + url: str + + +SnapshotPropManifestsType: TypeAlias = dict[str, Any] +"""SnapshotPropManifests + +A collection of package manifests, which are a collection of related +dependencies declared in a file or representing a logical group of dependencies. +""" + + +__all__ = ( + "SnapshotPropDetectorType", + "SnapshotPropJobType", + "SnapshotPropManifestsType", + "SnapshotType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0291.py b/githubkit/versions/v2022_11_28/types/group_0291.py index 4fe37e596..8e3d71848 100644 --- a/githubkit/versions/v2022_11_28/types/group_0291.py +++ b/githubkit/versions/v2022_11_28/types/group_0291.py @@ -9,18 +9,37 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0080 import TeamType - - -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] - - -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) +from .group_0010 import IntegrationType + + +class DeploymentStatusType(TypedDict): + """Deployment Status + + The status of a deployment. + """ + + url: str + id: int + node_id: str + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] + creator: Union[None, SimpleUserType] + description: str + environment: NotRequired[str] + target_url: str + created_at: datetime + updated_at: datetime + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0292.py b/githubkit/versions/v2022_11_28/types/group_0292.py index 35c7c1f2a..2b9241c94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0292.py +++ b/githubkit/versions/v2022_11_28/types/group_0292.py @@ -9,15 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings - name: str - type: NotRequired[Literal["branch", "tag"]] + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ + protected_branches: bool + custom_branch_policies: bool -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) + +__all__ = ("DeploymentBranchPolicySettingsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0293.py b/githubkit/versions/v2022_11_28/types/group_0293.py index 784015c57..44287d481 100644 --- a/githubkit/versions/v2022_11_28/types/group_0293.py +++ b/githubkit/versions/v2022_11_28/types/group_0293.py @@ -9,13 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0292 import DeploymentBranchPolicySettingsType +from .group_0294 import EnvironmentPropProtectionRulesItemsAnyof1Type -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" +class EnvironmentType(TypedDict): + """Environment + + Details of a deployment environment + """ + + id: int + node_id: str name: str + url: str + html_url: str + created_at: datetime + updated_at: datetime + protection_rules: NotRequired[ + list[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0Type, + EnvironmentPropProtectionRulesItemsAnyof1Type, + EnvironmentPropProtectionRulesItemsAnyof2Type, + ] + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] + + +class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int + node_id: str + type: str + wait_timer: NotRequired[int] + + +class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int + node_id: str + type: str + + +class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: NotRequired[int] + environments: NotRequired[list[EnvironmentType]] -__all__ = ("DeploymentBranchPolicyNamePatternType",) +__all__ = ( + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "EnvironmentType", + "ReposOwnerRepoEnvironmentsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0294.py b/githubkit/versions/v2022_11_28/types/group_0294.py index 55685e749..77dda0dce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0294.py +++ b/githubkit/versions/v2022_11_28/types/group_0294.py @@ -9,19 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0295 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. - """ +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" id: int - slug: str - integration_url: str node_id: str + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + list[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ("CustomDeploymentRuleAppType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0295.py b/githubkit/versions/v2022_11_28/types/group_0295.py index 6fe779427..133811f22 100644 --- a/githubkit/versions/v2022_11_28/types/group_0295.py +++ b/githubkit/versions/v2022_11_28/types/group_0295.py @@ -9,37 +9,18 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0294 import CustomDeploymentRuleAppType +from .group_0003 import SimpleUserType +from .group_0084 import TeamType -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - Deployment protection rule - """ + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] - id: int - node_id: str - enabled: bool - app: CustomDeploymentRuleAppType - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: NotRequired[int] - custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] - - -__all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0296.py b/githubkit/versions/v2022_11_28/types/group_0296.py index deb8a4c9a..35c7c1f2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0296.py +++ b/githubkit/versions/v2022_11_28/types/group_0296.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ShortBlobType(TypedDict): - """Short Blob +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - Short Blob - """ + name: str + type: NotRequired[Literal["branch", "tag"]] - url: str - sha: str - -__all__ = ("ShortBlobType",) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0297.py b/githubkit/versions/v2022_11_28/types/group_0297.py index 7145ff7f3..784015c57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0297.py +++ b/githubkit/versions/v2022_11_28/types/group_0297.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BlobType(TypedDict): - """Blob +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" - Blob - """ + name: str - content: str - encoding: str - url: str - sha: str - size: Union[int, None] - node_id: str - highlighted_content: NotRequired[str] - -__all__ = ("BlobType",) +__all__ = ("DeploymentBranchPolicyNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0298.py b/githubkit/versions/v2022_11_28/types/group_0298.py index cb7d784df..55685e749 100644 --- a/githubkit/versions/v2022_11_28/types/group_0298.py +++ b/githubkit/versions/v2022_11_28/types/group_0298.py @@ -9,81 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union from typing_extensions import TypedDict -class GitCommitType(TypedDict): - """Git Commit +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app - Low-level Git commit operations within a repository + A GitHub App that is providing a custom deployment protection rule. """ - sha: str + id: int + slug: str + integration_url: str node_id: str - url: str - author: GitCommitPropAuthorType - committer: GitCommitPropCommitterType - message: str - tree: GitCommitPropTreeType - parents: list[GitCommitPropParentsItemsType] - verification: GitCommitPropVerificationType - html_url: str -class GitCommitPropAuthorType(TypedDict): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropCommitterType(TypedDict): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropTreeType(TypedDict): - """GitCommitPropTree""" - - sha: str - url: str - - -class GitCommitPropParentsItemsType(TypedDict): - """GitCommitPropParentsItems""" - - sha: str - url: str - html_url: str - - -class GitCommitPropVerificationType(TypedDict): - """GitCommitPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: Union[str, None] - - -__all__ = ( - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropParentsItemsType", - "GitCommitPropTreeType", - "GitCommitPropVerificationType", - "GitCommitType", -) +__all__ = ("CustomDeploymentRuleAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0299.py b/githubkit/versions/v2022_11_28/types/group_0299.py index 5f8d78e7c..1827cba30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0299.py +++ b/githubkit/versions/v2022_11_28/types/group_0299.py @@ -9,30 +9,37 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0298 import CustomDeploymentRuleAppType -class GitRefType(TypedDict): - """Git Reference - Git references within a repository +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule + + Deployment protection rule """ - ref: str + id: int node_id: str - url: str - object_: GitRefPropObjectType + enabled: bool + app: CustomDeploymentRuleAppType + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - type: str - sha: str - url: str + total_count: NotRequired[int] + custom_deployment_protection_rules: NotRequired[list[DeploymentProtectionRuleType]] __all__ = ( - "GitRefPropObjectType", - "GitRefType", + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0300.py b/githubkit/versions/v2022_11_28/types/group_0300.py index 44701b37a..deb8a4c9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0300.py +++ b/githubkit/versions/v2022_11_28/types/group_0300.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0223 import VerificationType +class ShortBlobType(TypedDict): + """Short Blob -class GitTagType(TypedDict): - """Git Tag - - Metadata for a Git tag + Short Blob """ - node_id: str - tag: str - sha: str url: str - message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] - - -class GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" - - date: str - email: str - name: str - - -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" - sha: str - type: str - url: str -__all__ = ( - "GitTagPropObjectType", - "GitTagPropTaggerType", - "GitTagType", -) +__all__ = ("ShortBlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0301.py b/githubkit/versions/v2022_11_28/types/group_0301.py index 6559266ff..7145ff7f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0301.py +++ b/githubkit/versions/v2022_11_28/types/group_0301.py @@ -9,33 +9,23 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class GitTreeType(TypedDict): - """Git Tree +class BlobType(TypedDict): + """Blob - The hierarchy between files in a Git repository. + Blob """ + content: str + encoding: str + url: str sha: str - url: NotRequired[str] - truncated: bool - tree: list[GitTreePropTreeItemsType] + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" - - path: str - mode: str - type: str - sha: str - size: NotRequired[int] - url: NotRequired[str] - - -__all__ = ( - "GitTreePropTreeItemsType", - "GitTreeType", -) +__all__ = ("BlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0302.py b/githubkit/versions/v2022_11_28/types/group_0302.py index 2763aab9e..cb7d784df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0302.py +++ b/githubkit/versions/v2022_11_28/types/group_0302.py @@ -9,16 +9,81 @@ from __future__ import annotations +from datetime import datetime from typing import Union from typing_extensions import TypedDict -class HookResponseType(TypedDict): - """Hook Response""" +class GitCommitType(TypedDict): + """Git Commit - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] + Low-level Git commit operations within a repository + """ + sha: str + node_id: str + url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType + message: str + tree: GitCommitPropTreeType + parents: list[GitCommitPropParentsItemsType] + verification: GitCommitPropVerificationType + html_url: str -__all__ = ("HookResponseType",) + +class GitCommitPropAuthorType(TypedDict): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str + url: str + + +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" + + sha: str + url: str + html_url: str + + +class GitCommitPropVerificationType(TypedDict): + """GitCommitPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] + + +__all__ = ( + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropParentsItemsType", + "GitCommitPropTreeType", + "GitCommitPropVerificationType", + "GitCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0303.py b/githubkit/versions/v2022_11_28/types/group_0303.py index b2fcc33f0..5f8d78e7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0303.py +++ b/githubkit/versions/v2022_11_28/types/group_0303.py @@ -9,32 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0011 import WebhookConfigType -from .group_0302 import HookResponseType +class GitRefType(TypedDict): + """Git Reference -class HookType(TypedDict): - """Webhook - - Webhooks for repositories. + Git references within a repository """ + ref: str + node_id: str + url: str + object_: GitRefPropObjectType + + +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" + type: str - id: int - name: str - active: bool - events: list[str] - config: WebhookConfigType - updated_at: datetime - created_at: datetime + sha: str url: str - test_url: str - ping_url: str - deliveries_url: NotRequired[str] - last_response: HookResponseType -__all__ = ("HookType",) +__all__ = ( + "GitRefPropObjectType", + "GitRefType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0304.py b/githubkit/versions/v2022_11_28/types/group_0304.py index 991490339..621e5a1a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0304.py +++ b/githubkit/versions/v2022_11_28/types/group_0304.py @@ -9,67 +9,45 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0227 import VerificationType -class ImportType(TypedDict): - """Import - A repository import from an external source. +class GitTagType(TypedDict): + """Git Tag + + Metadata for a Git tag """ - vcs: Union[str, None] - use_lfs: NotRequired[bool] - vcs_url: str - svc_root: NotRequired[str] - tfvc_project: NotRequired[str] - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] - status_text: NotRequired[Union[str, None]] - failed_step: NotRequired[Union[str, None]] - error_message: NotRequired[Union[str, None]] - import_percent: NotRequired[Union[int, None]] - commit_count: NotRequired[Union[int, None]] - push_percent: NotRequired[Union[int, None]] - has_large_files: NotRequired[bool] - large_files_size: NotRequired[int] - large_files_count: NotRequired[int] - project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] - message: NotRequired[str] - authors_count: NotRequired[Union[int, None]] + node_id: str + tag: str + sha: str url: str - html_url: str - authors_url: str - repository_url: str - svn_root: NotRequired[str] + message: str + tagger: GitTagPropTaggerType + object_: GitTagPropObjectType + verification: NotRequired[VerificationType] + + +class GitTagPropTaggerType(TypedDict): + """GitTagPropTagger""" + date: str + email: str + name: str -class ImportPropProjectChoicesItemsType(TypedDict): - """ImportPropProjectChoicesItems""" - vcs: NotRequired[str] - tfvc_project: NotRequired[str] - human_name: NotRequired[str] +class GitTagPropObjectType(TypedDict): + """GitTagPropObject""" + + sha: str + type: str + url: str __all__ = ( - "ImportPropProjectChoicesItemsType", - "ImportType", + "GitTagPropObjectType", + "GitTagPropTaggerType", + "GitTagType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0305.py b/githubkit/versions/v2022_11_28/types/group_0305.py index a760ba55a..6559266ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0305.py +++ b/githubkit/versions/v2022_11_28/types/group_0305.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class PorterAuthorType(TypedDict): - """Porter Author +class GitTreeType(TypedDict): + """Git Tree - Porter Author + The hierarchy between files in a Git repository. """ - id: int - remote_id: str - remote_name: str - email: str - name: str - url: str - import_url: str + sha: str + url: NotRequired[str] + truncated: bool + tree: list[GitTreePropTreeItemsType] -__all__ = ("PorterAuthorType",) +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" + + path: str + mode: str + type: str + sha: str + size: NotRequired[int] + url: NotRequired[str] + + +__all__ = ( + "GitTreePropTreeItemsType", + "GitTreeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0306.py b/githubkit/versions/v2022_11_28/types/group_0306.py index ae1425148..2763aab9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0306.py +++ b/githubkit/versions/v2022_11_28/types/group_0306.py @@ -9,19 +9,16 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class PorterLargeFileType(TypedDict): - """Porter Large File +class HookResponseType(TypedDict): + """Hook Response""" - Porter Large File - """ + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - ref_name: str - path: str - oid: str - size: int - -__all__ = ("PorterLargeFileType",) +__all__ = ("HookResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0307.py b/githubkit/versions/v2022_11_28/types/group_0307.py index 1370165c1..2c5c8ba1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0307.py +++ b/githubkit/versions/v2022_11_28/types/group_0307.py @@ -10,113 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0042 import IssueType -from .group_0080 import TeamType +from .group_0011 import WebhookConfigType +from .group_0306 import HookResponseType -class IssueEventType(TypedDict): - """Issue Event +class HookType(TypedDict): + """Webhook - Issue Event + Webhooks for repositories. """ + type: str id: int - node_id: str - url: str - actor: Union[None, SimpleUserType] - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] + name: str + active: bool + events: list[str] + config: WebhookConfigType + updated_at: datetime created_at: datetime - issue: NotRequired[Union[None, IssueType]] - label: NotRequired[IssueEventLabelType] - assignee: NotRequired[Union[None, SimpleUserType]] - assigner: NotRequired[Union[None, SimpleUserType]] - review_requester: NotRequired[Union[None, SimpleUserType]] - requested_reviewer: NotRequired[Union[None, SimpleUserType]] - requested_team: NotRequired[TeamType] - dismissed_review: NotRequired[IssueEventDismissedReviewType] - milestone: NotRequired[IssueEventMilestoneType] - project_card: NotRequired[IssueEventProjectCardType] - rename: NotRequired[IssueEventRenameType] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - lock_reason: NotRequired[Union[str, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -class IssueEventLabelType(TypedDict): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] - color: Union[str, None] - - -class IssueEventDismissedReviewType(TypedDict): - """Issue Event Dismissed Review""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[Union[str, None]] - - -class IssueEventMilestoneType(TypedDict): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str - - -class IssueEventProjectCardType(TypedDict): - """Issue Event Project Card - - Issue Event Project Card - """ - url: str - id: int - project_url: str - project_id: int - column_name: str - previous_column_name: NotRequired[str] - - -class IssueEventRenameType(TypedDict): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str - to: str + test_url: str + ping_url: str + deliveries_url: NotRequired[str] + last_response: HookResponseType -__all__ = ( - "IssueEventDismissedReviewType", - "IssueEventLabelType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", - "IssueEventType", -) +__all__ = ("HookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0308.py b/githubkit/versions/v2022_11_28/types/group_0308.py index e030b2d8c..991490339 100644 --- a/githubkit/versions/v2022_11_28/types/group_0308.py +++ b/githubkit/versions/v2022_11_28/types/group_0308.py @@ -10,38 +10,66 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class ImportType(TypedDict): + """Import -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event - - Labeled Issue Event + A repository import from an external source. """ - id: int - node_id: str + vcs: Union[str, None] + use_lfs: NotRequired[bool] + vcs_url: str + svc_root: NotRequired[str] + tfvc_project: NotRequired[str] + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] + status_text: NotRequired[Union[str, None]] + failed_step: NotRequired[Union[str, None]] + error_message: NotRequired[Union[str, None]] + import_percent: NotRequired[Union[int, None]] + commit_count: NotRequired[Union[int, None]] + push_percent: NotRequired[Union[int, None]] + has_large_files: NotRequired[bool] + large_files_size: NotRequired[int] + large_files_count: NotRequired[int] + project_choices: NotRequired[list[ImportPropProjectChoicesItemsType]] + message: NotRequired[str] + authors_count: NotRequired[Union[int, None]] url: str - actor: SimpleUserType - event: Literal["labeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: LabeledIssueEventPropLabelType + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] -class LabeledIssueEventPropLabelType(TypedDict): - """LabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" - name: str - color: str + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] __all__ = ( - "LabeledIssueEventPropLabelType", - "LabeledIssueEventType", + "ImportPropProjectChoicesItemsType", + "ImportType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0309.py b/githubkit/versions/v2022_11_28/types/group_0309.py index 94fd5f2f1..a760ba55a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0309.py +++ b/githubkit/versions/v2022_11_28/types/group_0309.py @@ -9,39 +9,22 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class PorterAuthorType(TypedDict): + """Porter Author -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event - - Unlabeled Issue Event + Porter Author """ id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["unlabeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: UnlabeledIssueEventPropLabelType - - -class UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" - + remote_id: str + remote_name: str + email: str name: str - color: str + url: str + import_url: str -__all__ = ( - "UnlabeledIssueEventPropLabelType", - "UnlabeledIssueEventType", -) +__all__ = ("PorterAuthorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0310.py b/githubkit/versions/v2022_11_28/types/group_0310.py index 735f4766c..ae1425148 100644 --- a/githubkit/versions/v2022_11_28/types/group_0310.py +++ b/githubkit/versions/v2022_11_28/types/group_0310.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event - - Assigned Issue Event + Porter Large File """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + ref_name: str + path: str + oid: str + size: int -__all__ = ("AssignedIssueEventType",) +__all__ = ("PorterLargeFileType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0311.py b/githubkit/versions/v2022_11_28/types/group_0311.py index cee4c2513..8a8425504 100644 --- a/githubkit/versions/v2022_11_28/types/group_0311.py +++ b/githubkit/versions/v2022_11_28/types/group_0311.py @@ -9,30 +9,114 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0045 import IssueType +from .group_0084 import TeamType -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event +class IssueEventType(TypedDict): + """Issue Event - Unassigned Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType + actor: Union[None, SimpleUserType] event: str commit_id: Union[str, None] commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + created_at: datetime + issue: NotRequired[Union[None, IssueType]] + label: NotRequired[IssueEventLabelType] + assignee: NotRequired[Union[None, SimpleUserType]] + assigner: NotRequired[Union[None, SimpleUserType]] + review_requester: NotRequired[Union[None, SimpleUserType]] + requested_reviewer: NotRequired[Union[None, SimpleUserType]] + requested_team: NotRequired[TeamType] + dismissed_review: NotRequired[IssueEventDismissedReviewType] + milestone: NotRequired[IssueEventMilestoneType] + project_card: NotRequired[IssueEventProjectCardType] + rename: NotRequired[IssueEventRenameType] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + lock_reason: NotRequired[Union[str, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -__all__ = ("UnassignedIssueEventType",) +class IssueEventLabelType(TypedDict): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] + color: Union[str, None] + + +class IssueEventDismissedReviewType(TypedDict): + """Issue Event Dismissed Review""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[Union[str, None]] + + +class IssueEventMilestoneType(TypedDict): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str + + +class IssueEventProjectCardType(TypedDict): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str + id: int + project_url: str + project_id: int + column_name: str + previous_column_name: NotRequired[str] + + +class IssueEventRenameType(TypedDict): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str + to: str + + +__all__ = ( + "IssueEventDismissedReviewType", + "IssueEventLabelType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", + "IssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0312.py b/githubkit/versions/v2022_11_28/types/group_0312.py index 2b6b9a914..e030b2d8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0312.py +++ b/githubkit/versions/v2022_11_28/types/group_0312.py @@ -16,31 +16,32 @@ from .group_0010 import IntegrationType -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Milestoned Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["milestoned"] + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType + label: LabeledIssueEventPropLabelType -class MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" - title: str + name: str + color: str __all__ = ( - "MilestonedIssueEventPropMilestoneType", - "MilestonedIssueEventType", + "LabeledIssueEventPropLabelType", + "LabeledIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0313.py b/githubkit/versions/v2022_11_28/types/group_0313.py index dfaf3aff4..94fd5f2f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0313.py +++ b/githubkit/versions/v2022_11_28/types/group_0313.py @@ -16,31 +16,32 @@ from .group_0010 import IntegrationType -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Demilestoned Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["demilestoned"] + event: Literal["unlabeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - milestone: DemilestonedIssueEventPropMilestoneType + label: UnlabeledIssueEventPropLabelType -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" - title: str + name: str + color: str __all__ = ( - "DemilestonedIssueEventPropMilestoneType", - "DemilestonedIssueEventType", + "UnlabeledIssueEventPropLabelType", + "UnlabeledIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0314.py b/githubkit/versions/v2022_11_28/types/group_0314.py index 6d9cdf5e9..735f4766c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0314.py +++ b/githubkit/versions/v2022_11_28/types/group_0314.py @@ -9,39 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Renamed Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["renamed"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" - - from_: str - to: str - - -__all__ = ( - "RenamedIssueEventPropRenameType", - "RenamedIssueEventType", -) +__all__ = ("AssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0315.py b/githubkit/versions/v2022_11_28/types/group_0315.py index ca73c221d..cee4c2513 100644 --- a/githubkit/versions/v2022_11_28/types/group_0315.py +++ b/githubkit/versions/v2022_11_28/types/group_0315.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0080 import TeamType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Review Requested Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + assignee: SimpleUserType + assigner: SimpleUserType -__all__ = ("ReviewRequestedIssueEventType",) +__all__ = ("UnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0316.py b/githubkit/versions/v2022_11_28/types/group_0316.py index 3dd712dab..2b6b9a914 100644 --- a/githubkit/versions/v2022_11_28/types/group_0316.py +++ b/githubkit/versions/v2022_11_28/types/group_0316.py @@ -10,31 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0080 import TeamType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Review Request Removed Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + milestone: MilestonedIssueEventPropMilestoneType -__all__ = ("ReviewRequestRemovedIssueEventType",) +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" + + title: str + + +__all__ = ( + "MilestonedIssueEventPropMilestoneType", + "MilestonedIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0317.py b/githubkit/versions/v2022_11_28/types/group_0317.py index 160c5a57c..dfaf3aff4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0317.py +++ b/githubkit/versions/v2022_11_28/types/group_0317.py @@ -10,40 +10,37 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Review Dismissed Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + milestone: DemilestonedIssueEventPropMilestoneType -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] + title: str __all__ = ( - "ReviewDismissedIssueEventPropDismissedReviewType", - "ReviewDismissedIssueEventType", + "DemilestonedIssueEventPropMilestoneType", + "DemilestonedIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0318.py b/githubkit/versions/v2022_11_28/types/group_0318.py index 1c8f2b944..6d9cdf5e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0318.py +++ b/githubkit/versions/v2022_11_28/types/group_0318.py @@ -16,22 +16,32 @@ from .group_0010 import IntegrationType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Locked Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + event: Literal["renamed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - lock_reason: Union[str, None] + rename: RenamedIssueEventPropRenameType -__all__ = ("LockedIssueEventType",) +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" + + from_: str + to: str + + +__all__ = ( + "RenamedIssueEventPropRenameType", + "RenamedIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0319.py b/githubkit/versions/v2022_11_28/types/group_0319.py index c1191415d..5603a8a1b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0319.py +++ b/githubkit/versions/v2022_11_28/types/group_0319.py @@ -14,38 +14,27 @@ from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0084 import TeamType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Added to Project Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["review_requested"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "AddedToProjectIssueEventPropProjectCardType", - "AddedToProjectIssueEventType", -) +__all__ = ("ReviewRequestedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0320.py b/githubkit/versions/v2022_11_28/types/group_0320.py index c8c8ecbcf..d8d3f3883 100644 --- a/githubkit/versions/v2022_11_28/types/group_0320.py +++ b/githubkit/versions/v2022_11_28/types/group_0320.py @@ -14,38 +14,27 @@ from .group_0003 import SimpleUserType from .group_0010 import IntegrationType +from .group_0084 import TeamType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Moved Column in Project Issue Event + Review Request Removed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["review_request_removed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "MovedColumnInProjectIssueEventPropProjectCardType", - "MovedColumnInProjectIssueEventType", -) +__all__ = ("ReviewRequestRemovedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0321.py b/githubkit/versions/v2022_11_28/types/group_0321.py index 8616df3d4..160c5a57c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0321.py +++ b/githubkit/versions/v2022_11_28/types/group_0321.py @@ -16,36 +16,34 @@ from .group_0010 import IntegrationType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Removed from Project Issue Event + Review Dismissed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + event: Literal["review_dismissed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[str] __all__ = ( - "RemovedFromProjectIssueEventPropProjectCardType", - "RemovedFromProjectIssueEventType", + "ReviewDismissedIssueEventPropDismissedReviewType", + "ReviewDismissedIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0322.py b/githubkit/versions/v2022_11_28/types/group_0322.py index 03ad239c9..1c8f2b944 100644 --- a/githubkit/versions/v2022_11_28/types/group_0322.py +++ b/githubkit/versions/v2022_11_28/types/group_0322.py @@ -10,42 +10,28 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class LockedIssueEventType(TypedDict): + """Locked Issue Event - Converted Note to Issue Issue Event + Locked Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["locked"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[IntegrationType, None] - project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] + performed_via_github_app: Union[None, IntegrationType, None] + lock_reason: Union[str, None] -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "ConvertedNoteToIssueIssueEventPropProjectCardType", - "ConvertedNoteToIssueIssueEventType", -) +__all__ = ("LockedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0323.py b/githubkit/versions/v2022_11_28/types/group_0323.py index 593c9a022..c1191415d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0323.py +++ b/githubkit/versions/v2022_11_28/types/group_0323.py @@ -9,46 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0010 import IntegrationType -from .group_0041 import ReactionRollupType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event - Timeline Comment Event + Added to Project Issue Event """ - event: Literal["commented"] - actor: SimpleUserType id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: SimpleUserType - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TimelineCommentEventType",) + actor: SimpleUserType + event: Literal["added_to_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + + +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "AddedToProjectIssueEventPropProjectCardType", + "AddedToProjectIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0324.py b/githubkit/versions/v2022_11_28/types/group_0324.py index 43c1958e6..c8c8ecbcf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0324.py +++ b/githubkit/versions/v2022_11_28/types/group_0324.py @@ -9,25 +9,43 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0325 import TimelineCrossReferencedEventPropSourceType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - Timeline Cross Referenced Event + Moved Column in Project Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType - - -__all__ = ("TimelineCrossReferencedEventType",) + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["moved_columns_in_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + + +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "MovedColumnInProjectIssueEventPropProjectCardType", + "MovedColumnInProjectIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0325.py b/githubkit/versions/v2022_11_28/types/group_0325.py index 521f730da..8616df3d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0325.py +++ b/githubkit/versions/v2022_11_28/types/group_0325.py @@ -9,16 +9,43 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0042 import IssueType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - type: NotRequired[str] - issue: NotRequired[IssueType] + Removed from Project Issue Event + """ + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["removed_from_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] -__all__ = ("TimelineCrossReferencedEventPropSourceType",) + +class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "RemovedFromProjectIssueEventPropProjectCardType", + "RemovedFromProjectIssueEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0326.py b/githubkit/versions/v2022_11_28/types/group_0326.py index 11c95229f..03ad239c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0326.py +++ b/githubkit/versions/v2022_11_28/types/group_0326.py @@ -9,82 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class TimelineCommittedEventType(TypedDict): - """Timeline Committed Event - Timeline Committed Event - """ - - event: NotRequired[Literal["committed"]] - sha: str - node_id: str - url: str - author: TimelineCommittedEventPropAuthorType - committer: TimelineCommittedEventPropCommitterType - message: str - tree: TimelineCommittedEventPropTreeType - parents: list[TimelineCommittedEventPropParentsItemsType] - verification: TimelineCommittedEventPropVerificationType - html_url: str - - -class TimelineCommittedEventPropAuthorType(TypedDict): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - -class TimelineCommittedEventPropCommitterType(TypedDict): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user + Converted Note to Issue Issue Event """ - date: datetime - email: str - name: str - - -class TimelineCommittedEventPropTreeType(TypedDict): - """TimelineCommittedEventPropTree""" - - sha: str + id: int + node_id: str url: str + actor: SimpleUserType + event: Literal["converted_note_to_issue"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[IntegrationType, None] + project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] -class TimelineCommittedEventPropParentsItemsType(TypedDict): - """TimelineCommittedEventPropParentsItems""" +class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - sha: str + id: int url: str - html_url: str - - -class TimelineCommittedEventPropVerificationType(TypedDict): - """TimelineCommittedEventPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - verified_at: Union[str, None] + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropVerificationType", - "TimelineCommittedEventType", + "ConvertedNoteToIssueIssueEventPropProjectCardType", + "ConvertedNoteToIssueIssueEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0327.py b/githubkit/versions/v2022_11_28/types/group_0327.py index 19ca5be38..5e2b95635 100644 --- a/githubkit/versions/v2022_11_28/types/group_0327.py +++ b/githubkit/versions/v2022_11_28/types/group_0327.py @@ -14,27 +14,29 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0044 import ReactionRollupType -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event - Timeline Reviewed Event + Timeline Comment Event """ - event: Literal["reviewed"] + event: Literal["commented"] + actor: SimpleUserType id: int node_id: str - user: SimpleUserType - body: Union[str, None] - state: str + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] html_url: str - pull_request_url: str - links: TimelineReviewedEventPropLinksType - submitted_at: NotRequired[datetime] - commit_id: str - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] + user: SimpleUserType + created_at: datetime + updated_at: datetime + issue_url: str author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -45,30 +47,8 @@ class TimelineReviewedEventType(TypedDict): "NONE", "OWNER", ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] -class TimelineReviewedEventPropLinksType(TypedDict): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtmlType - pull_request: TimelineReviewedEventPropLinksPropPullRequestType - - -class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str - - -class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str - - -__all__ = ( - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventType", -) +__all__ = ("TimelineCommentEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0328.py b/githubkit/versions/v2022_11_28/types/group_0328.py index 67c5ccd44..09837a905 100644 --- a/githubkit/versions/v2022_11_28/types/group_0328.py +++ b/githubkit/versions/v2022_11_28/types/group_0328.py @@ -10,102 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0041 import ReactionRollupType +from .group_0329 import TimelineCrossReferencedEventPropSourceType -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Cross Referenced Event """ - url: str - pull_request_review_id: Union[int, None] - id: int - node_id: str - diff_hunk: str - path: str - position: NotRequired[int] - original_position: NotRequired[int] - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: SimpleUserType - body: str + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] created_at: datetime updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: PullRequestReviewCommentPropLinksType - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - reactions: NotRequired[ReactionRollupType] - body_html: NotRequired[str] - body_text: NotRequired[str] + source: TimelineCrossReferencedEventPropSourceType -class PullRequestReviewCommentPropLinksType(TypedDict): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelfType - html: PullRequestReviewCommentPropLinksPropHtmlType - pull_request: PullRequestReviewCommentPropLinksPropPullRequestType - - -class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str - - -class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str - - -class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str - - -class TimelineLineCommentedEventType(TypedDict): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ - - event: NotRequired[Literal["line_commented"]] - node_id: NotRequired[str] - comments: NotRequired[list[PullRequestReviewCommentType]] - - -__all__ = ( - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentType", - "TimelineLineCommentedEventType", -) +__all__ = ("TimelineCrossReferencedEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0329.py b/githubkit/versions/v2022_11_28/types/group_0329.py index 3baa7987b..cfca225a5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0329.py +++ b/githubkit/versions/v2022_11_28/types/group_0329.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +from .group_0045 import IssueType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - Timeline Assigned Issue Event - """ + type: NotRequired[str] + issue: NotRequired[IssueType] - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["assigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - -__all__ = ("TimelineAssignedIssueEventType",) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0330.py b/githubkit/versions/v2022_11_28/types/group_0330.py index 7d37c3f07..11c95229f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0330.py +++ b/githubkit/versions/v2022_11_28/types/group_0330.py @@ -9,29 +9,82 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event - - Timeline Unassigned Issue Event + Timeline Committed Event """ - id: int + event: NotRequired[Literal["committed"]] + sha: str node_id: str url: str - actor: SimpleUserType - event: Literal["unassigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: list[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType + html_url: str + + +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + + sha: str + url: str + + +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + + sha: str + url: str + html_url: str + + +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + verified_at: Union[str, None] -__all__ = ("TimelineUnassignedIssueEventType",) +__all__ = ( + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropVerificationType", + "TimelineCommittedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0331.py b/githubkit/versions/v2022_11_28/types/group_0331.py index 4978c8454..19ca5be38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0331.py +++ b/githubkit/versions/v2022_11_28/types/group_0331.py @@ -9,29 +9,66 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event - State Change Issue Event + Timeline Reviewed Event """ + event: Literal["reviewed"] id: int node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - state_reason: NotRequired[Union[str, None]] + user: SimpleUserType + body: Union[str, None] + state: str + html_url: str + pull_request_url: str + links: TimelineReviewedEventPropLinksType + submitted_at: NotRequired[datetime] + commit_id: str + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] -__all__ = ("StateChangeIssueEventType",) +class TimelineReviewedEventPropLinksType(TypedDict): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtmlType + pull_request: TimelineReviewedEventPropLinksPropPullRequestType + + +class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str + + +class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0332.py b/githubkit/versions/v2022_11_28/types/group_0332.py index b320cbbd3..952375e5f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0332.py +++ b/githubkit/versions/v2022_11_28/types/group_0332.py @@ -9,26 +9,103 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0044 import ReactionRollupType -class DeployKeyType(TypedDict): - """Deploy Key - An SSH key granting access to a single repository. +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ - id: int - key: str url: str - title: str - verified: bool - created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] - enabled: NotRequired[bool] + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str + + +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[list[PullRequestReviewCommentType]] -__all__ = ("DeployKeyType",) +__all__ = ( + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentType", + "TimelineLineCommentedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0333.py b/githubkit/versions/v2022_11_28/types/group_0333.py index bc5f5cd8b..3baa7987b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0333.py +++ b/githubkit/versions/v2022_11_28/types/group_0333.py @@ -9,14 +9,29 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing import Literal, Union +from typing_extensions import TypedDict -LanguageType: TypeAlias = dict[str, Any] -"""Language +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -Language -""" + +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event + """ + + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["assigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ("LanguageType",) +__all__ = ("TimelineAssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0334.py b/githubkit/versions/v2022_11_28/types/group_0334.py index 2913097c9..7d37c3f07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0334.py +++ b/githubkit/versions/v2022_11_28/types/group_0334.py @@ -9,42 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import TypedDict -from .group_0019 import LicenseSimpleType +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class LicenseContentType(TypedDict): - """License Content +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event - License Content + Timeline Unassigned Issue Event """ - name: str - path: str - sha: str - size: int + id: int + node_id: str url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "LicenseContentPropLinksType", - "LicenseContentType", -) +__all__ = ("TimelineUnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0335.py b/githubkit/versions/v2022_11_28/types/group_0335.py index ef4f49c12..4978c8454 100644 --- a/githubkit/versions/v2022_11_28/types/group_0335.py +++ b/githubkit/versions/v2022_11_28/types/group_0335.py @@ -9,19 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType -class MergedUpstreamType(TypedDict): - """Merged upstream - Results of a successful merge upstream request +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event + + State Change Issue Event """ - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] + id: int + node_id: str + url: str + actor: SimpleUserType + event: str + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + state_reason: NotRequired[Union[str, None]] -__all__ = ("MergedUpstreamType",) +__all__ = ("StateChangeIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0336.py b/githubkit/versions/v2022_11_28/types/group_0336.py index 121c3bad8..b320cbbd3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0336.py +++ b/githubkit/versions/v2022_11_28/types/group_0336.py @@ -9,64 +9,26 @@ from __future__ import annotations -from datetime import date, datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class PageType(TypedDict): - """GitHub Pages +class DeployKeyType(TypedDict): + """Deploy Key - The configuration for GitHub Pages for a repository. + An SSH key granting access to a single repository. """ + id: int + key: str url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[str, None]] + enabled: NotRequired[bool] -class PagesSourceHashType(TypedDict): - """Pages Source Hash""" - - branch: str - path: str - - -class PagesHttpsCertificateType(TypedDict): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] - description: str - domains: list[str] - expires_at: NotRequired[date] - - -__all__ = ( - "PageType", - "PagesHttpsCertificateType", - "PagesSourceHashType", -) +__all__ = ("DeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0337.py b/githubkit/versions/v2022_11_28/types/group_0337.py index 83899a24e..bc5f5cd8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0337.py +++ b/githubkit/versions/v2022_11_28/types/group_0337.py @@ -9,36 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import TypeAlias -from .group_0003 import SimpleUserType +LanguageType: TypeAlias = dict[str, Any] +"""Language - -class PageBuildType(TypedDict): - """Page Build - - Page Build - """ - - url: str - status: str - error: PageBuildPropErrorType - pusher: Union[None, SimpleUserType] - commit: str - duration: int - created_at: datetime - updated_at: datetime - - -class PageBuildPropErrorType(TypedDict): - """PageBuildPropError""" - - message: Union[str, None] +Language +""" -__all__ = ( - "PageBuildPropErrorType", - "PageBuildType", -) +__all__ = ("LanguageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0338.py b/githubkit/versions/v2022_11_28/types/group_0338.py index d7001e4a1..2913097c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0338.py +++ b/githubkit/versions/v2022_11_28/types/group_0338.py @@ -9,17 +9,42 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict +from .group_0019 import LicenseSimpleType -class PageBuildStatusType(TypedDict): - """Page Build Status - Page Build Status +class LicenseContentType(TypedDict): + """License Content + + License Content """ + name: str + path: str + sha: str + size: int url: str - status: str + html_url: Union[str, None] + git_url: Union[str, None] + download_url: Union[str, None] + type: str + content: str + encoding: str + links: LicenseContentPropLinksType + license_: Union[None, LicenseSimpleType] + + +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str -__all__ = ("PageBuildStatusType",) +__all__ = ( + "LicenseContentPropLinksType", + "LicenseContentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0339.py b/githubkit/versions/v2022_11_28/types/group_0339.py index d3e0b1eca..ef4f49c12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0339.py +++ b/githubkit/versions/v2022_11_28/types/group_0339.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class PageDeploymentType(TypedDict): - """GitHub Pages +class MergedUpstreamType(TypedDict): + """Merged upstream - The GitHub Pages deployment status. + Results of a successful merge upstream request """ - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] + message: NotRequired[str] + merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] + base_branch: NotRequired[str] -__all__ = ("PageDeploymentType",) +__all__ = ("MergedUpstreamType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0340.py b/githubkit/versions/v2022_11_28/types/group_0340.py index 2bf2ddbc1..121c3bad8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0340.py +++ b/githubkit/versions/v2022_11_28/types/group_0340.py @@ -9,28 +9,64 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class PagesDeploymentStatusType(TypedDict): - """GitHub Pages deployment status""" - - status: NotRequired[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] +class PageType(TypedDict): + """GitHub Pages + + The configuration for GitHub Pages for a repository. + """ + + url: str + status: Union[None, Literal["built", "building", "errored"]] + cname: Union[str, None] + protected_domain_state: NotRequired[ + Union[None, Literal["pending", "verified", "unverified"]] + ] + pending_domain_unverified_at: NotRequired[Union[datetime, None]] + custom_404: bool + html_url: NotRequired[str] + build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] + source: NotRequired[PagesSourceHashType] + public: bool + https_certificate: NotRequired[PagesHttpsCertificateType] + https_enforced: NotRequired[bool] + + +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", ] + description: str + domains: list[str] + expires_at: NotRequired[date] -__all__ = ("PagesDeploymentStatusType",) +__all__ = ( + "PageType", + "PagesHttpsCertificateType", + "PagesSourceHashType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0341.py b/githubkit/versions/v2022_11_28/types/group_0341.py index 5546e6ba9..83899a24e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0341.py +++ b/githubkit/versions/v2022_11_28/types/group_0341.py @@ -9,88 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status - Pages Health Check Status - """ - - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] +class PageBuildType(TypedDict): + """Page Build + Page Build + """ -class PagesHealthCheckPropDomainType(TypedDict): - """PagesHealthCheckPropDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + url: str + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int + created_at: datetime + updated_at: datetime -class PagesHealthCheckPropAltDomainType(TypedDict): - """PagesHealthCheckPropAltDomain""" +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + message: Union[str, None] __all__ = ( - "PagesHealthCheckPropAltDomainType", - "PagesHealthCheckPropDomainType", - "PagesHealthCheckType", + "PageBuildPropErrorType", + "PageBuildType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0342.py b/githubkit/versions/v2022_11_28/types/group_0342.py index 1179a0961..d7001e4a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0342.py +++ b/githubkit/versions/v2022_11_28/types/group_0342.py @@ -9,85 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0039 import MilestoneType -from .group_0079 import TeamSimpleType -from .group_0263 import AutoMergeType -from .group_0343 import PullRequestPropLabelsItemsType -from .group_0344 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0345 import PullRequestPropLinksType +class PageBuildStatusType(TypedDict): + """Page Build Status -class PullRequestType(TypedDict): - """Pull Request - - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build Status """ url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int + status: str -__all__ = ("PullRequestType",) +__all__ = ("PageBuildStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0343.py b/githubkit/versions/v2022_11_28/types/group_0343.py index 8c969ec82..d3e0b1eca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0343.py +++ b/githubkit/versions/v2022_11_28/types/group_0343.py @@ -10,19 +10,19 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" +class PageDeploymentType(TypedDict): + """GitHub Pages - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + The GitHub Pages deployment status. + """ + id: Union[int, str] + status_url: str + page_url: str + preview_url: NotRequired[str] -__all__ = ("PullRequestPropLabelsItemsType",) + +__all__ = ("PageDeploymentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0344.py b/githubkit/versions/v2022_11_28/types/group_0344.py index cd3535f15..2bf2ddbc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0344.py +++ b/githubkit/versions/v2022_11_28/types/group_0344.py @@ -9,34 +9,28 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict - -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType - - -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] - - -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - - label: str - ref: str - repo: RepositoryType - sha: str - user: SimpleUserType - - -__all__ = ( - "PullRequestPropBaseType", - "PullRequestPropHeadType", -) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class PagesDeploymentStatusType(TypedDict): + """GitHub Pages deployment status""" + + status: NotRequired[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] + + +__all__ = ("PagesDeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0345.py b/githubkit/versions/v2022_11_28/types/group_0345.py index c65d9399a..5546e6ba9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0345.py +++ b/githubkit/versions/v2022_11_28/types/group_0345.py @@ -9,22 +9,88 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0262 import LinkType +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" + Pages Health Check Status + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] -__all__ = ("PullRequestPropLinksType",) +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +__all__ = ( + "PagesHealthCheckPropAltDomainType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0346.py b/githubkit/versions/v2022_11_28/types/group_0346.py index 211278b38..d5dd000ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0346.py +++ b/githubkit/versions/v2022_11_28/types/group_0346.py @@ -9,18 +9,85 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0042 import MilestoneType +from .group_0083 import TeamSimpleType +from .group_0267 import AutoMergeType +from .group_0347 import PullRequestPropLabelsItemsType +from .group_0348 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0349 import PullRequestPropLinksType -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result - Pull Request Merge Result +class PullRequestType(TypedDict): + """Pull Request + + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ - sha: str + url: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] merged: bool - message: str + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int -__all__ = ("PullRequestMergeResultType",) +__all__ = ("PullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0347.py b/githubkit/versions/v2022_11_28/types/group_0347.py index c9d40b188..8c969ec82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0347.py +++ b/githubkit/versions/v2022_11_28/types/group_0347.py @@ -9,20 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0080 import TeamType +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool - Pull Request Review Request - """ - users: list[SimpleUserType] - teams: list[TeamType] - - -__all__ = ("PullRequestReviewRequestType",) +__all__ = ("PullRequestPropLabelsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0348.py b/githubkit/versions/v2022_11_28/types/group_0348.py index d7cb39fb2..cd3535f15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0348.py +++ b/githubkit/versions/v2022_11_28/types/group_0348.py @@ -9,65 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict from .group_0003 import SimpleUserType +from .group_0020 import RepositoryType -class PullRequestReviewType(TypedDict): - """Pull Request Review +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" - Pull Request Reviews are reviews on pull requests. - """ - - id: int - node_id: str + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] + sha: str user: Union[None, SimpleUserType] - body: str - state: str - html_url: str - pull_request_url: str - links: PullRequestReviewPropLinksType - submitted_at: NotRequired[datetime] - commit_id: Union[str, None] - body_html: NotRequired[str] - body_text: NotRequired[str] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -class PullRequestReviewPropLinksType(TypedDict): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtmlType - pull_request: PullRequestReviewPropLinksPropPullRequestType - - -class PullRequestReviewPropLinksPropHtmlType(TypedDict): - """PullRequestReviewPropLinksPropHtml""" - - href: str -class PullRequestReviewPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewPropLinksPropPullRequest""" +class PullRequestPropBaseType(TypedDict): + """PullRequestPropBase""" - href: str + label: str + ref: str + repo: RepositoryType + sha: str + user: SimpleUserType __all__ = ( - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", - "PullRequestReviewPropLinksType", - "PullRequestReviewType", + "PullRequestPropBaseType", + "PullRequestPropHeadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0349.py b/githubkit/versions/v2022_11_28/types/group_0349.py index 202968972..58769539e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0349.py +++ b/githubkit/versions/v2022_11_28/types/group_0349.py @@ -9,58 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0041 import ReactionRollupType -from .group_0350 import ReviewCommentPropLinksType +from .group_0266 import LinkType -class ReviewCommentType(TypedDict): - """Legacy Review Comment +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" - Legacy Review Comment - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - url: str - pull_request_review_id: Union[int, None] - id: int - node_id: str - diff_hunk: str - path: str - position: Union[int, None] - original_position: int - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: Union[None, SimpleUserType] - body: str - created_at: datetime - updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: ReviewCommentPropLinksType - body_text: NotRequired[str] - body_html: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - side: NotRequired[Literal["LEFT", "RIGHT"]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - -__all__ = ("ReviewCommentType",) +__all__ = ("PullRequestPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0350.py b/githubkit/versions/v2022_11_28/types/group_0350.py index 60e02ac8b..211278b38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0350.py +++ b/githubkit/versions/v2022_11_28/types/group_0350.py @@ -11,15 +11,16 @@ from typing_extensions import TypedDict -from .group_0262 import LinkType +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" + Pull Request Merge Result + """ - self_: LinkType - html: LinkType - pull_request: LinkType + sha: str + merged: bool + message: str -__all__ = ("ReviewCommentPropLinksType",) +__all__ = ("PullRequestMergeResultType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0351.py b/githubkit/versions/v2022_11_28/types/group_0351.py index 133f124c3..8bf90191a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0351.py +++ b/githubkit/versions/v2022_11_28/types/group_0351.py @@ -9,32 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import TypedDict from .group_0003 import SimpleUserType +from .group_0084 import TeamType -class ReleaseAssetType(TypedDict): - """Release Asset +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request - Data related to a release. + Pull Request Review Request """ - url: str - browser_download_url: str - id: int - node_id: str - name: str - label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - download_count: int - created_at: datetime - updated_at: datetime - uploader: Union[None, SimpleUserType] - - -__all__ = ("ReleaseAssetType",) + users: list[SimpleUserType] + teams: list[TeamType] + + +__all__ = ("PullRequestReviewRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0352.py b/githubkit/versions/v2022_11_28/types/group_0352.py index b4ceeee89..d7cb39fb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0352.py +++ b/githubkit/versions/v2022_11_28/types/group_0352.py @@ -10,43 +10,64 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0041 import ReactionRollupType -from .group_0351 import ReleaseAssetType -class ReleaseType(TypedDict): - """Release +class PullRequestReviewType(TypedDict): + """Pull Request Review - A release. + Pull Request Reviews are reviews on pull requests. """ - url: str - html_url: str - assets_url: str - upload_url: str - tarball_url: Union[str, None] - zipball_url: Union[str, None] id: int node_id: str - tag_name: str - target_commitish: str - name: Union[str, None] - body: NotRequired[Union[str, None]] - draft: bool - prerelease: bool - created_at: datetime - published_at: Union[datetime, None] - author: SimpleUserType - assets: list[ReleaseAssetType] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - mentions_count: NotRequired[int] - discussion_url: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("ReleaseType",) + user: Union[None, SimpleUserType] + body: str + state: str + html_url: str + pull_request_url: str + links: PullRequestReviewPropLinksType + submitted_at: NotRequired[datetime] + commit_id: Union[str, None] + body_html: NotRequired[str] + body_text: NotRequired[str] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +class PullRequestReviewPropLinksType(TypedDict): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtmlType + pull_request: PullRequestReviewPropLinksPropPullRequestType + + +class PullRequestReviewPropLinksPropHtmlType(TypedDict): + """PullRequestReviewPropLinksPropHtml""" + + href: str + + +class PullRequestReviewPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "PullRequestReviewPropLinksPropHtmlType", + "PullRequestReviewPropLinksPropPullRequestType", + "PullRequestReviewPropLinksType", + "PullRequestReviewType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0353.py b/githubkit/versions/v2022_11_28/types/group_0353.py index 8cbfbc707..163a6d922 100644 --- a/githubkit/versions/v2022_11_28/types/group_0353.py +++ b/githubkit/versions/v2022_11_28/types/group_0353.py @@ -9,17 +9,58 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0044 import ReactionRollupType +from .group_0354 import ReviewCommentPropLinksType -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content - Generated name and body describing a release +class ReviewCommentType(TypedDict): + """Legacy Review Comment + + Legacy Review Comment """ - name: str + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: Union[int, None] + original_position: int + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: Union[None, SimpleUserType] body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: ReviewCommentPropLinksType + body_text: NotRequired[str] + body_html: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + side: NotRequired[Literal["LEFT", "RIGHT"]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] -__all__ = ("ReleaseNotesContentType",) +__all__ = ("ReviewCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0354.py b/githubkit/versions/v2022_11_28/types/group_0354.py index a7e58a24b..e3f2c3440 100644 --- a/githubkit/versions/v2022_11_28/types/group_0354.py +++ b/githubkit/versions/v2022_11_28/types/group_0354.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0266 import LinkType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + self_: LinkType + html: LinkType + pull_request: LinkType -__all__ = ("RepositoryRuleRulesetInfoType",) +__all__ = ("ReviewCommentPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0355.py b/githubkit/versions/v2022_11_28/types/group_0355.py index 0f564cd7d..ed9a33bfd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0355.py +++ b/githubkit/versions/v2022_11_28/types/group_0355.py @@ -9,17 +9,33 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReleaseAssetType(TypedDict): + """Release Asset + Data related to a release. + """ -__all__ = ("RepositoryRuleDetailedOneof0Type",) + url: str + browser_download_url: str + id: int + node_id: str + name: str + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + digest: Union[str, None] + download_count: int + created_at: datetime + updated_at: datetime + uploader: Union[None, SimpleUserType] + + +__all__ = ("ReleaseAssetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0356.py b/githubkit/versions/v2022_11_28/types/group_0356.py index 7cf2c6eb5..9f348d102 100644 --- a/githubkit/versions/v2022_11_28/types/group_0356.py +++ b/githubkit/versions/v2022_11_28/types/group_0356.py @@ -9,20 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0135 import RepositoryRuleUpdatePropParametersType - - -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" - - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] - - -__all__ = ("RepositoryRuleDetailedOneof1Type",) +from .group_0003 import SimpleUserType +from .group_0044 import ReactionRollupType +from .group_0355 import ReleaseAssetType + + +class ReleaseType(TypedDict): + """Release + + A release. + """ + + url: str + html_url: str + assets_url: str + upload_url: str + tarball_url: Union[str, None] + zipball_url: Union[str, None] + id: int + node_id: str + tag_name: str + target_commitish: str + name: Union[str, None] + body: NotRequired[Union[str, None]] + draft: bool + prerelease: bool + created_at: datetime + published_at: Union[datetime, None] + author: SimpleUserType + assets: list[ReleaseAssetType] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + mentions_count: NotRequired[int] + discussion_url: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("ReleaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0357.py b/githubkit/versions/v2022_11_28/types/group_0357.py index 273dd677c..8cbfbc707 100644 --- a/githubkit/versions/v2022_11_28/types/group_0357.py +++ b/githubkit/versions/v2022_11_28/types/group_0357.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content - type: Literal["deletion"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + Generated name and body describing a release + """ + name: str + body: str -__all__ = ("RepositoryRuleDetailedOneof2Type",) + +__all__ = ("ReleaseNotesContentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0358.py b/githubkit/versions/v2022_11_28/types/group_0358.py index 8886199f4..a7e58a24b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0358.py +++ b/githubkit/versions/v2022_11_28/types/group_0358.py @@ -13,13 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof3Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0359.py b/githubkit/versions/v2022_11_28/types/group_0359.py index fd5d65a3b..0f564cd7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0359.py +++ b/githubkit/versions/v2022_11_28/types/group_0359.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0138 import RepositoryRuleMergeQueuePropParametersType +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" - - type: Literal["merge_queue"] - parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof4Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0360.py b/githubkit/versions/v2022_11_28/types/group_0360.py index 56c2fc9f1..a2e75d2e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0360.py +++ b/githubkit/versions/v2022_11_28/types/group_0360.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0140 import RepositoryRuleRequiredDeploymentsPropParametersType +from .group_0139 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" +class RepositoryRuleDetailedOneof1Type(TypedDict): + """RepositoryRuleDetailedOneof1""" - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0361.py b/githubkit/versions/v2022_11_28/types/group_0361.py index c30b2990f..273dd677c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0361.py +++ b/githubkit/versions/v2022_11_28/types/group_0361.py @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" - type: Literal["required_signatures"] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0362.py b/githubkit/versions/v2022_11_28/types/group_0362.py index f458cc61d..8886199f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0362.py +++ b/githubkit/versions/v2022_11_28/types/group_0362.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0143 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" - - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0363.py b/githubkit/versions/v2022_11_28/types/group_0363.py index 5d304545a..6bd1c7bb7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0363.py +++ b/githubkit/versions/v2022_11_28/types/group_0363.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0145 import RepositoryRuleRequiredStatusChecksPropParametersType +from .group_0142 import RepositoryRuleMergeQueuePropParametersType -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof4Type(TypedDict): + """RepositoryRuleDetailedOneof4""" - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["merge_queue"] + parameters: NotRequired[RepositoryRuleMergeQueuePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0364.py b/githubkit/versions/v2022_11_28/types/group_0364.py index d5be14715..584ff579f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0364.py +++ b/githubkit/versions/v2022_11_28/types/group_0364.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0144 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" - type: Literal["non_fast_forward"] +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" + + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0365.py b/githubkit/versions/v2022_11_28/types/group_0365.py index 501331b69..c30b2990f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0365.py +++ b/githubkit/versions/v2022_11_28/types/group_0365.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0147 import RepositoryRuleCommitMessagePatternPropParametersType +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0366.py b/githubkit/versions/v2022_11_28/types/group_0366.py index 3d0eeae9a..2574811b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0366.py +++ b/githubkit/versions/v2022_11_28/types/group_0366.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0147 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0367.py b/githubkit/versions/v2022_11_28/types/group_0367.py index 7da0624c9..17bc6bdc3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0367.py +++ b/githubkit/versions/v2022_11_28/types/group_0367.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0151 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0149 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0368.py b/githubkit/versions/v2022_11_28/types/group_0368.py index 3fd332990..d5be14715 100644 --- a/githubkit/versions/v2022_11_28/types/group_0368.py +++ b/githubkit/versions/v2022_11_28/types/group_0368.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0153 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" - - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0369.py b/githubkit/versions/v2022_11_28/types/group_0369.py index c28dbd1af..6f29ef647 100644 --- a/githubkit/versions/v2022_11_28/types/group_0369.py +++ b/githubkit/versions/v2022_11_28/types/group_0369.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0155 import RepositoryRuleTagNamePatternPropParametersType +from .group_0151 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof10Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0370.py b/githubkit/versions/v2022_11_28/types/group_0370.py index e8ebeb14b..6220c0169 100644 --- a/githubkit/versions/v2022_11_28/types/group_0370.py +++ b/githubkit/versions/v2022_11_28/types/group_0370.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0157 import RepositoryRuleFilePathRestrictionPropParametersType +from .group_0153 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof11Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0371.py b/githubkit/versions/v2022_11_28/types/group_0371.py index 1dd520759..69729769e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0371.py +++ b/githubkit/versions/v2022_11_28/types/group_0371.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0159 import RepositoryRuleMaxFilePathLengthPropParametersType +from .group_0155 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleDetailedOneof16Type(TypedDict): - """RepositoryRuleDetailedOneof16""" +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof16Type",) +__all__ = ("RepositoryRuleDetailedOneof12Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0372.py b/githubkit/versions/v2022_11_28/types/group_0372.py index 7e08192f3..c97affd35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0372.py +++ b/githubkit/versions/v2022_11_28/types/group_0372.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0161 import RepositoryRuleFileExtensionRestrictionPropParametersType +from .group_0157 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleDetailedOneof17Type(TypedDict): - """RepositoryRuleDetailedOneof17""" +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof17Type",) +__all__ = ("RepositoryRuleDetailedOneof13Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0373.py b/githubkit/versions/v2022_11_28/types/group_0373.py index c4446281a..ad7cc5a00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0373.py +++ b/githubkit/versions/v2022_11_28/types/group_0373.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0163 import RepositoryRuleMaxFileSizePropParametersType +from .group_0159 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleDetailedOneof18Type(TypedDict): - """RepositoryRuleDetailedOneof18""" +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof18Type",) +__all__ = ("RepositoryRuleDetailedOneof14Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0374.py b/githubkit/versions/v2022_11_28/types/group_0374.py index c7c1278b5..db67ed7aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0374.py +++ b/githubkit/versions/v2022_11_28/types/group_0374.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0166 import RepositoryRuleWorkflowsPropParametersType +from .group_0161 import RepositoryRuleFilePathRestrictionPropParametersType -class RepositoryRuleDetailedOneof19Type(TypedDict): - """RepositoryRuleDetailedOneof19""" +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleFilePathRestrictionPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof19Type",) +__all__ = ("RepositoryRuleDetailedOneof15Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0375.py b/githubkit/versions/v2022_11_28/types/group_0375.py index ccabcc79b..e5da545e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0375.py +++ b/githubkit/versions/v2022_11_28/types/group_0375.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0168 import RepositoryRuleCodeScanningPropParametersType +from .group_0163 import RepositoryRuleMaxFilePathLengthPropParametersType -class RepositoryRuleDetailedOneof20Type(TypedDict): - """RepositoryRuleDetailedOneof20""" +class RepositoryRuleDetailedOneof16Type(TypedDict): + """RepositoryRuleDetailedOneof16""" - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleMaxFilePathLengthPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof20Type",) +__all__ = ("RepositoryRuleDetailedOneof16Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0376.py b/githubkit/versions/v2022_11_28/types/group_0376.py index 31aba8fbb..b775911c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0376.py +++ b/githubkit/versions/v2022_11_28/types/group_0376.py @@ -9,43 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType - - -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - is_base64_encoded: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertType",) +from .group_0165 import RepositoryRuleFileExtensionRestrictionPropParametersType + + +class RepositoryRuleDetailedOneof17Type(TypedDict): + """RepositoryRuleDetailedOneof17""" + + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleFileExtensionRestrictionPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] + + +__all__ = ("RepositoryRuleDetailedOneof17Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0377.py b/githubkit/versions/v2022_11_28/types/group_0377.py index a7d6503ef..ef9fa9905 100644 --- a/githubkit/versions/v2022_11_28/types/group_0377.py +++ b/githubkit/versions/v2022_11_28/types/group_0377.py @@ -9,17 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0167 import RepositoryRuleMaxFileSizePropParametersType -class SecretScanningPushProtectionBypassType(TypedDict): - """SecretScanningPushProtectionBypass""" - reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] - expire_at: NotRequired[Union[datetime, None]] - token_type: NotRequired[str] +class RepositoryRuleDetailedOneof18Type(TypedDict): + """RepositoryRuleDetailedOneof18""" + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleMaxFileSizePropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningPushProtectionBypassType",) + +__all__ = ("RepositoryRuleDetailedOneof18Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0378.py b/githubkit/versions/v2022_11_28/types/group_0378.py index c28f498af..07cb94dba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0378.py +++ b/githubkit/versions/v2022_11_28/types/group_0378.py @@ -9,47 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0170 import RepositoryRuleWorkflowsPropParametersType -class SecretScanningScanHistoryType(TypedDict): - """SecretScanningScanHistory""" - incremental_scans: NotRequired[list[SecretScanningScanType]] - pattern_update_scans: NotRequired[list[SecretScanningScanType]] - backfill_scans: NotRequired[list[SecretScanningScanType]] - custom_pattern_backfill_scans: NotRequired[ - list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] - ] +class RepositoryRuleDetailedOneof19Type(TypedDict): + """RepositoryRuleDetailedOneof19""" + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class SecretScanningScanType(TypedDict): - """SecretScanningScan - Information on a single scan performed by secret scanning on the repository - """ - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - - -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" - - type: NotRequired[str] - status: NotRequired[str] - completed_at: NotRequired[Union[datetime, None]] - started_at: NotRequired[Union[datetime, None]] - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] - - -__all__ = ( - "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", - "SecretScanningScanHistoryType", - "SecretScanningScanType", -) +__all__ = ("RepositoryRuleDetailedOneof19Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0379.py b/githubkit/versions/v2022_11_28/types/group_0379.py index 3fadc1994..ea87684c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0379.py +++ b/githubkit/versions/v2022_11_28/types/group_0379.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0172 import RepositoryRuleCodeScanningPropParametersType -class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): - """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - pattern_name: NotRequired[str] - pattern_scope: NotRequired[str] +class RepositoryRuleDetailedOneof20Type(TypedDict): + """RepositoryRuleDetailedOneof20""" + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) + +__all__ = ("RepositoryRuleDetailedOneof20Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0380.py b/githubkit/versions/v2022_11_28/types/group_0380.py index 3bd956c2f..ad1436757 100644 --- a/githubkit/versions/v2022_11_28/types/group_0380.py +++ b/githubkit/versions/v2022_11_28/types/group_0380.py @@ -9,80 +9,81 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict - -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" - - summary: str - description: str - cve_id: NotRequired[Union[str, None]] - vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +from .group_0003 import SimpleUserType +from .group_0038 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0039 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0040 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryCreatePropCreditsItems""" +class SecretScanningAlertType(TypedDict): + """SecretScanningAlert""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] ] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + is_base64_encoded: NotRequired[Union[bool, None]] + first_location_detected: NotRequired[ + Union[ + None, + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] ] - name: NotRequired[Union[str, None]] + has_more_locations: NotRequired[bool] -__all__ = ( - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreateType", -) +__all__ = ("SecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0381.py b/githubkit/versions/v2022_11_28/types/group_0381.py index 23f5f5af0..a3cff9aad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0381.py +++ b/githubkit/versions/v2022_11_28/types/group_0381.py @@ -12,58 +12,64 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0038 import ( + SecretScanningLocationCommitType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationWikiCommitType, +) +from .group_0039 import ( + SecretScanningLocationIssueCommentType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationPullRequestReviewCommentType, + SecretScanningLocationPullRequestTitleType, +) +from .group_0040 import ( + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationPullRequestCommentType, +) -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" - summary: str - description: str - vulnerabilities: NotRequired[ - Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] ] - cwe_ids: NotRequired[Union[list[str], None]] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] ] - name: NotRequired[Union[str, None]] -__all__ = ( - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", - "PrivateVulnerabilityReportCreateType", -) +__all__ = ("SecretScanningLocationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0382.py b/githubkit/versions/v2022_11_28/types/group_0382.py index 689cbef7f..a7d6503ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0382.py +++ b/githubkit/versions/v2022_11_28/types/group_0382.py @@ -9,84 +9,17 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" +class SecretScanningPushProtectionBypassType(TypedDict): + """SecretScanningPushProtectionBypass""" - summary: NotRequired[str] - description: NotRequired[str] - cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] - cwe_ids: NotRequired[Union[list[str], None]] - credits_: NotRequired[ - Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - state: NotRequired[Literal["published", "closed", "draft"]] - collaborating_users: NotRequired[Union[list[str], None]] - collaborating_teams: NotRequired[Union[list[str], None]] + reason: NotRequired[Literal["false_positive", "used_in_tests", "will_fix_later"]] + expire_at: NotRequired[Union[datetime, None]] + token_type: NotRequired[str] -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[list[str], None]] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdateType", -) +__all__ = ("SecretScanningPushProtectionBypassType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0383.py b/githubkit/versions/v2022_11_28/types/group_0383.py index ca2546e70..c28f498af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0383.py +++ b/githubkit/versions/v2022_11_28/types/group_0383.py @@ -11,19 +11,45 @@ from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class SecretScanningScanHistoryType(TypedDict): + """SecretScanningScanHistory""" -class StargazerType(TypedDict): - """Stargazer + incremental_scans: NotRequired[list[SecretScanningScanType]] + pattern_update_scans: NotRequired[list[SecretScanningScanType]] + backfill_scans: NotRequired[list[SecretScanningScanType]] + custom_pattern_backfill_scans: NotRequired[ + list[SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType] + ] - Stargazer + +class SecretScanningScanType(TypedDict): + """SecretScanningScan + + Information on a single scan performed by secret scanning on the repository """ - starred_at: datetime - user: Union[None, SimpleUserType] + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] + + +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItems""" + + type: NotRequired[str] + status: NotRequired[str] + completed_at: NotRequired[Union[datetime, None]] + started_at: NotRequired[Union[datetime, None]] + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] -__all__ = ("StargazerType",) +__all__ = ( + "SecretScanningScanHistoryPropCustomPatternBackfillScansItemsType", + "SecretScanningScanHistoryType", + "SecretScanningScanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0384.py b/githubkit/versions/v2022_11_28/types/group_0384.py index c3c8c7e64..3fadc1994 100644 --- a/githubkit/versions/v2022_11_28/types/group_0384.py +++ b/githubkit/versions/v2022_11_28/types/group_0384.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class CommitActivityType(TypedDict): - """Commit Activity +class SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type(TypedDict): + """SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1""" - Commit Activity - """ + pattern_name: NotRequired[str] + pattern_scope: NotRequired[str] - days: list[int] - total: int - week: int - -__all__ = ("CommitActivityType",) +__all__ = ("SecretScanningScanHistoryPropCustomPatternBackfillScansItemsAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0385.py b/githubkit/versions/v2022_11_28/types/group_0385.py index 0c764aa8c..3bd956c2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0385.py +++ b/githubkit/versions/v2022_11_28/types/group_0385.py @@ -9,33 +9,80 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" -class ContributorActivityType(TypedDict): - """Contributor Activity + summary: str + description: str + cve_id: NotRequired[Union[str, None]] + vulnerabilities: list[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryCreatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] + + +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] - Contributor Activity - """ - author: Union[None, SimpleUserType] - total: int - weeks: list[ContributorActivityPropWeeksItemsType] +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] -class ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] __all__ = ( - "ContributorActivityPropWeeksItemsType", - "ContributorActivityType", + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreateType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0386.py b/githubkit/versions/v2022_11_28/types/group_0386.py index 4bde16f66..23f5f5af0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0386.py +++ b/githubkit/versions/v2022_11_28/types/group_0386.py @@ -9,14 +9,61 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" - all_: list[int] - owner: list[int] + summary: str + description: str + vulnerabilities: NotRequired[ + Union[list[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] + ] + cwe_ids: NotRequired[Union[list[str], None]] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] -__all__ = ("ParticipationStatsType",) +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreateType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0387.py b/githubkit/versions/v2022_11_28/types/group_0387.py index 00a60951a..689cbef7f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0387.py +++ b/githubkit/versions/v2022_11_28/types/group_0387.py @@ -9,23 +9,84 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class RepositorySubscriptionType(TypedDict): - """Repository Invitation +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - Repository invitations let you manage who you collaborate with. + summary: NotRequired[str] + description: NotRequired[str] + cve_id: NotRequired[Union[str, None]] + vulnerabilities: NotRequired[ + list[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] + ] + cwe_ids: NotRequired[Union[list[str], None]] + credits_: NotRequired[ + Union[list[RepositoryAdvisoryUpdatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + state: NotRequired[Literal["published", "closed", "draft"]] + collaborating_users: NotRequired[Union[list[str], None]] + collaborating_teams: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[list[str], None]] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("RepositorySubscriptionType",) +__all__ = ( + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdateType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0388.py b/githubkit/versions/v2022_11_28/types/group_0388.py index 8a231b6fb..ca2546e70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0388.py +++ b/githubkit/versions/v2022_11_28/types/group_0388.py @@ -9,30 +9,21 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class TagType(TypedDict): - """Tag - Tag - """ - - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str +class StargazerType(TypedDict): + """Stargazer + Stargazer + """ -class TagPropCommitType(TypedDict): - """TagPropCommit""" - - sha: str - url: str + starred_at: datetime + user: Union[None, SimpleUserType] -__all__ = ( - "TagPropCommitType", - "TagType", -) +__all__ = ("StargazerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0389.py b/githubkit/versions/v2022_11_28/types/group_0389.py index a09ecf462..c3c8c7e64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0389.py +++ b/githubkit/versions/v2022_11_28/types/group_0389.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class TagProtectionType(TypedDict): - """Tag protection +class CommitActivityType(TypedDict): + """Commit Activity - Tag protection + Commit Activity """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: str + days: list[int] + total: int + week: int -__all__ = ("TagProtectionType",) +__all__ = ("CommitActivityType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0390.py b/githubkit/versions/v2022_11_28/types/group_0390.py index 69365fe85..0c764aa8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0390.py +++ b/githubkit/versions/v2022_11_28/types/group_0390.py @@ -9,16 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class TopicType(TypedDict): - """Topic - A topic aggregates entities that are related to a subject. +class ContributorActivityType(TypedDict): + """Contributor Activity + + Contributor Activity """ - names: list[str] + author: Union[None, SimpleUserType] + total: int + weeks: list[ContributorActivityPropWeeksItemsType] + + +class ContributorActivityPropWeeksItemsType(TypedDict): + """ContributorActivityPropWeeksItems""" + + w: NotRequired[int] + a: NotRequired[int] + d: NotRequired[int] + c: NotRequired[int] -__all__ = ("TopicType",) +__all__ = ( + "ContributorActivityPropWeeksItemsType", + "ContributorActivityType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0391.py b/githubkit/versions/v2022_11_28/types/group_0391.py index 2412270d8..4bde16f66 100644 --- a/githubkit/versions/v2022_11_28/types/group_0391.py +++ b/githubkit/versions/v2022_11_28/types/group_0391.py @@ -9,16 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class TrafficType(TypedDict): - """Traffic""" +class ParticipationStatsType(TypedDict): + """Participation Stats""" - timestamp: datetime - uniques: int - count: int + all_: list[int] + owner: list[int] -__all__ = ("TrafficType",) +__all__ = ("ParticipationStatsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0392.py b/githubkit/versions/v2022_11_28/types/group_0392.py index 46acc5f3c..00a60951a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0392.py +++ b/githubkit/versions/v2022_11_28/types/group_0392.py @@ -9,20 +9,23 @@ from __future__ import annotations +from datetime import datetime +from typing import Union from typing_extensions import TypedDict -from .group_0391 import TrafficType +class RepositorySubscriptionType(TypedDict): + """Repository Invitation -class CloneTrafficType(TypedDict): - """Clone Traffic - - Clone Traffic + Repository invitations let you manage who you collaborate with. """ - count: int - uniques: int - clones: list[TrafficType] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("CloneTrafficType",) +__all__ = ("RepositorySubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0393.py b/githubkit/versions/v2022_11_28/types/group_0393.py index 8ae9ebc92..8a231b6fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0393.py +++ b/githubkit/versions/v2022_11_28/types/group_0393.py @@ -12,16 +12,27 @@ from typing_extensions import TypedDict -class ContentTrafficType(TypedDict): - """Content Traffic +class TagType(TypedDict): + """Tag - Content Traffic + Tag """ - path: str - title: str - count: int - uniques: int + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str -__all__ = ("ContentTrafficType",) +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str + + +__all__ = ( + "TagPropCommitType", + "TagType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0394.py b/githubkit/versions/v2022_11_28/types/group_0394.py index d7d63281a..a09ecf462 100644 --- a/githubkit/versions/v2022_11_28/types/group_0394.py +++ b/githubkit/versions/v2022_11_28/types/group_0394.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReferrerTrafficType(TypedDict): - """Referrer Traffic +class TagProtectionType(TypedDict): + """Tag protection - Referrer Traffic + Tag protection """ - referrer: str - count: int - uniques: int + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -__all__ = ("ReferrerTrafficType",) +__all__ = ("TagProtectionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0395.py b/githubkit/versions/v2022_11_28/types/group_0395.py index 1f1d0a0e4..69365fe85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0395.py +++ b/githubkit/versions/v2022_11_28/types/group_0395.py @@ -11,18 +11,14 @@ from typing_extensions import TypedDict -from .group_0391 import TrafficType +class TopicType(TypedDict): + """Topic -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic + A topic aggregates entities that are related to a subject. """ - count: int - uniques: int - views: list[TrafficType] + names: list[str] -__all__ = ("ViewTrafficType",) +__all__ = ("TopicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0396.py b/githubkit/versions/v2022_11_28/types/group_0396.py index e1d436bf1..2412270d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0396.py +++ b/githubkit/versions/v2022_11_28/types/group_0396.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" +class TrafficType(TypedDict): + """Traffic""" - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] + timestamp: datetime + uniques: int + count: int -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - - text: NotRequired[str] - indices: NotRequired[list[int]] - - -__all__ = ( - "SearchResultTextMatchesItemsPropMatchesItemsType", - "SearchResultTextMatchesItemsType", -) +__all__ = ("TrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0397.py b/githubkit/versions/v2022_11_28/types/group_0397.py index b9d1e4dad..89fb1a66e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0397.py +++ b/githubkit/versions/v2022_11_28/types/group_0397.py @@ -9,44 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0058 import MinimalRepositoryType -from .group_0396 import SearchResultTextMatchesItemsType +from .group_0396 import TrafficType -class CodeSearchResultItemType(TypedDict): - """Code Search Result Item +class CloneTrafficType(TypedDict): + """Clone Traffic - Code Search Result Item + Clone Traffic """ - name: str - path: str - sha: str - url: str - git_url: str - html_url: str - repository: MinimalRepositoryType - score: float - file_size: NotRequired[int] - language: NotRequired[Union[str, None]] - last_modified_at: NotRequired[datetime] - line_numbers: NotRequired[list[str]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - - -class SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CodeSearchResultItemType] - - -__all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", -) + count: int + uniques: int + clones: list[TrafficType] + + +__all__ = ("CloneTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0398.py b/githubkit/versions/v2022_11_28/types/group_0398.py index 71baeb2fb..8ae9ebc92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0398.py +++ b/githubkit/versions/v2022_11_28/types/group_0398.py @@ -9,54 +9,19 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0058 import MinimalRepositoryType -from .group_0222 import GitUserType -from .group_0396 import SearchResultTextMatchesItemsType -from .group_0399 import CommitSearchResultItemPropCommitType +class ContentTrafficType(TypedDict): + """Content Traffic -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item - - Commit Search Result Item + Content Traffic """ - url: str - sha: str - html_url: str - comments_url: str - commit: CommitSearchResultItemPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, GitUserType] - parents: list[CommitSearchResultItemPropParentsItemsType] - repository: MinimalRepositoryType - score: float - node_id: str - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - - -class CommitSearchResultItemPropParentsItemsType(TypedDict): - """CommitSearchResultItemPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class SearchCommitsGetResponse200Type(TypedDict): - """SearchCommitsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[CommitSearchResultItemType] + path: str + title: str + count: int + uniques: int -__all__ = ( - "CommitSearchResultItemPropParentsItemsType", - "CommitSearchResultItemType", - "SearchCommitsGetResponse200Type", -) +__all__ = ("ContentTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0399.py b/githubkit/versions/v2022_11_28/types/group_0399.py index 8fbb0524f..d7d63281a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0399.py +++ b/githubkit/versions/v2022_11_28/types/group_0399.py @@ -9,43 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0222 import GitUserType -from .group_0223 import VerificationType +class ReferrerTrafficType(TypedDict): + """Referrer Traffic -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" + Referrer Traffic + """ - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] + referrer: str + count: int + uniques: int -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" - - name: str - email: str - date: datetime - - -class CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", - "CommitSearchResultItemPropCommitType", -) +__all__ = ("ReferrerTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0400.py b/githubkit/versions/v2022_11_28/types/group_0400.py index b07d48803..8d6db2815 100644 --- a/githubkit/versions/v2022_11_28/types/group_0400.py +++ b/githubkit/versions/v2022_11_28/types/group_0400.py @@ -9,115 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0010 import IntegrationType -from .group_0020 import RepositoryType -from .group_0039 import MilestoneType -from .group_0040 import IssueTypeType -from .group_0041 import ReactionRollupType -from .group_0396 import SearchResultTextMatchesItemsType +from .group_0396 import TrafficType -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item +class ViewTrafficType(TypedDict): + """View Traffic - Issue Search Result Item + View Traffic """ - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - id: int - node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[list[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: list[IssueSearchResultItemPropLabelsItemsType] - sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] + count: int + uniques: int + views: list[TrafficType] -class IssueSearchResultItemPropLabelsItemsType(TypedDict): - """IssueSearchResultItemPropLabelsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - color: NotRequired[str] - default: NotRequired[bool] - description: NotRequired[Union[str, None]] - - -class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class IssueSearchResultItemPropPullRequestType(TypedDict): - """IssueSearchResultItemPropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] - - -class SearchIssuesGetResponse200Type(TypedDict): - """SearchIssuesGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[IssueSearchResultItemType] - - -__all__ = ( - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "IssueSearchResultItemPropSubIssuesSummaryType", - "IssueSearchResultItemType", - "SearchIssuesGetResponse200Type", -) +__all__ = ("ViewTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0401.py b/githubkit/versions/v2022_11_28/types/group_0401.py index 334146b25..e1d436bf1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0401.py +++ b/githubkit/versions/v2022_11_28/types/group_0401.py @@ -12,35 +12,25 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0396 import SearchResultTextMatchesItemsType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[list[SearchResultTextMatchesItemsPropMatchesItemsType]] - Label Search Result Item - """ - id: int - node_id: str - url: str - name: str - color: str - default: bool - description: Union[str, None] - score: float - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -class SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[LabelSearchResultItemType] + text: NotRequired[str] + indices: NotRequired[list[int]] __all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", + "SearchResultTextMatchesItemsPropMatchesItemsType", + "SearchResultTextMatchesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0402.py b/githubkit/versions/v2022_11_28/types/group_0402.py index fba49aa5c..9a4d3857a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0402.py +++ b/githubkit/versions/v2022_11_28/types/group_0402.py @@ -13,128 +13,40 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType -from .group_0396 import SearchResultTextMatchesItemsType +from .group_0061 import MinimalRepositoryType +from .group_0401 import SearchResultTextMatchesItemsType -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - Repo Search Result Item + Code Search Result Item """ - id: int - node_id: str name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool + path: str + sha: str url: str - created_at: datetime - updated_at: datetime - pushed_at: datetime - homepage: Union[str, None] - size: int - stargazers_count: int - watchers_count: int - language: Union[str, None] - forks_count: int - open_issues_count: int - master_branch: NotRequired[str] - default_branch: str - score: float - forks_url: str - keys_url: str - collaborators_url: str - teams_url: str - hooks_url: str - issue_events_url: str - events_url: str - assignees_url: str - branches_url: str - tags_url: str - blobs_url: str - git_tags_url: str - git_refs_url: str - trees_url: str - statuses_url: str - languages_url: str - stargazers_url: str - contributors_url: str - subscribers_url: str - subscription_url: str - commits_url: str - git_commits_url: str - comments_url: str - issue_comment_url: str - contents_url: str - compare_url: str - merges_url: str - archive_url: str - downloads_url: str - issues_url: str - pulls_url: str - milestones_url: str - notifications_url: str - labels_url: str - releases_url: str - deployments_url: str git_url: str - ssh_url: str - clone_url: str - svn_url: str - forks: int - open_issues: int - watchers: int - topics: NotRequired[list[str]] - mirror_url: Union[str, None] - has_issues: bool - has_projects: bool - has_pages: bool - has_wiki: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - license_: Union[None, LicenseSimpleType] - permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + html_url: str + repository: MinimalRepositoryType + score: float + file_size: NotRequired[int] + language: NotRequired[Union[str, None]] + last_modified_at: NotRequired[datetime] + line_numbers: NotRequired[list[str]] text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - is_template: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class RepoSearchResultItemPropPermissionsType(TypedDict): - """RepoSearchResultItemPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool -class SearchRepositoriesGetResponse200Type(TypedDict): - """SearchRepositoriesGetResponse200""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" total_count: int incomplete_results: bool - items: list[RepoSearchResultItemType] + items: list[CodeSearchResultItemType] __all__ = ( - "RepoSearchResultItemPropPermissionsType", - "RepoSearchResultItemType", - "SearchRepositoriesGetResponse200Type", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0403.py b/githubkit/versions/v2022_11_28/types/group_0403.py index b74d9cb66..451a37f2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0403.py +++ b/githubkit/versions/v2022_11_28/types/group_0403.py @@ -9,84 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0396 import SearchResultTextMatchesItemsType +from .group_0003 import SimpleUserType +from .group_0061 import MinimalRepositoryType +from .group_0226 import GitUserType +from .group_0401 import SearchResultTextMatchesItemsType +from .group_0404 import CommitSearchResultItemPropCommitType -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item - Topic Search Result Item + Commit Search Result Item """ - name: str - display_name: Union[str, None] - short_description: Union[str, None] - description: Union[str, None] - created_by: Union[str, None] - released: Union[str, None] - created_at: datetime - updated_at: datetime - featured: bool - curated: bool + url: str + sha: str + html_url: str + comments_url: str + commit: CommitSearchResultItemPropCommitType + author: Union[None, SimpleUserType] + committer: Union[None, GitUserType] + parents: list[CommitSearchResultItemPropParentsItemsType] + repository: MinimalRepositoryType score: float - repository_count: NotRequired[Union[int, None]] - logo_url: NotRequired[Union[str, None]] + node_id: str text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] - aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] -class TopicSearchResultItemPropRelatedItemsType(TypedDict): - """TopicSearchResultItemPropRelatedItems""" +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" - topic_relation: NotRequired[ - TopicSearchResultItemPropRelatedItemsPropTopicRelationType - ] + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class TopicSearchResultItemPropAliasesItemsType(TypedDict): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropAliasesItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class SearchTopicsGetResponse200Type(TypedDict): - """SearchTopicsGetResponse200""" +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" total_count: int incomplete_results: bool - items: list[TopicSearchResultItemType] + items: list[CommitSearchResultItemType] __all__ = ( - "SearchTopicsGetResponse200Type", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemType", + "CommitSearchResultItemPropParentsItemsType", + "CommitSearchResultItemType", + "SearchCommitsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0404.py b/githubkit/versions/v2022_11_28/types/group_0404.py index 6088be5ab..d7303c071 100644 --- a/githubkit/versions/v2022_11_28/types/group_0404.py +++ b/githubkit/versions/v2022_11_28/types/group_0404.py @@ -13,61 +13,39 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0396 import SearchResultTextMatchesItemsType +from .group_0226 import GitUserType +from .group_0227 import VerificationType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - User Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType + url: str + verification: NotRequired[VerificationType] + + +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" + + name: str + email: str + date: datetime + + +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] + sha: str url: str - html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: str - score: float - following_url: str - gists_url: str - starred_url: str - events_url: str - public_repos: NotRequired[int] - public_gists: NotRequired[int] - followers: NotRequired[int] - following: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - name: NotRequired[Union[str, None]] - bio: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - site_admin: bool - hireable: NotRequired[Union[bool, None]] - text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] - user_view_type: NotRequired[str] - - -class SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" - - total_count: int - incomplete_results: bool - items: list[UserSearchResultItemType] __all__ = ( - "SearchUsersGetResponse200Type", - "UserSearchResultItemType", + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", + "CommitSearchResultItemPropCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0405.py b/githubkit/versions/v2022_11_28/types/group_0405.py index 855325c4a..2d74b2b95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0405.py +++ b/githubkit/versions/v2022_11_28/types/group_0405.py @@ -10,71 +10,114 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0010 import IntegrationType +from .group_0020 import RepositoryType +from .group_0042 import MilestoneType +from .group_0043 import IssueTypeType +from .group_0044 import ReactionRollupType +from .group_0401 import SearchResultTextMatchesItemsType -class PrivateUserType(TypedDict): - """Private User - Private User +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item + + Issue Search Result Item """ - login: str - id: int - user_view_type: NotRequired[str] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str + repository_url: str + labels_url: str + comments_url: str events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int + html_url: str + id: int + node_id: str + number: int + title: str + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + assignees: NotRequired[Union[list[SimpleUserType], None]] + user: Union[None, SimpleUserType] + labels: list[IssueSearchResultItemPropLabelsItemsType] + sub_issues_summary: NotRequired[IssueSearchResultItemPropSubIssuesSummaryType] + state: str + state_reason: NotRequired[Union[str, None]] + assignee: Union[None, SimpleUserType] + milestone: Union[None, MilestoneType] + comments: int created_at: datetime updated_at: datetime - private_gists: int - total_private_repos: int - owned_private_repos: int - disk_usage: int - collaborators: int - two_factor_authentication: bool - plan: NotRequired[PrivateUserPropPlanType] - business_plus: NotRequired[bool] - ldap_dn: NotRequired[str] + closed_at: Union[datetime, None] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +class IssueSearchResultItemPropLabelsItemsType(TypedDict): + """IssueSearchResultItemPropLabelsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + color: NotRequired[str] + default: NotRequired[bool] + description: NotRequired[Union[str, None]] + + +class IssueSearchResultItemPropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class IssueSearchResultItemPropPullRequestType(TypedDict): + """IssueSearchResultItemPropPullRequest""" + + merged_at: NotRequired[Union[datetime, None]] + diff_url: Union[str, None] + html_url: Union[str, None] + patch_url: Union[str, None] + url: Union[str, None] -class PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" +class SearchIssuesGetResponse200Type(TypedDict): + """SearchIssuesGetResponse200""" - collaborators: int - name: str - space: int - private_repos: int + total_count: int + incomplete_results: bool + items: list[IssueSearchResultItemType] __all__ = ( - "PrivateUserPropPlanType", - "PrivateUserType", + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "IssueSearchResultItemPropSubIssuesSummaryType", + "IssueSearchResultItemType", + "SearchIssuesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0406.py b/githubkit/versions/v2022_11_28/types/group_0406.py index 6be52538b..f30f90a5f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0406.py +++ b/githubkit/versions/v2022_11_28/types/group_0406.py @@ -9,17 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0401 import SearchResultTextMatchesItemsType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item + + Label Search Result Item """ - key_id: str - key: str + id: int + node_id: str + url: str + name: str + color: str + default: bool + description: Union[str, None] + score: float + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + + +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[LabelSearchResultItemType] -__all__ = ("CodespacesUserPublicKeyType",) +__all__ = ( + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0407.py b/githubkit/versions/v2022_11_28/types/group_0407.py index 2b50d37d0..9a03e02cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0407.py +++ b/githubkit/versions/v2022_11_28/types/group_0407.py @@ -13,21 +13,128 @@ from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType +from .group_0401 import SearchResultTextMatchesItemsType -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item + + Repo Search Result Item """ - state: NotRequired[Union[str, None]] - completed_at: NotRequired[Union[datetime, None]] - branch: NotRequired[Union[str, None]] - sha: NotRequired[Union[str, None]] - id: NotRequired[str] - export_url: NotRequired[str] - html_url: NotRequired[Union[str, None]] + id: int + node_id: str + name: str + full_name: str + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + created_at: datetime + updated_at: datetime + pushed_at: datetime + homepage: Union[str, None] + size: int + stargazers_count: int + watchers_count: int + language: Union[str, None] + forks_count: int + open_issues_count: int + master_branch: NotRequired[str] + default_branch: str + score: float + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_url: str + events_url: str + assignees_url: str + branches_url: str + tags_url: str + blobs_url: str + git_tags_url: str + git_refs_url: str + trees_url: str + statuses_url: str + languages_url: str + stargazers_url: str + contributors_url: str + subscribers_url: str + subscription_url: str + commits_url: str + git_commits_url: str + comments_url: str + issue_comment_url: str + contents_url: str + compare_url: str + merges_url: str + archive_url: str + downloads_url: str + issues_url: str + pulls_url: str + milestones_url: str + notifications_url: str + labels_url: str + releases_url: str + deployments_url: str + git_url: str + ssh_url: str + clone_url: str + svn_url: str + forks: int + open_issues: int + watchers: int + topics: NotRequired[list[str]] + mirror_url: Union[str, None] + has_issues: bool + has_projects: bool + has_pages: bool + has_wiki: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + license_: Union[None, LicenseSimpleType] + permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class RepoSearchResultItemPropPermissionsType(TypedDict): + """RepoSearchResultItemPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[RepoSearchResultItemType] -__all__ = ("CodespaceExportDetailsType",) +__all__ = ( + "RepoSearchResultItemPropPermissionsType", + "RepoSearchResultItemType", + "SearchRepositoriesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0408.py b/githubkit/versions/v2022_11_28/types/group_0408.py index 41ffcbcd7..cda922946 100644 --- a/githubkit/versions/v2022_11_28/types/group_0408.py +++ b/githubkit/versions/v2022_11_28/types/group_0408.py @@ -10,94 +10,83 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0086 import CodespaceMachineType -from .group_0120 import FullRepositoryType +from .group_0401 import SearchResultTextMatchesItemsType -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item - A codespace. + Topic Search Result Item """ - id: int name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] + display_name: Union[str, None] + short_description: Union[str, None] + description: Union[str, None] + created_by: Union[str, None] + released: Union[str, None] created_at: datetime updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespaceWithFullRepositoryPropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: list[str] - runtime_constraints: NotRequired[ - CodespaceWithFullRepositoryPropRuntimeConstraintsType + featured: bool + curated: bool + score: float + repository_count: NotRequired[Union[int, None]] + logo_url: NotRequired[Union[str, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + related: NotRequired[Union[list[TopicSearchResultItemPropRelatedItemsType], None]] + aliases: NotRequired[Union[list[TopicSearchResultItemPropAliasesItemsType], None]] + + +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropRelatedItemsPropTopicRelationType ] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] -class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): - """CodespaceWithFullRepositoryPropGitStatus +class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - Details about the codespace's git repository. - """ + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] + + +class TopicSearchResultItemPropAliasesItemsType(TypedDict): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropAliasesItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] -class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class SearchTopicsGetResponse200Type(TypedDict): + """SearchTopicsGetResponse200""" - allowed_port_privacy_settings: NotRequired[Union[list[str], None]] + total_count: int + incomplete_results: bool + items: list[TopicSearchResultItemType] __all__ = ( - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", - "CodespaceWithFullRepositoryType", + "SearchTopicsGetResponse200Type", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0409.py b/githubkit/versions/v2022_11_28/types/group_0409.py index 767832678..f9d6ed01b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0409.py +++ b/githubkit/versions/v2022_11_28/types/group_0409.py @@ -9,20 +9,65 @@ from __future__ import annotations +from datetime import datetime from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0401 import SearchResultTextMatchesItemsType -class EmailType(TypedDict): - """Email - Email +class UserSearchResultItemType(TypedDict): + """User Search Result Item + + User Search Result Item """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + received_events_url: str + type: str + score: float + following_url: str + gists_url: str + starred_url: str + events_url: str + public_repos: NotRequired[int] + public_gists: NotRequired[int] + followers: NotRequired[int] + following: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + name: NotRequired[Union[str, None]] + bio: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + site_admin: bool + hireable: NotRequired[Union[bool, None]] + text_matches: NotRequired[list[SearchResultTextMatchesItemsType]] + blog: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + suspended_at: NotRequired[Union[datetime, None]] + user_view_type: NotRequired[str] + + +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" + + total_count: int + incomplete_results: bool + items: list[UserSearchResultItemType] -__all__ = ("EmailType",) +__all__ = ( + "SearchUsersGetResponse200Type", + "UserSearchResultItemType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0410.py b/githubkit/versions/v2022_11_28/types/group_0410.py index 324df51fb..855325c4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0410.py +++ b/githubkit/versions/v2022_11_28/types/group_0410.py @@ -10,69 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class GpgKeyType(TypedDict): - """GPG Key +class PrivateUserType(TypedDict): + """Private User - A unique encryption key + Private User """ + login: str id: int - name: NotRequired[Union[str, None]] - primary_key_id: Union[int, None] - key_id: str - public_key: str - emails: list[GpgKeyPropEmailsItemsType] - subkeys: list[GpgKeyPropSubkeysItemsType] - can_sign: bool - can_encrypt_comms: bool - can_encrypt_storage: bool - can_certify: bool + user_view_type: NotRequired[str] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int created_at: datetime - expires_at: Union[datetime, None] - revoked: bool - raw_key: Union[str, None] + updated_at: datetime + private_gists: int + total_private_repos: int + owned_private_repos: int + disk_usage: int + collaborators: int + two_factor_authentication: bool + plan: NotRequired[PrivateUserPropPlanType] + business_plus: NotRequired[bool] + ldap_dn: NotRequired[str] -class GpgKeyPropEmailsItemsType(TypedDict): - """GpgKeyPropEmailsItems""" +class PrivateUserPropPlanType(TypedDict): + """PrivateUserPropPlan""" - email: NotRequired[str] - verified: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsType(TypedDict): - """GpgKeyPropSubkeysItems""" - - id: NotRequired[int] - primary_key_id: NotRequired[int] - key_id: NotRequired[str] - public_key: NotRequired[str] - emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] - subkeys: NotRequired[list[Any]] - can_sign: NotRequired[bool] - can_encrypt_comms: NotRequired[bool] - can_encrypt_storage: NotRequired[bool] - can_certify: NotRequired[bool] - created_at: NotRequired[str] - expires_at: NotRequired[Union[str, None]] - raw_key: NotRequired[Union[str, None]] - revoked: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: NotRequired[str] - verified: NotRequired[bool] + collaborators: int + name: str + space: int + private_repos: int __all__ = ( - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyType", + "PrivateUserPropPlanType", + "PrivateUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0411.py b/githubkit/versions/v2022_11_28/types/group_0411.py index 6c95fc7a9..6be52538b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0411.py +++ b/githubkit/versions/v2022_11_28/types/group_0411.py @@ -9,23 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class KeyType(TypedDict): - """Key +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey - Key + The public key used for setting user Codespaces' Secrets. """ + key_id: str key: str - id: int - url: str - title: str - created_at: datetime - verified: bool - read_only: bool -__all__ = ("KeyType",) +__all__ = ("CodespacesUserPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0412.py b/githubkit/versions/v2022_11_28/types/group_0412.py index 8ecc0e4c4..2b50d37d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0412.py +++ b/githubkit/versions/v2022_11_28/types/group_0412.py @@ -13,38 +13,21 @@ from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0053 import MarketplaceListingPlanType +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase - - User Marketplace Purchase + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - billing_cycle: str - next_billing_date: Union[datetime, None] - unit_count: Union[int, None] - on_free_trial: bool - free_trial_ends_on: Union[datetime, None] - updated_at: Union[datetime, None] - account: MarketplaceAccountType - plan: MarketplaceListingPlanType - - -class MarketplaceAccountType(TypedDict): - """Marketplace Account""" - - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + state: NotRequired[Union[str, None]] + completed_at: NotRequired[Union[datetime, None]] + branch: NotRequired[Union[str, None]] + sha: NotRequired[Union[str, None]] + id: NotRequired[str] + export_url: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ( - "MarketplaceAccountType", - "UserMarketplacePurchaseType", -) +__all__ = ("CodespaceExportDetailsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0413.py b/githubkit/versions/v2022_11_28/types/group_0413.py index f892fc0d3..975ddd9ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0413.py +++ b/githubkit/versions/v2022_11_28/types/group_0413.py @@ -9,17 +9,95 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0090 import CodespaceMachineType +from .group_0124 import FullRepositoryType -class SocialAccountType(TypedDict): - """Social account - Social media account +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace + + A codespace. """ - provider: str + id: int + name: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: FullRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] + created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] url: str + git_status: CodespaceWithFullRepositoryPropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: list[str] + runtime_constraints: NotRequired[ + CodespaceWithFullRepositoryPropRuntimeConstraintsType + ] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + + +class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): + """CodespaceWithFullRepositoryPropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[list[str], None]] -__all__ = ("SocialAccountType",) +__all__ = ( + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "CodespaceWithFullRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0414.py b/githubkit/versions/v2022_11_28/types/group_0414.py index a3c3f348b..767832678 100644 --- a/githubkit/versions/v2022_11_28/types/group_0414.py +++ b/githubkit/versions/v2022_11_28/types/group_0414.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class SshSigningKeyType(TypedDict): - """SSH Signing Key +class EmailType(TypedDict): + """Email - A public SSH key used to sign Git commits + Email """ - key: str - id: int - title: str - created_at: datetime + email: str + primary: bool + verified: bool + visibility: Union[str, None] -__all__ = ("SshSigningKeyType",) +__all__ = ("EmailType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0415.py b/githubkit/versions/v2022_11_28/types/group_0415.py index de982a527..324df51fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0415.py +++ b/githubkit/versions/v2022_11_28/types/group_0415.py @@ -10,19 +10,69 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +class GpgKeyType(TypedDict): + """GPG Key -class StarredRepositoryType(TypedDict): - """Starred Repository - - Starred Repository + A unique encryption key """ - starred_at: datetime - repo: RepositoryType + id: int + name: NotRequired[Union[str, None]] + primary_key_id: Union[int, None] + key_id: str + public_key: str + emails: list[GpgKeyPropEmailsItemsType] + subkeys: list[GpgKeyPropSubkeysItemsType] + can_sign: bool + can_encrypt_comms: bool + can_encrypt_storage: bool + can_certify: bool + created_at: datetime + expires_at: Union[datetime, None] + revoked: bool + raw_key: Union[str, None] + + +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsType(TypedDict): + """GpgKeyPropSubkeysItems""" + + id: NotRequired[int] + primary_key_id: NotRequired[int] + key_id: NotRequired[str] + public_key: NotRequired[str] + emails: NotRequired[list[GpgKeyPropSubkeysItemsPropEmailsItemsType]] + subkeys: NotRequired[list[Any]] + can_sign: NotRequired[bool] + can_encrypt_comms: NotRequired[bool] + can_encrypt_storage: NotRequired[bool] + can_certify: NotRequired[bool] + created_at: NotRequired[str] + expires_at: NotRequired[Union[str, None]] + raw_key: NotRequired[Union[str, None]] + revoked: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] -__all__ = ("StarredRepositoryType",) +__all__ = ( + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0416.py b/githubkit/versions/v2022_11_28/types/group_0416.py index d66bf379e..6c95fc7a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0416.py +++ b/githubkit/versions/v2022_11_28/types/group_0416.py @@ -9,26 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class HovercardType(TypedDict): - """Hovercard +class KeyType(TypedDict): + """Key - Hovercard + Key """ - contexts: list[HovercardPropContextsItemsType] + key: str + id: int + url: str + title: str + created_at: datetime + verified: bool + read_only: bool -class HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" - - message: str - octicon: str - - -__all__ = ( - "HovercardPropContextsItemsType", - "HovercardType", -) +__all__ = ("KeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0417.py b/githubkit/versions/v2022_11_28/types/group_0417.py index 04b787e6a..7fc0b213d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0417.py +++ b/githubkit/versions/v2022_11_28/types/group_0417.py @@ -9,17 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict +from .group_0056 import MarketplaceListingPlanType -class KeySimpleType(TypedDict): - """Key Simple - Key Simple +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ + billing_cycle: str + next_billing_date: Union[datetime, None] + unit_count: Union[int, None] + on_free_trial: bool + free_trial_ends_on: Union[datetime, None] + updated_at: Union[datetime, None] + account: MarketplaceAccountType + plan: MarketplaceListingPlanType + + +class MarketplaceAccountType(TypedDict): + """Marketplace Account""" + + url: str id: int - key: str + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] -__all__ = ("KeySimpleType",) +__all__ = ( + "MarketplaceAccountType", + "UserMarketplacePurchaseType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0418.py b/githubkit/versions/v2022_11_28/types/group_0418.py index 4f0fc4229..f892fc0d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0418.py +++ b/githubkit/versions/v2022_11_28/types/group_0418.py @@ -9,31 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class BillingUsageReportUserType(TypedDict): - """BillingUsageReportUser""" +class SocialAccountType(TypedDict): + """Social account - usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] + Social media account + """ + provider: str + url: str -class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): - """BillingUsageReportUserPropUsageItemsItems""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - repository_name: NotRequired[str] - - -__all__ = ( - "BillingUsageReportUserPropUsageItemsItemsType", - "BillingUsageReportUserType", -) +__all__ = ("SocialAccountType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0419.py b/githubkit/versions/v2022_11_28/types/group_0419.py index 7ec29c5b4..a3c3f348b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0419.py +++ b/githubkit/versions/v2022_11_28/types/group_0419.py @@ -10,31 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterpriseWebhooksType(TypedDict): - """Enterprise +class SshSigningKeyType(TypedDict): + """SSH Signing Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/admin/overview/about- - enterprise-accounts)." + A public SSH key used to sign Git commits """ - description: NotRequired[Union[str, None]] - html_url: str - website_url: NotRequired[Union[str, None]] + key: str id: int - node_id: str - name: str - slug: str - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - avatar_url: str + title: str + created_at: datetime -__all__ = ("EnterpriseWebhooksType",) +__all__ = ("SshSigningKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0420.py b/githubkit/versions/v2022_11_28/types/group_0420.py index bbc5a360f..de982a527 100644 --- a/githubkit/versions/v2022_11_28/types/group_0420.py +++ b/githubkit/versions/v2022_11_28/types/group_0420.py @@ -9,21 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class SimpleInstallationType(TypedDict): - """Simple Installation - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- - github-apps/registering-a-github-app/using-webhooks-with-github-apps)." +class StarredRepositoryType(TypedDict): + """Starred Repository + + Starred Repository """ - id: int - node_id: str + starred_at: datetime + repo: RepositoryType -__all__ = ("SimpleInstallationType",) +__all__ = ("StarredRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0421.py b/githubkit/versions/v2022_11_28/types/group_0421.py index b52264ecb..d66bf379e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0421.py +++ b/githubkit/versions/v2022_11_28/types/group_0421.py @@ -9,31 +9,26 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple +class HovercardType(TypedDict): + """Hovercard - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Hovercard """ - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - - -__all__ = ("OrganizationSimpleWebhooksType",) + contexts: list[HovercardPropContextsItemsType] + + +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" + + message: str + octicon: str + + +__all__ = ( + "HovercardPropContextsItemsType", + "HovercardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0422.py b/githubkit/versions/v2022_11_28/types/group_0422.py index 5ba060a68..04b787e6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0422.py +++ b/githubkit/versions/v2022_11_28/types/group_0422.py @@ -9,281 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0019 import LicenseSimpleType +class KeySimpleType(TypedDict): + """Key Simple -class RepositoryWebhooksType(TypedDict): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. + Key Simple """ id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - forks: int - permissions: NotRequired[RepositoryWebhooksPropPermissionsType] - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[ - Union[RepositoryWebhooksPropTemplateRepositoryType, None] - ] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - starred_at: NotRequired[str] - anonymous_access_enabled: NotRequired[bool] - - -class RepositoryWebhooksPropPermissionsType(TypedDict): - """RepositoryWebhooksPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - - -RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""RepositoryWebhooksPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): - """RepositoryWebhooksPropTemplateRepository""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - full_name: NotRequired[str] - owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] - private: NotRequired[bool] - html_url: NotRequired[str] - description: NotRequired[str] - fork: NotRequired[bool] - url: NotRequired[str] - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - forks_url: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - notifications_url: NotRequired[str] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - ssh_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - clone_url: NotRequired[str] - mirror_url: NotRequired[str] - hooks_url: NotRequired[str] - svn_url: NotRequired[str] - homepage: NotRequired[str] - language: NotRequired[str] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[list[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[ - RepositoryWebhooksPropTemplateRepositoryPropPermissionsType - ] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - - -class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] + key: str -__all__ = ( - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksType", -) +__all__ = ("KeySimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0423.py b/githubkit/versions/v2022_11_28/types/group_0423.py index fcc7b35f5..4f0fc4229 100644 --- a/githubkit/versions/v2022_11_28/types/group_0423.py +++ b/githubkit/versions/v2022_11_28/types/group_0423.py @@ -9,52 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksRuleType(TypedDict): - """branch protection rule - - The branch protection rule. Includes a `name` and all the [branch protection - settings](https://docs.github.com/github/administering-a-repository/defining- - the-mergeability-of-pull-requests/about-protected-branches#about-branch- - protection-settings) applied to branches that match the name. Binary settings - are boolean. Multi-level configurations are one of `off`, `non_admins`, or - `everyone`. Actor and build lists are arrays of strings. - """ - - admin_enforced: bool - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] - authorized_actor_names: list[str] - authorized_actors_only: bool - authorized_dismissal_actors_only: bool - create_protected: NotRequired[bool] - created_at: datetime - dismiss_stale_reviews_on_push: bool - id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] - lock_allows_fork_sync: NotRequired[bool] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] - name: str - pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] - repository_id: int - require_code_owner_review: bool - require_last_push_approval: NotRequired[bool] - required_approving_review_count: int - required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] - required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] - required_status_checks: list[str] - required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] - signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] - strict_required_status_checks_policy: bool - updated_at: datetime - - -__all__ = ("WebhooksRuleType",) +class BillingUsageReportUserType(TypedDict): + """BillingUsageReportUser""" + + usage_items: NotRequired[list[BillingUsageReportUserPropUsageItemsItemsType]] + + +class BillingUsageReportUserPropUsageItemsItemsType(TypedDict): + """BillingUsageReportUserPropUsageItemsItems""" + + date: str + product: str + sku: str + quantity: int + unit_type: str + price_per_unit: float + gross_amount: float + discount_amount: float + net_amount: float + repository_name: NotRequired[str] + + +__all__ = ( + "BillingUsageReportUserPropUsageItemsItemsType", + "BillingUsageReportUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0424.py b/githubkit/versions/v2022_11_28/types/group_0424.py index b53ec86f8..7ec29c5b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0424.py +++ b/githubkit/versions/v2022_11_28/types/group_0424.py @@ -10,51 +10,31 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType -from .group_0058 import MinimalRepositoryType -from .group_0204 import PullRequestMinimalType +class EnterpriseWebhooksType(TypedDict): + """Enterprise -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + An enterprise on GitHub. Webhook payloads contain the `enterprise` property when + the webhook is configured + on an enterprise account or an organization that's part of an enterprise + account. For more information, + see "[About enterprise accounts](https://docs.github.com/admin/overview/about- + enterprise-accounts)." """ - after: NotRequired[Union[str, None]] - app: NotRequired[Union[IntegrationType, None]] - before: NotRequired[Union[str, None]] - conclusion: NotRequired[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - pull_requests: NotRequired[list[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] - updated_at: NotRequired[datetime] - url: NotRequired[str] - - -__all__ = ("SimpleCheckSuiteType",) + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] + id: int + node_id: str + name: str + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + avatar_url: str + + +__all__ = ("EnterpriseWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0425.py b/githubkit/versions/v2022_11_28/types/group_0425.py index 97ca56fdc..bbc5a360f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0425.py +++ b/githubkit/versions/v2022_11_28/types/group_0425.py @@ -9,67 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0010 import IntegrationType -from .group_0204 import PullRequestMinimalType -from .group_0231 import DeploymentSimpleType -from .group_0424 import SimpleCheckSuiteType +class SimpleInstallationType(TypedDict): + """Simple Installation -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun - - A check performed on the code of a given code change + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- + github-apps/registering-a-github-app/using-webhooks-with-github-apps)." """ - app: Union[None, IntegrationType, None] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str - html_url: str id: int - name: str node_id: str - output: CheckRunWithSimpleCheckSuitePropOutputType - pull_requests: list[PullRequestMinimalType] - started_at: datetime - status: Literal["queued", "in_progress", "completed", "pending"] - url: str - - -class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int - annotations_url: str - summary: Union[str, None] - text: Union[str, None] - title: Union[str, None] -__all__ = ( - "CheckRunWithSimpleCheckSuitePropOutputType", - "CheckRunWithSimpleCheckSuiteType", -) +__all__ = ("SimpleInstallationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0426.py b/githubkit/versions/v2022_11_28/types/group_0426.py index 6420e5dfa..b52264ecb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0426.py +++ b/githubkit/versions/v2022_11_28/types/group_0426.py @@ -10,26 +10,30 @@ from __future__ import annotations from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - added_by: NotRequired[Union[str, None]] - created_at: str + login: str id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str + node_id: str url: str - verified: bool - enabled: NotRequired[bool] + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] -__all__ = ("WebhooksDeployKeyType",) +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0427.py b/githubkit/versions/v2022_11_28/types/group_0427.py index 34eb3310b..5ba060a68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0427.py +++ b/githubkit/versions/v2022_11_28/types/group_0427.py @@ -10,22 +10,280 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0019 import LicenseSimpleType -class WebhooksWorkflowType(TypedDict): - """Workflow""" - badge_url: str - created_at: datetime - html_url: str +class RepositoryWebhooksType(TypedDict): + """Repository + + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. + """ + id: int - name: str node_id: str - path: str - state: str - updated_at: datetime + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + forks: int + permissions: NotRequired[RepositoryWebhooksPropPermissionsType] + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[ + Union[RepositoryWebhooksPropTemplateRepositoryType, None] + ] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + starred_at: NotRequired[str] + anonymous_access_enabled: NotRequired[bool] + + +class RepositoryWebhooksPropPermissionsType(TypedDict): + """RepositoryWebhooksPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +RepositoryWebhooksPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""RepositoryWebhooksPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): + """RepositoryWebhooksPropTemplateRepository""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + full_name: NotRequired[str] + owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] + private: NotRequired[bool] + html_url: NotRequired[str] + description: NotRequired[str] + fork: NotRequired[bool] + url: NotRequired[str] + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + forks_url: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + notifications_url: NotRequired[str] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + ssh_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + clone_url: NotRequired[str] + mirror_url: NotRequired[str] + hooks_url: NotRequired[str] + svn_url: NotRequired[str] + homepage: NotRequired[str] + language: NotRequired[str] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[list[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[str] + created_at: NotRequired[str] + updated_at: NotRequired[str] + permissions: NotRequired[ + RepositoryWebhooksPropTemplateRepositoryPropPermissionsType + ] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_merge_commit: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + + +class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + + +class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] -__all__ = ("WebhooksWorkflowType",) +__all__ = ( + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0428.py b/githubkit/versions/v2022_11_28/types/group_0428.py index c93e49162..fcc7b35f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0428.py +++ b/githubkit/versions/v2022_11_28/types/group_0428.py @@ -9,69 +9,52 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksApproverType(TypedDict): - """WebhooksApprover""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewersItemsType(TypedDict): - """WebhooksReviewersItems""" - - reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] - type: NotRequired[Literal["User"]] - - -class WebhooksReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhooksRuleType(TypedDict): + """branch protection rule + + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. + """ + + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: list[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsPropReviewerType", - "WebhooksReviewersItemsType", -) + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] + lock_allows_fork_sync: NotRequired[bool] + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + name: str + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] + repository_id: int + require_code_owner_review: bool + require_last_push_approval: NotRequired[bool] + required_approving_review_count: int + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] + required_status_checks: list[str] + required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] + signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] + strict_required_status_checks_policy: bool + updated_at: datetime + + +__all__ = ("WebhooksRuleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0429.py b/githubkit/versions/v2022_11_28/types/group_0429.py index 167cc5522..f28d77e75 100644 --- a/githubkit/versions/v2022_11_28/types/group_0429.py +++ b/githubkit/versions/v2022_11_28/types/group_0429.py @@ -9,20 +9,52 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: None - status: str - updated_at: str - - -__all__ = ("WebhooksWorkflowJobRunType",) +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0010 import IntegrationType +from .group_0061 import MinimalRepositoryType +from .group_0208 import PullRequestMinimalType + + +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change + """ + + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + pull_requests: NotRequired[list[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] + url: NotRequired[str] + + +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0430.py b/githubkit/versions/v2022_11_28/types/group_0430.py index da4062d95..9e16fdd81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0430.py +++ b/githubkit/versions/v2022_11_28/types/group_0430.py @@ -9,35 +9,67 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType +from .group_0208 import PullRequestMinimalType +from .group_0235 import DeploymentSimpleType +from .group_0429 import SimpleCheckSuiteType -class WebhooksUserType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, IntegrationType, None] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhooksUserType",) + name: str + node_id: str + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: list[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] + url: str + + +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] + + +__all__ = ( + "CheckRunWithSimpleCheckSuitePropOutputType", + "CheckRunWithSimpleCheckSuiteType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0431.py b/githubkit/versions/v2022_11_28/types/group_0431.py index 32906747e..6420e5dfa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0431.py +++ b/githubkit/versions/v2022_11_28/types/group_0431.py @@ -9,82 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: datetime - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] - - -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ -class WebhooksAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + added_by: NotRequired[Union[str, None]] + created_at: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool + enabled: NotRequired[bool] -__all__ = ( - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", - "WebhooksAnswerType", -) +__all__ = ("WebhooksDeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0432.py b/githubkit/versions/v2022_11_28/types/group_0432.py index 48f1a497e..34eb3310b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0432.py +++ b/githubkit/versions/v2022_11_28/types/group_0432.py @@ -10,155 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class DiscussionType(TypedDict): - """Discussion +class WebhooksWorkflowType(TypedDict): + """Workflow""" - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - category: DiscussionPropCategoryType - comments: int + badge_url: str created_at: datetime html_url: str id: int - locked: bool + name: str node_id: str - number: int - reactions: NotRequired[DiscussionPropReactionsType] - repository_url: str - state: Literal["open", "closed", "locked", "converting", "transferring"] - state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] - timeline_url: NotRequired[str] - title: str + path: str + state: str updated_at: datetime - user: Union[DiscussionPropUserType, None] - labels: NotRequired[list[LabelType]] - - -class LabelType(TypedDict): - """Label - - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). - """ - - id: int - node_id: str url: str - name: str - description: Union[str, None] - color: str - default: bool - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class DiscussionPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ( - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", - "DiscussionType", - "LabelType", -) +__all__ = ("WebhooksWorkflowType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0433.py b/githubkit/versions/v2022_11_28/types/group_0433.py index 4c279958b..c93e49162 100644 --- a/githubkit/versions/v2022_11_28/types/group_0433.py +++ b/githubkit/versions/v2022_11_28/types/group_0433.py @@ -13,49 +13,38 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksCommentType(TypedDict): - """WebhooksComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhooksCommentPropUserType, None] - - -class WebhooksCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksCommentPropUserType(TypedDict): +class WebhooksApproverType(TypedDict): + """WebhooksApprover""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewersItemsType(TypedDict): + """WebhooksReviewersItems""" + + reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] + type: NotRequired[Literal["User"]] + + +class WebhooksReviewersItemsPropReviewerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -79,11 +68,10 @@ class WebhooksCommentPropUserType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", - "WebhooksCommentType", + "WebhooksApproverType", + "WebhooksReviewersItemsPropReviewerType", + "WebhooksReviewersItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0434.py b/githubkit/versions/v2022_11_28/types/group_0434.py index 469b744f3..167cc5522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0434.py +++ b/githubkit/versions/v2022_11_28/types/group_0434.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class WebhooksLabelType(TypedDict): - """Label""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - color: str - default: bool - description: Union[str, None] + conclusion: None + created_at: str + environment: str + html_url: str id: int - name: str - node_id: str - url: str + name: None + status: str + updated_at: str -__all__ = ("WebhooksLabelType",) +__all__ = ("WebhooksWorkflowJobRunType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0435.py b/githubkit/versions/v2022_11_28/types/group_0435.py index 60f7cc9c6..da4062d95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0435.py +++ b/githubkit/versions/v2022_11_28/types/group_0435.py @@ -9,17 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksRepositoriesItemsType(TypedDict): - """WebhooksRepositoriesItems""" - - full_name: str +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class WebhooksUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - name: str - node_id: str - private: bool - - -__all__ = ("WebhooksRepositoriesItemsType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ("WebhooksUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0436.py b/githubkit/versions/v2022_11_28/types/group_0436.py index afa5d37c4..32906747e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0436.py +++ b/githubkit/versions/v2022_11_28/types/group_0436.py @@ -9,17 +9,82 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" - full_name: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: datetime + discussion_id: int + html_url: str id: int - name: str node_id: str - private: bool + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] + repository_url: str + updated_at: datetime + user: Union[WebhooksAnswerPropUserType, None] -__all__ = ("WebhooksRepositoriesAddedItemsType",) +class WebhooksAnswerPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksAnswerPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", + "WebhooksAnswerType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0437.py b/githubkit/versions/v2022_11_28/types/group_0437.py index 62e701472..48f1a497e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0437.py +++ b/githubkit/versions/v2022_11_28/types/group_0437.py @@ -13,16 +13,17 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType +class DiscussionType(TypedDict): + """Discussion -class WebhooksIssueCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. + A Discussion in a repository. """ + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -34,19 +35,84 @@ class WebhooksIssueCommentType(TypedDict): "OWNER", ] body: str + category: DiscussionPropCategoryType + comments: int created_at: datetime html_url: str id: int - issue_url: str + locked: bool node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType + number: int + reactions: NotRequired[DiscussionPropReactionsType] + repository_url: str + state: Literal["open", "closed", "locked", "converting", "transferring"] + state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] + timeline_url: NotRequired[str] + title: str updated_at: datetime + user: Union[DiscussionPropUserType, None] + labels: NotRequired[list[LabelType]] + + +class LabelType(TypedDict): + """Label + + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). + """ + + id: int + node_id: str url: str - user: Union[WebhooksIssueCommentPropUserType, None] + name: str + description: Union[str, None] + color: str + default: bool + + +class DiscussionPropAnswerChosenByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str -class WebhooksIssueCommentPropReactionsType(TypedDict): +class DiscussionPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -61,7 +127,7 @@ class WebhooksIssueCommentPropReactionsType(TypedDict): url: str -class WebhooksIssueCommentPropUserType(TypedDict): +class DiscussionPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,13 +149,16 @@ class WebhooksIssueCommentPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", - "WebhooksIssueCommentType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", + "DiscussionType", + "LabelType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0438.py b/githubkit/versions/v2022_11_28/types/group_0438.py index dea7603b6..4c279958b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0438.py +++ b/githubkit/versions/v2022_11_28/types/group_0438.py @@ -9,25 +9,81 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class WebhooksCommentType(TypedDict): + """WebhooksComment""" - The changes to the comment. - """ + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int + html_url: str + id: int + node_id: str + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhooksCommentPropUserType, None] - body: NotRequired[WebhooksChangesPropBodyType] +class WebhooksCommentPropReactionsType(TypedDict): + """Reactions""" -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - from_: str + +class WebhooksCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksChangesPropBodyType", - "WebhooksChangesType", + "WebhooksCommentPropReactionsType", + "WebhooksCommentPropUserType", + "WebhooksCommentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0439.py b/githubkit/versions/v2022_11_28/types/group_0439.py index 395d0bc18..469b744f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0439.py +++ b/githubkit/versions/v2022_11_28/types/group_0439.py @@ -9,121 +9,11 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Union +from typing_extensions import TypedDict -from .group_0040 import IssueTypeType - -class WebhooksIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] - assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): +class WebhooksLabelType(TypedDict): """Label""" color: str @@ -135,222 +25,4 @@ class WebhooksIssuePropLabelsItemsType(TypedDict): url: str -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssuePropPullRequestType(TypedDict): - """WebhooksIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropSubIssuesSummaryType", - "WebhooksIssuePropUserType", - "WebhooksIssueType", -) +__all__ = ("WebhooksLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0440.py b/githubkit/versions/v2022_11_28/types/group_0440.py index 78c0b9fb1..60f7cc9c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0440.py +++ b/githubkit/versions/v2022_11_28/types/group_0440.py @@ -9,63 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + full_name: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: bool -__all__ = ( - "WebhooksMilestonePropCreatorType", - "WebhooksMilestoneType", -) +__all__ = ("WebhooksRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0441.py b/githubkit/versions/v2022_11_28/types/group_0441.py index e5f2b7ee9..afa5d37c4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0441.py +++ b/githubkit/versions/v2022_11_28/types/group_0441.py @@ -9,348 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0040 import IssueTypeType +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" -class WebhooksIssue2Type(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] - assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssue2PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssue2PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssue2PropPullRequestType] - reactions: WebhooksIssue2PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhooksIssue2PropUserType, None] - - -class WebhooksIssue2PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssue2PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] name: str node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssue2PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssue2PropPullRequestType(TypedDict): - """WebhooksIssue2PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssue2PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhooksIssue2PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + private: bool -__all__ = ( - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropSubIssuesSummaryType", - "WebhooksIssue2PropUserType", - "WebhooksIssue2Type", -) +__all__ = ("WebhooksRepositoriesAddedItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0442.py b/githubkit/versions/v2022_11_28/types/group_0442.py index 12263b7bb..62e701472 100644 --- a/githubkit/versions/v2022_11_28/types/group_0442.py +++ b/githubkit/versions/v2022_11_28/types/group_0442.py @@ -9,11 +9,59 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0010 import IntegrationType -class WebhooksUserMannequinType(TypedDict): + +class WebhooksIssueCommentType(TypedDict): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime + html_url: str + id: int + issue_url: str + node_id: str + performed_via_github_app: Union[IntegrationType, None] + reactions: WebhooksIssueCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhooksIssueCommentPropUserType, None] + + +class WebhooksIssueCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssueCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,4 +88,8 @@ class WebhooksUserMannequinType(TypedDict): user_view_type: NotRequired[str] -__all__ = ("WebhooksUserMannequinType",) +__all__ = ( + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", + "WebhooksIssueCommentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0443.py b/githubkit/versions/v2022_11_28/types/group_0443.py index 442613e28..dea7603b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0443.py +++ b/githubkit/versions/v2022_11_28/types/group_0443.py @@ -9,48 +9,25 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class WebhooksMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhooksChangesType(TypedDict): + """WebhooksChanges - account: WebhooksMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhooksMarketplacePurchasePropPlanType - unit_count: int + The changes to the comment. + """ + body: NotRequired[WebhooksChangesPropBodyType] -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" - -class WebhooksMarketplacePurchasePropPlanType(TypedDict): - """WebhooksMarketplacePurchasePropPlan""" - - bullets: list[Union[str, None]] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + from_: str __all__ = ( - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", - "WebhooksMarketplacePurchaseType", + "WebhooksChangesPropBodyType", + "WebhooksChangesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0444.py b/githubkit/versions/v2022_11_28/types/group_0444.py index 38627d866..24fc4cdf4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0444.py +++ b/githubkit/versions/v2022_11_28/types/group_0444.py @@ -9,48 +9,348 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0043 import IssueTypeType -class WebhooksPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - account: WebhooksPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhooksPreviousMarketplacePurchasePropPlanType - unit_count: int +class WebhooksIssueType(TypedDict): + """Issue + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ -class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropAccount""" + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: list[Union[WebhooksIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssuePropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhooksIssuePropUserType, None] + + +class WebhooksIssuePropAssigneeType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str node_id: str - organization_billing_email: Union[str, None] - type: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropPlan""" +class WebhooksIssuePropMilestonePropCreatorType(TypedDict): + """User""" - bullets: list[str] - description: str - has_free_trial: bool + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + node_id: str + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", - "WebhooksPreviousMarketplacePurchaseType", + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropSubIssuesSummaryType", + "WebhooksIssuePropUserType", + "WebhooksIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0445.py b/githubkit/versions/v2022_11_28/types/group_0445.py index 1b0b6886a..78c0b9fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0445.py +++ b/githubkit/versions/v2022_11_28/types/group_0445.py @@ -9,52 +9,63 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeamType(TypedDict): - """Team +class WebhooksMilestoneType(TypedDict): + """Milestone - Groups of organization members that gives permissions on specified repositories. + A collection of related issues and pull requests. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksTeamPropParentType(TypedDict): - """WebhooksTeamPropParent""" - + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksMilestonePropCreatorType, None] description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - members_url: str - name: str + labels_url: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str +class WebhooksMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + __all__ = ( - "WebhooksTeamPropParentType", - "WebhooksTeamType", + "WebhooksMilestonePropCreatorType", + "WebhooksMilestoneType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0446.py b/githubkit/versions/v2022_11_28/types/group_0446.py index 33b5b476b..74a5b7c18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0446.py +++ b/githubkit/versions/v2022_11_28/types/group_0446.py @@ -9,22 +9,348 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0205 import SimpleCommitType +from .group_0043 import IssueTypeType -class MergeGroupType(TypedDict): - """Merge Group +class WebhooksIssue2Type(TypedDict): + """Issue - A group of pull requests that the merge queue has grouped together to be merged. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] + assignees: list[Union[WebhooksIssue2PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhooksIssue2PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssue2PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssue2PropPullRequestType] + reactions: WebhooksIssue2PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[WebhooksIssue2PropSubIssuesSummaryType] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] -__all__ = ("MergeGroupType",) +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssue2PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssue2PropPullRequestType(TypedDict): + """WebhooksIssue2PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssue2PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssue2PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhooksIssue2PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropSubIssuesSummaryType", + "WebhooksIssue2PropUserType", + "WebhooksIssue2Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0447.py b/githubkit/versions/v2022_11_28/types/group_0447.py index 84341cab5..12263b7bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0447.py +++ b/githubkit/versions/v2022_11_28/types/group_0447.py @@ -9,36 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksMilestone3Type(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestone3PropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestone3PropCreatorType(TypedDict): +class WebhooksUserMannequinType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -60,12 +35,9 @@ class WebhooksMilestone3PropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -__all__ = ( - "WebhooksMilestone3PropCreatorType", - "WebhooksMilestone3Type", -) +__all__ = ("WebhooksUserMannequinType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0448.py b/githubkit/versions/v2022_11_28/types/group_0448.py index 838f548fa..442613e28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0448.py +++ b/githubkit/versions/v2022_11_28/types/group_0448.py @@ -10,51 +10,47 @@ from __future__ import annotations from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class WebhooksMembershipType(TypedDict): - """Membership +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + account: WebhooksMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhooksMarketplacePurchasePropPlanType + unit_count: int - organization_url: str - role: str - state: str - url: str - user: Union[WebhooksMembershipPropUserType, None] +class WebhooksMarketplacePurchasePropAccountType(TypedDict): + """WebhooksMarketplacePurchasePropAccount""" -class WebhooksMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhooksMarketplacePurchasePropPlanType(TypedDict): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: list[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksMembershipPropUserType", - "WebhooksMembershipType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", + "WebhooksMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0449.py b/githubkit/versions/v2022_11_28/types/group_0449.py index 8767f4c9e..38627d866 100644 --- a/githubkit/versions/v2022_11_28/types/group_0449.py +++ b/githubkit/versions/v2022_11_28/types/group_0449.py @@ -9,163 +9,48 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request + account: WebhooksPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhooksPreviousMarketplacePurchasePropPlanType + unit_count: int - Details of a Personal Access Token Request. - """ + +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_id: int - token_name: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str - id: int - name: str + login: str node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ + organization_billing_email: Union[str, None] + type: str - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] +class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropPlan""" -PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsAddedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther -""" - - -class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResult - - Permissions requested, categorized by type of permission. This field - incorporates `permissions_added` and `permissions_upgraded`. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] - - -PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ - str, Any -] -"""PersonalAccessTokenRequestPropPermissionsResultPropRepository -""" - - -PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] -"""PersonalAccessTokenRequestPropPermissionsResultPropOther -""" + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestType", + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksPreviousMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0450.py b/githubkit/versions/v2022_11_28/types/group_0450.py index 15e68c071..1b0b6886a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0450.py +++ b/githubkit/versions/v2022_11_28/types/group_0450.py @@ -9,57 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectCardType(TypedDict): - """Project Card""" +class WebhooksTeamType(TypedDict): + """Team - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhooksProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str + Groups of organization members that gives permissions on specified repositories. + """ - -class WebhooksProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + description: NotRequired[Union[str, None]] html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] + members_url: NotRequired[str] + name: str node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + parent: NotRequired[Union[WebhooksTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] + + +class WebhooksTeamPropParentType(TypedDict): + """WebhooksTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhooksProjectCardPropCreatorType", - "WebhooksProjectCardType", + "WebhooksTeamPropParentType", + "WebhooksTeamType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0451.py b/githubkit/versions/v2022_11_28/types/group_0451.py index f00c9358c..72f46c7d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0451.py +++ b/githubkit/versions/v2022_11_28/types/group_0451.py @@ -9,57 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0209 import SimpleCommitType -class WebhooksProjectType(TypedDict): - """Project""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] - html_url: str - id: int - name: str - node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime - url: str +class MergeGroupType(TypedDict): + """Merge Group + A group of pull requests that the merge queue has grouped together to be merged. + """ -class WebhooksProjectPropCreatorType(TypedDict): - """User""" + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -__all__ = ( - "WebhooksProjectPropCreatorType", - "WebhooksProjectType", -) +__all__ = ("MergeGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0452.py b/githubkit/versions/v2022_11_28/types/group_0452.py index 3c545b05d..84341cab5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0452.py +++ b/githubkit/versions/v2022_11_28/types/group_0452.py @@ -10,22 +10,62 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksProjectColumnType(TypedDict): - """Project Column""" +class WebhooksMilestone3Type(TypedDict): + """Milestone - after_id: NotRequired[Union[int, None]] - cards_url: str + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime + creator: Union[WebhooksMilestone3PropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -__all__ = ("WebhooksProjectColumnType",) +class WebhooksMilestone3PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksMilestone3PropCreatorType", + "WebhooksMilestone3Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0453.py b/githubkit/versions/v2022_11_28/types/group_0453.py index 61f9ee87b..838f548fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0453.py +++ b/githubkit/versions/v2022_11_28/types/group_0453.py @@ -9,33 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksMembershipType(TypedDict): + """Membership -class ProjectsV2Type(TypedDict): - """Projects v2 Project - - A projects v2 project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float - node_id: str - owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] - - -__all__ = ("ProjectsV2Type",) + organization_url: str + role: str + state: str + url: str + user: Union[WebhooksMembershipPropUserType, None] + + +class WebhooksMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhooksMembershipPropUserType", + "WebhooksMembershipType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0454.py b/githubkit/versions/v2022_11_28/types/group_0454.py index d31a72cb2..8767f4c9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0454.py +++ b/githubkit/versions/v2022_11_28/types/group_0454.py @@ -9,25 +9,163 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request + Details of a Personal Access Token Request. + """ -class WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" + id: int + owner: SimpleUserType + permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType + permissions_result: PersonalAccessTokenRequestPropPermissionsResultType + repository_selection: Literal["none", "all", "subset"] + repository_count: Union[int, None] + repositories: Union[list[PersonalAccessTokenRequestPropRepositoriesItemsType], None] + created_at: str + token_id: int + token_name: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsAddedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsAddedPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsAddedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsUpgradedPropOther +""" + + +class PersonalAccessTokenRequestPropPermissionsResultType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsResultPropOtherType] + + +PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropOrganization +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType: TypeAlias = dict[ + str, Any +] +"""PersonalAccessTokenRequestPropPermissionsResultPropRepository +""" + + +PersonalAccessTokenRequestPropPermissionsResultPropOtherType: TypeAlias = dict[str, Any] +"""PersonalAccessTokenRequestPropPermissionsResultPropOther +""" __all__ = ( - "WebhooksProjectChangesPropArchivedAtType", - "WebhooksProjectChangesType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0455.py b/githubkit/versions/v2022_11_28/types/group_0455.py index 11c42252b..15e68c071 100644 --- a/githubkit/versions/v2022_11_28/types/group_0455.py +++ b/githubkit/versions/v2022_11_28/types/group_0455.py @@ -13,24 +13,53 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectCardPropCreatorType(TypedDict): + """User""" - id: float + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("ProjectsV2ItemType",) +__all__ = ( + "WebhooksProjectCardPropCreatorType", + "WebhooksProjectCardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0456.py b/githubkit/versions/v2022_11_28/types/group_0456.py index 07d3ae203..f00c9358c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0456.py +++ b/githubkit/versions/v2022_11_28/types/group_0456.py @@ -9,31 +9,57 @@ from __future__ import annotations -from datetime import date, datetime +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksProjectType(TypedDict): + """Project""" -class ProjectsV2StatusUpdateType(TypedDict): - """Projects v2 Status Update - - An status update belonging to a project - """ - - id: float - node_id: str - project_node_id: NotRequired[str] - creator: NotRequired[SimpleUserType] + body: Union[str, None] + columns_url: str created_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] updated_at: datetime - status: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - start_date: NotRequired[date] - target_date: NotRequired[date] - body: NotRequired[Union[str, None]] + url: str + + +class WebhooksProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("ProjectsV2StatusUpdateType",) +__all__ = ( + "WebhooksProjectPropCreatorType", + "WebhooksProjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0457.py b/githubkit/versions/v2022_11_28/types/group_0457.py index ae0411b50..3c545b05d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0457.py +++ b/githubkit/versions/v2022_11_28/types/group_0457.py @@ -10,88 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0039 import MilestoneType -from .group_0079 import TeamSimpleType -from .group_0263 import AutoMergeType -from .group_0343 import PullRequestPropLabelsItemsType -from .group_0344 import PullRequestPropBaseType, PullRequestPropHeadType -from .group_0345 import PullRequestPropLinksType +class WebhooksProjectColumnType(TypedDict): + """Project Column""" -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" - - url: str + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime id: int + name: str node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: list[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime + project_url: str updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[list[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] - requested_teams: NotRequired[Union[list[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + url: str -__all__ = ("PullRequestWebhookType",) +__all__ = ("WebhooksProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0458.py b/githubkit/versions/v2022_11_28/types/group_0458.py index 85163bcaa..61f9ee87b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0458.py +++ b/githubkit/versions/v2022_11_28/types/group_0458.py @@ -9,23 +9,33 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Union +from typing_extensions import TypedDict +from .group_0003 import SimpleUserType -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class ProjectsV2Type(TypedDict): + """Projects v2 Project + A projects v2 project + """ -__all__ = ("PullRequestWebhookAllof1Type",) + id: float + node_id: str + owner: SimpleUserType + creator: SimpleUserType + title: str + description: Union[str, None] + public: bool + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] + + +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0459.py b/githubkit/versions/v2022_11_28/types/group_0459.py index 9c89f8ed7..d31a72cb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0459.py +++ b/githubkit/versions/v2022_11_28/types/group_0459.py @@ -10,869 +10,24 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -class WebhooksPullRequest5Type(TypedDict): - """Pull Request""" +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" - links: WebhooksPullRequest5PropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhooksPullRequest5PropAssigneeType, None] - assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] - base: WebhooksPullRequest5PropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhooksPullRequest5PropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhooksPullRequest5PropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] - milestone: Union[WebhooksPullRequest5PropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhooksPullRequest5PropUserType, None] + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] -class WebhooksPullRequest5PropAssigneeType(TypedDict): - """User""" +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksPullRequest5PropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropLinksType(TypedDict): - """WebhooksPullRequest5PropLinks""" - - comments: WebhooksPullRequest5PropLinksPropCommentsType - commits: WebhooksPullRequest5PropLinksPropCommitsType - html: WebhooksPullRequest5PropLinksPropHtmlType - issue: WebhooksPullRequest5PropLinksPropIssueType - review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType - review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType - self_: WebhooksPullRequest5PropLinksPropSelfType - statuses: WebhooksPullRequest5PropLinksPropStatusesType - - -class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhooksPullRequest5PropBaseType(TypedDict): - """WebhooksPullRequest5PropBase""" - - label: str - ref: str - repo: WebhooksPullRequest5PropBasePropRepoType - sha: str - user: Union[WebhooksPullRequest5PropBasePropUserType, None] - - -class WebhooksPullRequest5PropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadType(TypedDict): - """WebhooksPullRequest5PropHead""" - - label: str - ref: str - repo: WebhooksPullRequest5PropHeadPropRepoType - sha: str - user: Union[WebhooksPullRequest5PropHeadPropUserType, None] - - -class WebhooksPullRequest5PropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhooksPullRequest5PropAssigneeType", - "WebhooksPullRequest5PropAssigneesItemsType", - "WebhooksPullRequest5PropAutoMergePropEnabledByType", - "WebhooksPullRequest5PropAutoMergeType", - "WebhooksPullRequest5PropBasePropRepoPropLicenseType", - "WebhooksPullRequest5PropBasePropRepoPropOwnerType", - "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", - "WebhooksPullRequest5PropBasePropRepoType", - "WebhooksPullRequest5PropBasePropUserType", - "WebhooksPullRequest5PropBaseType", - "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", - "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", - "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", - "WebhooksPullRequest5PropHeadPropRepoType", - "WebhooksPullRequest5PropHeadPropUserType", - "WebhooksPullRequest5PropHeadType", - "WebhooksPullRequest5PropLabelsItemsType", - "WebhooksPullRequest5PropLinksPropCommentsType", - "WebhooksPullRequest5PropLinksPropCommitsType", - "WebhooksPullRequest5PropLinksPropHtmlType", - "WebhooksPullRequest5PropLinksPropIssueType", - "WebhooksPullRequest5PropLinksPropReviewCommentType", - "WebhooksPullRequest5PropLinksPropReviewCommentsType", - "WebhooksPullRequest5PropLinksPropSelfType", - "WebhooksPullRequest5PropLinksPropStatusesType", - "WebhooksPullRequest5PropLinksType", - "WebhooksPullRequest5PropMergedByType", - "WebhooksPullRequest5PropMilestonePropCreatorType", - "WebhooksPullRequest5PropMilestoneType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", - "WebhooksPullRequest5PropRequestedTeamsItemsType", - "WebhooksPullRequest5PropUserType", - "WebhooksPullRequest5Type", + "WebhooksProjectChangesPropArchivedAtType", + "WebhooksProjectChangesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0460.py b/githubkit/versions/v2022_11_28/types/group_0460.py index fc62f86f0..11c42252b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0460.py +++ b/githubkit/versions/v2022_11_28/types/group_0460.py @@ -13,126 +13,24 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item + + An item belonging to a project """ - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str + id: float + node_id: NotRequired[str] + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] - - -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + archived_at: Union[datetime, None] -__all__ = ( - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentType", -) +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0461.py b/githubkit/versions/v2022_11_28/types/group_0461.py index 0d56edfb2..07d3ae203 100644 --- a/githubkit/versions/v2022_11_28/types/group_0461.py +++ b/githubkit/versions/v2022_11_28/types/group_0461.py @@ -9,89 +9,31 @@ from __future__ import annotations -from datetime import datetime +from datetime import date, datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class WebhooksReviewType(TypedDict): - """WebhooksReview - The review that was affected. +class ProjectsV2StatusUpdateType(TypedDict): + """Projects v2 Status Update + + An status update belonging to a project """ - links: WebhooksReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int + id: float node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] - - -class WebhooksReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType - - -class WebhooksReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str + project_node_id: NotRequired[str] + creator: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ( - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropUserType", - "WebhooksReviewType", -) +__all__ = ("ProjectsV2StatusUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0462.py b/githubkit/versions/v2022_11_28/types/group_0462.py index f326e6f30..429ba7713 100644 --- a/githubkit/versions/v2022_11_28/types/group_0462.py +++ b/githubkit/versions/v2022_11_28/types/group_0462.py @@ -13,129 +13,85 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0042 import MilestoneType +from .group_0083 import TeamSimpleType +from .group_0267 import AutoMergeType +from .group_0347 import PullRequestPropLabelsItemsType +from .group_0348 import PullRequestPropBaseType, PullRequestPropHeadType +from .group_0349 import PullRequestPropLinksType -class WebhooksReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - assets: list[WebhooksReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhooksReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str url: str - zipball_url: Union[str, None] - - -class WebhooksReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str node_id: str - size: int - state: Literal["uploaded"] + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: list[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksReleasePropAssetsItemsPropUploaderType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleaseType", -) + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[list[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[list[SimpleUserType], None]] + requested_teams: NotRequired[Union[list[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] + + +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0463.py b/githubkit/versions/v2022_11_28/types/group_0463.py index e8f03cf30..85163bcaa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0463.py +++ b/githubkit/versions/v2022_11_28/types/group_0463.py @@ -9,133 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class WebhooksRelease1Type(TypedDict): - """Release +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] - assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksRelease1PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - -class WebhooksRelease1PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksRelease1PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksRelease1PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -__all__ = ( - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", - "WebhooksRelease1Type", -) +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0464.py b/githubkit/versions/v2022_11_28/types/group_0464.py index 3401e5834..9c89f8ed7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0464.py +++ b/githubkit/versions/v2022_11_28/types/group_0464.py @@ -14,32 +14,716 @@ from typing_extensions import NotRequired, TypedDict -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" - The security alert of the vulnerable dependency. + links: WebhooksPullRequest5PropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhooksPullRequest5PropAssigneeType, None] + assignees: list[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhooksPullRequest5PropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhooksPullRequest5PropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] + milestone: Union[WebhooksPullRequest5PropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[WebhooksPullRequest5PropRequestedTeamsItemsType] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhooksPullRequest5PropUserType, None] + + +class WebhooksPullRequest5PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhooksPullRequest5PropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksPullRequest5PropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str number: int - severity: str - state: Literal["open"] + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksPullRequest5PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropLinksType(TypedDict): + """WebhooksPullRequest5PropLinks""" + + comments: WebhooksPullRequest5PropLinksPropCommentsType + commits: WebhooksPullRequest5PropLinksPropCommitsType + html: WebhooksPullRequest5PropLinksPropHtmlType + issue: WebhooksPullRequest5PropLinksPropIssueType + review_comment: WebhooksPullRequest5PropLinksPropReviewCommentType + review_comments: WebhooksPullRequest5PropLinksPropReviewCommentsType + self_: WebhooksPullRequest5PropLinksPropSelfType + statuses: WebhooksPullRequest5PropLinksPropStatusesType + + +class WebhooksPullRequest5PropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropReviewCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhooksPullRequest5PropBaseType(TypedDict): + """WebhooksPullRequest5PropBase""" + + label: str + ref: str + repo: WebhooksPullRequest5PropBasePropRepoType + sha: str + user: Union[WebhooksPullRequest5PropBasePropUserType, None] + + +class WebhooksPullRequest5PropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropBasePropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropBasePropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropBasePropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropBasePropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropBasePropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadType(TypedDict): + """WebhooksPullRequest5PropHead""" + + label: str + ref: str + repo: WebhooksPullRequest5PropHeadPropRepoType + sha: str + user: Union[WebhooksPullRequest5PropHeadPropUserType, None] + + +class WebhooksPullRequest5PropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksAlertPropDismisserType(TypedDict): +class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -63,9 +747,132 @@ class WebhooksAlertPropDismisserType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): + """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): + """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhooksAlertPropDismisserType", - "WebhooksAlertType", + "WebhooksPullRequest5PropAssigneeType", + "WebhooksPullRequest5PropAssigneesItemsType", + "WebhooksPullRequest5PropAutoMergePropEnabledByType", + "WebhooksPullRequest5PropAutoMergeType", + "WebhooksPullRequest5PropBasePropRepoPropLicenseType", + "WebhooksPullRequest5PropBasePropRepoPropOwnerType", + "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", + "WebhooksPullRequest5PropBasePropRepoType", + "WebhooksPullRequest5PropBasePropUserType", + "WebhooksPullRequest5PropBaseType", + "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", + "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", + "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", + "WebhooksPullRequest5PropHeadPropRepoType", + "WebhooksPullRequest5PropHeadPropUserType", + "WebhooksPullRequest5PropHeadType", + "WebhooksPullRequest5PropLabelsItemsType", + "WebhooksPullRequest5PropLinksPropCommentsType", + "WebhooksPullRequest5PropLinksPropCommitsType", + "WebhooksPullRequest5PropLinksPropHtmlType", + "WebhooksPullRequest5PropLinksPropIssueType", + "WebhooksPullRequest5PropLinksPropReviewCommentType", + "WebhooksPullRequest5PropLinksPropReviewCommentsType", + "WebhooksPullRequest5PropLinksPropSelfType", + "WebhooksPullRequest5PropLinksPropStatusesType", + "WebhooksPullRequest5PropLinksType", + "WebhooksPullRequest5PropMergedByType", + "WebhooksPullRequest5PropMilestonePropCreatorType", + "WebhooksPullRequest5PropMilestoneType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", + "WebhooksPullRequest5PropRequestedTeamsItemsType", + "WebhooksPullRequest5PropUserType", + "WebhooksPullRequest5Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0465.py b/githubkit/versions/v2022_11_28/types/group_0465.py index 60f295adf..fc62f86f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0465.py +++ b/githubkit/versions/v2022_11_28/types/group_0465.py @@ -13,46 +13,126 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] + links: WebhooksReviewCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] - push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_comment: NotRequired[Union[str, None]] - push_protection_bypass_request_html_url: NotRequired[Union[str, None]] - publicly_leaked: NotRequired[Union[bool, None]] - multi_repo: NotRequired[Union[bool, None]] - - -__all__ = ("SecretScanningAlertWebhookType",) + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhooksReviewCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhooksReviewCommentPropUserType, None] + + +class WebhooksReviewCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReviewCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksReviewCommentPropLinksType(TypedDict): + """WebhooksReviewCommentPropLinks""" + + html: WebhooksReviewCommentPropLinksPropHtmlType + pull_request: WebhooksReviewCommentPropLinksPropPullRequestType + self_: WebhooksReviewCommentPropLinksPropSelfType + + +class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str + + +class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +__all__ = ( + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0466.py b/githubkit/versions/v2022_11_28/types/group_0466.py index dce9a1159..0d56edfb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0466.py +++ b/githubkit/versions/v2022_11_28/types/group_0466.py @@ -9,95 +9,89 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +class WebhooksReviewType(TypedDict): + """WebhooksReview -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. + The review that was affected. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] - severity: str - summary: str - updated_at: str - vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, None] -class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksReviewPropUserType(TypedDict): + """User""" - url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksReviewPropLinksType(TypedDict): + """WebhooksReviewPropLinks""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str + html: WebhooksReviewPropLinksPropHtmlType + pull_request: WebhooksReviewPropLinksPropPullRequestType -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" - identifier: str + href: str -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" - ecosystem: str - name: str + href: str __all__ = ( - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryType", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropUserType", + "WebhooksReviewType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0467.py b/githubkit/versions/v2022_11_28/types/group_0467.py index 7dd35b2e2..6fe43b148 100644 --- a/githubkit/versions/v2022_11_28/types/group_0467.py +++ b/githubkit/versions/v2022_11_28/types/group_0467.py @@ -9,47 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksSponsorshipType(TypedDict): - """WebhooksSponsorship""" - - created_at: str - maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhooksSponsorshipPropSponsorType, None] - sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] - tier: WebhooksSponsorshipPropTierType - - -class WebhooksSponsorshipPropMaintainerType(TypedDict): - """WebhooksSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhooksReleaseType(TypedDict): + """Release + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ -class WebhooksSponsorshipPropSponsorType(TypedDict): + assets: list[WebhooksReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhooksReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksReleasePropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -76,7 +70,44 @@ class WebhooksSponsorshipPropSponsorType(TypedDict): user_view_type: NotRequired[str] -class WebhooksSponsorshipPropSponsorableType(TypedDict): +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -100,32 +131,12 @@ class WebhooksSponsorshipPropSponsorableType(TypedDict): subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhooksSponsorshipPropTierType(TypedDict): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str __all__ = ( - "WebhooksSponsorshipPropMaintainerType", - "WebhooksSponsorshipPropSponsorType", - "WebhooksSponsorshipPropSponsorableType", - "WebhooksSponsorshipPropTierType", - "WebhooksSponsorshipType", + "WebhooksReleasePropAssetsItemsPropUploaderType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0468.py b/githubkit/versions/v2022_11_28/types/group_0468.py index bcc71503a..bad691891 100644 --- a/githubkit/versions/v2022_11_28/types/group_0468.py +++ b/githubkit/versions/v2022_11_28/types/group_0468.py @@ -9,42 +9,134 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" +class WebhooksRelease1Type(TypedDict): + """Release - tier: WebhooksChanges8PropTierType - - -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - from_: WebhooksChanges8PropTierPropFromType + assets: list[Union[WebhooksRelease1PropAssetsItemsType, None]] + assets_url: str + author: Union[WebhooksRelease1PropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksRelease1PropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier +class WebhooksRelease1PropAssetsItemsType(TypedDict): + """Release Asset - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + Data related to a release. """ - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] name: str node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksRelease1PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str __all__ = ( - "WebhooksChanges8PropTierPropFromType", - "WebhooksChanges8PropTierType", - "WebhooksChanges8Type", + "WebhooksRelease1PropAssetsItemsPropUploaderType", + "WebhooksRelease1PropAssetsItemsType", + "WebhooksRelease1PropAuthorType", + "WebhooksRelease1PropReactionsType", + "WebhooksRelease1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0469.py b/githubkit/versions/v2022_11_28/types/group_0469.py index 108b60484..3401e5834 100644 --- a/githubkit/versions/v2022_11_28/types/group_0469.py +++ b/githubkit/versions/v2022_11_28/types/group_0469.py @@ -9,52 +9,63 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert - Groups of organization members that gives permissions on specified repositories. + The security alert of the vulnerable dependency. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + node_id: str + number: int + severity: str + state: Literal["open"] -class WebhooksTeam1PropParentType(TypedDict): - """WebhooksTeam1PropParent""" +class WebhooksAlertPropDismisserType(TypedDict): + """User""" - description: Union[str, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhooksTeam1PropParentType", - "WebhooksTeam1Type", + "WebhooksAlertPropDismisserType", + "WebhooksAlertType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0470.py b/githubkit/versions/v2022_11_28/types/group_0470.py index 5395130c7..60f295adf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0470.py +++ b/githubkit/versions/v2022_11_28/types/group_0470.py @@ -9,25 +9,50 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" - - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + push_protection_bypass_request_reviewer: NotRequired[Union[None, SimpleUserType]] + push_protection_bypass_request_reviewer_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_comment: NotRequired[Union[str, None]] + push_protection_bypass_request_html_url: NotRequired[Union[str, None]] + publicly_leaked: NotRequired[Union[bool, None]] + multi_repo: NotRequired[Union[bool, None]] + + +__all__ = ("SecretScanningAlertWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0471.py b/githubkit/versions/v2022_11_28/types/group_0471.py index f6a7a7599..dce9a1159 100644 --- a/githubkit/versions/v2022_11_28/types/group_0471.py +++ b/githubkit/versions/v2022_11_28/types/group_0471.py @@ -9,25 +9,95 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0001 import CvssSeveritiesType -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhooksSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhooksSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[WebhooksSecurityAdvisoryPropIdentifiersItemsType] + published_at: str + references: list[WebhooksSecurityAdvisoryPropReferencesItemsType] + severity: str + summary: str + updated_at: str + vulnerabilities: list[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] + withdrawn_at: Union[str, None] -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) + +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str + name: str + + +__all__ = ( + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0472.py b/githubkit/versions/v2022_11_28/types/group_0472.py index 175139cc9..7dd35b2e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0472.py +++ b/githubkit/versions/v2022_11_28/types/group_0472.py @@ -9,27 +9,123 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0423 import WebhooksRuleType +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" + created_at: str + maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] + node_id: str + privacy_level: str + sponsor: Union[WebhooksSponsorshipPropSponsorType, None] + sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] + tier: WebhooksSponsorshipPropTierType - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType +class WebhooksSponsorshipPropMaintainerType(TypedDict): + """WebhooksSponsorshipPropMaintainer""" -__all__ = ("WebhookBranchProtectionRuleCreatedType",) + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropSponsorableType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhooksSponsorshipPropTierType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", + "WebhooksSponsorshipType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0473.py b/githubkit/versions/v2022_11_28/types/group_0473.py index e55e4fd70..bcc71503a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0473.py +++ b/githubkit/versions/v2022_11_28/types/group_0473.py @@ -9,27 +9,42 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0423 import WebhooksRuleType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" + tier: WebhooksChanges8PropTierType - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -__all__ = ("WebhookBranchProtectionRuleDeletedType",) + from_: WebhooksChanges8PropTierPropFromType + + +class WebhooksChanges8PropTierPropFromType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksChanges8PropTierPropFromType", + "WebhooksChanges8PropTierType", + "WebhooksChanges8Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0474.py b/githubkit/versions/v2022_11_28/types/group_0474.py index 68496ad30..108b60484 100644 --- a/githubkit/versions/v2022_11_28/types/group_0474.py +++ b/githubkit/versions/v2022_11_28/types/group_0474.py @@ -12,170 +12,49 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0423 import WebhooksRuleType +class WebhooksTeam1Type(TypedDict): + """Team -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" - - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserType - - -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType - ] - authorized_actor_names: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType - ] - authorized_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType - ] - authorized_dismissal_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType - ] - linear_history_requirement_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType - ] - lock_branch_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType - ] - lock_allows_fork_sync: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType - ] - pull_request_reviews_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType - ] - require_last_push_approval: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType - ] - required_status_checks: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType - ] - required_status_checks_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType - ] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" - - from_: list[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem - entLevel - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev - el - """ - - from_: Literal["off", "non_admins", "everyone"] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: list[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel + Groups of organization members that gives permissions on specified repositories. """ - from_: Literal["off", "non_admins", "everyone"] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksTeam1PropParentType(TypedDict): + """WebhooksTeam1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", - "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedType", + "WebhooksTeam1PropParentType", + "WebhooksTeam1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0475.py b/githubkit/versions/v2022_11_28/types/group_0475.py index 74789554c..592b28a8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0475.py +++ b/githubkit/versions/v2022_11_28/types/group_0475.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0425 import CheckRunWithSimpleCheckSuiteType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["disabled"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0476.py b/githubkit/versions/v2022_11_28/types/group_0476.py index 831afd105..4775b28a5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0476.py +++ b/githubkit/versions/v2022_11_28/types/group_0476.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - payload: str + action: Literal["enabled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0477.py b/githubkit/versions/v2022_11_28/types/group_0477.py index 55c9804e0..f8db52728 100644 --- a/githubkit/versions/v2022_11_28/types/group_0477.py +++ b/githubkit/versions/v2022_11_28/types/group_0477.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0425 import CheckRunWithSimpleCheckSuiteType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0428 import WebhooksRuleType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0478.py b/githubkit/versions/v2022_11_28/types/group_0478.py index 090ccf388..d012ee49d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0478.py +++ b/githubkit/versions/v2022_11_28/types/group_0478.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0428 import WebhooksRuleType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - payload: str + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0479.py b/githubkit/versions/v2022_11_28/types/group_0479.py index fd8331773..8e1527d8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0479.py +++ b/githubkit/versions/v2022_11_28/types/group_0479.py @@ -9,38 +9,173 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0425 import CheckRunWithSimpleCheckSuiteType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0428 import WebhooksRuleType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + rule: WebhooksRuleType sender: SimpleUserType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges - The action requested by the user. + If the action was `edited`, the changes to the rule. """ - identifier: NotRequired[str] + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + lock_branch_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType + ] + lock_allows_fork_sync: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType + ] + pull_request_reviews_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType + ] + require_last_push_approval: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: list[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] __all__ = ( - "WebhookCheckRunRequestedActionPropRequestedActionType", - "WebhookCheckRunRequestedActionType", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0480.py b/githubkit/versions/v2022_11_28/types/group_0480.py index 0d80e2c39..18485e62a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0480.py +++ b/githubkit/versions/v2022_11_28/types/group_0480.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0430 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - payload: str + action: Literal["completed"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0481.py b/githubkit/versions/v2022_11_28/types/group_0481.py index 60df86519..831afd105 100644 --- a/githubkit/versions/v2022_11_28/types/group_0481.py +++ b/githubkit/versions/v2022_11_28/types/group_0481.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0425 import CheckRunWithSimpleCheckSuiteType +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" + The check_run.completed webhook encoded with URL encoding + """ - action: Literal["rerequested"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + payload: str -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0482.py b/githubkit/versions/v2022_11_28/types/group_0482.py index ef6a77599..2e5afed07 100644 --- a/githubkit/versions/v2022_11_28/types/group_0482.py +++ b/githubkit/versions/v2022_11_28/types/group_0482.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0430 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - payload: str + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0483.py b/githubkit/versions/v2022_11_28/types/group_0483.py index d4e85ed6d..090ccf388 100644 --- a/githubkit/versions/v2022_11_28/types/group_0483.py +++ b/githubkit/versions/v2022_11_28/types/group_0483.py @@ -9,267 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" - - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] - updated_at: datetime - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.created webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedType", -) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0484.py b/githubkit/versions/v2022_11_28/types/group_0484.py index f7bf5be2b..ae421659e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0484.py +++ b/githubkit/versions/v2022_11_28/types/group_0484.py @@ -9,264 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0430 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserType -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). + The action requested by the user. """ - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + identifier: NotRequired[str] __all__ = ( - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedType", + "WebhookCheckRunRequestedActionPropRequestedActionType", + "WebhookCheckRunRequestedActionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0485.py b/githubkit/versions/v2022_11_28/types/group_0485.py index e284d9875..0d80e2c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0485.py +++ b/githubkit/versions/v2022_11_28/types/group_0485.py @@ -9,263 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" - - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: list[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - client_id: NotRequired[Union[str, None]] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0486.py b/githubkit/versions/v2022_11_28/types/group_0486.py index 04e2be7a5..695e2a799 100644 --- a/githubkit/versions/v2022_11_28/types/group_0486.py +++ b/githubkit/versions/v2022_11_28/types/group_0486.py @@ -9,154 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0430 import CheckRunWithSimpleCheckSuiteType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str - version: Union[str, None] - - -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchType", -) +__all__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0487.py b/githubkit/versions/v2022_11_28/types/group_0487.py index 6e350bfa5..ef6a77599 100644 --- a/githubkit/versions/v2022_11_28/types/group_0487.py +++ b/githubkit/versions/v2022_11_28/types/group_0487.py @@ -9,192 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None - ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - fixed_at: NotRequired[None] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str - dismissal_approved_by: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, - None, - ] - ] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + payload: str -__all__ = ( - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0488.py b/githubkit/versions/v2022_11_28/types/group_0488.py index 470c7f4a2..4198f17ba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0488.py +++ b/githubkit/versions/v2022_11_28/types/group_0488.py @@ -14,117 +14,262 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed"]] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] + created_at: datetime + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType + ] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] + updated_at: datetime url: str - dismissal_approved_by: NotRequired[None] -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): + """App - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0489.py b/githubkit/versions/v2022_11_28/types/group_0489.py index 21acc5aac..77e520a79 100644 --- a/githubkit/versions/v2022_11_28/types/group_0489.py +++ b/githubkit/versions/v2022_11_28/types/group_0489.py @@ -14,53 +14,91 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType - commit_oid: str + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType ] - fixed_at: NotRequired[None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Union[None, Literal["fixed"]] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -87,72 +125,148 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """Committer - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + Metaproperties for Git author/committer information. + """ + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + id: int + name: str + url: str + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0490.py b/githubkit/versions/v2022_11_28/types/group_0490.py index 033a2627b..8852c764b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0490.py +++ b/githubkit/versions/v2022_11_28/types/group_0490.py @@ -14,121 +14,258 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: list[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType ] - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: Union[str, None] - fixed_at: NotRequired[None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] html_url: str - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + id: Union[int, None] + client_id: NotRequired[Union[str, None]] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Union[None, Literal["open", "dismissed", "fixed"]] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[list[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[list[str], None]] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0491.py b/githubkit/versions/v2022_11_28/types/group_0491.py index bab33b3a5..1c6447ec4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0491.py +++ b/githubkit/versions/v2022_11_28/types/group_0491.py @@ -14,17 +14,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,33 +34,64 @@ class WebhookCodeScanningAlertReopenedByUserType(TypedDict): sender: SimpleUserType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: None - dismissed_by: None + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] fixed_at: NotRequired[None] html_url: str most_recent_instance: NotRequired[ Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, None, ] ] number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Union[None, Literal["open", "fixed"]] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( TypedDict ): """Alert Instance""" @@ -71,20 +102,20 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion """ end_column: NotRequired[int] @@ -94,35 +125,38 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: NotRequired[str] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str id: str severity: Union[None, Literal["none", "note", "warning", "error"]] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0492.py b/githubkit/versions/v2022_11_28/types/group_0492.py index 232929745..e1843df37 100644 --- a/githubkit/versions/v2022_11_28/types/group_0492.py +++ b/githubkit/versions/v2022_11_28/types/group_0492.py @@ -9,77 +9,158 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert - The [commit - comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- - comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: datetime + dismissed_at: datetime + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None ] - body: str - commit_id: str - created_at: str + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] html_url: str - id: int - line: Union[int, None] - node_id: str - path: Union[str, None] - position: Union[int, None] - reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] - updated_at: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType url: str - user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + dismissal_approved_by: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType, + None, + ] + ] -class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): + """User""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -107,8 +188,13 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): __all__ = ( - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissalApprovedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0493.py b/githubkit/versions/v2022_11_28/types/group_0493.py index 68a711cbc..c22251dd2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0493.py +++ b/githubkit/versions/v2022_11_28/types/group_0493.py @@ -9,29 +9,122 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - description: Union[str, None] + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed"]] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] + url: str + dismissal_approved_by: NotRequired[None] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0494.py b/githubkit/versions/v2022_11_28/types/group_0494.py index adb707df7..e937744c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0494.py +++ b/githubkit/versions/v2022_11_28/types/group_0494.py @@ -9,25 +9,150 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0115 import CustomPropertyType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["created"] - definition: CustomPropertyType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Union[None, Literal["fixed"]] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0495.py b/githubkit/versions/v2022_11_28/types/group_0495.py index 1b65e681a..2bfddd6aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0495.py +++ b/githubkit/versions/v2022_11_28/types/group_0495.py @@ -9,33 +9,126 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: Union[str, None] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert - property_name: str + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: Union[str, None] + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Union[None, Literal["open", "dismissed", "fixed"]] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[list[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] __all__ = ( - "WebhookCustomPropertyDeletedPropDefinitionType", - "WebhookCustomPropertyDeletedType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0496.py b/githubkit/versions/v2022_11_28/types/group_0496.py index 115afef1a..667405180 100644 --- a/githubkit/versions/v2022_11_28/types/group_0496.py +++ b/githubkit/versions/v2022_11_28/types/group_0496.py @@ -9,25 +9,120 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0115 import CustomPropertyType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): - """custom property promoted to business event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - action: Literal["promote_to_enterprise"] - definition: CustomPropertyType + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: Union[None, Literal["open", "fixed"]] + tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[list[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio + n + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" + + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0497.py b/githubkit/versions/v2022_11_28/types/group_0497.py index d5e98879e..bb551dcb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0497.py +++ b/githubkit/versions/v2022_11_28/types/group_0497.py @@ -9,25 +9,106 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0115 import CustomPropertyType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" - action: Literal["updated"] - definition: CustomPropertyType + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment + + The [commit + comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue- + comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: str + html_url: str + id: int + line: Union[int, None] + node_id: str + path: Union[str, None] + position: Union[int, None] + reactions: NotRequired[WebhookCommitCommentCreatedPropCommentPropReactionsType] + updated_at: str + url: str + user: Union[WebhookCommitCommentCreatedPropCommentPropUserType, None] + + +class WebhookCommitCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0498.py b/githubkit/versions/v2022_11_28/types/group_0498.py index d0d738a8f..ddc35c281 100644 --- a/githubkit/versions/v2022_11_28/types/group_0498.py +++ b/githubkit/versions/v2022_11_28/types/group_0498.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0117 import CustomPropertyValueType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["updated"] + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str + organization: NotRequired[OrganizationSimpleWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserType] - new_property_values: list[CustomPropertyValueType] - old_property_values: list[CustomPropertyValueType] + sender: SimpleUserType -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0499.py b/githubkit/versions/v2022_11_28/types/group_0499.py index 0dfc70191..38ae4305a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0499.py +++ b/githubkit/versions/v2022_11_28/types/group_0499.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0119 import CustomPropertyType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" + action: Literal["created"] + definition: CustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDeleteType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0500.py b/githubkit/versions/v2022_11_28/types/group_0500.py index 36406ba1e..8e9be4b94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0500.py +++ b/githubkit/versions/v2022_11_28/types/group_0500.py @@ -13,23 +13,29 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0279 import DependabotAlertType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + + +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ( + "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCustomPropertyDeletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0501.py b/githubkit/versions/v2022_11_28/types/group_0501.py index b29c41507..0e061f01d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0501.py +++ b/githubkit/versions/v2022_11_28/types/group_0501.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0279 import DependabotAlertType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0119 import CustomPropertyType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyPromotedToEnterpriseType(TypedDict): + """custom property promoted to business event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType + action: Literal["promote_to_enterprise"] + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookCustomPropertyPromotedToEnterpriseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0502.py b/githubkit/versions/v2022_11_28/types/group_0502.py index 1c77194de..78f6ffffd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0502.py +++ b/githubkit/versions/v2022_11_28/types/group_0502.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0279 import DependabotAlertType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0119 import CustomPropertyType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["created"] - alert: DependabotAlertType + action: Literal["updated"] + definition: CustomPropertyType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0503.py b/githubkit/versions/v2022_11_28/types/group_0503.py index fd2b36192..9e9c375b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0503.py +++ b/githubkit/versions/v2022_11_28/types/group_0503.py @@ -13,23 +13,24 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0279 import DependabotAlertType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0121 import CustomPropertyValueType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserType] + new_property_values: list[CustomPropertyValueType] + old_property_values: list[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0504.py b/githubkit/versions/v2022_11_28/types/group_0504.py index d43c611b7..2860497c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0504.py +++ b/githubkit/versions/v2022_11_28/types/group_0504.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0279 import DependabotAlertType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["fixed"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0505.py b/githubkit/versions/v2022_11_28/types/group_0505.py index b40c153a2..65a0446e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0505.py +++ b/githubkit/versions/v2022_11_28/types/group_0505.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0279 import DependabotAlertType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0283 import DependabotAlertType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["reintroduced"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReintroducedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0506.py b/githubkit/versions/v2022_11_28/types/group_0506.py index 65131135e..d408cdca4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0506.py +++ b/githubkit/versions/v2022_11_28/types/group_0506.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0279 import DependabotAlertType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0283 import DependabotAlertType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["reopened"] + action: Literal["auto_reopened"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0507.py b/githubkit/versions/v2022_11_28/types/group_0507.py index 2bc919efc..72500e1fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0507.py +++ b/githubkit/versions/v2022_11_28/types/group_0507.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0426 import WebhooksDeployKeyType +from .group_0283 import DependabotAlertType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0508.py b/githubkit/versions/v2022_11_28/types/group_0508.py index 422969335..fada124e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0508.py +++ b/githubkit/versions/v2022_11_28/types/group_0508.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0426 import WebhooksDeployKeyType +from .group_0283 import DependabotAlertType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["dismissed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0509.py b/githubkit/versions/v2022_11_28/types/group_0509.py index eda38e25d..faf0685d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0509.py +++ b/githubkit/versions/v2022_11_28/types/group_0509.py @@ -9,550 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0427 import WebhooksWorkflowType +from .group_0283 import DependabotAlertType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] - - -class WebhookDeploymentCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] - performed_via_github_app: NotRequired[ - Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] -"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 -""" - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[None] - head_repository: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[None] - pull_requests: list[ - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: NotRequired[ - Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[None] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: ( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - ) - sha: str - - -class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedType", -) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0510.py b/githubkit/versions/v2022_11_28/types/group_0510.py index 4c21d221a..244ff4a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0510.py +++ b/githubkit/versions/v2022_11_28/types/group_0510.py @@ -13,26 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0211 import DeploymentType -from .group_0342 import PullRequestType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType - - -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" - - action: Literal["requested"] - environment: NotRequired[str] - event: NotRequired[str] - deployment_callback_url: NotRequired[str] - deployment: NotRequired[DeploymentType] - pull_requests: NotRequired[list[PullRequestType]] - repository: NotRequired[RepositoryWebhooksType] - organization: NotRequired[OrganizationSimpleWebhooksType] +from .group_0283 import DependabotAlertType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" + + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserType] + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0511.py b/githubkit/versions/v2022_11_28/types/group_0511.py index 1a5e684d7..cc529de2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0511.py +++ b/githubkit/versions/v2022_11_28/types/group_0511.py @@ -9,419 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0428 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0429 import WebhooksWorkflowJobRunType +from .group_0283 import DependabotAlertType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0512.py b/githubkit/versions/v2022_11_28/types/group_0512.py index de0b89890..90f9a3113 100644 --- a/githubkit/versions/v2022_11_28/types/group_0512.py +++ b/githubkit/versions/v2022_11_28/types/group_0512.py @@ -9,417 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0428 import WebhooksApproverType, WebhooksReviewersItemsType -from .group_0429 import WebhooksWorkflowJobRunType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0431 import WebhooksDeployKeyType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedType", -) +__all__ = ("WebhookDeployKeyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0513.py b/githubkit/versions/v2022_11_28/types/group_0513.py index dd205b82d..72929bfd2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0513.py +++ b/githubkit/versions/v2022_11_28/types/group_0513.py @@ -9,453 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0431 import WebhooksDeployKeyType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["requested"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] - environment: str installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedType", -) +__all__ = ("WebhookDeployKeyDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0514.py b/githubkit/versions/v2022_11_28/types/group_0514.py index 9a54771d6..d3248c942 100644 --- a/githubkit/versions/v2022_11_28/types/group_0514.py +++ b/githubkit/versions/v2022_11_28/types/group_0514.py @@ -14,61 +14,28 @@ from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0427 import WebhooksWorkflowType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0432 import WebhooksWorkflowType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] - ] - - -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str + workflow: Union[WebhooksWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): """Deployment The [deployment](https://docs.github.com/rest/deployments/deployments#list- @@ -76,20 +43,15 @@ class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): """ created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] description: Union[str, None] environment: str id: int node_id: str original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] + payload: Union[str, WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type] performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] ] production_environment: NotRequired[bool] ref: str @@ -102,7 +64,7 @@ class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): url: str -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -129,16 +91,12 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): user_view_type: NotRequired[str] -WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ - str, Any -] -"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 +WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[str, Any] +"""WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1 """ -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( - TypedDict -): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -156,17 +114,17 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, None, ] permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( TypedDict ): """User""" @@ -195,11 +153,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropO user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss - ions + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -241,173 +198,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropP workflows: NotRequired[Literal["read", "write"]] -class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentStatus - - The [deployment status](https://docs.github.com/rest/deployments/statuses#list- - deployment-statuses). - """ - - created_at: str - creator: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None - ] - deployment_url: str - description: str - environment: str - environment_url: NotRequired[str] - id: int - log_url: NotRequired[str] - node_id: str - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, - None, - ] - ] - repository_url: str - state: str - target_url: str - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -423,7 +217,6 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "timed_out", "action_required", "stale", - "startup_failure", ], ] created_at: datetime @@ -432,7 +225,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): head_branch: str head_commit: NotRequired[None] head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -444,19 +237,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): path: str previous_attempt_url: NotRequired[None] pull_requests: list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ list[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType - ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] rerun_url: NotRequired[str] run_attempt: int run_number: int @@ -464,8 +255,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] ] updated_at: datetime url: str @@ -473,7 +264,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): workflow_url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -500,17 +291,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -537,8 +328,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(Typed user_view_type: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -575,7 +366,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -590,10 +381,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -615,8 +404,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerTy url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -653,7 +442,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -668,10 +457,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -693,27 +480,29 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -723,17 +512,19 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -744,30 +535,24 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead __all__ = ( - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedType", + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0515.py b/githubkit/versions/v2022_11_28/types/group_0515.py index a42b347a5..7ceaf4f73 100644 --- a/githubkit/versions/v2022_11_28/types/group_0515.py +++ b/githubkit/versions/v2022_11_28/types/group_0515.py @@ -13,25 +13,26 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0431 import WebhooksAnswerType -from .group_0432 import DiscussionType - - -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" - - action: Literal["answered"] - answer: WebhooksAnswerType - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] +from .group_0215 import DeploymentType +from .group_0346 import PullRequestType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" + + action: Literal["requested"] + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[list[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookDiscussionAnsweredType",) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0516.py b/githubkit/versions/v2022_11_28/types/group_0516.py index da446c80c..7497d2d20 100644 --- a/githubkit/versions/v2022_11_28/types/group_0516.py +++ b/githubkit/versions/v2022_11_28/types/group_0516.py @@ -10,60 +10,418 @@ from __future__ import annotations from datetime import datetime -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0433 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0434 import WebhooksWorkflowJobRunType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): + """User""" - created_at: datetime - description: str - emoji: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - is_answerable: bool - name: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0517.py b/githubkit/versions/v2022_11_28/types/group_0517.py index 2b07f9978..1b957a6e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0517.py +++ b/githubkit/versions/v2022_11_28/types/group_0517.py @@ -9,27 +9,417 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0433 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0434 import WebhooksWorkflowJobRunType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["closed"] - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[list[WebhooksReviewersItemsType]] sender: SimpleUserType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + list[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionClosedType",) +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0518.py b/githubkit/versions/v2022_11_28/types/group_0518.py index 1472eb8d4..375e0bc35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0518.py +++ b/githubkit/versions/v2022_11_28/types/group_0518.py @@ -9,29 +9,453 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType -from .group_0433 import WebhooksCommentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["created"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhooksUserType, None] + reviewers: list[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentCreatedType",) +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str + + +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0519.py b/githubkit/versions/v2022_11_28/types/group_0519.py index c153598ea..04d3753c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0519.py +++ b/githubkit/versions/v2022_11_28/types/group_0519.py @@ -9,29 +9,765 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType -from .group_0433 import WebhooksCommentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0432 import WebhooksWorkflowType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["deleted"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["created"] + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType + workflow: NotRequired[Union[WebhooksWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -__all__ = ("WebhookDiscussionCommentDeletedType",) +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type: TypeAlias = dict[ + str, Any +] +"""WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 +""" + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermiss + ions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusType(TypedDict): + """WebhookDeploymentStatusCreatedPropDeploymentStatus + + The [deployment status](https://docs.github.com/rest/deployments/statuses#list- + deployment-statuses). + """ + + created_at: str + creator: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, None + ] + deployment_url: str + description: str + environment: str + environment_url: NotRequired[str] + id: int + log_url: NotRequired[str] + node_id: str + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, + None, + ] + ] + repository_url: str + state: str + target_url: str + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[None] + head_repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[None] + pull_requests: list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[None] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0520.py b/githubkit/versions/v2022_11_28/types/group_0520.py index 48c91f6bf..1cb385d08 100644 --- a/githubkit/versions/v2022_11_28/types/group_0520.py +++ b/githubkit/versions/v2022_11_28/types/group_0520.py @@ -13,20 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType -from .group_0433 import WebhooksCommentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0436 import WebhooksAnswerType +from .group_0437 import DiscussionType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhooksCommentType + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -35,20 +34,4 @@ class WebhookDiscussionCommentEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" - - body: WebhookDiscussionCommentEditedPropChangesPropBodyType - - -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhookDiscussionCommentEditedPropChangesPropBodyType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedType", -) +__all__ = ("WebhookDiscussionAnsweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0521.py b/githubkit/versions/v2022_11_28/types/group_0521.py index 24e6718dc..0a65dadb9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0521.py +++ b/githubkit/versions/v2022_11_28/types/group_0521.py @@ -9,21 +9,23 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["created"] + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,36 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionCreatedType",) +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +__all__ = ( + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0522.py b/githubkit/versions/v2022_11_28/types/group_0522.py index aa65cd8e9..28756e383 100644 --- a/githubkit/versions/v2022_11_28/types/group_0522.py +++ b/githubkit/versions/v2022_11_28/types/group_0522.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["deleted"] + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionDeletedType",) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0523.py b/githubkit/versions/v2022_11_28/types/group_0523.py index f21da017d..019c7e2aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0523.py +++ b/githubkit/versions/v2022_11_28/types/group_0523.py @@ -13,18 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType +from .group_0438 import WebhooksCommentType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["created"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +34,4 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" - - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] - - -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedType", -) +__all__ = ("WebhookDiscussionCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0524.py b/githubkit/versions/v2022_11_28/types/group_0524.py index c7d98ed8b..3279d58a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0524.py +++ b/githubkit/versions/v2022_11_28/types/group_0524.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType -from .group_0434 import WebhooksLabelType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType +from .group_0438 import WebhooksCommentType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["labeled"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0525.py b/githubkit/versions/v2022_11_28/types/group_0525.py index c01cce4c1..f92bc96f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0525.py +++ b/githubkit/versions/v2022_11_28/types/group_0525.py @@ -13,17 +13,20 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType +from .group_0438 import WebhooksCommentType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["locked"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionLockedType",) +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +__all__ = ( + "WebhookDiscussionCommentEditedPropChangesPropBodyType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0526.py b/githubkit/versions/v2022_11_28/types/group_0526.py index cd500850d..41b5df535 100644 --- a/githubkit/versions/v2022_11_28/types/group_0526.py +++ b/githubkit/versions/v2022_11_28/types/group_0526.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["pinned"] + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0527.py b/githubkit/versions/v2022_11_28/types/group_0527.py index 94bf84068..71698d4e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0527.py +++ b/githubkit/versions/v2022_11_28/types/group_0527.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0528.py b/githubkit/versions/v2022_11_28/types/group_0528.py index a736d2763..a9e7d07fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0528.py +++ b/githubkit/versions/v2022_11_28/types/group_0528.py @@ -13,19 +13,18 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType -from .group_0529 import WebhookDiscussionTransferredPropChangesType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +33,28 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredType",) +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" + + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0529.py b/githubkit/versions/v2022_11_28/types/group_0529.py index ac651ec12..c1d89f5ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0529.py +++ b/githubkit/versions/v2022_11_28/types/group_0529.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType +from .group_0439 import WebhooksLabelType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["labeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionLabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0530.py b/githubkit/versions/v2022_11_28/types/group_0530.py index 99dc8d06e..11c302471 100644 --- a/githubkit/versions/v2022_11_28/types/group_0530.py +++ b/githubkit/versions/v2022_11_28/types/group_0530.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0431 import WebhooksAnswerType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["unanswered"] + action: Literal["locked"] discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookDiscussionUnansweredType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0531.py b/githubkit/versions/v2022_11_28/types/group_0531.py index 806ee9e0f..14bacdbc4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0531.py +++ b/githubkit/versions/v2022_11_28/types/group_0531.py @@ -13,25 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType -from .group_0434 import WebhooksLabelType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["unlabeled"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0532.py b/githubkit/versions/v2022_11_28/types/group_0532.py index e39819461..3313c3d89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0532.py +++ b/githubkit/versions/v2022_11_28/types/group_0532.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - action: Literal["unlocked"] + action: Literal["reopened"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnlockedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0533.py b/githubkit/versions/v2022_11_28/types/group_0533.py index 0606d35fc..8d476bd27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0533.py +++ b/githubkit/versions/v2022_11_28/types/group_0533.py @@ -13,17 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0432 import DiscussionType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType +from .group_0534 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - action: Literal["unpinned"] + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0534.py b/githubkit/versions/v2022_11_28/types/group_0534.py index 67ba6281a..decf5625d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0534.py +++ b/githubkit/versions/v2022_11_28/types/group_0534.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0535 import WebhookForkPropForkeeType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookForkType(TypedDict): - """fork event +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - A user forks a repository. - """ + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0535.py b/githubkit/versions/v2022_11_28/types/group_0535.py index 58282dc63..431c2ff89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0535.py +++ b/githubkit/versions/v2022_11_28/types/group_0535.py @@ -9,151 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0537 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0436 import WebhooksAnswerType +from .group_0437 import DiscussionType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ + action: Literal["unanswered"] + discussion: DiscussionType + old_answer: WebhooksAnswerType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: datetime - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[Union[str, None], None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: Literal[True] - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[Union[str, None], None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[None, None] - languages_url: str - license_: Union[WebhookForkPropForkeeMergedLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[None, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: WebhookForkPropForkeeMergedOwnerType - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: datetime - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeMergedLicenseType(TypedDict): - """WebhookForkPropForkeeMergedLicense""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeMergedOwnerType(TypedDict): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", - "WebhookForkPropForkeeType", -) +__all__ = ("WebhookDiscussionUnansweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0536.py b/githubkit/versions/v2022_11_28/types/group_0536.py index 5ee38202a..7a37ea0cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0536.py +++ b/githubkit/versions/v2022_11_28/types/group_0536.py @@ -9,150 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0537 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType +from .group_0439 import WebhooksLabelType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" - A git repository - """ + action: Literal["unlabeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", - "WebhookForkPropForkeeAllof0Type", -) +__all__ = ("WebhookDiscussionUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0537.py b/githubkit/versions/v2022_11_28/types/group_0537.py index a6cb9b92f..30f0ed937 100644 --- a/githubkit/versions/v2022_11_28/types/group_0537.py +++ b/githubkit/versions/v2022_11_28/types/group_0537.py @@ -9,17 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" + action: Literal["unlocked"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0538.py b/githubkit/versions/v2022_11_28/types/group_0538.py index 624daaf0c..66b779dad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0538.py +++ b/githubkit/versions/v2022_11_28/types/group_0538.py @@ -9,122 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0437 import DiscussionType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[list[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" + action: Literal["unpinned"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", - "WebhookForkPropForkeeAllof1Type", -) +__all__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0539.py b/githubkit/versions/v2022_11_28/types/group_0539.py index 52c10d4b8..7b74d8dac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0539.py +++ b/githubkit/versions/v2022_11_28/types/group_0539.py @@ -9,17 +9,28 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0540 import WebhookForkPropForkeeType -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" +class WebhookForkType(TypedDict): + """fork event - action: Literal["revoked"] + A user forks a repository. + """ + + enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookForkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0540.py b/githubkit/versions/v2022_11_28/types/group_0540.py index b95747cb3..8f66de732 100644 --- a/githubkit/versions/v2022_11_28/types/group_0540.py +++ b/githubkit/versions/v2022_11_28/types/group_0540.py @@ -9,39 +9,151 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0542 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pages: list[WebhookGollumPropPagesItemsType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: datetime + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[Union[str, None], None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: Literal[True] + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[Union[str, None], None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[None, None] + languages_url: str + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[None, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: WebhookForkPropForkeeMergedOwnerType + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: datetime + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookGollumPropPagesItemsType", - "WebhookGollumType", + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", + "WebhookForkPropForkeeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0541.py b/githubkit/versions/v2022_11_28/types/group_0541.py index efa1a9b89..822611cb7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0541.py +++ b/githubkit/versions/v2022_11_28/types/group_0541.py @@ -9,29 +9,150 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType -from .group_0435 import WebhooksRepositoriesItemsType +from .group_0542 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] - sender: SimpleUserType + A git repository + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationCreatedType",) + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", + "WebhookForkPropForkeeAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0542.py b/githubkit/versions/v2022_11_28/types/group_0542.py index 918e1b5fb..a6cb9b92f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0542.py +++ b/githubkit/versions/v2022_11_28/types/group_0542.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0435 import WebhooksRepositoriesItemsType +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType - -__all__ = ("WebhookInstallationDeletedType",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0543.py b/githubkit/versions/v2022_11_28/types/group_0543.py index 50e04bdb4..624daaf0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0543.py +++ b/githubkit/versions/v2022_11_28/types/group_0543.py @@ -9,28 +9,122 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0435 import WebhooksRepositoriesItemsType +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[list[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] - action: Literal["new_permissions_accepted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[list[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserType +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" -__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", + "WebhookForkPropForkeeAllof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0544.py b/githubkit/versions/v2022_11_28/types/group_0544.py index 1ecb8446e..52c10d4b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0544.py +++ b/githubkit/versions/v2022_11_28/types/group_0544.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType -from .group_0436 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" - - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserType -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" - full_name: NotRequired[str] - id: NotRequired[int] - name: NotRequired[str] - node_id: NotRequired[str] - private: NotRequired[bool] + action: Literal["revoked"] + sender: SimpleUserType -__all__ = ( - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesAddedType", -) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0545.py b/githubkit/versions/v2022_11_28/types/group_0545.py index 0a2384ee3..31ac7674f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0545.py +++ b/githubkit/versions/v2022_11_28/types/group_0545.py @@ -13,42 +13,35 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0018 import InstallationType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType -from .group_0436 import WebhooksRepositoriesAddedItemsType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: list[WebhooksRepositoriesAddedItemsType] - repositories_removed: list[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] + pages: list[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" - full_name: str - id: int - name: str - node_id: str - private: bool + action: Literal["created", "edited"] + html_url: str + page_name: str + sha: str + summary: Union[str, None] + title: str __all__ = ( - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", - "WebhookInstallationRepositoriesRemovedType", + "WebhookGollumPropPagesItemsType", + "WebhookGollumType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0546.py b/githubkit/versions/v2022_11_28/types/group_0546.py index fc8a4a4bf..7aeee5143 100644 --- a/githubkit/versions/v2022_11_28/types/group_0546.py +++ b/githubkit/versions/v2022_11_28/types/group_0546.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0435 import WebhooksRepositoriesItemsType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType +from .group_0440 import WebhooksRepositoriesItemsType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["suspend"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + requester: NotRequired[Union[WebhooksUserType, None]] sender: SimpleUserType -__all__ = ("WebhookInstallationSuspendType",) +__all__ = ("WebhookInstallationCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0547.py b/githubkit/versions/v2022_11_28/types/group_0547.py index 870155ff6..695ecc3de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0547.py +++ b/githubkit/versions/v2022_11_28/types/group_0547.py @@ -9,95 +9,28 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0018 import InstallationType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0440 import WebhooksRepositoriesItemsType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - target_type: str + requester: NotRequired[None] + sender: SimpleUserType -class WebhookInstallationTargetRenamedPropAccountType(TypedDict): - """WebhookInstallationTargetRenamedPropAccount""" - - archived_at: NotRequired[Union[str, None]] - avatar_url: str - created_at: NotRequired[str] - description: NotRequired[None] - events_url: NotRequired[str] - followers: NotRequired[int] - followers_url: NotRequired[str] - following: NotRequired[int] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - hooks_url: NotRequired[str] - html_url: str - id: int - is_verified: NotRequired[bool] - issues_url: NotRequired[str] - login: NotRequired[str] - members_url: NotRequired[str] - name: NotRequired[str] - node_id: str - organizations_url: NotRequired[str] - public_gists: NotRequired[int] - public_members_url: NotRequired[str] - public_repos: NotRequired[int] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - slug: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - website_url: NotRequired[None] - user_view_type: NotRequired[str] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str - - -__all__ = ( - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedType", -) +__all__ = ("WebhookInstallationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0548.py b/githubkit/versions/v2022_11_28/types/group_0548.py index a970d3023..3b2eb233f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0548.py +++ b/githubkit/versions/v2022_11_28/types/group_0548.py @@ -14,16 +14,16 @@ from .group_0003 import SimpleUserType from .group_0018 import InstallationType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0435 import WebhooksRepositoriesItemsType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0440 import WebhooksRepositoriesItemsType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["unsuspend"] + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,4 +33,4 @@ class WebhookInstallationUnsuspendType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0549.py b/githubkit/versions/v2022_11_28/types/group_0549.py index ef902c03d..ebd566c3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0549.py +++ b/githubkit/versions/v2022_11_28/types/group_0549.py @@ -9,29 +9,46 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0550 import WebhookIssueCommentCreatedPropCommentType -from .group_0551 import WebhookIssueCommentCreatedPropIssueType +from .group_0018 import InstallationType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType +from .group_0441 import WebhooksRepositoriesAddedItemsType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType + ] + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] sender: SimpleUserType -__all__ = ("WebhookIssueCommentCreatedType",) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + node_id: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ( + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesAddedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0550.py b/githubkit/versions/v2022_11_28/types/group_0550.py index 70fa2faff..684508e58 100644 --- a/githubkit/versions/v2022_11_28/types/group_0550.py +++ b/githubkit/versions/v2022_11_28/types/group_0550.py @@ -9,87 +9,46 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0010 import IntegrationType - - -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType +from .group_0441 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: list[WebhooksRepositoriesAddedItemsType] + repositories_removed: list[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType, None] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserType - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + name: str + node_id: str + private: bool __all__ = ( - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", - "WebhookIssueCommentCreatedPropCommentType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookInstallationRepositoriesRemovedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0551.py b/githubkit/versions/v2022_11_28/types/group_0551.py index 55604004d..3cf392f5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0551.py +++ b/githubkit/versions/v2022_11_28/types/group_0551.py @@ -9,157 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType -from .group_0553 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0558 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0560 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0561 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0440 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ + action: Literal["suspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", - "WebhookIssueCommentCreatedPropIssueType", -) +__all__ = ("WebhookInstallationSuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0552.py b/githubkit/versions/v2022_11_28/types/group_0552.py index 7b421a6bb..3e092b9d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0552.py +++ b/githubkit/versions/v2022_11_28/types/group_0552.py @@ -9,162 +9,95 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType -from .group_0553 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) -from .group_0555 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0557 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0558 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, -) +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None - ] - ] - pull_request: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + target_type: str + + +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] events_url: NotRequired[str] + followers: NotRequired[int] followers_url: NotRequired[str] + following: NotRequired[int] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] - html_url: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - login: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] + node_id: str organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] received_events_url: NotRequired[str] repos_url: NotRequired[str] site_admin: NotRequired[bool] + slug: NotRequired[str] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + website_url: NotRequired[None] user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0553.py b/githubkit/versions/v2022_11_28/types/group_0553.py index 088b44492..2becb46f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0553.py +++ b/githubkit/versions/v2022_11_28/types/group_0553.py @@ -9,62 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0018 import InstallationType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0440 import WebhooksRepositoriesItemsType -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" + action: Literal["unsuspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[list[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookInstallationUnsuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0554.py b/githubkit/versions/v2022_11_28/types/group_0554.py index 2a39d32cf..49f2ceb0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0554.py +++ b/githubkit/versions/v2022_11_28/types/group_0554.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0555 import WebhookIssueCommentCreatedPropCommentType +from .group_0556 import WebhookIssueCommentCreatedPropIssueType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" + + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0555.py b/githubkit/versions/v2022_11_28/types/group_0555.py index cd0a29246..70fa2faff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0555.py +++ b/githubkit/versions/v2022_11_28/types/group_0555.py @@ -11,37 +11,85 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0554 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +from .group_0010 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - A collection of related issues and pull requests. + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - description: Union[str, None] - due_on: Union[datetime, None] + body: str + created_at: datetime html_url: str id: int - labels_url: str + issue_url: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType updated_at: datetime url: str + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] + + +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +__all__ = ( + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookIssueCommentCreatedPropCommentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0556.py b/githubkit/versions/v2022_11_28/types/group_0556.py index b261a91af..ea8302ac1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0556.py +++ b/githubkit/versions/v2022_11_28/types/group_0556.py @@ -9,14 +9,87 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0043 import IssueTypeType +from .group_0558 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0563 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0565 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0566 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, +) + + +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" + +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,58 +110,56 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0557.py b/githubkit/versions/v2022_11_28/types/group_0557.py index 5f9d43724..fb241a0f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0557.py +++ b/githubkit/versions/v2022_11_28/types/group_0557.py @@ -10,41 +10,161 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0556 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0043 import IssueTypeType +from .group_0558 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) +from .group_0560 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0562 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0563 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0558.py b/githubkit/versions/v2022_11_28/types/group_0558.py index ef1c4a5c5..088b44492 100644 --- a/githubkit/versions/v2022_11_28/types/group_0558.py +++ b/githubkit/versions/v2022_11_28/types/group_0558.py @@ -9,15 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0559.py b/githubkit/versions/v2022_11_28/types/group_0559.py index 7b1858f2a..2a39d32cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0559.py +++ b/githubkit/versions/v2022_11_28/types/group_0559.py @@ -13,49 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,75 +40,4 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", - "WebhookIssueCommentCreatedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0560.py b/githubkit/versions/v2022_11_28/types/group_0560.py index e7153a403..9c470d58a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0560.py +++ b/githubkit/versions/v2022_11_28/types/group_0560.py @@ -13,13 +13,16 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0554 import ( +from .group_0559 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -41,4 +44,4 @@ class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0561.py b/githubkit/versions/v2022_11_28/types/group_0561.py index c894db309..b261a91af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0561.py +++ b/githubkit/versions/v2022_11_28/types/group_0561.py @@ -9,36 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0556 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0562.py b/githubkit/versions/v2022_11_28/types/group_0562.py index dceb611dc..fd58bf736 100644 --- a/githubkit/versions/v2022_11_28/types/group_0562.py +++ b/githubkit/versions/v2022_11_28/types/group_0562.py @@ -9,29 +9,42 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0437 import WebhooksIssueCommentType -from .group_0563 import WebhookIssueCommentDeletedPropIssueType - - -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" - - action: Literal["deleted"] - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentDeletedType",) +from .group_0561 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0563.py b/githubkit/versions/v2022_11_28/types/group_0563.py index 12dac7f37..ef1c4a5c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0563.py +++ b/githubkit/versions/v2022_11_28/types/group_0563.py @@ -9,157 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0040 import IssueTypeType -from .group_0565 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0570 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0572 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0573 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", - "WebhookIssueCommentDeletedPropIssueType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0564.py b/githubkit/versions/v2022_11_28/types/group_0564.py index dfb37c7d5..7b1858f2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0564.py +++ b/githubkit/versions/v2022_11_28/types/group_0564.py @@ -9,91 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType -from .group_0565 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) -from .group_0567 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0569 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0570 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None ] ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -120,36 +82,57 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict) user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -157,14 +140,17 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0565.py b/githubkit/versions/v2022_11_28/types/group_0565.py index 0cf270ec9..8402b60dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0565.py +++ b/githubkit/versions/v2022_11_28/types/group_0565.py @@ -11,60 +11,34 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +from .group_0559 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - color: str - default: bool + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0566.py b/githubkit/versions/v2022_11_28/types/group_0566.py index b8118ecd1..1c19879fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0566.py +++ b/githubkit/versions/v2022_11_28/types/group_0566.py @@ -9,35 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) +from .group_0561 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0567.py b/githubkit/versions/v2022_11_28/types/group_0567.py index ac9d821be..e3771c1eb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0567.py +++ b/githubkit/versions/v2022_11_28/types/group_0567.py @@ -9,39 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0566 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0442 import WebhooksIssueCommentType +from .group_0568 import WebhookIssueCommentDeletedPropIssueType + + +class WebhookIssueCommentDeletedType(TypedDict): + """issue_comment deleted event""" + + action: Literal["deleted"] + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0568.py b/githubkit/versions/v2022_11_28/types/group_0568.py index 078dc1e49..665af0456 100644 --- a/githubkit/versions/v2022_11_28/types/group_0568.py +++ b/githubkit/versions/v2022_11_28/types/group_0568.py @@ -9,14 +9,87 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0043 import IssueTypeType +from .group_0570 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0575 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, +) +from .group_0577 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0578 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, +) + + +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentDeletedPropIssueMergedUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" + +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,58 +110,56 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0569.py b/githubkit/versions/v2022_11_28/types/group_0569.py index d687a9cce..49d33ce50 100644 --- a/githubkit/versions/v2022_11_28/types/group_0569.py +++ b/githubkit/versions/v2022_11_28/types/group_0569.py @@ -10,41 +10,161 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0568 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0043 import IssueTypeType +from .group_0570 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) +from .group_0572 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0574 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0575 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + ] ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0570.py b/githubkit/versions/v2022_11_28/types/group_0570.py index aa70cbec8..0cf270ec9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0570.py +++ b/githubkit/versions/v2022_11_28/types/group_0570.py @@ -9,15 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0571.py b/githubkit/versions/v2022_11_28/types/group_0571.py index 0664cda5a..b8118ecd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0571.py +++ b/githubkit/versions/v2022_11_28/types/group_0571.py @@ -13,49 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,76 +40,4 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", - "WebhookIssueCommentDeletedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0572.py b/githubkit/versions/v2022_11_28/types/group_0572.py index b20de363d..30a30f807 100644 --- a/githubkit/versions/v2022_11_28/types/group_0572.py +++ b/githubkit/versions/v2022_11_28/types/group_0572.py @@ -13,13 +13,16 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0566 import ( +from .group_0571 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -41,4 +44,4 @@ class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0573.py b/githubkit/versions/v2022_11_28/types/group_0573.py index 9a7393072..078dc1e49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0573.py +++ b/githubkit/versions/v2022_11_28/types/group_0573.py @@ -9,36 +9,86 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0568 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0574.py b/githubkit/versions/v2022_11_28/types/group_0574.py index 6e6454181..cfeca76b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0574.py +++ b/githubkit/versions/v2022_11_28/types/group_0574.py @@ -9,31 +9,42 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0437 import WebhooksIssueCommentType -from .group_0438 import WebhooksChangesType -from .group_0575 import WebhookIssueCommentEditedPropIssueType - - -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" - - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssueCommentEditedType",) +from .group_0573 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0575.py b/githubkit/versions/v2022_11_28/types/group_0575.py index 9adecdd0e..aa70cbec8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0575.py +++ b/githubkit/versions/v2022_11_28/types/group_0575.py @@ -9,155 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0040 import IssueTypeType -from .group_0577 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) -from .group_0582 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -from .group_0584 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0585 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue + total: int + completed: int + percent_completed: int - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", - "WebhookIssueCommentEditedPropIssueType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0576.py b/githubkit/versions/v2022_11_28/types/group_0576.py index 4f3eb6760..0664cda5a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0576.py +++ b/githubkit/versions/v2022_11_28/types/group_0576.py @@ -9,89 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType -from .group_0577 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) -from .group_0579 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0581 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0582 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None ] ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -118,36 +82,57 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str url: str -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -155,14 +140,18 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", - "WebhookIssueCommentEditedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0577.py b/githubkit/versions/v2022_11_28/types/group_0577.py index 398fe7733..effb3c78a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0577.py +++ b/githubkit/versions/v2022_11_28/types/group_0577.py @@ -11,60 +11,34 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +from .group_0571 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - color: str - default: bool + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0578.py b/githubkit/versions/v2022_11_28/types/group_0578.py index 9ac4a4c4e..a176994f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0578.py +++ b/githubkit/versions/v2022_11_28/types/group_0578.py @@ -9,35 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) +from .group_0573 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0579.py b/githubkit/versions/v2022_11_28/types/group_0579.py index 4684a9d8c..74cab5fc2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0579.py +++ b/githubkit/versions/v2022_11_28/types/group_0579.py @@ -9,39 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import TypedDict - -from .group_0578 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0442 import WebhooksIssueCommentType +from .group_0443 import WebhooksChangesType +from .group_0580 import WebhookIssueCommentEditedPropIssueType + + +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" + + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +__all__ = ("WebhookIssueCommentEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0580.py b/githubkit/versions/v2022_11_28/types/group_0580.py index 3b96ed6e4..ed18c8bc3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0580.py +++ b/githubkit/versions/v2022_11_28/types/group_0580.py @@ -9,14 +9,85 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0043 import IssueTypeType +from .group_0582 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) +from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType +from .group_0589 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0590 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, +) + + +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: list[WebhookIssueCommentEditedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssueCommentEditedPropIssueMergedUserType + -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,57 +108,56 @@ class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - The set of permissions for the GitHub app - """ - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", + "WebhookIssueCommentEditedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0581.py b/githubkit/versions/v2022_11_28/types/group_0581.py index 7544de693..bf4d6f107 100644 --- a/githubkit/versions/v2022_11_28/types/group_0581.py +++ b/githubkit/versions/v2022_11_28/types/group_0581.py @@ -10,41 +10,159 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0580 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0043 import IssueTypeType +from .group_0582 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) +from .group_0584 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0586 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0587 import WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + list[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + ] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", + "WebhookIssueCommentEditedPropIssueAllof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0582.py b/githubkit/versions/v2022_11_28/types/group_0582.py index 5c991e61e..398fe7733 100644 --- a/githubkit/versions/v2022_11_28/types/group_0582.py +++ b/githubkit/versions/v2022_11_28/types/group_0582.py @@ -9,15 +9,62 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" - total: int - completed: int - percent_completed: int + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0583.py b/githubkit/versions/v2022_11_28/types/group_0583.py index d5d49ac59..9ac4a4c4e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0583.py +++ b/githubkit/versions/v2022_11_28/types/group_0583.py @@ -13,49 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - list[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,75 +40,4 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", - "WebhookIssueCommentEditedPropIssueAllof1Type", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0584.py b/githubkit/versions/v2022_11_28/types/group_0584.py index 283944640..f9e6e16a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0584.py +++ b/githubkit/versions/v2022_11_28/types/group_0584.py @@ -13,13 +13,16 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0578 import ( +from .group_0583 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -41,4 +44,4 @@ class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0585.py b/githubkit/versions/v2022_11_28/types/group_0585.py index 4061ce0ba..3b96ed6e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0585.py +++ b/githubkit/versions/v2022_11_28/types/group_0585.py @@ -9,36 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0580 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0586.py b/githubkit/versions/v2022_11_28/types/group_0586.py index 44769bafa..4d8dc9765 100644 --- a/githubkit/versions/v2022_11_28/types/group_0586.py +++ b/githubkit/versions/v2022_11_28/types/group_0586.py @@ -9,29 +9,42 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType -from .group_0439 import WebhooksIssueType - - -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" - - action: Literal["assigned"] - assignee: NotRequired[Union[WebhooksUserType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssuesAssignedType",) +from .group_0585 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0587.py b/githubkit/versions/v2022_11_28/types/group_0587.py index 2b53e887d..5c991e61e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0587.py +++ b/githubkit/versions/v2022_11_28/types/group_0587.py @@ -9,27 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0588 import WebhookIssuesClosedPropIssueType +class WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" + total: int + completed: int + percent_completed: int - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - -__all__ = ("WebhookIssuesClosedType",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropSubIssuesSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0588.py b/githubkit/versions/v2022_11_28/types/group_0588.py index 123ee50aa..d5d49ac59 100644 --- a/githubkit/versions/v2022_11_28/types/group_0588.py +++ b/githubkit/versions/v2022_11_28/types/group_0588.py @@ -9,76 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType -from .group_0594 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, -) -from .group_0596 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0597 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType - - -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + list[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: list[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -104,35 +82,12 @@ class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignees""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -143,36 +98,41 @@ class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -180,16 +140,17 @@ class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] - user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", - "WebhookIssuesClosedPropIssueType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0589.py b/githubkit/versions/v2022_11_28/types/group_0589.py index 6509a318d..a503cd448 100644 --- a/githubkit/versions/v2022_11_28/types/group_0589.py +++ b/githubkit/versions/v2022_11_28/types/group_0589.py @@ -11,189 +11,34 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0040 import IssueTypeType -from .group_0591 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0593 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -from .group_0594 import ( - WebhookIssuesClosedPropIssueAllof0PropPullRequestType, - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +from .group_0583 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] closed_at: Union[datetime, None] - comments: int - comments_url: str + closed_issues: int created_at: datetime - draft: NotRequired[bool] - events_url: str + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] node_id: str number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] + open_issues: int + state: Literal["open", "closed"] title: str - type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", - "WebhookIssuesClosedPropIssueAllof0Type", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0590.py b/githubkit/versions/v2022_11_28/types/group_0590.py index 2a05f2e97..6755ea817 100644 --- a/githubkit/versions/v2022_11_28/types/group_0590.py +++ b/githubkit/versions/v2022_11_28/types/group_0590.py @@ -9,35 +9,36 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict - -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) +from .group_0585 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0591.py b/githubkit/versions/v2022_11_28/types/group_0591.py index 1ed5ab082..d6abb993b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0591.py +++ b/githubkit/versions/v2022_11_28/types/group_0591.py @@ -9,35 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0590 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType +from .group_0444 import WebhooksIssueType -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssuesAssignedType(TypedDict): + """issues assigned event""" - A collection of related issues and pull requests. - """ + action: Literal["assigned"] + assignee: NotRequired[Union[WebhooksUserType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssuesAssignedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0592.py b/githubkit/versions/v2022_11_28/types/group_0592.py index 77496d06f..951f54896 100644 --- a/githubkit/versions/v2022_11_28/types/group_0592.py +++ b/githubkit/versions/v2022_11_28/types/group_0592.py @@ -9,85 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0593 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0593.py b/githubkit/versions/v2022_11_28/types/group_0593.py index d038cb709..5ea03a092 100644 --- a/githubkit/versions/v2022_11_28/types/group_0593.py +++ b/githubkit/versions/v2022_11_28/types/group_0593.py @@ -10,40 +10,186 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0592 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0043 import IssueTypeType +from .group_0599 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, ) +from .group_0601 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0602 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] + assignees: list[WebhookIssuesClosedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueMergedReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType + + +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssuesClosedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedReactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): + """WebhookIssuesClosedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", + "WebhookIssuesClosedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0594.py b/githubkit/versions/v2022_11_28/types/group_0594.py index 2fe4e0efb..046857883 100644 --- a/githubkit/versions/v2022_11_28/types/group_0594.py +++ b/githubkit/versions/v2022_11_28/types/group_0594.py @@ -10,29 +10,190 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0043 import IssueTypeType +from .group_0596 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0598 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from .group_0599 import ( + WebhookIssuesClosedPropIssueAllof0PropPullRequestType, + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType, +) + + +class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - total: int - completed: int - percent_completed: int +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", - "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssuesClosedPropIssueAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0595.py b/githubkit/versions/v2022_11_28/types/group_0595.py index 06e71289d..2a05f2e97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0595.py +++ b/githubkit/versions/v2022_11_28/types/group_0595.py @@ -13,95 +13,21 @@ from typing_extensions import NotRequired, TypedDict -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,18 +35,9 @@ class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", - "WebhookIssuesClosedPropIssueAllof1Type", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0596.py b/githubkit/versions/v2022_11_28/types/group_0596.py index 6878b0824..049a3453e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0596.py +++ b/githubkit/versions/v2022_11_28/types/group_0596.py @@ -13,11 +13,14 @@ from typing import Literal, Union from typing_extensions import TypedDict -from .group_0590 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -37,4 +40,4 @@ class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0597.py b/githubkit/versions/v2022_11_28/types/group_0597.py index 7f35fbb15..77496d06f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0597.py +++ b/githubkit/versions/v2022_11_28/types/group_0597.py @@ -9,35 +9,85 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0592 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0598.py b/githubkit/versions/v2022_11_28/types/group_0598.py index f75d43c84..90cb2c500 100644 --- a/githubkit/versions/v2022_11_28/types/group_0598.py +++ b/githubkit/versions/v2022_11_28/types/group_0598.py @@ -9,27 +9,41 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0599 import WebhookIssuesDeletedPropIssueType - - -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -__all__ = ("WebhookIssuesDeletedType",) +from .group_0597 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) + + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0599.py b/githubkit/versions/v2022_11_28/types/group_0599.py index 3fca37ab1..2fe4e0efb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0599.py +++ b/githubkit/versions/v2022_11_28/types/group_0599.py @@ -10,285 +10,12 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -297,22 +24,7 @@ class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -320,45 +32,7 @@ class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - __all__ = ( - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDeletedPropIssuePropUserType", - "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesClosedPropIssueAllof0PropPullRequestType", + "WebhookIssuesClosedPropIssueAllof0PropSubIssuesSummaryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0600.py b/githubkit/versions/v2022_11_28/types/group_0600.py index c3f952d0b..06e71289d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0600.py +++ b/githubkit/versions/v2022_11_28/types/group_0600.py @@ -9,29 +9,118 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0440 import WebhooksMilestoneType -from .group_0601 import WebhookIssuesDemilestonedPropIssueType +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + ] + assignees: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: Union[str, None] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[ + list[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + ] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" -__all__ = ("WebhookIssuesDemilestonedType",) + +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" + + +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" + + +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0601.py b/githubkit/versions/v2022_11_28/types/group_0601.py index e96cc4d39..35027f53c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0601.py +++ b/githubkit/versions/v2022_11_28/types/group_0601.py @@ -11,146 +11,18 @@ from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0040 import IssueTypeType +from .group_0595 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesDemilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] - ] - assignees: list[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -165,206 +37,4 @@ class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesDemilestonedPropIssuePropUserType", - "WebhookIssuesDemilestonedPropIssueType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0602.py b/githubkit/versions/v2022_11_28/types/group_0602.py index 70d7e7977..60add9b97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0602.py +++ b/githubkit/versions/v2022_11_28/types/group_0602.py @@ -9,57 +9,35 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType -from .group_0603 import WebhookIssuesEditedPropIssueType - - -class WebhookIssuesEditedType(TypedDict): - """issues edited event""" - - action: Literal["edited"] - changes: WebhookIssuesEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesEditedPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str +from .group_0597 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -__all__ = ( - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedType", -) +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0603.py b/githubkit/versions/v2022_11_28/types/group_0603.py index a1ce91357..00399d9b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0603.py +++ b/githubkit/versions/v2022_11_28/types/group_0603.py @@ -9,355 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0604 import WebhookIssuesDeletedPropIssueType -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDeletedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesEditedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] - -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesEditedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesEditedPropIssuePropUserType", - "WebhookIssuesEditedPropIssueType", -) +__all__ = ("WebhookIssuesDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0604.py b/githubkit/versions/v2022_11_28/types/group_0604.py index 2ccb00c93..6c67f12d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0604.py +++ b/githubkit/versions/v2022_11_28/types/group_0604.py @@ -9,29 +9,356 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType -from .group_0605 import WebhookIssuesLabeledPropIssueType +from .group_0043 import IssueTypeType -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" +class WebhookIssuesDeletedPropIssueType(TypedDict): + """Issue - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLabeledType",) + +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDeletedPropIssuePropUserType", + "WebhookIssuesDeletedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0605.py b/githubkit/versions/v2022_11_28/types/group_0605.py index e303a2e02..aebf81320 100644 --- a/githubkit/versions/v2022_11_28/types/group_0605.py +++ b/githubkit/versions/v2022_11_28/types/group_0605.py @@ -9,355 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0445 import WebhooksMilestoneType +from .group_0606 import WebhookIssuesDemilestonedPropIssueType -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["demilestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] - -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLabeledPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLabeledPropIssuePropUserType", - "WebhookIssuesLabeledPropIssueType", -) +__all__ = ("WebhookIssuesDemilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0606.py b/githubkit/versions/v2022_11_28/types/group_0606.py index 3651af4a2..90692d80c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0606.py +++ b/githubkit/versions/v2022_11_28/types/group_0606.py @@ -9,27 +9,362 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0607 import WebhookIssuesLockedPropIssueType +from .group_0043 import IssueTypeType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" +class WebhookIssuesDemilestonedPropIssueType(TypedDict): + """Issue - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] + ] + assignees: list[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesLockedType",) + +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesDemilestonedPropIssuePropUserType", + "WebhookIssuesDemilestonedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0607.py b/githubkit/versions/v2022_11_28/types/group_0607.py index 09b301336..ed44de305 100644 --- a/githubkit/versions/v2022_11_28/types/group_0607.py +++ b/githubkit/versions/v2022_11_28/types/group_0607.py @@ -9,358 +9,57 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType +from .group_0608 import WebhookIssuesEditedPropIssueType -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesLockedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - type: NotRequired[Union[IssueTypeType, None]] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhooksLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges - -class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + The changes to the issue. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesLockedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] -class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" - total: int - completed: int - percent_completed: int + from_: str -class WebhookIssuesLockedPropIssuePropUserType(TypedDict): - """User""" +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: str __all__ = ( - "WebhookIssuesLockedPropIssuePropAssigneeType", - "WebhookIssuesLockedPropIssuePropAssigneesItemsType", - "WebhookIssuesLockedPropIssuePropLabelsItemsType", - "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLockedPropIssuePropMilestoneType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssuePropPullRequestType", - "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesLockedPropIssuePropUserType", - "WebhookIssuesLockedPropIssueType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0608.py b/githubkit/versions/v2022_11_28/types/group_0608.py index 813946766..ffdbba456 100644 --- a/githubkit/versions/v2022_11_28/types/group_0608.py +++ b/githubkit/versions/v2022_11_28/types/group_0608.py @@ -9,29 +9,355 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0440 import WebhooksMilestoneType -from .group_0609 import WebhookIssuesMilestonedPropIssueType +from .group_0043 import IssueTypeType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" +class WebhookIssuesEditedPropIssueType(TypedDict): + """Issue - action: Literal["milestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesEditedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesEditedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesMilestonedType",) + +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesEditedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesEditedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesEditedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0609.py b/githubkit/versions/v2022_11_28/types/group_0609.py index 7f92fd248..2182cd921 100644 --- a/githubkit/versions/v2022_11_28/types/group_0609.py +++ b/githubkit/versions/v2022_11_28/types/group_0609.py @@ -9,356 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType +from .group_0610 import WebhookIssuesLabeledPropIssueType -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """Issue +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["labeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] - -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesMilestonedPropIssuePropUserType", - "WebhookIssuesMilestonedPropIssueType", -) +__all__ = ("WebhookIssuesLabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0610.py b/githubkit/versions/v2022_11_28/types/group_0610.py index 6019d695c..e112e16be 100644 --- a/githubkit/versions/v2022_11_28/types/group_0610.py +++ b/githubkit/versions/v2022_11_28/types/group_0610.py @@ -9,29 +9,355 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0611 import WebhookIssuesOpenedPropChangesType -from .group_0613 import WebhookIssuesOpenedPropIssueType +from .group_0043 import IssueTypeType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookIssuesLabeledPropIssueType(TypedDict): + """Issue - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[list[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] -__all__ = ("WebhookIssuesOpenedType",) + +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesLabeledPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0611.py b/githubkit/versions/v2022_11_28/types/group_0611.py index ea44683f2..ac50648c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0611.py +++ b/githubkit/versions/v2022_11_28/types/group_0611.py @@ -9,189 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0612 import WebhookIssuesOpenedPropChangesPropOldIssueType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0612 import WebhookIssuesLockedPropIssueType -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + action: Literal["locked"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesLockedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_discussions: NotRequired[bool] - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesType", -) +__all__ = ("WebhookIssuesLockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0612.py b/githubkit/versions/v2022_11_28/types/group_0612.py index b61c1827c..f1fda9511 100644 --- a/githubkit/versions/v2022_11_28/types/group_0612.py +++ b/githubkit/versions/v2022_11_28/types/group_0612.py @@ -13,86 +13,67 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0043 import IssueTypeType -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): +class WebhookIssuesLockedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - active_lock_reason: NotRequired[ - Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - assignees: NotRequired[ - list[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None - ] - ] - ] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[datetime, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[datetime] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime draft: NotRequired[bool] - events_url: NotRequired[str] - html_url: NotRequired[str] + events_url: str + html_url: str id: int labels: NotRequired[ - list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + list[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] ] - node_id: NotRequired[str] + labels_url: str + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] + node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] - repository_url: NotRequired[str] + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType + repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType + WebhookIssuesLockedPropIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[datetime] - url: NotRequired[str] - user: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - ] type: NotRequired[Union[IssueTypeType, None]] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -119,7 +100,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -146,7 +127,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -158,7 +139,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): +class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -167,9 +148,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -184,7 +163,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -211,9 +190,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(Typ user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -231,19 +208,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -270,11 +244,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn user_view_type: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -316,8 +289,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLockedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -326,7 +299,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): +class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -341,7 +314,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesLockedPropIssuePropSubIssuesSummaryType(TypedDict): """Sub-issues Summary""" total: int @@ -349,7 +322,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDi percent_completed: int -class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): +class WebhookIssuesLockedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -377,17 +350,17 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesLockedPropIssuePropUserType", + "WebhookIssuesLockedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0613.py b/githubkit/versions/v2022_11_28/types/group_0613.py index 08e000bdb..e9b58442a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0613.py +++ b/githubkit/versions/v2022_11_28/types/group_0613.py @@ -9,356 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0445 import WebhooksMilestoneType +from .group_0614 import WebhookIssuesMilestonedPropIssueType -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["milestoned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropIssueType", -) +__all__ = ("WebhookIssuesMilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0614.py b/githubkit/versions/v2022_11_28/types/group_0614.py index 8004a00fb..99cc40cfc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0614.py +++ b/githubkit/versions/v2022_11_28/types/group_0614.py @@ -9,27 +9,356 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0441 import WebhooksIssue2Type +from .group_0043 import IssueTypeType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue - action: Literal["pinned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] -__all__ = ("WebhookIssuesPinnedType",) + +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesMilestonedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesMilestonedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0615.py b/githubkit/versions/v2022_11_28/types/group_0615.py index beb833225..99c519232 100644 --- a/githubkit/versions/v2022_11_28/types/group_0615.py +++ b/githubkit/versions/v2022_11_28/types/group_0615.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0616 import WebhookIssuesReopenedPropIssueType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0616 import WebhookIssuesOpenedPropChangesType +from .group_0618 import WebhookIssuesOpenedPropIssueType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - action: Literal["reopened"] + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + issue: WebhookIssuesOpenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesReopenedType",) +__all__ = ("WebhookIssuesOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0616.py b/githubkit/versions/v2022_11_28/types/group_0616.py index f4b97d26f..4211d2fe2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0616.py +++ b/githubkit/versions/v2022_11_28/types/group_0616.py @@ -10,212 +10,147 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0040 import IssueTypeType +from .group_0617 import WebhookIssuesOpenedPropChangesPropOldIssueType -class WebhookIssuesReopenedPropIssueType(TypedDict): - """Issue +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType - ] - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] - type: NotRequired[Union[IssueTypeType, None]] + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType -class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository - -class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. + A git repository """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str description: Union[str, None] - due_on: Union[datetime, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - number: int + notifications_url: str open_issues: int - state: Literal["open", "closed"] - title: str + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] +WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType(TypedDict): + """License""" - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] + key: str name: str node_id: str - owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + spdx_id: str + url: Union[str, None] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -242,123 +177,21 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - -class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookIssuesReopenedPropIssuePropAssigneeType", - "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", - "WebhookIssuesReopenedPropIssuePropLabelsItemsType", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesReopenedPropIssuePropMilestoneType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssuePropPullRequestType", - "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesReopenedPropIssuePropUserType", - "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0617.py b/githubkit/versions/v2022_11_28/types/group_0617.py index efb54f5d8..300fe178c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0617.py +++ b/githubkit/versions/v2022_11_28/types/group_0617.py @@ -9,29 +9,385 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0441 import WebhooksIssue2Type -from .group_0618 import WebhookIssuesTransferredPropChangesType +from .group_0043 import IssueTypeType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: NotRequired[ + Union[None, Literal["resolved", "off-topic", "too heated", "spam"]] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: NotRequired[ + list[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None + ] + ] + ] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[datetime, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[datetime] + draft: NotRequired[bool] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: int + labels: NotRequired[ + list[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] + ] + labels_url: NotRequired[str] + locked: NotRequired[bool] + milestone: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + ] + node_id: NotRequired[str] + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: NotRequired[WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType] + repository_url: NotRequired[str] + sub_issues_summary: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[datetime] + url: NotRequired[str] + user: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + ] + type: NotRequired[Union[IssueTypeType, None]] -__all__ = ("WebhookIssuesTransferredType",) + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0618.py b/githubkit/versions/v2022_11_28/types/group_0618.py index b1e7389ff..738b7ad00 100644 --- a/githubkit/versions/v2022_11_28/types/group_0618.py +++ b/githubkit/versions/v2022_11_28/types/group_0618.py @@ -10,149 +10,212 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0619 import WebhookIssuesTransferredPropChangesPropNewIssueType +from .group_0043 import IssueTypeType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" +class WebhookIssuesOpenedPropIssueType(TypedDict): + """Issue - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository - - A git repository + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str html_url: str id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str + labels: NotRequired[list[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str node_id: str - notifications_url: str + url: str + + +class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str + state: Literal["open", "closed"] + title: str updated_at: datetime url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] -WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties +class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App - key: str + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - spdx_id: str - url: Union[str, None] + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -179,23 +242,123 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDic user_view_type: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0619.py b/githubkit/versions/v2022_11_28/types/group_0619.py index f122fab36..e6687fb2c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0619.py +++ b/githubkit/versions/v2022_11_28/types/group_0619.py @@ -9,384 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0446 import WebhooksIssue2Type -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): - """Issue +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["pinned"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssue2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: list[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType - repository_url: str - sub_issues_summary: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType - ] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - type: NotRequired[Union[IssueTypeType, None]] - updated_at: datetime - url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[list[str]] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( - TypedDict -): - """Sub-issues Summary""" - - total: int - completed: int - percent_completed: int - - -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", -) +__all__ = ("WebhookIssuesPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0620.py b/githubkit/versions/v2022_11_28/types/group_0620.py index b86b05a5f..38a0e5411 100644 --- a/githubkit/versions/v2022_11_28/types/group_0620.py +++ b/githubkit/versions/v2022_11_28/types/group_0620.py @@ -9,29 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0040 import IssueTypeType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0439 import WebhooksIssueType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0621 import WebhookIssuesReopenedPropIssueType -class WebhookIssuesTypedType(TypedDict): - """issues typed event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["typed"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - type: Union[IssueTypeType, None] + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesTypedType",) +__all__ = ("WebhookIssuesReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0621.py b/githubkit/versions/v2022_11_28/types/group_0621.py index a80680d53..09ef2d552 100644 --- a/githubkit/versions/v2022_11_28/types/group_0621.py +++ b/githubkit/versions/v2022_11_28/types/group_0621.py @@ -9,29 +9,356 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0439 import WebhooksIssueType -from .group_0442 import WebhooksUserMannequinType +from .group_0043 import IssueTypeType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType + ] + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + type: NotRequired[Union[IssueTypeType, None]] -__all__ = ("WebhookIssuesUnassignedType",) + +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesReopenedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" + + total: int + completed: int + percent_completed: int + + +class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesReopenedPropIssueType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0622.py b/githubkit/versions/v2022_11_28/types/group_0622.py index 4a172d139..2f21d8f87 100644 --- a/githubkit/versions/v2022_11_28/types/group_0622.py +++ b/githubkit/versions/v2022_11_28/types/group_0622.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType -from .group_0439 import WebhooksIssueType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0446 import WebhooksIssue2Type +from .group_0623 import WebhookIssuesTransferredPropChangesType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["unlabeled"] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnlabeledType",) +__all__ = ("WebhookIssuesTransferredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0623.py b/githubkit/versions/v2022_11_28/types/group_0623.py index d76df477a..9688d13b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0623.py +++ b/githubkit/versions/v2022_11_28/types/group_0623.py @@ -9,27 +9,193 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0624 import WebhookIssuesUnlockedPropIssueType +from .group_0624 import WebhookIssuesTransferredPropChangesPropNewIssueType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" - action: Literal["unlocked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType -__all__ = ("WebhookIssuesUnlockedType",) +class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0624.py b/githubkit/versions/v2022_11_28/types/group_0624.py index 9775db832..1a24db3d7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0624.py +++ b/githubkit/versions/v2022_11_28/types/group_0624.py @@ -13,10 +13,10 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0040 import IssueTypeType +from .group_0043 import IssueTypeType -class WebhookIssuesUnlockedPropIssueType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -25,8 +25,14 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] - assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: list[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -47,21 +53,28 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + list[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] ] labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + locked: NotRequired[bool] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType repository_url: str sub_issues_summary: NotRequired[ - WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType ] state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -70,10 +83,10 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): type: NotRequired[Union[IssueTypeType, None]] updated_at: datetime url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -100,7 +113,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -127,7 +140,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -139,7 +152,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -148,7 +161,10 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, + None, + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -163,7 +179,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -190,7 +208,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( + TypedDict +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -208,16 +228,19 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -244,10 +267,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed user_view_type: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions The set of permissions for the GitHub app """ @@ -289,8 +313,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -299,7 +323,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -314,7 +338,9 @@ class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType( + TypedDict +): """Sub-issues Summary""" total: int @@ -322,7 +348,7 @@ class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): percent_completed: int -class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): +class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -350,17 +376,17 @@ class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", - "WebhookIssuesUnlockedPropIssuePropUserType", - "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropSubIssuesSummaryType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0625.py b/githubkit/versions/v2022_11_28/types/group_0625.py index a463c027b..af94c9d0a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0625.py +++ b/githubkit/versions/v2022_11_28/types/group_0625.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0441 import WebhooksIssue2Type +from .group_0043 import IssueTypeType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0444 import WebhooksIssueType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesTypedType(TypedDict): + """issues typed event""" - action: Literal["unpinned"] + action: Literal["typed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhooksIssueType + type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUnpinnedType",) +__all__ = ("WebhookIssuesTypedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0626.py b/githubkit/versions/v2022_11_28/types/group_0626.py index 84531c742..ef2d2eed6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0626.py +++ b/githubkit/versions/v2022_11_28/types/group_0626.py @@ -13,25 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0040 import IssueTypeType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0439 import WebhooksIssueType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0444 import WebhooksIssueType +from .group_0447 import WebhooksUserMannequinType -class WebhookIssuesUntypedType(TypedDict): - """issues untyped event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["untyped"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssueType - type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookIssuesUntypedType",) +__all__ = ("WebhookIssuesUnassignedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0627.py b/githubkit/versions/v2022_11_28/types/group_0627.py index 839c603cc..b20fbad3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0627.py +++ b/githubkit/versions/v2022_11_28/types/group_0627.py @@ -13,23 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType +from .group_0444 import WebhooksIssueType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["created"] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookLabelCreatedType",) +__all__ = ("WebhookIssuesUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0628.py b/githubkit/versions/v2022_11_28/types/group_0628.py index bb3bf2e43..5fcab2372 100644 --- a/githubkit/versions/v2022_11_28/types/group_0628.py +++ b/githubkit/versions/v2022_11_28/types/group_0628.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0629 import WebhookIssuesUnlockedPropIssueType -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["deleted"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookLabelDeletedType",) +__all__ = ("WebhookIssuesUnlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0629.py b/githubkit/versions/v2022_11_28/types/group_0629.py index 1762b7298..d3ffa08b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0629.py +++ b/githubkit/versions/v2022_11_28/types/group_0629.py @@ -9,63 +9,358 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType +from .group_0043 import IssueTypeType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookIssuesUnlockedPropIssueType(TypedDict): + """Issue - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: list[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + list[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + repository_url: str + sub_issues_summary: NotRequired[ + WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType + ] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + type: NotRequired[Union[IssueTypeType, None]] + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + + +class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookLabelEditedPropChangesType(TypedDict): - """WebhookLabelEditedPropChanges - The changes to the label if the action was `edited`. +class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - color: NotRequired[WebhookLabelEditedPropChangesPropColorType] - description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[list[str]] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + ] + permissions: NotRequired[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesUnlockedPropIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] -class WebhookLabelEditedPropChangesPropColorType(TypedDict): - """WebhookLabelEditedPropChangesPropColor""" +class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): + """Reactions""" - from_: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): - """WebhookLabelEditedPropChangesPropDescription""" +class WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType(TypedDict): + """Sub-issues Summary""" - from_: str + total: int + completed: int + percent_completed: int -class WebhookLabelEditedPropChangesPropNameType(TypedDict): - """WebhookLabelEditedPropChangesPropName""" +class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): + """User""" - from_: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropSubIssuesSummaryType", + "WebhookIssuesUnlockedPropIssuePropUserType", + "WebhookIssuesUnlockedPropIssueType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0630.py b/githubkit/versions/v2022_11_28/types/group_0630.py index 224e22a1c..f85822108 100644 --- a/githubkit/versions/v2022_11_28/types/group_0630.py +++ b/githubkit/versions/v2022_11_28/types/group_0630.py @@ -13,26 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0443 import WebhooksMarketplacePurchaseType -from .group_0444 import WebhooksPreviousMarketplacePurchaseType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0446 import WebhooksIssue2Type -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["unpinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +__all__ = ("WebhookIssuesUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0631.py b/githubkit/versions/v2022_11_28/types/group_0631.py index 6ae4ae0e8..83b0b4a6e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0631.py +++ b/githubkit/versions/v2022_11_28/types/group_0631.py @@ -13,74 +13,25 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0443 import WebhooksMarketplacePurchaseType +from .group_0043 import IssueTypeType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0444 import WebhooksIssueType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookIssuesUntypedType(TypedDict): + """issues untyped event""" - action: Literal["changed"] - effective_date: str + action: Literal["untyped"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssueType + type: Union[IssueTypeType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" - - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: Union[bool, None] - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedType", -) +__all__ = ("WebhookIssuesUntypedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0632.py b/githubkit/versions/v2022_11_28/types/group_0632.py index f34ccd4f5..3f5dcfb2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0632.py +++ b/githubkit/versions/v2022_11_28/types/group_0632.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0443 import WebhooksMarketplacePurchaseType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeType", -) +__all__ = ("WebhookLabelCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0633.py b/githubkit/versions/v2022_11_28/types/group_0633.py index b909dbabd..2afd50e69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0633.py +++ b/githubkit/versions/v2022_11_28/types/group_0633.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0444 import WebhooksPreviousMarketplacePurchaseType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: list[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledType", -) +__all__ = ("WebhookLabelDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0634.py b/githubkit/versions/v2022_11_28/types/group_0634.py index 09095def0..120c73efc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0634.py +++ b/githubkit/versions/v2022_11_28/types/group_0634.py @@ -13,26 +13,59 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0443 import WebhooksMarketplacePurchaseType -from .group_0444 import WebhooksPreviousMarketplacePurchaseType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" - action: Literal["purchased"] - effective_date: str + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + + +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str + + +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0635.py b/githubkit/versions/v2022_11_28/types/group_0635.py index a32fb570c..91c37aaf1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0635.py +++ b/githubkit/versions/v2022_11_28/types/group_0635.py @@ -9,64 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0448 import WebhooksMarketplacePurchaseType +from .group_0449 import WebhooksPreviousMarketplacePurchaseType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" - - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] - - -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] - - -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str - - -__all__ = ( - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedType", -) +__all__ = ("WebhookMarketplacePurchaseCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0636.py b/githubkit/versions/v2022_11_28/types/group_0636.py index 2ad744f89..d9fce0961 100644 --- a/githubkit/versions/v2022_11_28/types/group_0636.py +++ b/githubkit/versions/v2022_11_28/types/group_0636.py @@ -13,52 +13,74 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0448 import WebhooksMarketplacePurchaseType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + action: Literal["changed"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookMemberEditedPropChangesType(TypedDict): - """WebhookMemberEditedPropChanges +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - The changes to the collaborator permissions - """ + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int - old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] - permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" -class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropOldPermission""" + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str - from_: str +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" -class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropPermission""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0637.py b/githubkit/versions/v2022_11_28/types/group_0637.py index 866b7e605..094b9816a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0637.py +++ b/githubkit/versions/v2022_11_28/types/group_0637.py @@ -13,23 +13,76 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0448 import WebhooksMarketplacePurchaseType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["removed"] + action: Literal["pending_change"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookMemberRemovedType",) +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0638.py b/githubkit/versions/v2022_11_28/types/group_0638.py index 50ffed5f2..863bca357 100644 --- a/githubkit/versions/v2022_11_28/types/group_0638.py +++ b/githubkit/versions/v2022_11_28/types/group_0638.py @@ -12,56 +12,77 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType -from .group_0445 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0449 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["added"] + action: Literal["pending_change_cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserType + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: list[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMembershipAddedPropSenderType", - "WebhookMembershipAddedType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0639.py b/githubkit/versions/v2022_11_28/types/group_0639.py index 6cdc4795d..f1dd35c81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0639.py +++ b/githubkit/versions/v2022_11_28/types/group_0639.py @@ -9,59 +9,30 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType -from .group_0445 import WebhooksTeamType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0448 import WebhooksMarketplacePurchaseType +from .group_0449 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["removed"] + action: Literal["purchased"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: WebhooksMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType + sender: SimpleUserType -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookMembershipRemovedPropSenderType", - "WebhookMembershipRemovedType", -) +__all__ = ("WebhookMarketplacePurchasePurchasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0640.py b/githubkit/versions/v2022_11_28/types/group_0640.py index 5bf0f152f..412e21397 100644 --- a/githubkit/versions/v2022_11_28/types/group_0640.py +++ b/githubkit/versions/v2022_11_28/types/group_0640.py @@ -9,25 +9,64 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0446 import MergeGroupType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["checks_requested"] + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" + + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + + +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] + + +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str + + +__all__ = ( + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0641.py b/githubkit/versions/v2022_11_28/types/group_0641.py index 5a1a86abe..00fd442a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0641.py +++ b/githubkit/versions/v2022_11_28/types/group_0641.py @@ -9,26 +9,56 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0446 import MergeGroupType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] + + +class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str + + +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0642.py b/githubkit/versions/v2022_11_28/types/group_0642.py index 63ad0f5d9..040744b52 100644 --- a/githubkit/versions/v2022_11_28/types/group_0642.py +++ b/githubkit/versions/v2022_11_28/types/group_0642.py @@ -13,53 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["deleted"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: list[str] - id: int - name: str - type: str - updated_at: str - - -class WebhookMetaDeletedPropHookPropConfigType(TypedDict): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] - insecure_ssl: str - secret: NotRequired[str] - url: str - - -__all__ = ( - "WebhookMetaDeletedPropHookPropConfigType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedType", -) +__all__ = ("WebhookMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0643.py b/githubkit/versions/v2022_11_28/types/group_0643.py index 714a1bd34..8abd8facc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0643.py +++ b/githubkit/versions/v2022_11_28/types/group_0643.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0440 import WebhooksMilestoneType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType +from .group_0450 import WebhooksTeamType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["closed"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneClosedType",) +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookMembershipAddedPropSenderType", + "WebhookMembershipAddedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0644.py b/githubkit/versions/v2022_11_28/types/group_0644.py index 7b31fc9e1..e4ee84890 100644 --- a/githubkit/versions/v2022_11_28/types/group_0644.py +++ b/githubkit/versions/v2022_11_28/types/group_0644.py @@ -9,27 +9,59 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0447 import WebhooksMilestone3Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType +from .group_0450 import WebhooksTeamType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["created"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneCreatedType",) +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookMembershipRemovedPropSenderType", + "WebhookMembershipRemovedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0645.py b/githubkit/versions/v2022_11_28/types/group_0645.py index b58ed8f38..3958366ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0645.py +++ b/githubkit/versions/v2022_11_28/types/group_0645.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0440 import WebhooksMilestoneType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0451 import MergeGroupType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMilestoneDeletedType",) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0646.py b/githubkit/versions/v2022_11_28/types/group_0646.py index c51cae8fb..6549f9c80 100644 --- a/githubkit/versions/v2022_11_28/types/group_0646.py +++ b/githubkit/versions/v2022_11_28/types/group_0646.py @@ -13,59 +13,22 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0440 import WebhooksMilestoneType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0451 import MergeGroupType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -class WebhookMilestoneEditedPropChangesType(TypedDict): - """WebhookMilestoneEditedPropChanges - - The changes to the milestone if the action was `edited`. - """ - - description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] - due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] - title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] - - -class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDescription""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): - """WebhookMilestoneEditedPropChangesPropDueOn""" - - from_: str - - -class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): - """WebhookMilestoneEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedType", -) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0647.py b/githubkit/versions/v2022_11_28/types/group_0647.py index 275d8dde3..253431536 100644 --- a/githubkit/versions/v2022_11_28/types/group_0647.py +++ b/githubkit/versions/v2022_11_28/types/group_0647.py @@ -9,27 +9,57 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0447 import WebhooksMilestone3Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["opened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookMilestoneOpenedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: list[str] + id: int + name: str + type: str + updated_at: str + + +class WebhookMetaDeletedPropHookPropConfigType(TypedDict): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] + insecure_ssl: str + secret: NotRequired[str] + url: str + + +__all__ = ( + "WebhookMetaDeletedPropHookPropConfigType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0648.py b/githubkit/versions/v2022_11_28/types/group_0648.py index 556c7dd80..77e165b03 100644 --- a/githubkit/versions/v2022_11_28/types/group_0648.py +++ b/githubkit/versions/v2022_11_28/types/group_0648.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0445 import WebhooksMilestoneType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["blocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrgBlockBlockedType",) +__all__ = ("WebhookMilestoneClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0649.py b/githubkit/versions/v2022_11_28/types/group_0649.py index d6aef3362..bbe0c79dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0649.py +++ b/githubkit/versions/v2022_11_28/types/group_0649.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0452 import WebhooksMilestone3Type -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrgBlockUnblockedType",) +__all__ = ("WebhookMilestoneCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0650.py b/githubkit/versions/v2022_11_28/types/group_0650.py index fc98d0aad..ba31a82c4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0650.py +++ b/githubkit/versions/v2022_11_28/types/group_0650.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0448 import WebhooksMembershipType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0445 import WebhooksMilestoneType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookMilestoneDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0651.py b/githubkit/versions/v2022_11_28/types/group_0651.py index c771eced5..6bef54a90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0651.py +++ b/githubkit/versions/v2022_11_28/types/group_0651.py @@ -13,23 +13,59 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0448 import WebhooksMembershipType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0445 import WebhooksMilestoneType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["member_added"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberAddedType",) +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + + +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0652.py b/githubkit/versions/v2022_11_28/types/group_0652.py index 823ac00a4..459bdc94d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0652.py +++ b/githubkit/versions/v2022_11_28/types/group_0652.py @@ -9,80 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0452 import WebhooksMilestone3Type -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["member_invited"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType - user: NotRequired[Union[WebhooksUserType, None]] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: datetime - email: Union[str, None] - failed_at: Union[datetime, None] - failed_reason: Union[str, None] - id: float - invitation_teams_url: str - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] - login: Union[str, None] - node_id: str - role: str - team_count: float - invitation_source: NotRequired[str] - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedType", -) +__all__ = ("WebhookMilestoneOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0653.py b/githubkit/versions/v2022_11_28/types/group_0653.py index cbefd5423..ab09cfe3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0653.py +++ b/githubkit/versions/v2022_11_28/types/group_0653.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0448 import WebhooksMembershipType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" - action: Literal["member_removed"] + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookOrganizationMemberRemovedType",) +__all__ = ("WebhookOrgBlockBlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0654.py b/githubkit/versions/v2022_11_28/types/group_0654.py index 45e4d5c47..f30f2b1c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0654.py +++ b/githubkit/versions/v2022_11_28/types/group_0654.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0448 import WebhooksMembershipType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["unblocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" - - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] - - -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationRenamedPropChangesPropLoginType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedType", -) +__all__ = ("WebhookOrgBlockUnblockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0655.py b/githubkit/versions/v2022_11_28/types/group_0655.py index fbf589490..8e41dc504 100644 --- a/githubkit/versions/v2022_11_28/types/group_0655.py +++ b/githubkit/versions/v2022_11_28/types/group_0655.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0453 import WebhooksMembershipType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" - name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" - version: NotRequired[str] - - -WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropMetadata -""" - - -WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] -"""WebhookRubygemsMetadataPropDependenciesItems -""" - - -__all__ = ( - "WebhookRubygemsMetadataPropDependenciesItemsType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataType", -) +__all__ = ("WebhookOrganizationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0656.py b/githubkit/versions/v2022_11_28/types/group_0656.py index 49fcf558f..37a1311ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0656.py +++ b/githubkit/versions/v2022_11_28/types/group_0656.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0657 import WebhookPackagePublishedPropPackageType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0453 import WebhooksMembershipType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - action: Literal["published"] + action: Literal["member_added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookPackagePublishedType",) +__all__ = ("WebhookOrganizationMemberAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0657.py b/githubkit/versions/v2022_11_28/types/group_0657.py index dca9dbf40..5a3835909 100644 --- a/githubkit/versions/v2022_11_28/types/group_0657.py +++ b/githubkit/versions/v2022_11_28/types/group_0657.py @@ -9,35 +9,52 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0658 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" - Information about the package. + action: Literal["member_invited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + user: NotRequired[Union[WebhooksUserType, None]] + + +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None - ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] - - -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -64,18 +81,8 @@ class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - __all__ = ( - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", - "WebhookPackagePublishedPropPackageType", + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0658.py b/githubkit/versions/v2022_11_28/types/group_0658.py index 7e514f186..079cd7769 100644 --- a/githubkit/versions/v2022_11_28/types/group_0658.py +++ b/githubkit/versions/v2022_11_28/types/group_0658.py @@ -9,495 +9,27 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0655 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0453 import WebhooksMembershipType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + action: Literal["member_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: NotRequired[str] - name: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, - None, - ] - ] - bugs: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, - None, - ] - ] - dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, - None, - ] - ] - scripts: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType - ] - ] - contributors: NotRequired[ - list[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType - ] - ] - engines: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: NotRequired[Union[int, str]] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: Union[str, None] - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionType", -) +__all__ = ("WebhookOrganizationMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0659.py b/githubkit/versions/v2022_11_28/types/group_0659.py index a697ee7ef..aa42a7609 100644 --- a/githubkit/versions/v2022_11_28/types/group_0659.py +++ b/githubkit/versions/v2022_11_28/types/group_0659.py @@ -13,23 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0660 import WebhookPackageUpdatedPropPackageType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0453 import WebhooksMembershipType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" - action: Literal["updated"] + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookPackageUpdatedType",) +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationRenamedPropChangesPropLoginType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0660.py b/githubkit/versions/v2022_11_28/types/group_0660.py index c6a6486f2..fbf589490 100644 --- a/githubkit/versions/v2022_11_28/types/group_0660.py +++ b/githubkit/versions/v2022_11_28/types/group_0660.py @@ -9,71 +9,44 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0661 import WebhookPackageUpdatedPropPackagePropPackageVersionType - - -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" + name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[list[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] + + +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" + version: NotRequired[str] -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - about_url: str - name: str - type: str - url: str - vendor: str +WebhookRubygemsMetadataPropMetadataType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropMetadata +""" + + +WebhookRubygemsMetadataPropDependenciesItemsType: TypeAlias = dict[str, Any] +"""WebhookRubygemsMetadataPropDependenciesItems +""" __all__ = ( - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", - "WebhookPackageUpdatedPropPackageType", + "WebhookRubygemsMetadataPropDependenciesItemsType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0661.py b/githubkit/versions/v2022_11_28/types/group_0661.py index 09925d750..f2b30ed0a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0661.py +++ b/githubkit/versions/v2022_11_28/types/group_0661.py @@ -9,168 +9,27 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0655 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0662 import WebhookPackagePublishedPropPackageType -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[list[str]] - - -WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( - dict[str, Any] -) -"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems -""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionType", -) +__all__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0662.py b/githubkit/versions/v2022_11_28/types/group_0662.py index 50cdff695..fec61be92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0662.py +++ b/githubkit/versions/v2022_11_28/types/group_0662.py @@ -12,49 +12,32 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0663 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - build: WebhookPageBuildPropBuildType - enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- - github-pages-builds) itself. + Information about the package. """ - commit: Union[str, None] - created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str - updated_at: str - url: str - - -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] - - -class WebhookPageBuildPropBuildPropPusherType(TypedDict): + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None + ] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] + + +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,9 +64,18 @@ class WebhookPageBuildPropBuildPropPusherType(TypedDict): user_view_type: NotRequired[str] +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + __all__ = ( - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildType", + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", + "WebhookPackagePublishedPropPackageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0663.py b/githubkit/versions/v2022_11_28/types/group_0663.py index 9097984c1..5121006fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0663.py +++ b/githubkit/versions/v2022_11_28/types/group_0663.py @@ -9,25 +9,495 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0449 import PersonalAccessTokenRequestType +from .group_0660 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: SimpleInstallationType + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] + ] + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" + + labels: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab + els + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan + ifest + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems +""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, + None, + ] + ] + bugs: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, + None, + ] + ] + dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, + None, + ] + ] + scripts: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType + ] + ] + contributors: NotRequired[ + list[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType + ] + ] + engines: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc + ies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend + encies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen + dencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD + ependencies + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor + y + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine + rsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut + orsItems + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori + es + """ + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" + + id: NotRequired[Union[int, str]] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa + lueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: Union[str, None] + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0664.py b/githubkit/versions/v2022_11_28/types/group_0664.py index 8130b9c75..74173dcc9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0664.py +++ b/githubkit/versions/v2022_11_28/types/group_0664.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0449 import PersonalAccessTokenRequestType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0665 import WebhookPackageUpdatedPropPackageType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: RepositoryWebhooksType sender: SimpleUserType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +__all__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0665.py b/githubkit/versions/v2022_11_28/types/group_0665.py index 5b597d521..c5aca9653 100644 --- a/githubkit/versions/v2022_11_28/types/group_0665.py +++ b/githubkit/versions/v2022_11_28/types/group_0665.py @@ -9,25 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0449 import PersonalAccessTokenRequestType +from .group_0666 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserType - installation: NotRequired[SimpleInstallationType] + Information about the package. + """ + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) + +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", + "WebhookPackageUpdatedPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0666.py b/githubkit/versions/v2022_11_28/types/group_0666.py index 3c69f219b..d2e1f5b05 100644 --- a/githubkit/versions/v2022_11_28/types/group_0666.py +++ b/githubkit/versions/v2022_11_28/types/group_0666.py @@ -9,25 +9,168 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0449 import PersonalAccessTokenRequestType +from .group_0660 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - sender: SimpleUserType - installation: SimpleInstallationType + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[list[str]] + + +WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType: TypeAlias = ( + dict[str, Any] +) +"""WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems +""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0667.py b/githubkit/versions/v2022_11_28/types/group_0667.py index 6323e96d8..3b5faf613 100644 --- a/githubkit/versions/v2022_11_28/types/group_0667.py +++ b/githubkit/versions/v2022_11_28/types/group_0667.py @@ -9,23 +9,81 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0668 import WebhookPingPropHookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPageBuildType(TypedDict): + """page_build event""" - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - zen: NotRequired[str] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookPingType",) +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. + """ + + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] + + +class WebhookPageBuildPropBuildPropPusherType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0668.py b/githubkit/versions/v2022_11_28/types/group_0668.py index be49ed36f..d9701396e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0668.py +++ b/githubkit/versions/v2022_11_28/types/group_0668.py @@ -9,45 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0302 import HookResponseType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0454 import PersonalAccessTokenRequestType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - The webhook that is being pinged - """ + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserType + installation: SimpleInstallationType - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: list[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime - url: NotRequired[str] - -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" - - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookPingPropHookPropConfigType", - "WebhookPingPropHookType", -) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0669.py b/githubkit/versions/v2022_11_28/types/group_0669.py index 76f44f172..6436d37ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0669.py +++ b/githubkit/versions/v2022_11_28/types/group_0669.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0454 import PersonalAccessTokenRequestType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - payload: str + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserType + installation: SimpleInstallationType -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0670.py b/githubkit/versions/v2022_11_28/types/group_0670.py index 5b06977a8..026befae0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0670.py +++ b/githubkit/versions/v2022_11_28/types/group_0670.py @@ -13,40 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0450 import WebhooksProjectCardType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0454 import PersonalAccessTokenRequestType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserType + installation: NotRequired[SimpleInstallationType] -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedPropChangesPropNoteType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0671.py b/githubkit/versions/v2022_11_28/types/group_0671.py index a7ebd40bc..1e5bae730 100644 --- a/githubkit/versions/v2022_11_28/types/group_0671.py +++ b/githubkit/versions/v2022_11_28/types/group_0671.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0450 import WebhooksProjectCardType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0454 import PersonalAccessTokenRequestType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["created"] + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType + installation: SimpleInstallationType -__all__ = ("WebhookProjectCardCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0672.py b/githubkit/versions/v2022_11_28/types/group_0672.py index 0d1ebb7af..7f5c2a3eb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0672.py +++ b/githubkit/versions/v2022_11_28/types/group_0672.py @@ -9,76 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0673 import WebhookPingPropHookType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: SimpleUserType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] + zen: NotRequired[str] -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0673.py b/githubkit/versions/v2022_11_28/types/group_0673.py index 25627caaf..782674f95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0673.py +++ b/githubkit/versions/v2022_11_28/types/group_0673.py @@ -9,44 +9,45 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0450 import WebhooksProjectCardType +from .group_0306 import HookResponseType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPingPropHookType(TypedDict): + """Webhook - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + The webhook that is being pinged + """ + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType + created_at: datetime + deliveries_url: NotRequired[str] + events: list[str] + id: int + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str + updated_at: datetime + url: NotRequired[str] -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" - note: WebhookProjectCardEditedPropChangesPropNoteType +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" - -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookProjectCardEditedPropChangesPropNoteType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedType", + "WebhookPingPropHookPropConfigType", + "WebhookPingPropHookType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0674.py b/githubkit/versions/v2022_11_28/types/group_0674.py index 3cb742e4f..76f44f172 100644 --- a/githubkit/versions/v2022_11_28/types/group_0674.py +++ b/githubkit/versions/v2022_11_28/types/group_0674.py @@ -9,91 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" + The webhooks ping payload encoded with URL encoding. + """ - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + payload: str -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType - - -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int - - -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] - id: int - node_id: str - note: Union[Union[str, None], None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedType", -) +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0675.py b/githubkit/versions/v2022_11_28/types/group_0675.py index c75678d30..f1e3ff831 100644 --- a/githubkit/versions/v2022_11_28/types/group_0675.py +++ b/githubkit/versions/v2022_11_28/types/group_0675.py @@ -9,57 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0455 import WebhooksProjectCardType -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" + + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNoteType + + +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardConvertedPropChangesPropNoteType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0676.py b/githubkit/versions/v2022_11_28/types/group_0676.py index 8e4564103..415154a7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0676.py +++ b/githubkit/versions/v2022_11_28/types/group_0676.py @@ -9,53 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0455 import WebhooksProjectCardType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] - ] - id: NotRequired[int] - node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", - "WebhookProjectCardMovedPropProjectCardAllof1Type", -) + +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + + +__all__ = ("WebhookProjectCardCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0677.py b/githubkit/versions/v2022_11_28/types/group_0677.py index 6e4d15977..893040fe6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0677.py +++ b/githubkit/versions/v2022_11_28/types/group_0677.py @@ -9,27 +9,76 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0451 import WebhooksProjectType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" - action: Literal["closed"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: SimpleUserType -__all__ = ("WebhookProjectClosedType",) +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0678.py b/githubkit/versions/v2022_11_28/types/group_0678.py index 06716600f..70e76fd55 100644 --- a/githubkit/versions/v2022_11_28/types/group_0678.py +++ b/githubkit/versions/v2022_11_28/types/group_0678.py @@ -9,27 +9,44 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0452 import WebhooksProjectColumnType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0455 import WebhooksProjectCardType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookProjectCardEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnCreatedType",) +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] + + +__all__ = ( + "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0679.py b/githubkit/versions/v2022_11_28/types/group_0679.py index abacb519a..d482ececb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0679.py +++ b/githubkit/versions/v2022_11_28/types/group_0679.py @@ -9,27 +9,91 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0452 import WebhooksProjectColumnType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["deleted"] + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserType] + project_card: WebhookProjectCardMovedPropProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -__all__ = ("WebhookProjectColumnDeletedType",) +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType + + +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int + + +class WebhookProjectCardMovedPropProjectCardType(TypedDict): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + id: int + node_id: str + note: Union[Union[str, None], None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0680.py b/githubkit/versions/v2022_11_28/types/group_0680.py index b771f4e7c..c75678d30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0680.py +++ b/githubkit/versions/v2022_11_28/types/group_0680.py @@ -9,44 +9,57 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0452 import WebhooksProjectColumnType - -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" - - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - - -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" - - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] - - -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookProjectColumnEditedPropChangesPropNameType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedType", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0681.py b/githubkit/versions/v2022_11_28/types/group_0681.py index 39e85f3c3..8e4564103 100644 --- a/githubkit/versions/v2022_11_28/types/group_0681.py +++ b/githubkit/versions/v2022_11_28/types/group_0681.py @@ -9,27 +9,53 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0452 import WebhooksProjectColumnType - -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" - - action: Literal["moved"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - - -__all__ = ("WebhookProjectColumnMovedType",) +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] + ] + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookProjectCardMovedPropProjectCardAllof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0682.py b/githubkit/versions/v2022_11_28/types/group_0682.py index 5a592d050..b4565fdb6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0682.py +++ b/githubkit/versions/v2022_11_28/types/group_0682.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0451 import WebhooksProjectType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0456 import WebhooksProjectType -class WebhookProjectCreatedType(TypedDict): - """project created event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["created"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookProjectCreatedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookProjectCreatedType",) +__all__ = ("WebhookProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0683.py b/githubkit/versions/v2022_11_28/types/group_0683.py index 2a20b3060..f6c628ce1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0683.py +++ b/githubkit/versions/v2022_11_28/types/group_0683.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0451 import WebhooksProjectType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0457 import WebhooksProjectColumnType -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectDeletedType",) +__all__ = ("WebhookProjectColumnCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0684.py b/githubkit/versions/v2022_11_28/types/group_0684.py index d66d79fcf..4b0202a8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0684.py +++ b/githubkit/versions/v2022_11_28/types/group_0684.py @@ -9,55 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0451 import WebhooksProjectType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0457 import WebhooksProjectColumnType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: NotRequired[SimpleUserType] -class WebhookProjectEditedPropChangesType(TypedDict): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] - name: NotRequired[WebhookProjectEditedPropChangesPropNameType] - - -class WebhookProjectEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str - - -class WebhookProjectEditedPropChangesPropNameType(TypedDict): - """WebhookProjectEditedPropChangesPropName""" - - from_: str - - -__all__ = ( - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedType", -) +__all__ = ("WebhookProjectColumnDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0685.py b/githubkit/versions/v2022_11_28/types/group_0685.py index 3cba2cd26..ca5e0296a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0685.py +++ b/githubkit/versions/v2022_11_28/types/group_0685.py @@ -13,23 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0451 import WebhooksProjectType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0457 import WebhooksProjectColumnType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectReopenedType",) +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" + + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + + +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0686.py b/githubkit/versions/v2022_11_28/types/group_0686.py index 78fa0e0b9..e1d2dde86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0686.py +++ b/githubkit/versions/v2022_11_28/types/group_0686.py @@ -13,19 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0453 import ProjectsV2Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0457 import WebhooksProjectColumnType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - action: Literal["closed"] + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectClosedType",) +__all__ = ("WebhookProjectColumnMovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0687.py b/githubkit/versions/v2022_11_28/types/group_0687.py index 5c4683209..091cc485f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0687.py +++ b/githubkit/versions/v2022_11_28/types/group_0687.py @@ -13,22 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0453 import ProjectsV2Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0456 import WebhooksProjectType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated - - A project was created - """ +class WebhookProjectCreatedType(TypedDict): + """project created event""" action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ("WebhookProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0688.py b/githubkit/versions/v2022_11_28/types/group_0688.py index f3812511b..f19199cbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0688.py +++ b/githubkit/versions/v2022_11_28/types/group_0688.py @@ -9,23 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0453 import ProjectsV2Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0456 import WebhooksProjectType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +__all__ = ("WebhookProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0689.py b/githubkit/versions/v2022_11_28/types/group_0689.py index 3bfd3a902..d0fb991a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0689.py +++ b/githubkit/versions/v2022_11_28/types/group_0689.py @@ -9,72 +9,55 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0453 import ProjectsV2Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0456 import WebhooksProjectType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChanges""" +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges - description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType - ] - public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] - short_description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType - ] - title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] + The changes to the project if the action was `edited`. + """ + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] -class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + from_: str -class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - from_: NotRequired[bool] - to: NotRequired[bool] +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: NotRequired[str] - to: NotRequired[str] + from_: str __all__ = ( - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedType", + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0690.py b/githubkit/versions/v2022_11_28/types/group_0690.py index 7863023b2..d5ce3fd68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0690.py +++ b/githubkit/versions/v2022_11_28/types/group_0690.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0454 import WebhooksProjectChangesType -from .group_0455 import ProjectsV2ItemType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0456 import WebhooksProjectType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemArchivedType",) +__all__ = ("WebhookProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0691.py b/githubkit/versions/v2022_11_28/types/group_0691.py index ca4514859..e3c941d94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0691.py +++ b/githubkit/versions/v2022_11_28/types/group_0691.py @@ -9,43 +9,23 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0455 import ProjectsV2ItemType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0458 import ProjectsV2Type -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedType", -) +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0692.py b/githubkit/versions/v2022_11_28/types/group_0692.py index 2b0bbddbe..164a8fa6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0692.py +++ b/githubkit/versions/v2022_11_28/types/group_0692.py @@ -13,19 +13,22 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0455 import ProjectsV2ItemType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0458 import ProjectsV2Type -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated + + A project was created + """ action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0693.py b/githubkit/versions/v2022_11_28/types/group_0693.py index 297884ea9..303fbed56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0693.py +++ b/githubkit/versions/v2022_11_28/types/group_0693.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0455 import ProjectsV2ItemType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0458 import ProjectsV2Type -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0694.py b/githubkit/versions/v2022_11_28/types/group_0694.py index c70188921..57be2a272 100644 --- a/githubkit/versions/v2022_11_28/types/group_0694.py +++ b/githubkit/versions/v2022_11_28/types/group_0694.py @@ -13,103 +13,68 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0455 import ProjectsV2ItemType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0458 import ProjectsV2Type -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: NotRequired[str] - field_type: NotRequired[str] - field_name: NotRequired[str] - project_number: NotRequired[int] - from_: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType ] - to: NotRequired[ - Union[ - str, - int, - ProjectsV2SingleSelectOptionType, - ProjectsV2IterationSettingType, - None, - ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] -class ProjectsV2SingleSelectOptionType(TypedDict): - """Projects v2 Single Select Option - - An option for a single select field - """ - - id: str - name: str - color: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class ProjectsV2IterationSettingType(TypedDict): - """Projects v2 Iteration Setting - An iteration setting for an iteration field - """ +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - id: str - title: str - duration: NotRequired[Union[float, None]] - start_date: NotRequired[Union[str, None]] + from_: NotRequired[bool] + to: NotRequired[bool] -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" +class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] + from_: NotRequired[str] + to: NotRequired[str] __all__ = ( - "ProjectsV2IterationSettingType", - "ProjectsV2SingleSelectOptionType", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0695.py b/githubkit/versions/v2022_11_28/types/group_0695.py index 0f8a9f6a9..89a3f33af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0695.py +++ b/githubkit/versions/v2022_11_28/types/group_0695.py @@ -9,45 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0455 import ProjectsV2ItemType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0459 import WebhooksProjectChangesType +from .group_0460 import ProjectsV2ItemType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["archived"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" - - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType - ] - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedType", -) +__all__ = ("WebhookProjectsV2ItemArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0696.py b/githubkit/versions/v2022_11_28/types/group_0696.py index 6019d4524..896729bfb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0696.py +++ b/githubkit/versions/v2022_11_28/types/group_0696.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0454 import WebhooksProjectChangesType -from .group_0455 import ProjectsV2ItemType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2ItemType -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["restored"] - changes: WebhooksProjectChangesType + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType + ] + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[str] + + +__all__ = ( + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0697.py b/githubkit/versions/v2022_11_28/types/group_0697.py index 2e10b6bb7..efc411730 100644 --- a/githubkit/versions/v2022_11_28/types/group_0697.py +++ b/githubkit/versions/v2022_11_28/types/group_0697.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0453 import ProjectsV2Type +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2ItemType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["reopened"] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +__all__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0698.py b/githubkit/versions/v2022_11_28/types/group_0698.py index a7d5e9b9d..d2ba684b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0698.py +++ b/githubkit/versions/v2022_11_28/types/group_0698.py @@ -13,19 +13,19 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0456 import ProjectsV2StatusUpdateType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): - """Projects v2 Status Update Created Event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["created"] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0699.py b/githubkit/versions/v2022_11_28/types/group_0699.py index 013e13c59..668057231 100644 --- a/githubkit/versions/v2022_11_28/types/group_0699.py +++ b/githubkit/versions/v2022_11_28/types/group_0699.py @@ -9,23 +9,107 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0456 import ProjectsV2StatusUpdateType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): - """Projects v2 Status Update Deleted Event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + + +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" + + field_node_id: NotRequired[str] + field_type: NotRequired[str] + field_name: NotRequired[str] + project_number: NotRequired[int] + from_: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + to: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] + ] + + +class ProjectsV2SingleSelectOptionType(TypedDict): + """Projects v2 Single Select Option + + An option for a single select field + """ + + id: str + name: str + color: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + + +class ProjectsV2IterationSettingType(TypedDict): + """Projects v2 Iteration Setting + + An iteration setting for an iteration field + """ + + id: str + title: str + duration: NotRequired[Union[float, None]] + start_date: NotRequired[Union[str, None]] + + +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" + + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + + +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "ProjectsV2IterationSettingType", + "ProjectsV2SingleSelectOptionType", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0700.py b/githubkit/versions/v2022_11_28/types/group_0700.py index e1b708bf5..25ec7fcae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0700.py +++ b/githubkit/versions/v2022_11_28/types/group_0700.py @@ -9,77 +9,45 @@ from __future__ import annotations -from datetime import date from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0456 import ProjectsV2StatusUpdateType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0460 import ProjectsV2ItemType -class WebhookProjectsV2StatusUpdateEditedType(TypedDict): - """Projects v2 Status Update Edited Event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_status_update: ProjectsV2StatusUpdateType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChanges""" +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" - body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] - status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] - start_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType - ] - target_date: NotRequired[ - WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] -class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( + TypedDict +): + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - - from_: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - to: NotRequired[ - Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] - ] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] - - -class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): - """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - - from_: NotRequired[Union[date, None]] - to: NotRequired[Union[date, None]] - - __all__ = ( - "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", - "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", - "WebhookProjectsV2StatusUpdateEditedPropChangesType", - "WebhookProjectsV2StatusUpdateEditedType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0701.py b/githubkit/versions/v2022_11_28/types/group_0701.py index 44725b0b1..08a47bdd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0701.py +++ b/githubkit/versions/v2022_11_28/types/group_0701.py @@ -9,23 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0459 import WebhooksProjectChangesType +from .group_0460 import ProjectsV2ItemType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserType -__all__ = ("WebhookPublicType",) +__all__ = ("WebhookProjectsV2ItemRestoredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0702.py b/githubkit/versions/v2022_11_28/types/group_0702.py index ece70b2a6..dc3a4d617 100644 --- a/githubkit/versions/v2022_11_28/types/group_0702.py +++ b/githubkit/versions/v2022_11_28/types/group_0702.py @@ -9,950 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0430 import WebhooksUserType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0458 import ProjectsV2Type -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["assigned"] - assignee: Union[WebhooksUserType, None] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserType -class WebhookPullRequestAssignedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAssignedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestAssignedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAssignedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropLinks""" - - comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAssignedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedType", -) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0703.py b/githubkit/versions/v2022_11_28/types/group_0703.py index 66ed092e3..ec143a49d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0703.py +++ b/githubkit/versions/v2022_11_28/types/group_0703.py @@ -9,997 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0461 import ProjectsV2StatusUpdateType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["auto_merge_disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledType", -) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0704.py b/githubkit/versions/v2022_11_28/types/group_0704.py index ce52e2849..a11e11b05 100644 --- a/githubkit/versions/v2022_11_28/types/group_0704.py +++ b/githubkit/versions/v2022_11_28/types/group_0704.py @@ -9,987 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0461 import ProjectsV2StatusUpdateType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["auto_merge_enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledType", -) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0705.py b/githubkit/versions/v2022_11_28/types/group_0705.py index 0a8158a80..0f3c7b7e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0705.py +++ b/githubkit/versions/v2022_11_28/types/group_0705.py @@ -9,28 +9,77 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0457 import PullRequestWebhookType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0461 import ProjectsV2StatusUpdateType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["edited"] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserType -__all__ = ("WebhookPullRequestClosedType",) +class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" + + body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] + status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] + start_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType + ] + target_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" + + from_: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + to: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" + + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] + + +__all__ = ( + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0706.py b/githubkit/versions/v2022_11_28/types/group_0706.py index b32c27fd6..2badb5495 100644 --- a/githubkit/versions/v2022_11_28/types/group_0706.py +++ b/githubkit/versions/v2022_11_28/types/group_0706.py @@ -9,28 +9,23 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0457 import PullRequestWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestConvertedToDraftType",) +__all__ = ("WebhookPublicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0707.py b/githubkit/versions/v2022_11_28/types/group_0707.py index d856dccbd..404c77f6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0707.py +++ b/githubkit/versions/v2022_11_28/types/group_0707.py @@ -9,28 +9,950 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0039 import MilestoneType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0459 import WebhooksPullRequest5Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0435 import WebhooksUserType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["demilestoned"] + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestDemilestonedType",) +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestAssignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAssignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0708.py b/githubkit/versions/v2022_11_28/types/group_0708.py index 9f38c9dd5..9fc038a66 100644 --- a/githubkit/versions/v2022_11_28/types/group_0708.py +++ b/githubkit/versions/v2022_11_28/types/group_0708.py @@ -14,50 +14,42 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["dequeued"] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: Literal[ - "UNKNOWN_REMOVAL_REASON", - "MANUAL", - "MERGE", - "MERGE_CONFLICT", - "CI_FAILURE", - "CI_TIMEOUT", - "ALREADY_MERGED", - "QUEUE_CLEARED", - "ROLL_BACK", - "BRANCH_PROTECTIONS", - "GIT_TREE_INVALID", - "INVALID_MERGE_COMMIT", - ] + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -69,8 +61,10 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -82,11 +76,11 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -95,22 +89,24 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -120,10 +116,10 @@ class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] -class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -150,7 +146,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -176,7 +174,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -185,12 +183,13 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -219,7 +218,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -231,7 +230,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -258,7 +257,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -268,7 +267,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -284,7 +284,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -306,12 +308,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -335,12 +337,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -367,48 +369,58 @@ class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: ( - WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -416,7 +428,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -424,29 +436,35 @@ class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -473,7 +491,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -516,10 +534,10 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): git_url: str has_downloads: bool has_issues: bool + has_discussions: bool has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -533,7 +551,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -548,10 +567,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -585,7 +605,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -597,7 +617,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -624,10 +646,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -636,17 +660,19 @@ class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestDequeuedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -673,7 +699,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -733,7 +759,8 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -748,10 +775,11 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -785,7 +813,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -797,7 +825,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -824,10 +854,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -836,7 +868,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -845,30 +877,30 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] @@ -884,7 +916,9 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -899,7 +933,7 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -910,10 +944,12 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] html_url: str @@ -929,41 +965,41 @@ class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0709.py b/githubkit/versions/v2022_11_28/types/group_0709.py index b6fd078cb..48cce9198 100644 --- a/githubkit/versions/v2022_11_28/types/group_0709.py +++ b/githubkit/versions/v2022_11_28/types/group_0709.py @@ -9,79 +9,987 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0457 import PullRequestWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): + """Pull Request""" - The changes to the comment if the action was `edited`. + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" + + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository """ - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] - from_: str +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - from_: str +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent + """ - from_: str + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ - from_: str + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0710.py b/githubkit/versions/v2022_11_28/types/group_0710.py index d6802bf12..20c38c135 100644 --- a/githubkit/versions/v2022_11_28/types/group_0710.py +++ b/githubkit/versions/v2022_11_28/types/group_0710.py @@ -9,947 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0462 import PullRequestWebhookType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["enqueued"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedType", -) +__all__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0711.py b/githubkit/versions/v2022_11_28/types/group_0711.py index c4c26e542..c253daf78 100644 --- a/githubkit/versions/v2022_11_28/types/group_0711.py +++ b/githubkit/versions/v2022_11_28/types/group_0711.py @@ -9,945 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0462 import PullRequestWebhookType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["labeled"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLabeledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" - - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledType", -) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0712.py b/githubkit/versions/v2022_11_28/types/group_0712.py index ae1fefc9d..3e1f78c47 100644 --- a/githubkit/versions/v2022_11_28/types/group_0712.py +++ b/githubkit/versions/v2022_11_28/types/group_0712.py @@ -9,937 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0042 import MilestoneType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0464 import WebhooksPullRequest5Type -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["locked"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -class WebhookPullRequestLockedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestLockedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: list[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" - - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedType", -) +__all__ = ("WebhookPullRequestDemilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0713.py b/githubkit/versions/v2022_11_28/types/group_0713.py index 3d95c607d..d9725ce17 100644 --- a/githubkit/versions/v2022_11_28/types/group_0713.py +++ b/githubkit/versions/v2022_11_28/types/group_0713.py @@ -9,28 +9,961 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0039 import MilestoneType -from .group_0419 import EnterpriseWebhooksType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0459 import WebhooksPullRequest5Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["milestoned"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: Literal[ + "UNKNOWN_REMOVAL_REASON", + "MANUAL", + "MERGE", + "MERGE_CONFLICT", + "CI_FAILURE", + "CI_TIMEOUT", + "ALREADY_MERGED", + "QUEUE_CLEARED", + "ROLL_BACK", + "BRANCH_PROTECTIONS", + "GIT_TREE_INVALID", + "INVALID_MERGE_COMMIT", + ] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookPullRequestMilestonedType",) +class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestDequeuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestDequeuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestDequeuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0714.py b/githubkit/versions/v2022_11_28/types/group_0714.py index bee58d038..cdc45b116 100644 --- a/githubkit/versions/v2022_11_28/types/group_0714.py +++ b/githubkit/versions/v2022_11_28/types/group_0714.py @@ -13,24 +13,75 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0457 import PullRequestWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0462 import PullRequestWebhookType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["opened"] + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookPullRequestOpenedType",) +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges + + The changes to the comment if the action was `edited`. + """ + + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] + + +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" + + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType + + +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" + + from_: str + + +class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" + + from_: str + + +__all__ = ( + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0715.py b/githubkit/versions/v2022_11_28/types/group_0715.py index f1c3c47ed..ade6e3c76 100644 --- a/githubkit/versions/v2022_11_28/types/group_0715.py +++ b/githubkit/versions/v2022_11_28/types/group_0715.py @@ -9,28 +9,947 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0457 import PullRequestWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["ready_for_review"] + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReadyForReviewType",) +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" + + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0716.py b/githubkit/versions/v2022_11_28/types/group_0716.py index ca6d48fc0..b4f848b12 100644 --- a/githubkit/versions/v2022_11_28/types/group_0716.py +++ b/githubkit/versions/v2022_11_28/types/group_0716.py @@ -9,28 +9,945 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0457 import PullRequestWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["reopened"] + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookPullRequestReopenedType",) +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestLabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestLabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0717.py b/githubkit/versions/v2022_11_28/types/group_0717.py index 577318081..19a0ab33c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0717.py +++ b/githubkit/versions/v2022_11_28/types/group_0717.py @@ -14,157 +14,36 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): - """User""" +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -176,56 +55,61 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -247,14 +131,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -280,7 +162,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -289,15 +171,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -324,9 +203,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -338,7 +215,34 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -348,8 +252,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -365,9 +268,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -389,12 +290,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -423,7 +324,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -450,104 +351,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDic user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -574,9 +453,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -636,8 +513,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -652,11 +528,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -690,9 +565,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -702,9 +575,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -731,12 +602,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -745,23 +614,17 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -807,7 +670,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( has_pages: bool has_projects: bool has_wiki: bool - has_discussions: NotRequired[bool] + has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -821,8 +684,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -837,11 +699,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,9 +736,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -887,9 +746,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -916,12 +773,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -930,9 +785,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -959,7 +812,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -976,7 +829,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -987,11 +840,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -1007,9 +860,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -1024,7 +875,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1035,12 +886,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -1056,47 +905,41 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0718.py b/githubkit/versions/v2022_11_28/types/group_0718.py index 018cb3d98..bc8e50b4d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0718.py +++ b/githubkit/versions/v2022_11_28/types/group_0718.py @@ -9,971 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0460 import WebhooksReviewCommentType +from .group_0042 import MilestoneType +from .group_0424 import EnterpriseWebhooksType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0464 import WebhooksPullRequest5Type -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["deleted"] - comment: WebhooksReviewCommentType + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedType", -) +__all__ = ("WebhookPullRequestMilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0719.py b/githubkit/versions/v2022_11_28/types/group_0719.py index 80f048a27..d7eb2e3b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0719.py +++ b/githubkit/versions/v2022_11_28/types/group_0719.py @@ -9,974 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0438 import WebhooksChangesType -from .group_0460 import WebhooksReviewCommentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0462 import PullRequestWebhookType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" - - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - user_view_type: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedType", -) +__all__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0720.py b/githubkit/versions/v2022_11_28/types/group_0720.py index 8664fa268..c0393b941 100644 --- a/githubkit/versions/v2022_11_28/types/group_0720.py +++ b/githubkit/versions/v2022_11_28/types/group_0720.py @@ -9,1024 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0462 import PullRequestWebhookType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["dismissed"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] - assignees: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedType", -) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0721.py b/githubkit/versions/v2022_11_28/types/group_0721.py index 99330aaaf..ccb223652 100644 --- a/githubkit/versions/v2022_11_28/types/group_0721.py +++ b/githubkit/versions/v2022_11_28/types/group_0721.py @@ -9,918 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0461 import WebhooksReviewType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0462 import PullRequestWebhookType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] - assignees: list[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: list[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: list[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedType", -) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0722.py b/githubkit/versions/v2022_11_28/types/group_0722.py index c3df5649d..9f0e5d52e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0722.py +++ b/githubkit/versions/v2022_11_28/types/group_0722.py @@ -14,29 +14,86 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["review_request_removed"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, None] + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -63,21 +120,49 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType +class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -91,76 +176,56 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict) "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -182,12 +247,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -211,14 +276,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesIt site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -227,13 +289,13 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -262,7 +324,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -276,38 +338,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -317,7 +348,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -334,7 +365,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -358,12 +389,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePr site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -387,14 +418,12 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -416,31 +445,31 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -448,7 +477,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -456,7 +485,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -464,7 +493,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -472,7 +501,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -480,7 +509,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -488,7 +517,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -496,7 +525,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -504,24 +533,19 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -550,7 +574,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -612,7 +636,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -628,11 +652,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -666,7 +690,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -678,7 +702,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -707,11 +731,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -721,53 +745,21 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -815,7 +807,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool + has_discussions: NotRequired[bool] homepage: Union[str, None] hooks_url: str html_url: str @@ -829,7 +821,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -845,11 +837,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -883,7 +875,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -895,7 +887,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -924,11 +916,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -938,7 +930,36 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -955,7 +976,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -966,11 +987,11 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -986,7 +1007,7 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,30 +1016,30 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1035,42 +1056,47 @@ class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTe __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0723.py b/githubkit/versions/v2022_11_28/types/group_0723.py index 904a8666b..2b102c262 100644 --- a/githubkit/versions/v2022_11_28/types/group_0723.py +++ b/githubkit/versions/v2022_11_28/types/group_0723.py @@ -14,85 +14,39 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0465 import WebhooksReviewCommentType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["review_request_removed"] + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -106,76 +60,56 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict) "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -202,7 +136,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -228,12 +162,9 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesIt subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -242,13 +173,13 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeTy commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -277,7 +208,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -291,38 +222,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -332,7 +232,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -349,7 +249,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneTy url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -378,7 +278,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePr user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -407,9 +307,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -431,31 +329,31 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType + comments: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -463,7 +361,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -471,7 +369,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCo href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -479,7 +377,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -487,7 +385,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIs href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -495,7 +393,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -503,7 +401,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropRe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -511,7 +409,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSe href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -519,24 +417,19 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSt href: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -565,7 +458,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUse user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -627,7 +520,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -643,11 +536,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -681,7 +574,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -693,7 +586,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -722,11 +615,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -736,53 +629,21 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" label: str ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) + repo: Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -844,7 +705,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -860,11 +721,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -898,7 +759,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -910,7 +771,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep url: Union[str, None] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -939,11 +800,11 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -953,7 +814,36 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRep triage: NotRequired[bool] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -962,30 +852,30 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -1001,7 +891,7 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedRe url: str -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -1010,30 +900,30 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1050,43 +940,40 @@ class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTe __all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0724.py b/githubkit/versions/v2022_11_28/types/group_0724.py index e17fbb8f7..f35c06aad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0724.py +++ b/githubkit/versions/v2022_11_28/types/group_0724.py @@ -14,69 +14,41 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0443 import WebhooksChangesType +from .group_0465 import WebhooksReviewCommentType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["review_requested"] + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -90,71 +62,56 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -176,12 +133,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(Typ site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -205,14 +162,12 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsTy site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -221,13 +176,13 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -256,7 +211,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -270,36 +225,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -309,7 +235,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -326,7 +252,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -355,7 +281,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCre user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -384,7 +310,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -407,30 +333,30 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDi starred_url: NotRequired[str] subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] user_view_type: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -438,7 +364,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -446,7 +372,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -454,7 +380,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -462,7 +388,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -470,7 +396,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -478,7 +404,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -486,7 +412,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -494,19 +420,19 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -535,7 +461,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -597,7 +523,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -613,11 +539,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -651,7 +577,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -663,7 +589,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -692,11 +618,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool @@ -706,48 +632,21 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -809,7 +708,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -825,11 +724,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -863,7 +762,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -875,7 +774,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -904,11 +803,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool @@ -918,7 +817,36 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -927,30 +855,30 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -966,7 +894,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -983,7 +911,7 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -994,11 +922,11 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -1015,42 +943,40 @@ class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0725.py b/githubkit/versions/v2022_11_28/types/group_0725.py index 31f35c0c9..a60b72431 100644 --- a/githubkit/versions/v2022_11_28/types/group_0725.py +++ b/githubkit/versions/v2022_11_28/types/group_0725.py @@ -14,82 +14,116 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["review_requested"] + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview - Groups of organization members that gives permissions on specified repositories. + The review that was affected. """ + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" +class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None ] assignees: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -103,70 +137,51 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType - ] + labels: list[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -193,9 +208,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -219,12 +232,9 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsTy subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -233,13 +243,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -268,9 +278,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -282,36 +290,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -321,7 +300,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -338,7 +317,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -362,12 +341,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -391,12 +370,12 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -423,26 +402,24 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDi user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -450,7 +427,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -458,23 +435,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -482,7 +455,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -490,15 +463,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -506,21 +477,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -547,9 +516,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -609,7 +576,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -625,11 +592,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -663,7 +630,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -675,7 +642,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -704,12 +671,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -718,50 +683,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -821,7 +757,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -837,11 +773,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -875,7 +811,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -887,7 +823,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -916,12 +852,10 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp user_view_type: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -930,7 +864,34 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -939,30 +900,30 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -978,7 +939,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -995,7 +956,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1006,11 +967,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -1027,43 +988,45 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0726.py b/githubkit/versions/v2022_11_28/types/group_0726.py index 9907d9e74..d6957c465 100644 --- a/githubkit/versions/v2022_11_28/types/group_0726.py +++ b/githubkit/versions/v2022_11_28/types/group_0726.py @@ -14,40 +14,49 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0461 import WebhooksReviewType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0466 import WebhooksReviewType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["submitted"] + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str + + +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): """Simple Pull Request""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None - ] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: list[ - Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None - ] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,9 +69,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,29 +79,29 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: list[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +110,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,7 +140,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -157,7 +166,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -166,13 +175,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -201,7 +210,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -213,7 +222,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -223,8 +232,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -240,7 +248,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -269,7 +277,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorTy user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -298,7 +306,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -325,52 +333,48 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -378,7 +382,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -386,33 +390,29 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -439,7 +439,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -485,7 +485,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -499,12 +498,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -515,11 +512,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -528,10 +524,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -546,14 +538,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -565,7 +555,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -594,10 +584,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -606,21 +596,17 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -666,7 +652,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -680,12 +665,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -696,11 +679,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -709,10 +691,6 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -727,14 +705,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int - web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +722,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,10 +751,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -787,7 +763,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -814,7 +790,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed user_view_type: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,7 +807,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -842,11 +818,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -862,7 +838,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -879,7 +855,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -890,12 +866,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -911,40 +885,42 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0727.py b/githubkit/versions/v2022_11_28/types/group_0727.py index 8b1ab439b..cf12554d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0727.py +++ b/githubkit/versions/v2022_11_28/types/group_0727.py @@ -14,38 +14,70 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["resolved"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserType + + +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] + additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, ] assignees: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, None, ] ] @@ -60,53 +92,75 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType ] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] + ] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -133,7 +187,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -159,9 +213,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -170,13 +227,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +262,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -219,7 +276,38 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -229,7 +317,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -246,7 +334,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -275,7 +363,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -299,12 +387,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -326,31 +416,31 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -358,7 +448,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -366,7 +456,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -374,7 +464,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -382,7 +472,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -390,7 +480,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,7 +488,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -406,7 +496,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -414,19 +504,24 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -455,7 +550,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -517,10 +612,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -531,11 +628,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -544,6 +641,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -558,13 +659,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +678,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -605,11 +707,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool @@ -619,21 +721,53 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None - ] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -695,10 +829,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -709,11 +845,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -722,6 +858,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -736,13 +876,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -754,7 +895,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -783,11 +924,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool @@ -797,36 +938,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,7 +955,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -854,11 +966,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -874,7 +986,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -883,30 +995,30 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] @@ -922,188 +1034,43 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0728.py b/githubkit/versions/v2022_11_28/types/group_0728.py index a3efdf4e0..fbf148038 100644 --- a/githubkit/versions/v2022_11_28/types/group_0728.py +++ b/githubkit/versions/v2022_11_28/types/group_0728.py @@ -14,38 +14,85 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unresolved"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType + sender: SimpleUserType + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] + additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, ] assignees: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, None, ] ] @@ -60,55 +107,73 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str labels: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType ] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] + ] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, ] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( TypedDict ): """User""" @@ -137,7 +202,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -163,9 +228,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsT subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( TypedDict ): """PullRequestAutoMerge @@ -174,15 +240,15 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +277,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -225,7 +291,36 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( TypedDict ): """Milestone @@ -237,7 +332,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -254,7 +349,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -283,7 +378,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -312,7 +407,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -339,26 +436,26 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedD user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -366,7 +463,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -374,7 +471,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -382,7 +479,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -390,7 +487,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueT href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +495,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,7 +503,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -414,7 +511,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -422,20 +519,24 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, None, ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -464,7 +565,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -526,10 +627,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -540,11 +643,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -553,6 +656,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -567,13 +674,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +693,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,11 +722,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions """ admin: bool @@ -628,20 +736,24 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, None, ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -670,7 +782,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserTyp user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -732,10 +844,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -746,11 +860,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -759,6 +873,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -773,13 +891,14 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -791,7 +910,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -820,11 +939,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro user_view_type: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions """ admin: bool @@ -834,7 +953,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,30 +962,30 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -882,7 +1001,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,30 +1010,30 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent """ description: Union[str, None] @@ -930,190 +1049,44 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: str -class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropThread""" - - comments: list[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( - TypedDict -): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: ( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( - TypedDict -): - """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" - - html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType - pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType - self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - __all__ = ( - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0729.py b/githubkit/versions/v2022_11_28/types/group_0729.py index cfb03cc6c..6137c7f2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0729.py +++ b/githubkit/versions/v2022_11_28/types/group_0729.py @@ -14,38 +14,71 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserType -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +91,9 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +105,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,10 +120,12 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] ] milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None ] node_id: str number: int @@ -96,13 +133,13 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -112,10 +149,12 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -142,7 +181,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -166,9 +207,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -177,12 +221,13 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -211,7 +256,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -223,7 +270,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -250,7 +297,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -260,7 +309,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -276,7 +326,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -305,7 +355,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,12 +379,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -361,48 +411,58 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -410,7 +470,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -418,29 +478,37 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -467,7 +535,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -527,7 +597,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -543,10 +613,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -580,7 +651,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -592,7 +663,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -621,10 +692,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -633,17 +706,21 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -670,7 +747,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -730,7 +809,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -746,10 +825,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -783,7 +863,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -795,7 +875,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -824,10 +904,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -836,7 +918,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -853,7 +935,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -864,11 +946,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -884,7 +966,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -901,7 +983,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -912,10 +994,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -931,41 +1015,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar __all__ = ( - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0730.py b/githubkit/versions/v2022_11_28/types/group_0730.py index 338a0dfb2..a9faa73f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0730.py +++ b/githubkit/versions/v2022_11_28/types/group_0730.py @@ -14,38 +14,83 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0442 import WebhooksUserMannequinType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + sender: SimpleUserType -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +103,9 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +117,13 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,22 +132,26 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -110,10 +161,12 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,7 +193,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -164,9 +219,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -175,12 +233,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +268,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -221,7 +282,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -243,12 +304,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -258,7 +321,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -274,7 +338,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -303,7 +367,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -327,12 +391,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -359,48 +423,58 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -408,7 +482,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -416,29 +490,37 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -465,7 +547,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -525,7 +609,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -540,10 +625,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -577,7 +663,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -589,7 +675,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -618,10 +704,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -630,17 +718,50 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -700,7 +821,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -715,10 +837,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -752,7 +875,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -764,7 +887,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -793,10 +916,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -805,34 +930,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -841,30 +939,30 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -880,7 +978,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -895,7 +995,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -906,10 +1006,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -925,41 +1027,43 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare __all__ = ( - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0731.py b/githubkit/versions/v2022_11_28/types/group_0731.py index 58bd42c23..6760146ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0731.py +++ b/githubkit/versions/v2022_11_28/types/group_0731.py @@ -14,38 +14,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0434 import WebhooksLabelType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0466 import WebhooksReviewType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["unlabeled"] + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType repository: RepositoryWebhooksType + review: WebhooksReviewType sender: SimpleUserType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,61 +59,52 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: list[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -138,7 +131,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -164,7 +157,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -173,12 +166,13 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +201,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -219,34 +213,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -256,7 +223,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -272,7 +240,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -299,7 +269,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -328,7 +298,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -355,48 +325,52 @@ class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +378,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +386,33 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -461,7 +439,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -521,7 +499,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -536,10 +515,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -573,7 +553,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +565,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -614,10 +594,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -626,17 +606,21 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" label: Union[str, None] ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -696,7 +680,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -711,10 +696,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -748,7 +734,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -760,7 +746,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -789,10 +775,10 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -801,7 +787,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -828,7 +814,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -845,7 +831,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -856,11 +842,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -876,7 +862,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -891,7 +879,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +890,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(Type url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] html_url: str @@ -921,41 +911,40 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen __all__ = ( - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0732.py b/githubkit/versions/v2022_11_28/types/group_0732.py index b7b904fed..e1205bfee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0732.py +++ b/githubkit/versions/v2022_11_28/types/group_0732.py @@ -14,36 +14,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" - action: Literal["unlocked"] + action: Literal["resolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + ] assignees: list[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,61 +59,54 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + labels: list[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: list[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: list[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +133,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -162,21 +161,22 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +205,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -217,34 +219,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -254,7 +229,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -270,7 +246,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -297,7 +275,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(Type user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,12 +299,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -348,53 +326,63 @@ class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType ) - review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +390,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +398,37 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -459,7 +455,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -519,11 +517,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -534,10 +531,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -546,10 +544,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -564,14 +558,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -583,7 +576,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -610,10 +605,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -622,17 +619,23 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -692,11 +695,10 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -707,10 +709,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -719,10 +722,6 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -737,14 +736,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): trees_url: str updated_at: datetime url: str - use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -756,7 +754,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -783,10 +783,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -795,7 +797,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -822,7 +826,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): user_view_type: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -831,30 +835,30 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -870,7 +874,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +891,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +902,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ description: Union[str, None] html_url: str @@ -914,42 +922,188 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: ( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: Union[int, None] + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0733.py b/githubkit/versions/v2022_11_28/types/group_0733.py index 82153f8f6..97bf40780 100644 --- a/githubkit/versions/v2022_11_28/types/group_0733.py +++ b/githubkit/versions/v2022_11_28/types/group_0733.py @@ -10,129 +10,463 @@ from __future__ import annotations from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookPushType(TypedDict): - """push event""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - after: str - base_ref: Union[str, None] - before: str - commits: list[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -class WebhookPushPropHeadCommitType(TypedDict): - """Commit""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" - added: NotRequired[list[str]] - author: WebhookPushPropHeadCommitPropAuthorType - committer: WebhookPushPropHeadCommitPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + ] + assignees: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: list[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + The status of auto merging a pull request. + """ -class WebhookPushPropPusherType(TypedDict): - """Committer + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[list[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[list[str]] - removed: NotRequired[list[str]] - timestamp: datetime - tree_id: str + node_id: str url: str -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone - Metaproperties for Git author/committer information. + A collection of related issues and pull requests. """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str -class WebhookPushPropRepositoryType(TypedDict): + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -157,7 +491,6 @@ class WebhookPushPropRepositoryType(TypedDict): contents_url: str contributors_url: str created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str @@ -192,7 +525,10 @@ class WebhookPushPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] master_branch: NotRequired[str] merges_url: str milestones_url: str @@ -203,8 +539,13 @@ class WebhookPushPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -232,16 +573,215 @@ class WebhookPushPropRepositoryType(TypedDict): web_commit_signoff_required: NotRequired[bool] -WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookPushPropRepositoryPropCustomProperties +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" -class WebhookPushPropRepositoryPropLicenseType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -251,7 +791,9 @@ class WebhookPushPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookPushPropRepositoryPropOwnerType(TypedDict): +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -278,8 +820,12 @@ class WebhookPushPropRepositoryPropOwnerType(TypedDict): user_view_type: NotRequired[str] -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ admin: bool maintain: NotRequired[bool] @@ -288,18 +834,286 @@ class WebhookPushPropRepositoryPropPermissionsType(TypedDict): triage: NotRequired[bool] +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: list[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: ( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType + self_: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + __all__ = ( - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropPusherType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", - "WebhookPushPropRepositoryType", - "WebhookPushType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0734.py b/githubkit/versions/v2022_11_28/types/group_0734.py index 5a487d45b..4ee511008 100644 --- a/githubkit/versions/v2022_11_28/types/group_0734.py +++ b/githubkit/versions/v2022_11_28/types/group_0734.py @@ -9,27 +9,963 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0735 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" - action: Literal["published"] + action: Literal["synchronize"] + after: str + before: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0735.py b/githubkit/versions/v2022_11_28/types/group_0735.py index 596b457f3..bc0d32a06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0735.py +++ b/githubkit/versions/v2022_11_28/types/group_0735.py @@ -9,71 +9,957 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0736 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0447 import WebhooksUserMannequinType + + +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" + + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] + + +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" - created_at: Union[str, None] + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str description: Union[str, None] - ecosystem: str + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - updated_at: Union[str, None] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" - avatar_url: str + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + - about_url: NotRequired[str] +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - type: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - vendor: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0736.py b/githubkit/versions/v2022_11_28/types/group_0736.py index a24e270a8..66dc21db9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0736.py +++ b/githubkit/versions/v2022_11_28/types/group_0736.py @@ -9,479 +9,813 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict - -from .group_0655 import WebhookRubygemsMetadataType - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType - ] - body: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, - ] +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0439 import WebhooksLabelType + + +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" + + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - draft: NotRequired[bool] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + issue_url: str + labels: list[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ Union[ - list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - package_files: list[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + requested_teams: list[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + merge_method: Literal["merge", "squash", "rebase"] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str url: str - user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - tags: NotRequired[list[str]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata -Items -""" +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[list[str]] - contributors: NotRequired[list[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[list[str]] - files: NotRequired[list[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[list[str]] - cpu: NotRequired[list[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] - content_type: str - created_at: str - download_url: str + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository """ - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ - + """License""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + """User""" - digest: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository """ - id: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 - """ + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] + user_view_type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - ] - created_at: NotRequired[str] - draft: NotRequired[bool] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - prerelease: NotRequired[bool] - published_at: NotRequired[str] - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - url: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -489,39 +823,139 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] user_view_type: NotRequired[str] +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0737.py b/githubkit/versions/v2022_11_28/types/group_0737.py index 4955f870c..4890ee544 100644 --- a/githubkit/versions/v2022_11_28/types/group_0737.py +++ b/githubkit/versions/v2022_11_28/types/group_0737.py @@ -9,27 +9,947 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0738 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" - action: Literal["updated"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestUnlockedPropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: list[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: list[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: list[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: list[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0738.py b/githubkit/versions/v2022_11_28/types/group_0738.py index 42db9d0f5..0a3e5d16b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0738.py +++ b/githubkit/versions/v2022_11_28/types/group_0738.py @@ -9,65 +9,297 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0739 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" +class WebhookPushType(TypedDict): + """push event""" - created_at: str - description: None - ecosystem: str - html_url: str - id: int + after: str + base_ref: Union[str, None] + before: str + commits: list[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool + enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType + sender: NotRequired[SimpleUserType] + + +class WebhookPushPropHeadCommitType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropHeadCommitPropAuthorType + committer: WebhookPushPropHeadCommitPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropPusherType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: NotRequired[Union[str, None]] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsType(TypedDict): + """Commit""" + + added: NotRequired[list[str]] + author: WebhookPushPropCommitsItemsPropAuthorType + committer: WebhookPushPropCommitsItemsPropCommitterType + distinct: bool + id: str + message: str + modified: NotRequired[list[str]] + removed: NotRequired[list[str]] + timestamp: datetime + tree_id: str + url: str + + +class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType - ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None - ] - updated_at: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" - - avatar_url: str + username: NotRequired[str] + + +class WebhookPushPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookPushPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +WebhookPushPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookPushPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookPushPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPushPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] user_view_type: NotRequired[str] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", - "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropPusherType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPushPropRepositoryType", + "WebhookPushType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0739.py b/githubkit/versions/v2022_11_28/types/group_0739.py index 288b6cd19..5ad4ab127 100644 --- a/githubkit/versions/v2022_11_28/types/group_0739.py +++ b/githubkit/versions/v2022_11_28/types/group_0739.py @@ -9,172 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0655 import WebhookRubygemsMetadataType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0740 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - list[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: list[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ - - tags: NotRequired[list[str]] - - -WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ - str, Any -] -"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt -ems -""" - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ - - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] - name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" - - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor - """ - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str - id: int - login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - user_view_type: NotRequired[str] - - -__all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", -) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0740.py b/githubkit/versions/v2022_11_28/types/group_0740.py index 763c5ceab..72a378100 100644 --- a/githubkit/versions/v2022_11_28/types/group_0740.py +++ b/githubkit/versions/v2022_11_28/types/group_0740.py @@ -9,27 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0462 import WebhooksReleaseType +from .group_0741 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: SimpleUserType + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + ] + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -__all__ = ("WebhookReleaseCreatedType",) +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0741.py b/githubkit/versions/v2022_11_28/types/group_0741.py index d7f935c06..90cad580f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0741.py +++ b/githubkit/versions/v2022_11_28/types/group_0741.py @@ -9,27 +9,519 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0462 import WebhooksReleaseType +from .group_0660 import WebhookRubygemsMetadataType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: SimpleUserType + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: list[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookReleaseDeletedType",) +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata +Items +""" + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ata + """ + + name: NotRequired[str] + version: NotRequired[str] + npm_user: NotRequired[str] + author: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, + None, + ] + ] + bugs: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, + None, + ] + ] + dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType + ] + dev_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType + ] + peer_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType + ] + optional_dependencies: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType + ] + description: NotRequired[str] + dist: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, + None, + ] + ] + git_head: NotRequired[str] + homepage: NotRequired[str] + license_: NotRequired[str] + main: NotRequired[str] + repository: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, + None, + ] + ] + scripts: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType + ] + id: NotRequired[str] + node_version: NotRequired[str] + npm_version: NotRequired[str] + has_shrinkwrap: NotRequired[bool] + maintainers: NotRequired[list[str]] + contributors: NotRequired[list[str]] + engines: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType + ] + keywords: NotRequired[list[str]] + files: NotRequired[list[str]] + bin_: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType + ] + man: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType + ] + directories: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, + None, + ] + ] + os: NotRequired[list[str]] + cpu: NotRequired[list[str]] + readme: NotRequired[str] + installation_command: NotRequired[str] + release_id: NotRequired[int] + commit_oid: NotRequired[str] + published_via_actions: NotRequired[bool] + deleted_by_id: NotRequired[int] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropAuthorOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBugsOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDevDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropPeerDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropOptionalDependencies + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDistOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropRepositoryOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropScripts + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropEngines + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropBin + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropMan + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad + ataPropDirectoriesOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF + ilesItems + """ + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: Union[str, None] + size: int + state: Union[str, None] + updated_at: str + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadata + """ + + labels: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, + None, + ] + ] + manifest: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, + None, + ] + ] + tag: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropLabels + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropManifest + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine + rMetadataPropTag + """ + + digest: NotRequired[str] + name: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItems + """ + + id: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, + int, + None, + ] + ] + name: NotRequired[str] + value: NotRequired[ + Union[ + bool, + str, + int, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, + ] + ] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropIdOneof1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet + adataItemsPropValueOneof3 + """ + + url: NotRequired[str] + branch: NotRequired[str] + commit: NotRequired[str] + type: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + ] + created_at: NotRequired[str] + draft: NotRequired[bool] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + prerelease: NotRequired[bool] + published_at: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + url: NotRequired[str] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP + ropAuthor + """ + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0742.py b/githubkit/versions/v2022_11_28/types/group_0742.py index 1d80bbe95..8ffa13fc6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0742.py +++ b/githubkit/versions/v2022_11_28/types/group_0742.py @@ -13,64 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0462 import WebhooksReleaseType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0743 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookReleaseEditedType(TypedDict): - """release edited event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropTagName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool - - -__all__ = ( - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropTagNameType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedType", -) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0743.py b/githubkit/versions/v2022_11_28/types/group_0743.py index e5ee4e80e..cba1ccca3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0743.py +++ b/githubkit/versions/v2022_11_28/types/group_0743.py @@ -9,154 +9,65 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType - - -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" - - action: Literal["prereleased"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] - +from .group_0744 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + created_at: str + description: None + ecosystem: str html_url: str id: int - name: Union[str, None] - node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + namespace: str + owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType + package_type: str + package_version: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + ) + registry: Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None ] - url: str + updated_at: str -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str user_view_type: NotRequired[str] -class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" __all__ = ( - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookRegistryPackageUpdatedPropRegistryPackageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0744.py b/githubkit/versions/v2022_11_28/types/group_0744.py index a07561624..7cf54ab8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0744.py +++ b/githubkit/versions/v2022_11_28/types/group_0744.py @@ -9,27 +9,172 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0463 import WebhooksRelease1Type +from .group_0660 import WebhookRubygemsMetadataType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + list[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: list[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[list[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookReleasePublishedType",) +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: NotRequired[list[str]] + + +WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType: TypeAlias = dict[ + str, Any +] +"""WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt +ems +""" + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil + esItems + """ + + content_type: NotRequired[str] + created_at: NotRequired[str] + download_url: NotRequired[str] + id: NotRequired[int] + md5: NotRequired[Union[str, None]] + name: NotRequired[str] + sha1: NotRequired[Union[str, None]] + sha256: NotRequired[str] + size: NotRequired[int] + state: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + + author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro + pAuthor + """ + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str + id: int + login: str + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0745.py b/githubkit/versions/v2022_11_28/types/group_0745.py index 7b5734e06..0f3793b06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0745.py +++ b/githubkit/versions/v2022_11_28/types/group_0745.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0462 import WebhooksReleaseType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0467 import WebhooksReleaseType -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["released"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookReleaseReleasedType",) +__all__ = ("WebhookReleaseCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0746.py b/githubkit/versions/v2022_11_28/types/group_0746.py index bfe0fdce2..a0d03e0ba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0746.py +++ b/githubkit/versions/v2022_11_28/types/group_0746.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0463 import WebhooksRelease1Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0467 import WebhooksReleaseType -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["unpublished"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("WebhookReleaseDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0747.py b/githubkit/versions/v2022_11_28/types/group_0747.py index 91ddf5146..a23288773 100644 --- a/githubkit/versions/v2022_11_28/types/group_0747.py +++ b/githubkit/versions/v2022_11_28/types/group_0747.py @@ -13,23 +13,64 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0178 import RepositoryAdvisoryType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0467 import WebhooksReleaseType -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["published"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + tag_name: NotRequired[WebhookReleaseEditedPropChangesPropTagNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropTagNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropTagName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropTagNameType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0748.py b/githubkit/versions/v2022_11_28/types/group_0748.py index 96afe146d..2b86b8061 100644 --- a/githubkit/versions/v2022_11_28/types/group_0748.py +++ b/githubkit/versions/v2022_11_28/types/group_0748.py @@ -9,27 +9,155 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0178 import RepositoryAdvisoryType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: Literal["reported"] + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ + + assets: list[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + digest: Union[str, None] + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +__all__ = ( + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0749.py b/githubkit/versions/v2022_11_28/types/group_0749.py index 73c56ced4..8bf21d476 100644 --- a/githubkit/versions/v2022_11_28/types/group_0749.py +++ b/githubkit/versions/v2022_11_28/types/group_0749.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0468 import WebhooksRelease1Type -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["archived"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ("WebhookReleasePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0750.py b/githubkit/versions/v2022_11_28/types/group_0750.py index 21c71ed79..f16e81202 100644 --- a/githubkit/versions/v2022_11_28/types/group_0750.py +++ b/githubkit/versions/v2022_11_28/types/group_0750.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0467 import WebhooksReleaseType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["created"] + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ("WebhookReleaseReleasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0751.py b/githubkit/versions/v2022_11_28/types/group_0751.py index 27a8bb391..123d2e791 100644 --- a/githubkit/versions/v2022_11_28/types/group_0751.py +++ b/githubkit/versions/v2022_11_28/types/group_0751.py @@ -13,21 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0468 import WebhooksRelease1Type -class WebhookRepositoryDeletedType(TypedDict): - """repository deleted event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["deleted"] + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookRepositoryDeletedType",) +__all__ = ("WebhookReleaseUnpublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0752.py b/githubkit/versions/v2022_11_28/types/group_0752.py index 8fb64e7db..09f2640b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0752.py +++ b/githubkit/versions/v2022_11_28/types/group_0752.py @@ -9,38 +9,27 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0182 import RepositoryAdvisoryType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] -"""WebhookRepositoryDispatchSamplePropClientPayload - -The `client_payload` that was specified in the `POST -/repos/{owner}/{repo}/dispatches` request body. -""" - - -__all__ = ( - "WebhookRepositoryDispatchSamplePropClientPayloadType", - "WebhookRepositoryDispatchSampleType", -) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0753.py b/githubkit/versions/v2022_11_28/types/group_0753.py index 598999563..ed5581b3b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0753.py +++ b/githubkit/versions/v2022_11_28/types/group_0753.py @@ -9,66 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0182 import RepositoryAdvisoryType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserType] -class WebhookRepositoryEditedPropChangesType(TypedDict): - """WebhookRepositoryEditedPropChanges""" - - default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] - description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] - homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] - topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] - - -class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str - - -class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] - - -class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: NotRequired[Union[list[str], None]] - - -__all__ = ( - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedType", -) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0754.py b/githubkit/versions/v2022_11_28/types/group_0754.py index abab40805..81231c580 100644 --- a/githubkit/versions/v2022_11_28/types/group_0754.py +++ b/githubkit/versions/v2022_11_28/types/group_0754.py @@ -13,21 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0755.py b/githubkit/versions/v2022_11_28/types/group_0755.py index f06879463..63dba6410 100644 --- a/githubkit/versions/v2022_11_28/types/group_0755.py +++ b/githubkit/versions/v2022_11_28/types/group_0755.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["privatized"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPrivatizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0756.py b/githubkit/versions/v2022_11_28/types/group_0756.py index 7b08dfa27..0b6bf5222 100644 --- a/githubkit/versions/v2022_11_28/types/group_0756.py +++ b/githubkit/versions/v2022_11_28/types/group_0756.py @@ -13,16 +13,16 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["publicized"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookRepositoryPublicizedType(TypedDict): sender: SimpleUserType -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0757.py b/githubkit/versions/v2022_11_28/types/group_0757.py index d7fa2f808..4b99cbf24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0757.py +++ b/githubkit/versions/v2022_11_28/types/group_0757.py @@ -9,49 +9,38 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" +WebhookRepositoryDispatchSamplePropClientPayloadType: TypeAlias = dict[str, Any] +"""WebhookRepositoryDispatchSamplePropClientPayload - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str +The `client_payload` that was specified in the `POST +/repos/{owner}/{repo}/dispatches` request body. +""" __all__ = ( - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedType", + "WebhookRepositoryDispatchSamplePropClientPayloadType", + "WebhookRepositoryDispatchSampleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0758.py b/githubkit/versions/v2022_11_28/types/group_0758.py index 14dcb2d9b..e4c029215 100644 --- a/githubkit/versions/v2022_11_28/types/group_0758.py +++ b/githubkit/versions/v2022_11_28/types/group_0758.py @@ -9,27 +9,66 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0169 import RepositoryRulesetType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" + + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] + + +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + + from_: str + + +class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDescription""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: NotRequired[Union[list[str], None]] + + +__all__ = ( + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0759.py b/githubkit/versions/v2022_11_28/types/group_0759.py index 267bac91a..8d7b5f791 100644 --- a/githubkit/versions/v2022_11_28/types/group_0759.py +++ b/githubkit/versions/v2022_11_28/types/group_0759.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0169 import RepositoryRulesetType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserType + status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0760.py b/githubkit/versions/v2022_11_28/types/group_0760.py index 7e83b652e..732c006f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0760.py +++ b/githubkit/versions/v2022_11_28/types/group_0760.py @@ -13,25 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0169 import RepositoryRulesetType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0761 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - action: Literal["edited"] + action: Literal["privatized"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + repository: RepositoryWebhooksType sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedType",) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0761.py b/githubkit/versions/v2022_11_28/types/group_0761.py index ff354c6dc..4151ab6d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0761.py +++ b/githubkit/versions/v2022_11_28/types/group_0761.py @@ -9,37 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0762 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -from .group_0764 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] + action: Literal["publicized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesType", -) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0762.py b/githubkit/versions/v2022_11_28/types/group_0762.py index 86cfb0deb..ae9c329bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0762.py +++ b/githubkit/versions/v2022_11_28/types/group_0762.py @@ -9,24 +9,49 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0122 import RepositoryRulesetConditionsType -from .group_0763 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" + + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + + +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: NotRequired[list[RepositoryRulesetConditionsType]] - deleted: NotRequired[list[RepositoryRulesetConditionsType]] - updated: NotRequired[ - list[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str + + +__all__ = ( + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0763.py b/githubkit/versions/v2022_11_28/types/group_0763.py index d01eb5e33..1f6c92bc9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0763.py +++ b/githubkit/versions/v2022_11_28/types/group_0763.py @@ -9,88 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0122 import RepositoryRulesetConditionsType +from .group_0003 import SimpleUserType +from .group_0173 import RepositoryRulesetType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[list[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[list[str]] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", -) +__all__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0764.py b/githubkit/versions/v2022_11_28/types/group_0764.py index 7972f07ca..226a580e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0764.py +++ b/githubkit/versions/v2022_11_28/types/group_0764.py @@ -9,97 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0133 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0134 import RepositoryRuleUpdateType -from .group_0136 import RepositoryRuleRequiredLinearHistoryType -from .group_0137 import RepositoryRuleMergeQueueType -from .group_0139 import RepositoryRuleRequiredDeploymentsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0156 import RepositoryRuleFilePathRestrictionType -from .group_0158 import RepositoryRuleMaxFilePathLengthType -from .group_0160 import RepositoryRuleFileExtensionRestrictionType -from .group_0162 import RepositoryRuleMaxFileSizeType -from .group_0165 import RepositoryRuleWorkflowsType -from .group_0167 import RepositoryRuleCodeScanningType -from .group_0765 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) +from .group_0003 import SimpleUserType +from .group_0173 import RepositoryRulesetType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - added: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - deleted: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - updated: NotRequired[ - list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + sender: SimpleUserType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0765.py b/githubkit/versions/v2022_11_28/types/group_0765.py index 9a8dd387c..a7166a129 100644 --- a/githubkit/versions/v2022_11_28/types/group_0765.py +++ b/githubkit/versions/v2022_11_28/types/group_0765.py @@ -9,117 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0133 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0134 import RepositoryRuleUpdateType -from .group_0136 import RepositoryRuleRequiredLinearHistoryType -from .group_0137 import RepositoryRuleMergeQueueType -from .group_0139 import RepositoryRuleRequiredDeploymentsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0156 import RepositoryRuleFilePathRestrictionType -from .group_0158 import RepositoryRuleMaxFilePathLengthType -from .group_0160 import RepositoryRuleFileExtensionRestrictionType -from .group_0162 import RepositoryRuleMaxFileSizeType -from .group_0165 import RepositoryRuleWorkflowsType -from .group_0167 import RepositoryRuleCodeScanningType +from .group_0003 import SimpleUserType +from .group_0173 import RepositoryRulesetType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0766 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] + action: Literal["edited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + sender: SimpleUserType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", -) +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0766.py b/githubkit/versions/v2022_11_28/types/group_0766.py index 957ccbd10..14bfeda70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0766.py +++ b/githubkit/versions/v2022_11_28/types/group_0766.py @@ -9,105 +9,37 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0767 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0769 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookRepositoryTransferredPropChangesType(TypedDict): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwnerType - - -class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwner""" + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + from_: NotRequired[str] - organization: NotRequired[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType - ] - user: NotRequired[ - Union[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None - ] - ] +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( - TypedDict -): - """Organization""" - - avatar_url: str - description: Union[str, None] - events_url: str - hooks_url: str - html_url: NotRequired[str] - id: int - issues_url: str - login: str - members_url: str - node_id: str - public_members_url: str - repos_url: str - url: str - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] + from_: NotRequired[str] __all__ = ( - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredType", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0767.py b/githubkit/versions/v2022_11_28/types/group_0767.py index 1273a2da6..6272f9ede 100644 --- a/githubkit/versions/v2022_11_28/types/group_0767.py +++ b/githubkit/versions/v2022_11_28/types/group_0767.py @@ -9,25 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0126 import RepositoryRulesetConditionsType +from .group_0768 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - action: Literal["unarchived"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + added: NotRequired[list[RepositoryRulesetConditionsType]] + deleted: NotRequired[list[RepositoryRulesetConditionsType]] + updated: NotRequired[ + list[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] + ] -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0768.py b/githubkit/versions/v2022_11_28/types/group_0768.py index 8a93927e5..1a71158be 100644 --- a/githubkit/versions/v2022_11_28/types/group_0768.py +++ b/githubkit/versions/v2022_11_28/types/group_0768.py @@ -9,27 +9,88 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0464 import WebhooksAlertType +from .group_0126 import RepositoryRulesetConditionsType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["create"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType + ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[list[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[list[str]] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0769.py b/githubkit/versions/v2022_11_28/types/group_0769.py index d86050da8..bc350b450 100644 --- a/githubkit/versions/v2022_11_28/types/group_0769.py +++ b/githubkit/versions/v2022_11_28/types/group_0769.py @@ -9,86 +9,97 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType - - -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" - - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): - """Repository Vulnerability Alert Alert +from .group_0137 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0138 import RepositoryRuleUpdateType +from .group_0140 import RepositoryRuleRequiredLinearHistoryType +from .group_0141 import RepositoryRuleMergeQueueType +from .group_0143 import RepositoryRuleRequiredDeploymentsType +from .group_0146 import RepositoryRulePullRequestType +from .group_0148 import RepositoryRuleRequiredStatusChecksType +from .group_0150 import RepositoryRuleCommitMessagePatternType +from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0154 import RepositoryRuleCommitterEmailPatternType +from .group_0156 import RepositoryRuleBranchNamePatternType +from .group_0158 import RepositoryRuleTagNamePatternType +from .group_0160 import RepositoryRuleFilePathRestrictionType +from .group_0162 import RepositoryRuleMaxFilePathLengthType +from .group_0164 import RepositoryRuleFileExtensionRestrictionType +from .group_0166 import RepositoryRuleMaxFileSizeType +from .group_0169 import RepositoryRuleWorkflowsType +from .group_0171 import RepositoryRuleCodeScanningType +from .group_0770 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) - The security alert of the vulnerable dependency. - """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_comment: NotRequired[Union[str, None]] - dismiss_reason: str - dismissed_at: str - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + deleted: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + updated: NotRequired[ + list[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["dismissed"] - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", - "WebhookRepositoryVulnerabilityAlertDismissType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0770.py b/githubkit/versions/v2022_11_28/types/group_0770.py index fab3bdb16..043dcc63e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0770.py +++ b/githubkit/versions/v2022_11_28/types/group_0770.py @@ -9,27 +9,117 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0464 import WebhooksAlertType +from .group_0137 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0138 import RepositoryRuleUpdateType +from .group_0140 import RepositoryRuleRequiredLinearHistoryType +from .group_0141 import RepositoryRuleMergeQueueType +from .group_0143 import RepositoryRuleRequiredDeploymentsType +from .group_0146 import RepositoryRulePullRequestType +from .group_0148 import RepositoryRuleRequiredStatusChecksType +from .group_0150 import RepositoryRuleCommitMessagePatternType +from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0154 import RepositoryRuleCommitterEmailPatternType +from .group_0156 import RepositoryRuleBranchNamePatternType +from .group_0158 import RepositoryRuleTagNamePatternType +from .group_0160 import RepositoryRuleFilePathRestrictionType +from .group_0162 import RepositoryRuleMaxFilePathLengthType +from .group_0164 import RepositoryRuleFileExtensionRestrictionType +from .group_0166 import RepositoryRuleMaxFileSizeType +from .group_0169 import RepositoryRuleWorkflowsType +from .group_0171 import RepositoryRuleCodeScanningType -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - action: Literal["reopen"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType + ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0771.py b/githubkit/versions/v2022_11_28/types/group_0771.py index e1f5c276b..69e6ac611 100644 --- a/githubkit/versions/v2022_11_28/types/group_0771.py +++ b/githubkit/versions/v2022_11_28/types/group_0771.py @@ -9,22 +9,21 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,36 +31,52 @@ class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): sender: SimpleUserType -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhookRepositoryTransferredPropChangesType(TypedDict): + """WebhookRepositoryTransferredPropChanges""" - The security alert of the vulnerable dependency. - """ + owner: WebhookRepositoryTransferredPropChangesPropOwnerType - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ + +class WebhookRepositoryTransferredPropChangesPropOwnerType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFromType + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromType(TypedDict): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: NotRequired[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType + ] + user: NotRequired[ Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, None ] ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType( + TypedDict +): + """Organization""" + + avatar_url: str + description: Union[str, None] + events_url: str + hooks_url: str + html_url: NotRequired[str] id: int + issues_url: str + login: str + members_url: str node_id: str - number: int - severity: str - state: Literal["fixed", "open"] + public_members_url: str + repos_url: str + url: str -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -85,10 +100,14 @@ class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(Typed subscriptions_url: NotRequired[str] type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", - "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0772.py b/githubkit/versions/v2022_11_28/types/group_0772.py index b12f559d3..c5fc42ada 100644 --- a/githubkit/versions/v2022_11_28/types/group_0772.py +++ b/githubkit/versions/v2022_11_28/types/group_0772.py @@ -13,23 +13,21 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0465 import SecretScanningAlertWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType + action: Literal["unarchived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertCreatedType",) +__all__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0773.py b/githubkit/versions/v2022_11_28/types/group_0773.py index ef5e296b7..4245c8c30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0773.py +++ b/githubkit/versions/v2022_11_28/types/group_0773.py @@ -9,228 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0465 import SecretScanningAlertWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0469 import WebhooksAlertType -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType + action: Literal["create"] + alert: WebhooksAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" - - type: NotRequired[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - - -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str - - -__all__ = ( - "SecretScanningLocationCommitType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationType", - "SecretScanningLocationWikiCommitType", - "WebhookSecretScanningAlertLocationCreatedType", -) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0774.py b/githubkit/versions/v2022_11_28/types/group_0774.py index 4c3c84e39..e43b98b2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0774.py +++ b/githubkit/versions/v2022_11_28/types/group_0774.py @@ -9,13 +9,86 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_comment: NotRequired[Union[str, None]] + dismiss_reason: str + dismissed_at: str + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, None + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["dismissed"] + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0775.py b/githubkit/versions/v2022_11_28/types/group_0775.py index 66294c0a5..c5af1583a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0775.py +++ b/githubkit/versions/v2022_11_28/types/group_0775.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0465 import SecretScanningAlertWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0469 import WebhooksAlertType -class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): - """secret_scanning_alert publicly leaked event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["publicly_leaked"] - alert: SecretScanningAlertWebhookType + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0776.py b/githubkit/versions/v2022_11_28/types/group_0776.py index 2e19e1916..d7786a02f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0776.py +++ b/githubkit/versions/v2022_11_28/types/group_0776.py @@ -9,27 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0465 import SecretScanningAlertWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertReopenedType",) +class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[ + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + ] + ] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["fixed", "open"] + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolveType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0777.py b/githubkit/versions/v2022_11_28/types/group_0777.py index a5f677e72..466080600 100644 --- a/githubkit/versions/v2022_11_28/types/group_0777.py +++ b/githubkit/versions/v2022_11_28/types/group_0777.py @@ -13,17 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0465 import SecretScanningAlertWebhookType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0470 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["resolved"] + action: Literal["created"] alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookSecretScanningAlertResolvedType(TypedDict): sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0778.py b/githubkit/versions/v2022_11_28/types/group_0778.py index 5bd424c12..5c2acb036 100644 --- a/githubkit/versions/v2022_11_28/types/group_0778.py +++ b/githubkit/versions/v2022_11_28/types/group_0778.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0465 import SecretScanningAlertWebhookType +from .group_0381 import SecretScanningLocationType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0470 import SecretScanningAlertWebhookType -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" - action: Literal["validated"] + action: Literal["created"] alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserType] + sender: SimpleUserType -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0779.py b/githubkit/versions/v2022_11_28/types/group_0779.py index 817cf5b46..4c3c84e39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0779.py +++ b/githubkit/versions/v2022_11_28/types/group_0779.py @@ -9,35 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType - - -class WebhookSecretScanningScanCompletedType(TypedDict): - """secret_scanning_scan completed event""" - - action: Literal["completed"] - type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] - source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] - started_at: datetime - completed_at: datetime - secret_types: NotRequired[Union[list[str], None]] - custom_pattern_name: NotRequired[Union[str, None]] - custom_pattern_scope: NotRequired[ - Union[None, Literal["repository", "organization", "enterprise"]] - ] - repository: NotRequired[RepositoryWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - sender: NotRequired[SimpleUserType] - - -__all__ = ("WebhookSecretScanningScanCompletedType",) +from typing_extensions import TypedDict + + +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" + + payload: str + + +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0780.py b/githubkit/versions/v2022_11_28/types/group_0780.py index 8b33d8a0d..b931e715e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0780.py +++ b/githubkit/versions/v2022_11_28/types/group_0780.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0466 import WebhooksSecurityAdvisoryType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0470 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" +class WebhookSecretScanningAlertPubliclyLeakedType(TypedDict): + """secret_scanning_alert publicly leaked event""" - action: Literal["published"] + action: Literal["publicly_leaked"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +__all__ = ("WebhookSecretScanningAlertPubliclyLeakedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0781.py b/githubkit/versions/v2022_11_28/types/group_0781.py index 303a787d0..16973422a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0781.py +++ b/githubkit/versions/v2022_11_28/types/group_0781.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0466 import WebhooksSecurityAdvisoryType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0470 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - action: Literal["updated"] + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0782.py b/githubkit/versions/v2022_11_28/types/group_0782.py index 158e22759..473e7664a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0782.py +++ b/githubkit/versions/v2022_11_28/types/group_0782.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0783 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0470 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["withdrawn"] + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0783.py b/githubkit/versions/v2022_11_28/types/group_0783.py index f38acab63..fe15ed3e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0783.py +++ b/githubkit/versions/v2022_11_28/types/group_0783.py @@ -9,113 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0001 import CvssSeveritiesType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0470 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - The details of the security advisory, including summary, description, and - severity. - """ + action: Literal["validated"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserType] - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] - cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType - ] - published_at: str - references: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType - ] - severity: str - summary: str - updated_at: str - vulnerabilities: list[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType - ] - withdrawn_at: str - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" - - url: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: str - - -__all__ = ( - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", -) +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0784.py b/githubkit/versions/v2022_11_28/types/group_0784.py index e83928f4a..3e137c21b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0784.py +++ b/githubkit/versions/v2022_11_28/types/group_0784.py @@ -9,25 +9,35 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0120 import FullRepositoryType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0785 import WebhookSecurityAndAnalysisPropChangesType - - -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" - - changes: WebhookSecurityAndAnalysisPropChangesType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookSecretScanningScanCompletedType(TypedDict): + """secret_scanning_scan completed event""" + + action: Literal["completed"] + type: Literal["backfill", "custom-pattern-backfill", "pattern-version-backfill"] + source: Literal["git", "issues", "pull-requests", "discussions", "wiki"] + started_at: datetime + completed_at: datetime + secret_types: NotRequired[Union[list[str], None]] + custom_pattern_name: NotRequired[Union[str, None]] + custom_pattern_scope: NotRequired[ + Union[None, Literal["repository", "organization", "enterprise"]] + ] + repository: NotRequired[RepositoryWebhooksType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("WebhookSecretScanningScanCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0785.py b/githubkit/versions/v2022_11_28/types/group_0785.py index edccb1691..ee800d298 100644 --- a/githubkit/versions/v2022_11_28/types/group_0785.py +++ b/githubkit/versions/v2022_11_28/types/group_0785.py @@ -9,15 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0786 import WebhookSecurityAndAnalysisPropChangesPropFromType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0471 import WebhooksSecurityAdvisoryType -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0786.py b/githubkit/versions/v2022_11_28/types/group_0786.py index 2faef30d0..044543086 100644 --- a/githubkit/versions/v2022_11_28/types/group_0786.py +++ b/githubkit/versions/v2022_11_28/types/group_0786.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0057 import SecurityAndAnalysisType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0471 import WebhooksSecurityAdvisoryType -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + action: Literal["updated"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0787.py b/githubkit/versions/v2022_11_28/types/group_0787.py index b8efb5fbf..82d2f5404 100644 --- a/githubkit/versions/v2022_11_28/types/group_0787.py +++ b/githubkit/versions/v2022_11_28/types/group_0787.py @@ -13,23 +13,23 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0467 import WebhooksSponsorshipType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0788 import WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["cancelled"] + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserType] -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSecurityAdvisoryWithdrawnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0788.py b/githubkit/versions/v2022_11_28/types/group_0788.py index f6dd978f0..f38acab63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0788.py +++ b/githubkit/versions/v2022_11_28/types/group_0788.py @@ -9,27 +9,113 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0467 import WebhooksSponsorshipType +from .group_0001 import CvssSeveritiesType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + The details of the security advisory, including summary, description, and + severity. + """ + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + cvss_severities: NotRequired[Union[CvssSeveritiesType, None]] + cwes: list[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType + ] + published_at: str + references: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType + ] + severity: str + summary: str + updated_at: str + vulnerabilities: list[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType + ] + withdrawn_at: str -__all__ = ("WebhookSponsorshipCreatedType",) + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + FirstPatchedVersion + """ + + identifier: str + + +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp + Package + """ + + ecosystem: str + name: str + + +__all__ = ( + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0789.py b/githubkit/versions/v2022_11_28/types/group_0789.py index 4fb8c47e8..6eb49d48f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0789.py +++ b/githubkit/versions/v2022_11_28/types/group_0789.py @@ -9,44 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0467 import WebhooksSponsorshipType +from .group_0124 import FullRepositoryType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0790 import WebhookSecurityAndAnalysisPropChangesType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + repository: FullRepositoryType + sender: NotRequired[SimpleUserType] -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -__all__ = ( - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedType", -) +__all__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0790.py b/githubkit/versions/v2022_11_28/types/group_0790.py index 3d9c08abe..5a1c07bf1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0790.py +++ b/githubkit/versions/v2022_11_28/types/group_0790.py @@ -9,28 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0467 import WebhooksSponsorshipType +from .group_0791 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookSponsorshipPendingCancellationType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0791.py b/githubkit/versions/v2022_11_28/types/group_0791.py index 0ea3ad5a0..c0b5b7308 100644 --- a/githubkit/versions/v2022_11_28/types/group_0791.py +++ b/githubkit/versions/v2022_11_28/types/group_0791.py @@ -9,30 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0467 import WebhooksSponsorshipType -from .group_0468 import WebhooksChanges8Type +from .group_0060 import SecurityAndAnalysisType -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["pending_tier_change"] - changes: WebhooksChanges8Type - effective_date: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserType - sponsorship: WebhooksSponsorshipType + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0792.py b/githubkit/versions/v2022_11_28/types/group_0792.py index c2730f952..7ecf7f78f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0792.py +++ b/githubkit/versions/v2022_11_28/types/group_0792.py @@ -13,19 +13,17 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0467 import WebhooksSponsorshipType -from .group_0468 import WebhooksChanges8Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0472 import WebhooksSponsorshipType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -34,4 +32,4 @@ class WebhookSponsorshipTierChangedType(TypedDict): sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookSponsorshipTierChangedType",) +__all__ = ("WebhookSponsorshipCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0793.py b/githubkit/versions/v2022_11_28/types/group_0793.py index 572b0380b..9d8c1cf48 100644 --- a/githubkit/versions/v2022_11_28/types/group_0793.py +++ b/githubkit/versions/v2022_11_28/types/group_0793.py @@ -9,26 +9,27 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0472 import WebhooksSponsorshipType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - starred_at: Union[str, None] + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookSponsorshipCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0794.py b/githubkit/versions/v2022_11_28/types/group_0794.py index e0eb6881f..d261f8fde 100644 --- a/githubkit/versions/v2022_11_28/types/group_0794.py +++ b/githubkit/versions/v2022_11_28/types/group_0794.py @@ -13,22 +13,40 @@ from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0472 import WebhooksSponsorshipType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - starred_at: None + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStarDeletedType",) +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str + + +__all__ = ( + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0795.py b/githubkit/versions/v2022_11_28/types/group_0795.py index 35efa49d2..270003bfd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0795.py +++ b/githubkit/versions/v2022_11_28/types/group_0795.py @@ -9,202 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0472 import WebhooksSponsorshipType -class WebhookStatusType(TypedDict): - """status event""" +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - avatar_url: NotRequired[Union[str, None]] - branches: list[WebhookStatusPropBranchesItemsType] - commit: WebhookStatusPropCommitType - context: str - created_at: str - description: Union[str, None] + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] - name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str + sponsorship: WebhooksSponsorshipType -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: list[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - verified_at: Union[str, None] - - -__all__ = ( - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitType", - "WebhookStatusType", -) +__all__ = ("WebhookSponsorshipPendingCancellationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0796.py b/githubkit/versions/v2022_11_28/types/group_0796.py index 31b2ed900..28cb8eaf2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0796.py +++ b/githubkit/versions/v2022_11_28/types/group_0796.py @@ -9,21 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0472 import WebhooksSponsorshipType +from .group_0473 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("WebhookSponsorshipPendingTierChangeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0797.py b/githubkit/versions/v2022_11_28/types/group_0797.py index eafde2845..87b935e6e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0797.py +++ b/githubkit/versions/v2022_11_28/types/group_0797.py @@ -9,15 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0472 import WebhooksSponsorshipType +from .group_0473 import WebhooksChanges8Type -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" + action: Literal["tier_changed"] + changes: WebhooksChanges8Type + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("WebhookSponsorshipTierChangedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0798.py b/githubkit/versions/v2022_11_28/types/group_0798.py index e44b95c39..dde9593c4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0798.py +++ b/githubkit/versions/v2022_11_28/types/group_0798.py @@ -9,21 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookStarCreatedType(TypedDict): + """star created event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: Union[str, None] -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0799.py b/githubkit/versions/v2022_11_28/types/group_0799.py index a808e25ce..85ecab45a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0799.py +++ b/githubkit/versions/v2022_11_28/types/group_0799.py @@ -9,15 +9,26 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookStarDeletedType(TypedDict): + """star deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + starred_at: None -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0800.py b/githubkit/versions/v2022_11_28/types/group_0800.py index 16a002471..15f96d5d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0800.py +++ b/githubkit/versions/v2022_11_28/types/group_0800.py @@ -9,30 +9,202 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0042 import IssueType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType - - -class WebhookSubIssuesParentIssueAddedType(TypedDict): - """parent issue added event""" - - action: Literal["parent_issue_added"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookStatusType(TypedDict): + """status event""" + + avatar_url: NotRequired[Union[str, None]] + branches: list[WebhookStatusPropBranchesItemsType] + commit: WebhookStatusPropCommitType + context: str + created_at: str + description: Union[str, None] + enterprise: NotRequired[EnterpriseWebhooksType] + id: int installation: NotRequired[SimpleInstallationType] + name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + repository: RepositoryWebhooksType + sender: SimpleUserType + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str + + +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommitType + name: str + protected: bool + + +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" + + sha: Union[str, None] + url: Union[str, None] + + +class WebhookStatusPropCommitType(TypedDict): + """WebhookStatusPropCommit""" + + author: Union[WebhookStatusPropCommitPropAuthorType, None] + comments_url: str + commit: WebhookStatusPropCommitPropCommitType + committer: Union[WebhookStatusPropCommitPropCommitterType, None] + html_url: str + node_id: str + parents: list[WebhookStatusPropCommitPropParentsItemsType] + sha: str + url: str + + +class WebhookStatusPropCommitPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitterType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" + + author: WebhookStatusPropCommitPropCommitPropAuthorType + comment_count: int + committer: WebhookStatusPropCommitPropCommitPropCommitterType + message: str + tree: WebhookStatusPropCommitPropCommitPropTreeType + url: str + verification: WebhookStatusPropCommitPropCommitPropVerificationType + + +class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthor""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitter""" + + date: datetime + email: str + name: str + username: NotRequired[str] + + +class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): + """WebhookStatusPropCommitPropCommitPropTree""" + + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): + """WebhookStatusPropCommitPropCommitPropVerification""" + + payload: Union[str, None] + reason: Literal[ + "expired_key", + "not_signing_key", + "gpgverify_error", + "gpgverify_unavailable", + "unsigned", + "unknown_signature_type", + "no_user", + "unverified_email", + "bad_email", + "unknown_key", + "malformed_signature", + "invalid", + "valid", + "bad_cert", + "ocsp_pending", + ] + signature: Union[str, None] + verified: bool + verified_at: Union[str, None] -__all__ = ("WebhookSubIssuesParentIssueAddedType",) +__all__ = ( + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitType", + "WebhookStatusType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0801.py b/githubkit/versions/v2022_11_28/types/group_0801.py index fb04d96fe..31b2ed900 100644 --- a/githubkit/versions/v2022_11_28/types/group_0801.py +++ b/githubkit/versions/v2022_11_28/types/group_0801.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0042 import IssueType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookSubIssuesParentIssueRemovedType(TypedDict): - """parent issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["parent_issue_removed"] - parent_issue_id: float - parent_issue: IssueType - parent_issue_repo: RepositoryType - sub_issue_id: float - sub_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookSubIssuesParentIssueRemovedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0802.py b/githubkit/versions/v2022_11_28/types/group_0802.py index 5bb9eb4f9..eafde2845 100644 --- a/githubkit/versions/v2022_11_28/types/group_0802.py +++ b/githubkit/versions/v2022_11_28/types/group_0802.py @@ -9,30 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0042 import IssueType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookSubIssuesSubIssueAddedType(TypedDict): - """sub-issue added event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - action: Literal["sub_issue_added"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] - -__all__ = ("WebhookSubIssuesSubIssueAddedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0803.py b/githubkit/versions/v2022_11_28/types/group_0803.py index e896c565d..e44b95c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0803.py +++ b/githubkit/versions/v2022_11_28/types/group_0803.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0020 import RepositoryType -from .group_0042 import IssueType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookSubIssuesSubIssueRemovedType(TypedDict): - """sub-issue removed event""" + Metaproperties for Git author/committer information. + """ - action: Literal["sub_issue_removed"] - sub_issue_id: float - sub_issue: IssueType - sub_issue_repo: RepositoryType - parent_issue_id: float - parent_issue: IssueType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserType] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookSubIssuesSubIssueRemovedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0804.py b/githubkit/versions/v2022_11_28/types/group_0804.py index ab93529ce..a808e25ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0804.py +++ b/githubkit/versions/v2022_11_28/types/group_0804.py @@ -11,23 +11,13 @@ from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0469 import WebhooksTeam1Type +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookTeamAddType(TypedDict): - """team_add event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - team: WebhooksTeam1Type - -__all__ = ("WebhookTeamAddType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0805.py b/githubkit/versions/v2022_11_28/types/group_0805.py index d146d0136..a04904451 100644 --- a/githubkit/versions/v2022_11_28/types/group_0805.py +++ b/githubkit/versions/v2022_11_28/types/group_0805.py @@ -9,194 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0469 import WebhooksTeam1Type - - -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" - - action: Literal["added_to_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0045 import IssueType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueAddedType(TypedDict): + """parent issue added event""" + + action: Literal["parent_issue_added"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ - str, Any -] -"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryType", -) +__all__ = ("WebhookSubIssuesParentIssueAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0806.py b/githubkit/versions/v2022_11_28/types/group_0806.py index 4e467c884..5c435c08f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0806.py +++ b/githubkit/versions/v2022_11_28/types/group_0806.py @@ -9,190 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0469 import WebhooksTeam1Type - - -class WebhookTeamCreatedType(TypedDict): - """team created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0045 import IssueType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookSubIssuesParentIssueRemovedType(TypedDict): + """parent issue removed event""" + + action: Literal["parent_issue_removed"] + parent_issue_id: float + parent_issue: IssueType + parent_issue_repo: RepositoryType + sub_issue_id: float + sub_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamCreatedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedType", -) +__all__ = ("WebhookSubIssuesParentIssueRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0807.py b/githubkit/versions/v2022_11_28/types/group_0807.py index 354176234..eefda7827 100644 --- a/githubkit/versions/v2022_11_28/types/group_0807.py +++ b/githubkit/versions/v2022_11_28/types/group_0807.py @@ -9,190 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0469 import WebhooksTeam1Type - - -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0045 import IssueType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueAddedType(TypedDict): + """sub-issue added event""" + + action: Literal["sub_issue_added"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserType] - team: WebhooksTeam1Type - - -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamDeletedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedType", -) +__all__ = ("WebhookSubIssuesSubIssueAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0808.py b/githubkit/versions/v2022_11_28/types/group_0808.py index c718b2c36..1f86482fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0808.py +++ b/githubkit/versions/v2022_11_28/types/group_0808.py @@ -9,258 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0469 import WebhooksTeam1Type - - -class WebhookTeamEditedType(TypedDict): - """team edited event""" - - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] +from .group_0020 import RepositoryType +from .group_0045 import IssueType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookSubIssuesSubIssueRemovedType(TypedDict): + """sub-issue removed event""" + + action: Literal["sub_issue_removed"] + sub_issue_id: float + sub_issue: IssueType + sub_issue_repo: RepositoryType + parent_issue_id: float + parent_issue: IssueType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] - sender: SimpleUserType - team: WebhooksTeam1Type - - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""WebhookTeamEditedPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType - ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - - from_: str - - -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str - - -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserType] -__all__ = ( - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedType", -) +__all__ = ("WebhookSubIssuesSubIssueRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0809.py b/githubkit/versions/v2022_11_28/types/group_0809.py index 97ccde6b7..995358c25 100644 --- a/githubkit/versions/v2022_11_28/types/group_0809.py +++ b/githubkit/versions/v2022_11_28/types/group_0809.py @@ -9,194 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0469 import WebhooksTeam1Type +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0474 import WebhooksTeam1Type -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" +class WebhookTeamAddType(TypedDict): + """team_add event""" - action: Literal["removed_from_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserType team: WebhooksTeam1Type -class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] - permissions: NotRequired[ - WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: list[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( - dict[str, Any] -) -"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - -The custom properties that were defined for the repository. The keys are the -custom property names, and the values are the corresponding custom property -values. -""" - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryType", -) +__all__ = ("WebhookTeamAddType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0810.py b/githubkit/versions/v2022_11_28/types/group_0810.py index f49be8f45..f8ab7f27d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0810.py +++ b/githubkit/versions/v2022_11_28/types/group_0810.py @@ -9,25 +9,194 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0474 import WebhooksTeam1Type -class WebhookWatchStartedType(TypedDict): - """watch started event""" +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" - action: Literal["started"] + action: Literal["added_to_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type -__all__ = ("WebhookWatchStartedType",) +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = dict[ + str, Any +] +"""WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0811.py b/githubkit/versions/v2022_11_28/types/group_0811.py index a4f0159b7..a80e3c9d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0811.py +++ b/githubkit/versions/v2022_11_28/types/group_0811.py @@ -9,35 +9,190 @@ from __future__ import annotations -from typing import Any, Union +from datetime import datetime +from typing import Any, Literal, Union from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0474 import WebhooksTeam1Type -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" +class WebhookTeamCreatedType(TypedDict): + """team created event""" + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] sender: SimpleUserType - workflow: str + team: WebhooksTeam1Type -WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] -"""WebhookWorkflowDispatchPropInputs +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamCreatedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamCreatedPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. """ +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookWorkflowDispatchPropInputsType", - "WebhookWorkflowDispatchType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0812.py b/githubkit/versions/v2022_11_28/types/group_0812.py index 46f8a4489..175ef7dfa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0812.py +++ b/githubkit/versions/v2022_11_28/types/group_0812.py @@ -9,79 +9,190 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict from .group_0003 import SimpleUserType -from .group_0211 import DeploymentType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0474 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" - action: Literal["completed"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str - completed_at: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserType] + team: WebhooksTeam1Type + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int -class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" +WebhookTeamDeletedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamDeletedPropRepositoryPropCustomProperties - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0813.py b/githubkit/versions/v2022_11_28/types/group_0813.py index d129fc90a..85b313841 100644 --- a/githubkit/versions/v2022_11_28/types/group_0813.py +++ b/githubkit/versions/v2022_11_28/types/group_0813.py @@ -9,65 +9,258 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0474 import WebhooksTeam1Type -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamEditedType(TypedDict): + """team edited event""" + + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] + sender: SimpleUserType + team: WebhooksTeam1Type + + +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: list[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + +WebhookTeamEditedPropRepositoryPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""WebhookTeamEditedPropRepositoryPropCustomProperties -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0814.py b/githubkit/versions/v2022_11_28/types/group_0814.py index 92b2bfd6b..224b79961 100644 --- a/githubkit/versions/v2022_11_28/types/group_0814.py +++ b/githubkit/versions/v2022_11_28/types/group_0814.py @@ -9,57 +9,194 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", +from datetime import datetime +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0474 import WebhooksTeam1Type + + +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + sender: SimpleUserType + team: WebhooksTeam1Type + + +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType ] - created_at: NotRequired[str] - head_sha: NotRequired[str] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: list[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType: TypeAlias = ( + dict[str, Any] +) +"""WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + +The custom properties that were defined for the repository. The keys are the +custom property names, and the values are the corresponding custom property +values. +""" + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[Union[str, None]]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - list[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] + user_view_type: NotRequired[str] + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0815.py b/githubkit/versions/v2022_11_28/types/group_0815.py index d1033cbd6..266dfc2ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0815.py +++ b/githubkit/versions/v2022_11_28/types/group_0815.py @@ -9,71 +9,25 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0211 import DeploymentType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - action: Literal["in_progress"] + action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] - name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] - - -__all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressType", -) +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0816.py b/githubkit/versions/v2022_11_28/types/group_0816.py index 217bd7ee4..dca846db2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0816.py +++ b/githubkit/versions/v2022_11_28/types/group_0816.py @@ -9,54 +9,35 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import TypedDict - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] - url: str - - -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict + +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" + + enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: str + + +WebhookWorkflowDispatchPropInputsType: TypeAlias = dict[str, Any] +"""WebhookWorkflowDispatchPropInputs +""" __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowDispatchPropInputsType", + "WebhookWorkflowDispatchType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0817.py b/githubkit/versions/v2022_11_28/types/group_0817.py index 7a741384f..89f7e3050 100644 --- a/githubkit/versions/v2022_11_28/types/group_0817.py +++ b/githubkit/versions/v2022_11_28/types/group_0817.py @@ -12,47 +12,76 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0215 import DeploymentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType + + +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" + + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - - check_run_url: NotRequired[str] - completed_at: NotRequired[Union[str, None]] - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - head_sha: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[list[str]] - name: NotRequired[str] - node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] - url: NotRequired[str] +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType] + url: str -class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" + +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" completed_at: Union[str, None] - conclusion: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str number: int started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0818.py b/githubkit/versions/v2022_11_28/types/group_0818.py index 96290c2df..d129fc90a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0818.py +++ b/githubkit/versions/v2022_11_28/types/group_0818.py @@ -9,37 +9,31 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0211 import DeploymentType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" - - action: Literal["queued"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobQueuedPropWorkflowJob""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ check_run_url: str completed_at: Union[str, None] - conclusion: Union[str, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ], + ] created_at: str head_sha: str html_url: str @@ -54,15 +48,15 @@ class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): runner_group_name: Union[str, None] runner_id: Union[int, None] runner_name: Union[str, None] - started_at: datetime + started_at: str status: Literal["queued", "in_progress", "completed", "waiting"] head_branch: Union[str, None] workflow_name: Union[str, None] - steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + steps: list[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): """Workflow Step""" completed_at: Union[str, None] @@ -70,11 +64,10 @@ class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): name: str number: int started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0819.py b/githubkit/versions/v2022_11_28/types/group_0819.py index 005125e27..92b2bfd6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0819.py +++ b/githubkit/versions/v2022_11_28/types/group_0819.py @@ -9,72 +9,57 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0211 import DeploymentType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType - -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" - - action: Literal["waiting"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: list[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - head_branch: Union[str, None] - workflow_name: Union[str, None] - status: Literal["queued", "in_progress", "completed", "waiting"] - steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[list[Union[str, None]]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + list[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] + ] + url: NotRequired[str] + + +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" __all__ = ( - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0820.py b/githubkit/versions/v2022_11_28/types/group_0820.py index 418371406..70187a8f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0820.py +++ b/githubkit/versions/v2022_11_28/types/group_0820.py @@ -9,426 +9,71 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0427 import WebhooksWorkflowType +from .group_0215 import DeploymentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" - action: Literal["completed"] + action: Literal["in_progress"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """Workflow Run""" +class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJob""" - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + check_run_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: list[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[Union[int, None], None] + runner_group_name: Union[Union[str, None], None] + runner_id: Union[Union[int, None], None] + runner_name: Union[Union[str, None], None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[Union[str, None], None] + workflow_name: Union[Union[str, None], None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] url: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" +class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[Union[str, None], None] + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0821.py b/githubkit/versions/v2022_11_28/types/group_0821.py index 9c57bebb1..217bd7ee4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0821.py +++ b/githubkit/versions/v2022_11_28/types/group_0821.py @@ -9,424 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0427 import WebhooksWorkflowType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType - - -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] + labels: list[str] name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: Union[str, None] node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] __all__ = ( - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0822.py b/githubkit/versions/v2022_11_28/types/group_0822.py index ec5e5fbcc..7a741384f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0822.py +++ b/githubkit/versions/v2022_11_28/types/group_0822.py @@ -9,426 +9,50 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType -from .group_0419 import EnterpriseWebhooksType -from .group_0420 import SimpleInstallationType -from .group_0421 import OrganizationSimpleWebhooksType -from .group_0422 import RepositoryWebhooksType -from .group_0427 import WebhooksWorkflowType +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" - - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType - - -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - list[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + check_run_url: NotRequired[str] + completed_at: NotRequired[Union[str, None]] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + head_sha: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + labels: NotRequired[list[str]] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: Literal["in_progress", "completed", "queued"] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: list[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] url: NotRequired[str] - user_view_type: NotRequired[str] -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - user_view_type: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: int number: int - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] __all__ = ( - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0823.py b/githubkit/versions/v2022_11_28/types/group_0823.py index 5ba65712d..f48d44403 100644 --- a/githubkit/versions/v2022_11_28/types/group_0823.py +++ b/githubkit/versions/v2022_11_28/types/group_0823.py @@ -10,34 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict from .group_0003 import SimpleUserType -from .group_0008 import EnterpriseType -from .group_0009 import IntegrationPropPermissionsType +from .group_0215 import DeploymentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str id: int - slug: NotRequired[str] + labels: list[str] + name: str node_id: str - client_id: str - owner: Union[SimpleUserType, EnterpriseType] + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: list[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: list[str] - installations_count: NotRequired[int] - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending"] -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) +__all__ = ( + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0824.py b/githubkit/versions/v2022_11_28/types/group_0824.py index 528a915b7..c20966219 100644 --- a/githubkit/versions/v2022_11_28/types/group_0824.py +++ b/githubkit/versions/v2022_11_28/types/group_0824.py @@ -9,17 +9,72 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0215 import DeploymentType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) + +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: list[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: list[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0825.py b/githubkit/versions/v2022_11_28/types/group_0825.py index 8f59ec945..287b4043b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0825.py +++ b/githubkit/versions/v2022_11_28/types/group_0825.py @@ -9,17 +9,426 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0432 import WebhooksWorkflowType -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" + + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType + + +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str -__all__ = ("AppHookConfigPatchBodyType",) +__all__ = ( + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0826.py b/githubkit/versions/v2022_11_28/types/group_0826.py index 24eb9bac1..e8d927309 100644 --- a/githubkit/versions/v2022_11_28/types/group_0826.py +++ b/githubkit/versions/v2022_11_28/types/group_0826.py @@ -9,11 +9,424 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0432 import WebhooksWorkflowType -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType + + +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0827.py b/githubkit/versions/v2022_11_28/types/group_0827.py index e93cba9f3..91e5cd197 100644 --- a/githubkit/versions/v2022_11_28/types/group_0827.py +++ b/githubkit/versions/v2022_11_28/types/group_0827.py @@ -9,17 +9,426 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0017 import AppPermissionsType +from .group_0003 import SimpleUserType +from .group_0424 import EnterpriseWebhooksType +from .group_0425 import SimpleInstallationType +from .group_0426 import OrganizationSimpleWebhooksType +from .group_0427 import RepositoryWebhooksType +from .group_0432 import WebhooksWorkflowType -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" - repositories: NotRequired[list[str]] - repository_ids: NotRequired[list[int]] - permissions: NotRequired[AppPermissionsType] + action: Literal["requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + list[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + user_view_type: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0828.py b/githubkit/versions/v2022_11_28/types/group_0828.py index fad60868e..2d4d40484 100644 --- a/githubkit/versions/v2022_11_28/types/group_0828.py +++ b/githubkit/versions/v2022_11_28/types/group_0828.py @@ -9,13 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" - - access_token: str - - -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) +from datetime import datetime +from typing import Union +from typing_extensions import NotRequired, TypedDict + +from .group_0003 import SimpleUserType +from .group_0008 import EnterpriseType +from .group_0009 import IntegrationPropPermissionsType + + +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" + + id: int + slug: NotRequired[str] + node_id: str + client_id: str + owner: Union[SimpleUserType, EnterpriseType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: list[str] + installations_count: NotRequired[int] + client_secret: str + webhook_secret: Union[str, None] + pem: str + + +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0829.py b/githubkit/versions/v2022_11_28/types/group_0829.py index c0bad1ae1..528a915b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0829.py +++ b/githubkit/versions/v2022_11_28/types/group_0829.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" - access_token: str + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: str -__all__ = ("ApplicationsClientIdTokenPostBodyType",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0830.py b/githubkit/versions/v2022_11_28/types/group_0830.py index 8a68cb8df..8f59ec945 100644 --- a/githubkit/versions/v2022_11_28/types/group_0830.py +++ b/githubkit/versions/v2022_11_28/types/group_0830.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" - access_token: str + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0831.py b/githubkit/versions/v2022_11_28/types/group_0831.py index 8e0b6ce68..24eb9bac1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0831.py +++ b/githubkit/versions/v2022_11_28/types/group_0831.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" - access_token: str - -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0832.py b/githubkit/versions/v2022_11_28/types/group_0832.py index 8351134ad..e93cba9f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0832.py +++ b/githubkit/versions/v2022_11_28/types/group_0832.py @@ -14,15 +14,12 @@ from .group_0017 import AppPermissionsType -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" - access_token: str - target: NotRequired[str] - target_id: NotRequired[int] repositories: NotRequired[list[str]] repository_ids: NotRequired[list[int]] permissions: NotRequired[AppPermissionsType] -__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0833.py b/githubkit/versions/v2022_11_28/types/group_0833.py index 4dce740a0..fad60868e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0833.py +++ b/githubkit/versions/v2022_11_28/types/group_0833.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class CredentialsRevokePostBodyType(TypedDict): - """CredentialsRevokePostBody""" +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" - credentials: list[str] + access_token: str -__all__ = ("CredentialsRevokePostBodyType",) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0834.py b/githubkit/versions/v2022_11_28/types/group_0834.py index e3fd6e8a8..c0bad1ae1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0834.py +++ b/githubkit/versions/v2022_11_28/types/group_0834.py @@ -9,12 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import TypeAlias +from typing_extensions import TypedDict -EmojisGetResponse200Type: TypeAlias = dict[str, Any] -"""EmojisGetResponse200 -""" + +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" + + access_token: str -__all__ = ("EmojisGetResponse200Type",) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0835.py b/githubkit/versions/v2022_11_28/types/group_0835.py index 617038990..8a68cb8df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0835.py +++ b/githubkit/versions/v2022_11_28/types/group_0835.py @@ -9,71 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0029 import CodeScanningDefaultSetupOptionsType +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + access_token: str - name: str - description: str - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu - bmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0836.py b/githubkit/versions/v2022_11_28/types/group_0836.py index db00c9d66..8e0b6ce68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0836.py +++ b/githubkit/versions/v2022_11_28/types/group_0836.py @@ -9,73 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0029 import CodeScanningDefaultSetupOptionsType +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + access_token: str - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen - dencyGraphAutosubmitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0837.py b/githubkit/versions/v2022_11_28/types/group_0837.py index ec6e0b6b9..8351134ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0837.py +++ b/githubkit/versions/v2022_11_28/types/group_0837.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0017 import AppPermissionsType -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - scope: Literal["all", "all_without_configurations"] +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[list[str]] + repository_ids: NotRequired[list[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", -) + +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0838.py b/githubkit/versions/v2022_11_28/types/group_0838.py index 47259f1fc..4dce740a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0838.py +++ b/githubkit/versions/v2022_11_28/types/group_0838.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class CredentialsRevokePostBodyType(TypedDict): + """CredentialsRevokePostBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + credentials: list[str] -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", -) +__all__ = ("CredentialsRevokePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0839.py b/githubkit/versions/v2022_11_28/types/group_0839.py index ec2e0b140..e3fd6e8a8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0839.py +++ b/githubkit/versions/v2022_11_28/types/group_0839.py @@ -9,25 +9,12 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import TypeAlias -from .group_0028 import CodeSecurityConfigurationType - - -class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons - e200 - """ - - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] - configuration: NotRequired[CodeSecurityConfigurationType] +EmojisGetResponse200Type: TypeAlias = dict[str, Any] +"""EmojisGetResponse200 +""" -__all__ = ( - "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", -) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0840.py b/githubkit/versions/v2022_11_28/types/group_0840.py index 778644432..617038990 100644 --- a/githubkit/versions/v2022_11_28/types/group_0840.py +++ b/githubkit/versions/v2022_11_28/types/group_0840.py @@ -9,15 +9,71 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) + +class EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosu + bmitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0841.py b/githubkit/versions/v2022_11_28/types/group_0841.py index 2a811b378..db00c9d66 100644 --- a/githubkit/versions/v2022_11_28/types/group_0841.py +++ b/githubkit/versions/v2022_11_28/types/group_0841.py @@ -9,29 +9,73 @@ from __future__ import annotations -from typing import Any, Literal, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class GistsPostBodyType(TypedDict): - """GistsPostBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: NotRequired[str] description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsPostBodyPropFiles +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDepen + dencyGraphAutosubmitActionOptions -Names and content for the files that make up the gist + Feature options for Automatic dependency submission + """ -Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} -""" + labeled_runners: NotRequired[bool] __all__ = ( - "GistsPostBodyPropFilesType", - "GistsPostBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0842.py b/githubkit/versions/v2022_11_28/types/group_0842.py index cad5cbf2a..ec6e0b6b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0842.py +++ b/githubkit/versions/v2022_11_28/types/group_0842.py @@ -9,27 +9,18 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] - - -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" - - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] + scope: Literal["all", "all_without_configurations"] __all__ = ( - "GistsGistIdGetResponse403PropBlockType", - "GistsGistIdGetResponse403Type", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0843.py b/githubkit/versions/v2022_11_28/types/group_0843.py index e5f3979ec..47259f1fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0843.py +++ b/githubkit/versions/v2022_11_28/types/group_0843.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] - - -GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] -"""GistsGistIdPatchBodyPropFiles - -The gist files to be updated, renamed, or deleted. Each `key` must match the -current filename -(including extension) of the targeted gist file. For example: `hello.py`. - -To delete a file, set the whole file to null. For example: `hello.py : null`. -The file will also be -deleted if the specified object does not contain at least one of `content` or -`filename`. - -Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} -""" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] __all__ = ( - "GistsGistIdPatchBodyPropFilesType", - "GistsGistIdPatchBodyType", + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0844.py b/githubkit/versions/v2022_11_28/types/group_0844.py index 054661ac7..ec2e0b140 100644 --- a/githubkit/versions/v2022_11_28/types/group_0844.py +++ b/githubkit/versions/v2022_11_28/types/group_0844.py @@ -9,13 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" - body: str +class EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutRespons + e200 + """ + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("GistsGistIdCommentsPostBodyType",) + +__all__ = ( + "EnterprisesEnterpriseCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0845.py b/githubkit/versions/v2022_11_28/types/group_0845.py index 39ac46ae2..778644432 100644 --- a/githubkit/versions/v2022_11_28/types/group_0845.py +++ b/githubkit/versions/v2022_11_28/types/group_0845.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" - body: str + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0846.py b/githubkit/versions/v2022_11_28/types/group_0846.py index 10e6b69c7..2a811b378 100644 --- a/githubkit/versions/v2022_11_28/types/group_0846.py +++ b/githubkit/versions/v2022_11_28/types/group_0846.py @@ -9,11 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any, Literal, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class GistsPostBodyType(TypedDict): + """GistsPostBody""" + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] -__all__ = ("GistsGistIdStarGetResponse404Type",) + +GistsPostBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsPostBodyPropFiles + +Names and content for the files that make up the gist + +Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} +""" + + +__all__ = ( + "GistsPostBodyPropFilesType", + "GistsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0847.py b/githubkit/versions/v2022_11_28/types/group_0847.py index a168e4016..cad5cbf2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0847.py +++ b/githubkit/versions/v2022_11_28/types/group_0847.py @@ -9,17 +9,27 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] - total_count: int - repositories: list[RepositoryType] - repository_selection: NotRequired[str] +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" -__all__ = ("InstallationRepositoriesGetResponse200Type",) + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] + + +__all__ = ( + "GistsGistIdGetResponse403PropBlockType", + "GistsGistIdGetResponse403Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0848.py b/githubkit/versions/v2022_11_28/types/group_0848.py index cb94d812e..e5f3979ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0848.py +++ b/githubkit/versions/v2022_11_28/types/group_0848.py @@ -9,16 +9,35 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -__all__ = ("MarkdownPostBodyType",) +GistsGistIdPatchBodyPropFilesType: TypeAlias = dict[str, Any] +"""GistsGistIdPatchBodyPropFiles + +The gist files to be updated, renamed, or deleted. Each `key` must match the +current filename +(including extension) of the targeted gist file. For example: `hello.py`. + +To delete a file, set the whole file to null. For example: `hello.py : null`. +The file will also be +deleted if the specified object does not contain at least one of `content` or +`filename`. + +Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} +""" + + +__all__ = ( + "GistsGistIdPatchBodyPropFilesType", + "GistsGistIdPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0849.py b/githubkit/versions/v2022_11_28/types/group_0849.py index f9c51f36b..054661ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0849.py +++ b/githubkit/versions/v2022_11_28/types/group_0849.py @@ -9,15 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + body: str -__all__ = ("NotificationsPutBodyType",) +__all__ = ("GistsGistIdCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0850.py b/githubkit/versions/v2022_11_28/types/group_0850.py index 70705f433..39ac46ae2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0850.py +++ b/githubkit/versions/v2022_11_28/types/group_0850.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" - message: NotRequired[str] + body: str -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0851.py b/githubkit/versions/v2022_11_28/types/group_0851.py index 0dbd53ac7..10e6b69c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0851.py +++ b/githubkit/versions/v2022_11_28/types/group_0851.py @@ -9,13 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" - ignored: NotRequired[bool] - -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) +__all__ = ("GistsGistIdStarGetResponse404Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0852.py b/githubkit/versions/v2022_11_28/types/group_0852.py index f0059925f..a168e4016 100644 --- a/githubkit/versions/v2022_11_28/types/group_0852.py +++ b/githubkit/versions/v2022_11_28/types/group_0852.py @@ -9,47 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class OrgsOrgPatchBodyType(TypedDict): - """OrgsOrgPatchBody""" - - billing_email: NotRequired[str] - company: NotRequired[str] - email: NotRequired[str] - twitter_username: NotRequired[str] - location: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - has_organization_projects: NotRequired[bool] - has_repository_projects: NotRequired[bool] - default_repository_permission: NotRequired[ - Literal["read", "write", "admin", "none"] - ] - members_can_create_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_public_repositories: NotRequired[bool] - members_allowed_repository_creation_type: NotRequired[ - Literal["all", "private", "none"] - ] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - blog: NotRequired[str] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[str] - deploy_keys_enabled_for_repositories: NotRequired[bool] - - -__all__ = ("OrgsOrgPatchBodyType",) + +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" + + total_count: int + repositories: list[RepositoryType] + repository_selection: NotRequired[str] + + +__all__ = ("InstallationRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0853.py b/githubkit/versions/v2022_11_28/types/group_0853.py index c9f8884a9..cb94d812e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0853.py +++ b/githubkit/versions/v2022_11_28/types/group_0853.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" - total_count: int - repository_cache_usages: list[ActionsCacheUsageByRepositoryType] + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int - - -__all__ = ( - "ActionsCacheUsageByRepositoryType", - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", -) +__all__ = ("MarkdownPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0854.py b/githubkit/versions/v2022_11_28/types/group_0854.py index e88c0a275..f9c51f36b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0854.py +++ b/githubkit/versions/v2022_11_28/types/group_0854.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -from .group_0066 import ActionsHostedRunnerType +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" -class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersGetResponse200""" + last_read_at: NotRequired[datetime] + read: NotRequired[bool] - total_count: int - runners: list[ActionsHostedRunnerType] - -__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) +__all__ = ("NotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0855.py b/githubkit/versions/v2022_11_28/types/group_0855.py index da2efcd13..70705f433 100644 --- a/githubkit/versions/v2022_11_28/types/group_0855.py +++ b/githubkit/versions/v2022_11_28/types/group_0855.py @@ -9,33 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBody""" +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" - name: str - image: OrgsOrgActionsHostedRunnersPostBodyPropImageType - size: str - runner_group_id: int - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] + message: NotRequired[str] -class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): - """OrgsOrgActionsHostedRunnersPostBodyPropImage - - The image of runner. To list all available images, use `GET /actions/hosted- - runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. - """ - - id: NotRequired[str] - source: NotRequired[Literal["github", "partner", "custom"]] - - -__all__ = ( - "OrgsOrgActionsHostedRunnersPostBodyPropImageType", - "OrgsOrgActionsHostedRunnersPostBodyType", -) +__all__ = ("NotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0856.py b/githubkit/versions/v2022_11_28/types/group_0856.py index 83c7e60cf..0dbd53ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0856.py +++ b/githubkit/versions/v2022_11_28/types/group_0856.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0067 import ActionsHostedRunnerImageType +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" -class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + ignored: NotRequired[bool] - total_count: int - images: list[ActionsHostedRunnerImageType] - -__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0857.py b/githubkit/versions/v2022_11_28/types/group_0857.py index fd20a1729..3d20a3b98 100644 --- a/githubkit/versions/v2022_11_28/types/group_0857.py +++ b/githubkit/versions/v2022_11_28/types/group_0857.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0067 import ActionsHostedRunnerImageType +class OrganizationsOrgDependabotRepositoryAccessPatchBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessPatchBody -class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + Examples: + {'repository_ids_to_add': [123, 456], 'repository_ids_to_remove': [789]} + """ - total_count: int - images: list[ActionsHostedRunnerImageType] + repository_ids_to_add: NotRequired[list[int]] + repository_ids_to_remove: NotRequired[list[int]] -__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0858.py b/githubkit/versions/v2022_11_28/types/group_0858.py index 2b15d906c..2e01cf7ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0858.py +++ b/githubkit/versions/v2022_11_28/types/group_0858.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -from .group_0065 import ActionsHostedRunnerMachineSpecType +class OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType(TypedDict): + """OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBody""" -class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" + default_level: Literal["public", "internal"] - total_count: int - machine_specs: list[ActionsHostedRunnerMachineSpecType] - -__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) +__all__ = ("OrganizationsOrgDependabotRepositoryAccessDefaultLevelPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0859.py b/githubkit/versions/v2022_11_28/types/group_0859.py index f96c7b054..f0059925f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0859.py +++ b/githubkit/versions/v2022_11_28/types/group_0859.py @@ -9,14 +9,47 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): - """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" - - total_count: int - platforms: list[str] - - -__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class OrgsOrgPatchBodyType(TypedDict): + """OrgsOrgPatchBody""" + + billing_email: NotRequired[str] + company: NotRequired[str] + email: NotRequired[str] + twitter_username: NotRequired[str] + location: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + default_repository_permission: NotRequired[ + Literal["read", "write", "admin", "none"] + ] + members_can_create_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_public_repositories: NotRequired[bool] + members_allowed_repository_creation_type: NotRequired[ + Literal["all", "private", "none"] + ] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + blog: NotRequired[str] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[str] + deploy_keys_enabled_for_repositories: NotRequired[bool] + + +__all__ = ("OrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0860.py b/githubkit/versions/v2022_11_28/types/group_0860.py index 2331cd4aa..c9f8884a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0860.py +++ b/githubkit/versions/v2022_11_28/types/group_0860.py @@ -9,16 +9,28 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): - """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - name: NotRequired[str] - runner_group_id: NotRequired[int] - maximum_runners: NotRequired[int] - enable_static_ip: NotRequired[bool] + total_count: int + repository_cache_usages: list[ActionsCacheUsageByRepositoryType] -__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) +class ActionsCacheUsageByRepositoryType(TypedDict): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str + active_caches_size_in_bytes: int + active_caches_count: int + + +__all__ = ( + "ActionsCacheUsageByRepositoryType", + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0861.py b/githubkit/versions/v2022_11_28/types/group_0861.py index dfdea43ec..885343670 100644 --- a/githubkit/versions/v2022_11_28/types/group_0861.py +++ b/githubkit/versions/v2022_11_28/types/group_0861.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0070 import ActionsHostedRunnerType -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] +class OrgsOrgActionsHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersGetResponse200""" + total_count: int + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0862.py b/githubkit/versions/v2022_11_28/types/group_0862.py index 484b23498..da2efcd13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0862.py +++ b/githubkit/versions/v2022_11_28/types/group_0862.py @@ -9,16 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0020 import RepositoryType +class OrgsOrgActionsHostedRunnersPostBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + name: str + image: OrgsOrgActionsHostedRunnersPostBodyPropImageType + size: str + runner_group_id: int + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] - total_count: float - repositories: list[RepositoryType] +class OrgsOrgActionsHostedRunnersPostBodyPropImageType(TypedDict): + """OrgsOrgActionsHostedRunnersPostBodyPropImage -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) + The image of runner. To list all available images, use `GET /actions/hosted- + runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`. + """ + + id: NotRequired[str] + source: NotRequired[Literal["github", "partner", "custom"]] + + +__all__ = ( + "OrgsOrgActionsHostedRunnersPostBodyPropImageType", + "OrgsOrgActionsHostedRunnersPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0863.py b/githubkit/versions/v2022_11_28/types/group_0863.py index a2735688c..ec478293f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0863.py +++ b/githubkit/versions/v2022_11_28/types/group_0863.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0071 import ActionsHostedRunnerImageType -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersImagesGithubOwnedGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0864.py b/githubkit/versions/v2022_11_28/types/group_0864.py index 507ed1dee..409a6d410 100644 --- a/githubkit/versions/v2022_11_28/types/group_0864.py +++ b/githubkit/versions/v2022_11_28/types/group_0864.py @@ -9,36 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0071 import ActionsHostedRunnerImageType -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" - total_count: float - runner_groups: list[RunnerGroupsOrgType] +class OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200""" + total_count: int + images: list[ActionsHostedRunnerImageType] -class RunnerGroupsOrgType(TypedDict): - """RunnerGroupsOrg""" - id: float - name: str - visibility: str - default: bool - selected_repositories_url: NotRequired[str] - runners_url: str - hosted_runners_url: NotRequired[str] - network_configuration_id: NotRequired[str] - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - - -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", -) +__all__ = ("OrgsOrgActionsHostedRunnersImagesPartnerGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0865.py b/githubkit/versions/v2022_11_28/types/group_0865.py index 28b84e166..c7802e477 100644 --- a/githubkit/versions/v2022_11_28/types/group_0865.py +++ b/githubkit/versions/v2022_11_28/types/group_0865.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0069 import ActionsHostedRunnerMachineSpecType -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - selected_repository_ids: NotRequired[list[int]] - runners: NotRequired[list[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[str] +class OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersMachineSizesGetResponse200""" + total_count: int + machine_specs: list[ActionsHostedRunnerMachineSpecType] -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) + +__all__ = ("OrgsOrgActionsHostedRunnersMachineSizesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0866.py b/githubkit/versions/v2022_11_28/types/group_0866.py index d7ec24fe4..f96c7b054 100644 --- a/githubkit/versions/v2022_11_28/types/group_0866.py +++ b/githubkit/versions/v2022_11_28/types/group_0866.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type(TypedDict): + """OrgsOrgActionsHostedRunnersPlatformsGetResponse200""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[list[str]] - network_configuration_id: NotRequired[Union[str, None]] + total_count: int + platforms: list[str] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +__all__ = ("OrgsOrgActionsHostedRunnersPlatformsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0867.py b/githubkit/versions/v2022_11_28/types/group_0867.py index 245a997c8..2331cd4aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0867.py +++ b/githubkit/versions/v2022_11_28/types/group_0867.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0066 import ActionsHostedRunnerType +class OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType(TypedDict): + """OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" + name: NotRequired[str] + runner_group_id: NotRequired[int] + maximum_runners: NotRequired[int] + enable_static_ip: NotRequired[bool] - total_count: float - runners: list[ActionsHostedRunnerType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsHostedRunnersHostedRunnerIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0868.py b/githubkit/versions/v2022_11_28/types/group_0868.py index d0886cf91..dfdea43ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0868.py +++ b/githubkit/versions/v2022_11_28/types/group_0868.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0058 import MinimalRepositoryType +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: float - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0869.py b/githubkit/versions/v2022_11_28/types/group_0869.py index 0ab50bd6d..484b23498 100644 --- a/githubkit/versions/v2022_11_28/types/group_0869.py +++ b/githubkit/versions/v2022_11_28/types/group_0869.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0020 import RepositoryType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float + repositories: list[RepositoryType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0870.py b/githubkit/versions/v2022_11_28/types/group_0870.py index 0f835c5b5..a2735688c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0870.py +++ b/githubkit/versions/v2022_11_28/types/group_0870.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0075 import RunnerType +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + selected_repository_ids: list[int] - total_count: float - runners: list[RunnerType] - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0871.py b/githubkit/versions/v2022_11_28/types/group_0871.py index bb10bbf9a..507ed1dee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0871.py +++ b/githubkit/versions/v2022_11_28/types/group_0871.py @@ -9,13 +9,36 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - runners: list[int] + total_count: float + runner_groups: list[RunnerGroupsOrgType] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) +class RunnerGroupsOrgType(TypedDict): + """RunnerGroupsOrg""" + + id: float + name: str + visibility: str + default: bool + selected_repositories_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + network_configuration_id: NotRequired[str] + inherited: bool + inherited_allows_public_repositories: NotRequired[bool] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsOrgType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0872.py b/githubkit/versions/v2022_11_28/types/group_0872.py index d5c70ff58..28b84e166 100644 --- a/githubkit/versions/v2022_11_28/types/group_0872.py +++ b/githubkit/versions/v2022_11_28/types/group_0872.py @@ -9,16 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0075 import RunnerType +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + selected_repository_ids: NotRequired[list[int]] + runners: NotRequired[list[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[str] - total_count: int - runners: list[RunnerType] - -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0873.py b/githubkit/versions/v2022_11_28/types/group_0873.py index 5e08d0dd4..d7ec24fe4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0873.py +++ b/githubkit/versions/v2022_11_28/types/group_0873.py @@ -9,16 +9,19 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] + visibility: NotRequired[Literal["selected", "all", "private"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[list[str]] + network_configuration_id: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0874.py b/githubkit/versions/v2022_11_28/types/group_0874.py index 9f896b000..16e7863e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0874.py +++ b/githubkit/versions/v2022_11_28/types/group_0874.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0075 import RunnerType +from .group_0070 import ActionsHostedRunnerType -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200""" - runner: RunnerType - encoded_jit_config: str + total_count: float + runners: list[ActionsHostedRunnerType] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdHostedRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0875.py b/githubkit/versions/v2022_11_28/types/group_0875.py index 64cb3085b..91b574088 100644 --- a/githubkit/versions/v2022_11_28/types/group_0875.py +++ b/githubkit/versions/v2022_11_28/types/group_0875.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0074 import RunnerLabelType +from .group_0061 import MinimalRepositoryType -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" - total_count: int - labels: list[RunnerLabelType] + total_count: float + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0876.py b/githubkit/versions/v2022_11_28/types/group_0876.py index 86d454795..0ab50bd6d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0876.py +++ b/githubkit/versions/v2022_11_28/types/group_0876.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - labels: list[str] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0877.py b/githubkit/versions/v2022_11_28/types/group_0877.py index 1e050b2e1..3f07cdf82 100644 --- a/githubkit/versions/v2022_11_28/types/group_0877.py +++ b/githubkit/versions/v2022_11_28/types/group_0877.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0079 import RunnerType -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float + runners: list[RunnerType] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0878.py b/githubkit/versions/v2022_11_28/types/group_0878.py index b9c40bb77..bb10bbf9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0878.py +++ b/githubkit/versions/v2022_11_28/types/group_0878.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0074 import RunnerLabelType +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + runners: list[int] - total_count: int - labels: list[RunnerLabelType] - -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0879.py b/githubkit/versions/v2022_11_28/types/group_0879.py index f17121488..872926e71 100644 --- a/githubkit/versions/v2022_11_28/types/group_0879.py +++ b/githubkit/versions/v2022_11_28/types/group_0879.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0079 import RunnerType -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" - total_count: int - secrets: list[OrganizationActionsSecretType] - - -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" - Secrets for GitHub Actions for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + total_count: int + runners: list[RunnerType] -__all__ = ( - "OrganizationActionsSecretType", - "OrgsOrgActionsSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0880.py b/githubkit/versions/v2022_11_28/types/group_0880.py index 6f2b7d0ff..5e08d0dd4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0880.py +++ b/githubkit/versions/v2022_11_28/types/group_0880.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0881.py b/githubkit/versions/v2022_11_28/types/group_0881.py index bf4f941a1..9ed305a65 100644 --- a/githubkit/versions/v2022_11_28/types/group_0881.py +++ b/githubkit/versions/v2022_11_28/types/group_0881.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0058 import MinimalRepositoryType +from .group_0079 import RunnerType -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" - total_count: int - repositories: list[MinimalRepositoryType] + runner: RunnerType + encoded_jit_config: str -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0882.py b/githubkit/versions/v2022_11_28/types/group_0882.py index 91774da55..e144afe69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0882.py +++ b/githubkit/versions/v2022_11_28/types/group_0882.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0078 import RunnerLabelType -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: list[int] +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + total_count: int + labels: list[RunnerLabelType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0883.py b/githubkit/versions/v2022_11_28/types/group_0883.py index feb95bc8c..86d454795 100644 --- a/githubkit/versions/v2022_11_28/types/group_0883.py +++ b/githubkit/versions/v2022_11_28/types/group_0883.py @@ -9,33 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" - total_count: int - variables: list[OrganizationActionsVariableType] + labels: list[str] -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ - - name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrganizationActionsVariableType", - "OrgsOrgActionsVariablesGetResponse200Type", -) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0884.py b/githubkit/versions/v2022_11_28/types/group_0884.py index 35d9aa84a..1e050b2e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0884.py +++ b/githubkit/versions/v2022_11_28/types/group_0884.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + labels: list[str] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0885.py b/githubkit/versions/v2022_11_28/types/group_0885.py index 32397b063..a71a31c6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0885.py +++ b/githubkit/versions/v2022_11_28/types/group_0885.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0078 import RunnerLabelType -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int + labels: list[RunnerLabelType] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0886.py b/githubkit/versions/v2022_11_28/types/group_0886.py index 543424421..f17121488 100644 --- a/githubkit/versions/v2022_11_28/types/group_0886.py +++ b/githubkit/versions/v2022_11_28/types/group_0886.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0058 import MinimalRepositoryType - -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" total_count: int - repositories: list[MinimalRepositoryType] + secrets: list[OrganizationActionsSecretType] + + +class OrganizationActionsSecretType(TypedDict): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ( + "OrganizationActionsSecretType", + "OrgsOrgActionsSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0887.py b/githubkit/versions/v2022_11_28/types/group_0887.py index 7b7f6fc84..6f2b7d0ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0887.py +++ b/githubkit/versions/v2022_11_28/types/group_0887.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - selected_repository_ids: list[int] + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0888.py b/githubkit/versions/v2022_11_28/types/group_0888.py index 5fba98e1e..5019b6c54 100644 --- a/githubkit/versions/v2022_11_28/types/group_0888.py +++ b/githubkit/versions/v2022_11_28/types/group_0888.py @@ -9,70 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict +from .group_0061 import MinimalRepositoryType -class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): - """OrgsOrgAttestationsSubjectDigestGetResponse200""" - attestations: NotRequired[ - list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] - ] +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - bundle: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pVerificationMaterial -""" - - -OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro -pDsseEnvelope -""" - - -__all__ = ( - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "OrgsOrgAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0889.py b/githubkit/versions/v2022_11_28/types/group_0889.py index 57bdd1a34..91774da55 100644 --- a/githubkit/versions/v2022_11_28/types/group_0889.py +++ b/githubkit/versions/v2022_11_28/types/group_0889.py @@ -9,32 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgCampaignsPostBodyType(TypedDict): - """OrgsOrgCampaignsPostBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - name: str - description: str - managers: NotRequired[list[str]] - team_managers: NotRequired[list[str]] - ends_at: datetime - contact_link: NotRequired[Union[str, None]] - code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] - generate_issues: NotRequired[bool] + selected_repository_ids: list[int] -class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): - """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" - - repository_id: int - alert_numbers: list[int] - - -__all__ = ( - "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", - "OrgsOrgCampaignsPostBodyType", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0890.py b/githubkit/versions/v2022_11_28/types/group_0890.py index 25289c59a..feb95bc8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0890.py +++ b/githubkit/versions/v2022_11_28/types/group_0890.py @@ -10,20 +10,32 @@ from __future__ import annotations from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): - """OrgsOrgCampaignsCampaignNumberPatchBody""" +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" - name: NotRequired[str] - description: NotRequired[str] - managers: NotRequired[list[str]] - team_managers: NotRequired[list[str]] - ends_at: NotRequired[datetime] - contact_link: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] + total_count: int + variables: list[OrganizationActionsVariableType] -__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) +class OrganizationActionsVariableType(TypedDict): + """Actions Variable for an Organization + + Organization variable for GitHub Actions. + """ + + name: str + value: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationActionsVariableType", + "OrgsOrgActionsVariablesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0891.py b/githubkit/versions/v2022_11_28/types/group_0891.py index 9c4fea24c..35d9aa84a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0891.py +++ b/githubkit/versions/v2022_11_28/types/group_0891.py @@ -9,106 +9,17 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0029 import CodeScanningDefaultSetupOptionsType - -class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsPostBody""" +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" name: str - description: str - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti - ons - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - s - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption - sPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] + value: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsPostBodyType", -) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0892.py b/githubkit/versions/v2022_11_28/types/group_0892.py index a177d65ec..32397b063 100644 --- a/githubkit/versions/v2022_11_28/types/group_0892.py +++ b/githubkit/versions/v2022_11_28/types/group_0892.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0893.py b/githubkit/versions/v2022_11_28/types/group_0893.py index 4d09218a1..2c8d1a62a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0893.py +++ b/githubkit/versions/v2022_11_28/types/group_0893.py @@ -9,106 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0029 import CodeScanningDefaultSetupOptionsType +from .group_0061 import MinimalRepositoryType -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" - name: NotRequired[str] - description: NotRequired[str] - advanced_security: NotRequired[ - Literal["enabled", "disabled", "code_security", "secret_protection"] - ] - dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependency_graph_autosubmit_action: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - dependency_graph_autosubmit_action_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType - ] - dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] - dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] - code_scanning_default_setup_options: NotRequired[ - Union[CodeScanningDefaultSetupOptionsType, None] - ] - code_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] - secret_scanning_push_protection: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_bypass_options: NotRequired[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType - ] - secret_scanning_validity_checks: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_non_provider_patterns: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_generic_secrets: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - secret_scanning_delegated_alert_dismissal: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - private_vulnerability_reporting: NotRequired[ - Literal["enabled", "disabled", "not_set"] - ] - enforcement: NotRequired[Literal["enforced", "unenforced"]] + total_count: int + repositories: list[MinimalRepositoryType] -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto - submitActionOptions - - Feature options for Automatic dependency submission - """ - - labeled_runners: NotRequired[bool] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptions - - Feature options for secret scanning delegated bypass - """ - - reviewers: NotRequired[ - list[ - OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType - ] - ] - - -class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg - atedBypassOptionsPropReviewersItems - """ - - reviewer_id: int - reviewer_type: Literal["TEAM", "ROLE"] - - -__all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", - "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", -) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0894.py b/githubkit/versions/v2022_11_28/types/group_0894.py index 2ad011ac8..7b7f6fc84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0894.py +++ b/githubkit/versions/v2022_11_28/types/group_0894.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - scope: Literal[ - "all", "all_without_configurations", "public", "private_or_internal", "selected" - ] - selected_repository_ids: NotRequired[list[int]] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0895.py b/githubkit/versions/v2022_11_28/types/group_0895.py index ed69b7f35..2a4ab0267 100644 --- a/githubkit/versions/v2022_11_28/types/group_0895.py +++ b/githubkit/versions/v2022_11_28/types/group_0895.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" +class OrgsOrgAttestationsBulkListPostBodyType(TypedDict): + """OrgsOrgAttestationsBulkListPostBody""" - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] - ] + subject_digests: list[str] + predicate_type: NotRequired[str] -__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) +__all__ = ("OrgsOrgAttestationsBulkListPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0896.py b/githubkit/versions/v2022_11_28/types/group_0896.py index 3a65dd886..0dd3d4f18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0896.py +++ b/githubkit/versions/v2022_11_28/types/group_0896.py @@ -9,23 +9,42 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0028 import CodeSecurityConfigurationType +class OrgsOrgAttestationsBulkListPostResponse200Type(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200""" -class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( - TypedDict -): - """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - - default_for_new_repos: NotRequired[ - Literal["all", "none", "private_and_internal", "public"] + attestations_subject_digests: NotRequired[ + OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType ] - configuration: NotRequired[CodeSecurityConfigurationType] + page_info: NotRequired[OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType] + + +OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigests + +Mapping of subject digest to bundles. +""" + + +class OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType(TypedDict): + """OrgsOrgAttestationsBulkListPostResponse200PropPageInfo + + Information about the current page. + """ + + has_next: NotRequired[bool] + has_previous: NotRequired[bool] + next_: NotRequired[str] + previous: NotRequired[str] __all__ = ( - "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", + "OrgsOrgAttestationsBulkListPostResponse200PropAttestationsSubjectDigestsType", + "OrgsOrgAttestationsBulkListPostResponse200PropPageInfoType", + "OrgsOrgAttestationsBulkListPostResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0897.py b/githubkit/versions/v2022_11_28/types/group_0897.py index 35529708a..5fba98e1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0897.py +++ b/githubkit/versions/v2022_11_28/types/group_0897.py @@ -9,16 +9,70 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -from .group_0087 import CodespaceType +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" + attestations: NotRequired[ + list[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] + ] - total_count: int - codespaces: list[CodespaceType] +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) + bundle: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pVerificationMaterial +""" + + +OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro +pDsseEnvelope +""" + + +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0898.py b/githubkit/versions/v2022_11_28/types/group_0898.py index 1234cdbd0..57bdd1a34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0898.py +++ b/githubkit/versions/v2022_11_28/types/group_0898.py @@ -9,20 +9,32 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgCampaignsPostBodyType(TypedDict): + """OrgsOrgCampaignsPostBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[list[str]] + name: str + description: str + managers: NotRequired[list[str]] + team_managers: NotRequired[list[str]] + ends_at: datetime + contact_link: NotRequired[Union[str, None]] + code_scanning_alerts: list[OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType] + generate_issues: NotRequired[bool] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) +class OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType(TypedDict): + """OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItems""" + + repository_id: int + alert_numbers: list[int] + + +__all__ = ( + "OrgsOrgCampaignsPostBodyPropCodeScanningAlertsItemsType", + "OrgsOrgCampaignsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0899.py b/githubkit/versions/v2022_11_28/types/group_0899.py index 214a3ca92..25289c59a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0899.py +++ b/githubkit/versions/v2022_11_28/types/group_0899.py @@ -9,13 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgCampaignsCampaignNumberPatchBodyType(TypedDict): + """OrgsOrgCampaignsCampaignNumberPatchBody""" - selected_usernames: list[str] + name: NotRequired[str] + description: NotRequired[str] + managers: NotRequired[list[str]] + team_managers: NotRequired[list[str]] + ends_at: NotRequired[datetime] + contact_link: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCampaignsCampaignNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0900.py b/githubkit/versions/v2022_11_28/types/group_0900.py index 1aec188b7..9c4fea24c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0900.py +++ b/githubkit/versions/v2022_11_28/types/group_0900.py @@ -9,13 +9,106 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - selected_usernames: list[str] +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + name: str + description: str + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOpti + ons + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + s + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOption + sPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsPostBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0901.py b/githubkit/versions/v2022_11_28/types/group_0901.py index b5051f775..a177d65ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0901.py +++ b/githubkit/versions/v2022_11_28/types/group_0901.py @@ -9,32 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsDetachDeleteBody""" - total_count: int - secrets: list[CodespacesOrgSecretType] + selected_repository_ids: NotRequired[list[int]] -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "CodespacesOrgSecretType", - "OrgsOrgCodespacesSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgCodeSecurityConfigurationsDetachDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0902.py b/githubkit/versions/v2022_11_28/types/group_0902.py index 8eb7cb359..4d09218a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0902.py +++ b/githubkit/versions/v2022_11_28/types/group_0902.py @@ -9,17 +9,106 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0029 import CodeScanningDefaultSetupOptionsType -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[ + Literal["enabled", "disabled", "code_security", "secret_protection"] + ] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependency_graph_autosubmit_action: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + dependency_graph_autosubmit_action_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType + ] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup_options: NotRequired[ + Union[CodeScanningDefaultSetupOptionsType, None] + ] + code_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_bypass_options: NotRequired[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_non_provider_patterns: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_generic_secrets: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_delegated_alert_dismissal: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + enforcement: NotRequired[Literal["enforced", "unenforced"]] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAuto + submitActionOptions + + Feature options for Automatic dependency submission + """ + + labeled_runners: NotRequired[bool] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptions + + Feature options for secret scanning delegated bypass + """ + + reviewers: NotRequired[ + list[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType + ] + ] + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDeleg + atedBypassOptionsPropReviewersItems + """ + + reviewer_id: int + reviewer_type: Literal["TEAM", "ROLE"] + + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropDependencyGraphAutosubmitActionOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsPropReviewersItemsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyPropSecretScanningDelegatedBypassOptionsType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0903.py b/githubkit/versions/v2022_11_28/types/group_0903.py index caaf190ba..2ad011ac8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0903.py +++ b/githubkit/versions/v2022_11_28/types/group_0903.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0058 import MinimalRepositoryType +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + scope: Literal[ + "all", "all_without_configurations", "public", "private_or_internal", "selected" + ] + selected_repository_ids: NotRequired[list[int]] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0904.py b/githubkit/versions/v2022_11_28/types/group_0904.py index 9d6f25331..ed69b7f35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0904.py +++ b/githubkit/versions/v2022_11_28/types/group_0904.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - selected_repository_ids: list[int] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0905.py b/githubkit/versions/v2022_11_28/types/group_0905.py index a2e3b4a72..3a65dd886 100644 --- a/githubkit/versions/v2022_11_28/types/group_0905.py +++ b/githubkit/versions/v2022_11_28/types/group_0905.py @@ -9,13 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict +from .group_0028 import CodeSecurityConfigurationType -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: list[str] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0906.py b/githubkit/versions/v2022_11_28/types/group_0906.py index 76837fcdc..c36d4bf1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0906.py +++ b/githubkit/versions/v2022_11_28/types/group_0906.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict +from .group_0091 import CodespaceType -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - The total number of seats created for members of the specified team(s). - """ +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" - seats_created: int + total_count: int + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0907.py b/githubkit/versions/v2022_11_28/types/group_0907.py index dba449159..1234cdbd0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0907.py +++ b/githubkit/versions/v2022_11_28/types/group_0907.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" - selected_teams: list[str] + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[list[str]] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0908.py b/githubkit/versions/v2022_11_28/types/group_0908.py index 1b12f6a95..214a3ca92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0908.py +++ b/githubkit/versions/v2022_11_28/types/group_0908.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - The total number of seats set to "pending cancellation" for members of the - specified team(s). - """ + selected_usernames: list[str] - seats_cancelled: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0909.py b/githubkit/versions/v2022_11_28/types/group_0909.py index 9a511ba2a..1aec188b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0909.py +++ b/githubkit/versions/v2022_11_28/types/group_0909.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" selected_usernames: list[str] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0910.py b/githubkit/versions/v2022_11_28/types/group_0910.py index 651754049..b5051f775 100644 --- a/githubkit/versions/v2022_11_28/types/group_0910.py +++ b/githubkit/versions/v2022_11_28/types/group_0910.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - The total number of seats created for the specified user(s). + total_count: int + secrets: list[CodespacesOrgSecretType] + + +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. """ - seats_created: int + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ( + "CodespacesOrgSecretType", + "OrgsOrgCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0911.py b/githubkit/versions/v2022_11_28/types/group_0911.py index dddfa0789..8eb7cb359 100644 --- a/githubkit/versions/v2022_11_28/types/group_0911.py +++ b/githubkit/versions/v2022_11_28/types/group_0911.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - selected_usernames: list[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0912.py b/githubkit/versions/v2022_11_28/types/group_0912.py index b1510f36c..9955b2d3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0912.py +++ b/githubkit/versions/v2022_11_28/types/group_0912.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict +from .group_0061 import MinimalRepositoryType -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seats set to "pending cancellation" for the specified users. - """ +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" - seats_cancelled: int + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0913.py b/githubkit/versions/v2022_11_28/types/group_0913.py index fef93ba69..9d6f25331 100644 --- a/githubkit/versions/v2022_11_28/types/group_0913.py +++ b/githubkit/versions/v2022_11_28/types/group_0913.py @@ -9,32 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - total_count: int - secrets: list[OrganizationDependabotSecretType] + selected_repository_ids: list[int] -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrganizationDependabotSecretType", - "OrgsOrgDependabotSecretsGetResponse200Type", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0914.py b/githubkit/versions/v2022_11_28/types/group_0914.py index 5ee895714..a2e3b4a72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0914.py +++ b/githubkit/versions/v2022_11_28/types/group_0914.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[str]] + selected_teams: list[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0915.py b/githubkit/versions/v2022_11_28/types/group_0915.py index aec19777c..76837fcdc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0915.py +++ b/githubkit/versions/v2022_11_28/types/group_0915.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0058 import MinimalRepositoryType +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + The total number of seats created for members of the specified team(s). + """ - total_count: int - repositories: list[MinimalRepositoryType] + seats_created: int -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0916.py b/githubkit/versions/v2022_11_28/types/group_0916.py index 258f8e119..dba449159 100644 --- a/githubkit/versions/v2022_11_28/types/group_0916.py +++ b/githubkit/versions/v2022_11_28/types/group_0916.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - selected_repository_ids: list[int] + selected_teams: list[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0917.py b/githubkit/versions/v2022_11_28/types/group_0917.py index e99853b27..1b12f6a95 100644 --- a/githubkit/versions/v2022_11_28/types/group_0917.py +++ b/githubkit/versions/v2022_11_28/types/group_0917.py @@ -9,34 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[list[str]] - active: NotRequired[bool] - - -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. + The total number of seats set to "pending cancellation" for members of the + specified team(s). """ - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] + seats_cancelled: int -__all__ = ( - "OrgsOrgHooksPostBodyPropConfigType", - "OrgsOrgHooksPostBodyType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0918.py b/githubkit/versions/v2022_11_28/types/group_0918.py index 19cc5034f..9a511ba2a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0918.py +++ b/githubkit/versions/v2022_11_28/types/group_0918.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] - name: NotRequired[str] + selected_usernames: list[str] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyPropConfigType", - "OrgsOrgHooksHookIdPatchBodyType", -) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0919.py b/githubkit/versions/v2022_11_28/types/group_0919.py index 6399b7a4c..651754049 100644 --- a/githubkit/versions/v2022_11_28/types/group_0919.py +++ b/githubkit/versions/v2022_11_28/types/group_0919.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + The total number of seats created for the specified user(s). + """ + seats_created: int -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0920.py b/githubkit/versions/v2022_11_28/types/group_0920.py index 54372b1e4..dddfa0789 100644 --- a/githubkit/versions/v2022_11_28/types/group_0920.py +++ b/githubkit/versions/v2022_11_28/types/group_0920.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0018 import InstallationType +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + selected_usernames: list[str] - total_count: int - installations: list[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0921.py b/githubkit/versions/v2022_11_28/types/group_0921.py index 5916d7d10..b1510f36c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0921.py +++ b/githubkit/versions/v2022_11_28/types/group_0921.py @@ -12,8 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + The total number of seats set to "pending cancellation" for the specified users. + """ -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + seats_cancelled: int + + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0922.py b/githubkit/versions/v2022_11_28/types/group_0922.py index 2184fe8a4..fef93ba69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0922.py +++ b/githubkit/versions/v2022_11_28/types/group_0922.py @@ -9,17 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[list[int]] + total_count: int + secrets: list[OrganizationDependabotSecretType] -__all__ = ("OrgsOrgInvitationsPostBodyType",) +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrganizationDependabotSecretType", + "OrgsOrgDependabotSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0923.py b/githubkit/versions/v2022_11_28/types/group_0923.py index f875444a0..5ee895714 100644 --- a/githubkit/versions/v2022_11_28/types/group_0923.py +++ b/githubkit/versions/v2022_11_28/types/group_0923.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0087 import CodespaceType +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[str]] - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0924.py b/githubkit/versions/v2022_11_28/types/group_0924.py index 78a34c5ed..e9de6d3f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0924.py +++ b/githubkit/versions/v2022_11_28/types/group_0924.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0061 import MinimalRepositoryType -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" - role: NotRequired[Literal["admin", "member"]] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: list[MinimalRepositoryType] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0925.py b/githubkit/versions/v2022_11_28/types/group_0925.py index 242ce3795..258f8e119 100644 --- a/githubkit/versions/v2022_11_28/types/group_0925.py +++ b/githubkit/versions/v2022_11_28/types/group_0925.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - repositories: list[str] - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[list[Literal["repositories"]]] + selected_repository_ids: list[int] -__all__ = ("OrgsOrgMigrationsPostBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0926.py b/githubkit/versions/v2022_11_28/types/group_0926.py index b7593464f..e99853b27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0926.py +++ b/githubkit/versions/v2022_11_28/types/group_0926.py @@ -9,13 +9,34 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - async_: NotRequired[bool] + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] + + +__all__ = ( + "OrgsOrgHooksPostBodyPropConfigType", + "OrgsOrgHooksPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0927.py b/githubkit/versions/v2022_11_28/types/group_0927.py index 5de4170f2..19cc5034f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0927.py +++ b/githubkit/versions/v2022_11_28/types/group_0927.py @@ -9,11 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] + name: NotRequired[str] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyPropConfigType", + "OrgsOrgHooksHookIdPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0928.py b/githubkit/versions/v2022_11_28/types/group_0928.py index f43c7d76b..6399b7a4c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0928.py +++ b/githubkit/versions/v2022_11_28/types/group_0928.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0929.py b/githubkit/versions/v2022_11_28/types/group_0929.py index a99cad652..54372b1e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0929.py +++ b/githubkit/versions/v2022_11_28/types/group_0929.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0018 import InstallationType -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" - pat_request_ids: NotRequired[list[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" + total_count: int + installations: list[InstallationType] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0930.py b/githubkit/versions/v2022_11_28/types/group_0930.py index f08e02365..5916d7d10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0930.py +++ b/githubkit/versions/v2022_11_28/types/group_0930.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] - -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0931.py b/githubkit/versions/v2022_11_28/types/group_0931.py index b2f0b1907..2184fe8a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0931.py +++ b/githubkit/versions/v2022_11_28/types/group_0931.py @@ -10,14 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" - action: Literal["revoke"] - pat_ids: list[int] + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0932.py b/githubkit/versions/v2022_11_28/types/group_0932.py index 32c37cd97..6dfb3a973 100644 --- a/githubkit/versions/v2022_11_28/types/group_0932.py +++ b/githubkit/versions/v2022_11_28/types/group_0932.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0091 import CodespaceType -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" - action: Literal["revoke"] +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0933.py b/githubkit/versions/v2022_11_28/types/group_0933.py index 015086720..78a34c5ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0933.py +++ b/githubkit/versions/v2022_11_28/types/group_0933.py @@ -9,33 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesGetResponse200""" +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" - total_count: int - configurations: list[OrgPrivateRegistryConfigurationType] + role: NotRequired[Literal["admin", "member"]] -class OrgPrivateRegistryConfigurationType(TypedDict): - """Organization private registry - - Private registry configuration for an organization - """ - - name: str - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - visibility: Literal["all", "private", "selected"] - created_at: datetime - updated_at: datetime - - -__all__ = ( - "OrgPrivateRegistryConfigurationType", - "OrgsOrgPrivateRegistriesGetResponse200Type", -) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0934.py b/githubkit/versions/v2022_11_28/types/group_0934.py index 1aa9cb63a..242ce3795 100644 --- a/githubkit/versions/v2022_11_28/types/group_0934.py +++ b/githubkit/versions/v2022_11_28/types/group_0934.py @@ -9,19 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): - """OrgsOrgPrivateRegistriesPostBody""" +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" - registry_type: Literal["maven_repository"] - username: NotRequired[Union[str, None]] - encrypted_value: str - key_id: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[list[int]] + repositories: list[str] + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[list[Literal["repositories"]]] -__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0935.py b/githubkit/versions/v2022_11_28/types/group_0935.py index 95dc5e190..b7593464f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0935.py +++ b/githubkit/versions/v2022_11_28/types/group_0935.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): - """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - key_id: str - key: str + async_: NotRequired[bool] -__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0936.py b/githubkit/versions/v2022_11_28/types/group_0936.py index e4ce35654..5de4170f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0936.py +++ b/githubkit/versions/v2022_11_28/types/group_0936.py @@ -9,19 +9,11 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): - """OrgsOrgPrivateRegistriesSecretNamePatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - registry_type: NotRequired[Literal["maven_repository"]] - username: NotRequired[Union[str, None]] - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[list[int]] - -__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0937.py b/githubkit/versions/v2022_11_28/types/group_0937.py index 1afe17554..f43c7d76b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0937.py +++ b/githubkit/versions/v2022_11_28/types/group_0937.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - name: str - body: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgProjectsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0938.py b/githubkit/versions/v2022_11_28/types/group_0938.py index acfd3bf89..a99cad652 100644 --- a/githubkit/versions/v2022_11_28/types/group_0938.py +++ b/githubkit/versions/v2022_11_28/types/group_0938.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0115 import CustomPropertyType +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + pat_request_ids: NotRequired[list[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] - properties: list[CustomPropertyType] - -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0939.py b/githubkit/versions/v2022_11_28/types/group_0939.py index 87a0b7d14..f08e02365 100644 --- a/githubkit/versions/v2022_11_28/types/group_0939.py +++ b/githubkit/versions/v2022_11_28/types/group_0939.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0117 import CustomPropertyValueType +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] - repository_names: list[str] - properties: list[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0940.py b/githubkit/versions/v2022_11_28/types/group_0940.py index 5e584bb70..b2f0b1907 100644 --- a/githubkit/versions/v2022_11_28/types/group_0940.py +++ b/githubkit/versions/v2022_11_28/types/group_0940.py @@ -9,51 +9,15 @@ from __future__ import annotations -from typing import Any, Literal -from typing_extensions import NotRequired, TypeAlias, TypedDict - - -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] -"""OrgsOrgReposPostBodyPropCustomProperties - -The custom properties for the new repository. The keys are the custom property -names, and the values are the corresponding custom property values. -""" +from typing import Literal +from typing_extensions import TypedDict + + +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" + + action: Literal["revoke"] + pat_ids: list[int] -__all__ = ( - "OrgsOrgReposPostBodyPropCustomPropertiesType", - "OrgsOrgReposPostBodyType", -) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0941.py b/githubkit/versions/v2022_11_28/types/group_0941.py index 04b426fe2..32c37cd97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0941.py +++ b/githubkit/versions/v2022_11_28/types/group_0941.py @@ -9,79 +9,14 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -from .group_0121 import RepositoryRulesetBypassActorType -from .group_0130 import OrgRulesetConditionsOneof0Type -from .group_0131 import OrgRulesetConditionsOneof1Type -from .group_0132 import OrgRulesetConditionsOneof2Type -from .group_0133 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0134 import RepositoryRuleUpdateType -from .group_0136 import RepositoryRuleRequiredLinearHistoryType -from .group_0137 import RepositoryRuleMergeQueueType -from .group_0139 import RepositoryRuleRequiredDeploymentsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0156 import RepositoryRuleFilePathRestrictionType -from .group_0158 import RepositoryRuleMaxFilePathLengthType -from .group_0160 import RepositoryRuleFileExtensionRestrictionType -from .group_0162 import RepositoryRuleMaxFileSizeType -from .group_0165 import RepositoryRuleWorkflowsType -from .group_0167 import RepositoryRuleCodeScanningType +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" + action: Literal["revoke"] - name: str - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0942.py b/githubkit/versions/v2022_11_28/types/group_0942.py index 55ec3960f..a8b5e1475 100644 --- a/githubkit/versions/v2022_11_28/types/group_0942.py +++ b/githubkit/versions/v2022_11_28/types/group_0942.py @@ -9,79 +9,33 @@ from __future__ import annotations +from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0121 import RepositoryRulesetBypassActorType -from .group_0130 import OrgRulesetConditionsOneof0Type -from .group_0131 import OrgRulesetConditionsOneof1Type -from .group_0132 import OrgRulesetConditionsOneof2Type -from .group_0133 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0134 import RepositoryRuleUpdateType -from .group_0136 import RepositoryRuleRequiredLinearHistoryType -from .group_0137 import RepositoryRuleMergeQueueType -from .group_0139 import RepositoryRuleRequiredDeploymentsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0156 import RepositoryRuleFilePathRestrictionType -from .group_0158 import RepositoryRuleMaxFilePathLengthType -from .group_0160 import RepositoryRuleFileExtensionRestrictionType -from .group_0162 import RepositoryRuleMaxFileSizeType -from .group_0165 import RepositoryRuleWorkflowsType -from .group_0167 import RepositoryRuleCodeScanningType + +class OrgsOrgPrivateRegistriesGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesGetResponse200""" + + total_count: int + configurations: list[OrgPrivateRegistryConfigurationType] -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" +class OrgPrivateRegistryConfigurationType(TypedDict): + """Organization private registry - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push", "repository"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + Private registry configuration for an organization + """ + name: str + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] + username: NotRequired[Union[str, None]] + visibility: Literal["all", "private", "selected"] + created_at: datetime + updated_at: datetime -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) + +__all__ = ( + "OrgPrivateRegistryConfigurationType", + "OrgsOrgPrivateRegistriesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0943.py b/githubkit/versions/v2022_11_28/types/group_0943.py index 56c40e834..26b265c7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0943.py +++ b/githubkit/versions/v2022_11_28/types/group_0943.py @@ -9,32 +9,19 @@ from __future__ import annotations -from datetime import datetime from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" +class OrgsOrgPrivateRegistriesPostBodyType(TypedDict): + """OrgsOrgPrivateRegistriesPostBody""" - total_count: int - network_configurations: list[NetworkConfigurationType] + registry_type: Literal["maven_repository", "nuget_feed", "goproxy_server"] + username: NotRequired[Union[str, None]] + encrypted_value: str + key_id: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[list[int]] -class NetworkConfigurationType(TypedDict): - """Hosted compute network configuration - - A hosted compute network configuration. - """ - - id: str - name: str - compute_service: NotRequired[Literal["none", "actions", "codespaces"]] - network_settings_ids: NotRequired[list[str]] - created_on: Union[datetime, None] - - -__all__ = ( - "NetworkConfigurationType", - "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", -) +__all__ = ("OrgsOrgPrivateRegistriesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0944.py b/githubkit/versions/v2022_11_28/types/group_0944.py index c29f59c8e..95dc5e190 100644 --- a/githubkit/versions/v2022_11_28/types/group_0944.py +++ b/githubkit/versions/v2022_11_28/types/group_0944.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): - """OrgsOrgSettingsNetworkConfigurationsPostBody""" +class OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type(TypedDict): + """OrgsOrgPrivateRegistriesPublicKeyGetResponse200""" - name: str - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: list[str] + key_id: str + key: str -__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesPublicKeyGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0945.py b/githubkit/versions/v2022_11_28/types/group_0945.py index cf5c73d09..c047078ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0945.py +++ b/githubkit/versions/v2022_11_28/types/group_0945.py @@ -9,18 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( - TypedDict -): - """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" +class OrgsOrgPrivateRegistriesSecretNamePatchBodyType(TypedDict): + """OrgsOrgPrivateRegistriesSecretNamePatchBody""" - name: NotRequired[str] - compute_service: NotRequired[Literal["none", "actions"]] - network_settings_ids: NotRequired[list[str]] + registry_type: NotRequired[ + Literal["maven_repository", "nuget_feed", "goproxy_server"] + ] + username: NotRequired[Union[str, None]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[list[int]] -__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) +__all__ = ("OrgsOrgPrivateRegistriesSecretNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0946.py b/githubkit/versions/v2022_11_28/types/group_0946.py index ccfb358e6..1afe17554 100644 --- a/githubkit/versions/v2022_11_28/types/group_0946.py +++ b/githubkit/versions/v2022_11_28/types/group_0946.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" name: str - description: NotRequired[str] - maintainers: NotRequired[list[str]] - repo_names: NotRequired[list[str]] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push"]] - parent_team_id: NotRequired[int] - - -__all__ = ("OrgsOrgTeamsPostBodyType",) + body: NotRequired[str] + + +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0947.py b/githubkit/versions/v2022_11_28/types/group_0947.py index c08c152bc..e04771912 100644 --- a/githubkit/versions/v2022_11_28/types/group_0947.py +++ b/githubkit/versions/v2022_11_28/types/group_0947.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0119 import CustomPropertyType -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" - name: NotRequired[str] - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: list[CustomPropertyType] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0948.py b/githubkit/versions/v2022_11_28/types/group_0948.py index cb961efbb..3f9232b21 100644 --- a/githubkit/versions/v2022_11_28/types/group_0948.py +++ b/githubkit/versions/v2022_11_28/types/group_0948.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0121 import CustomPropertyValueType -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - title: str - body: str - private: NotRequired[bool] +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: list[str] + properties: list[CustomPropertyValueType] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0949.py b/githubkit/versions/v2022_11_28/types/group_0949.py index db3011d85..5e584bb70 100644 --- a/githubkit/versions/v2022_11_28/types/group_0949.py +++ b/githubkit/versions/v2022_11_28/types/group_0949.py @@ -9,14 +9,51 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict - - -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - - title: NotRequired[str] - body: NotRequired[str] +from typing import Any, Literal +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] + + +OrgsOrgReposPostBodyPropCustomPropertiesType: TypeAlias = dict[str, Any] +"""OrgsOrgReposPostBodyPropCustomProperties + +The custom properties for the new repository. The keys are the custom property +names, and the values are the corresponding custom property values. +""" -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ( + "OrgsOrgReposPostBodyPropCustomPropertiesType", + "OrgsOrgReposPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0950.py b/githubkit/versions/v2022_11_28/types/group_0950.py index a05290583..7e96bcee9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0950.py +++ b/githubkit/versions/v2022_11_28/types/group_0950.py @@ -9,13 +9,79 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0125 import RepositoryRulesetBypassActorType +from .group_0134 import OrgRulesetConditionsOneof0Type +from .group_0135 import OrgRulesetConditionsOneof1Type +from .group_0136 import OrgRulesetConditionsOneof2Type +from .group_0137 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0138 import RepositoryRuleUpdateType +from .group_0140 import RepositoryRuleRequiredLinearHistoryType +from .group_0141 import RepositoryRuleMergeQueueType +from .group_0143 import RepositoryRuleRequiredDeploymentsType +from .group_0146 import RepositoryRulePullRequestType +from .group_0148 import RepositoryRuleRequiredStatusChecksType +from .group_0150 import RepositoryRuleCommitMessagePatternType +from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0154 import RepositoryRuleCommitterEmailPatternType +from .group_0156 import RepositoryRuleBranchNamePatternType +from .group_0158 import RepositoryRuleTagNamePatternType +from .group_0160 import RepositoryRuleFilePathRestrictionType +from .group_0162 import RepositoryRuleMaxFilePathLengthType +from .group_0164 import RepositoryRuleFileExtensionRestrictionType +from .group_0166 import RepositoryRuleMaxFileSizeType +from .group_0169 import RepositoryRuleWorkflowsType +from .group_0171 import RepositoryRuleCodeScanningType -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - body: str +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) + +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0951.py b/githubkit/versions/v2022_11_28/types/group_0951.py index a6b974137..80692a4cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0951.py +++ b/githubkit/versions/v2022_11_28/types/group_0951.py @@ -9,17 +9,79 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_0125 import RepositoryRulesetBypassActorType +from .group_0134 import OrgRulesetConditionsOneof0Type +from .group_0135 import OrgRulesetConditionsOneof1Type +from .group_0136 import OrgRulesetConditionsOneof2Type +from .group_0137 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0138 import RepositoryRuleUpdateType +from .group_0140 import RepositoryRuleRequiredLinearHistoryType +from .group_0141 import RepositoryRuleMergeQueueType +from .group_0143 import RepositoryRuleRequiredDeploymentsType +from .group_0146 import RepositoryRulePullRequestType +from .group_0148 import RepositoryRuleRequiredStatusChecksType +from .group_0150 import RepositoryRuleCommitMessagePatternType +from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0154 import RepositoryRuleCommitterEmailPatternType +from .group_0156 import RepositoryRuleBranchNamePatternType +from .group_0158 import RepositoryRuleTagNamePatternType +from .group_0160 import RepositoryRuleFilePathRestrictionType +from .group_0162 import RepositoryRuleMaxFilePathLengthType +from .group_0164 import RepositoryRuleFileExtensionRestrictionType +from .group_0166 import RepositoryRuleMaxFileSizeType +from .group_0169 import RepositoryRuleWorkflowsType +from .group_0171 import RepositoryRuleCodeScanningType -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - body: str +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push", "repository"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0952.py b/githubkit/versions/v2022_11_28/types/group_0952.py index 937b98f91..56c40e834 100644 --- a/githubkit/versions/v2022_11_28/types/group_0952.py +++ b/githubkit/versions/v2022_11_28/types/group_0952.py @@ -9,22 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody +class OrgsOrgSettingsNetworkConfigurationsGetResponse200Type(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsGetResponse200""" + + total_count: int + network_configurations: list[NetworkConfigurationType] + + +class NetworkConfigurationType(TypedDict): + """Hosted compute network configuration + + A hosted compute network configuration. """ - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + id: str + name: str + compute_service: NotRequired[Literal["none", "actions", "codespaces"]] + network_settings_ids: NotRequired[list[str]] + created_on: Union[datetime, None] __all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", + "NetworkConfigurationType", + "OrgsOrgSettingsNetworkConfigurationsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0953.py b/githubkit/versions/v2022_11_28/types/group_0953.py index c71526f64..c29f59c8e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0953.py +++ b/githubkit/versions/v2022_11_28/types/group_0953.py @@ -10,15 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgSettingsNetworkConfigurationsPostBodyType(TypedDict): + """OrgsOrgSettingsNetworkConfigurationsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + name: str + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: list[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0954.py b/githubkit/versions/v2022_11_28/types/group_0954.py index b4d610e84..cf5c73d09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0954.py +++ b/githubkit/versions/v2022_11_28/types/group_0954.py @@ -13,10 +13,14 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType( + TypedDict +): + """OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBody""" - role: NotRequired[Literal["member", "maintainer"]] + name: NotRequired[str] + compute_service: NotRequired[Literal["none", "actions"]] + network_settings_ids: NotRequired[list[str]] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgSettingsNetworkConfigurationsNetworkConfigurationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0955.py b/githubkit/versions/v2022_11_28/types/group_0955.py index 8466dce90..ccfb358e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0955.py +++ b/githubkit/versions/v2022_11_28/types/group_0955.py @@ -13,10 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - - permission: NotRequired[Literal["read", "write", "admin"]] - - -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" + + name: str + description: NotRequired[str] + maintainers: NotRequired[list[str]] + repo_names: NotRequired[list[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] + + +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0956.py b/githubkit/versions/v2022_11_28/types/group_0956.py index a637157e4..c08c152bc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0956.py +++ b/githubkit/versions/v2022_11_28/types/group_0956.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0957.py b/githubkit/versions/v2022_11_28/types/group_0957.py index b42f638ac..cb961efbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0957.py +++ b/githubkit/versions/v2022_11_28/types/group_0957.py @@ -12,10 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - permission: NotRequired[str] + title: str + body: str + private: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0958.py b/githubkit/versions/v2022_11_28/types/group_0958.py index edc438335..db3011d85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0958.py +++ b/githubkit/versions/v2022_11_28/types/group_0958.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - query_suite: NotRequired[Literal["default", "extended"]] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0959.py b/githubkit/versions/v2022_11_28/types/group_0959.py index 8710755b1..a05290583 100644 --- a/githubkit/versions/v2022_11_28/types/group_0959.py +++ b/githubkit/versions/v2022_11_28/types/group_0959.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + body: str -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0960.py b/githubkit/versions/v2022_11_28/types/group_0960.py index 3481963bb..a6b974137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0960.py +++ b/githubkit/versions/v2022_11_28/types/group_0960.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + body: str -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0961.py b/githubkit/versions/v2022_11_28/types/group_0961.py index ab2395816..937b98f91 100644 --- a/githubkit/versions/v2022_11_28/types/group_0961.py +++ b/githubkit/versions/v2022_11_28/types/group_0961.py @@ -9,14 +9,22 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - position: str - column_id: NotRequired[int] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0962.py b/githubkit/versions/v2022_11_28/types/group_0962.py index 7c136f63a..c71526f64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0962.py +++ b/githubkit/versions/v2022_11_28/types/group_0962.py @@ -9,11 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0963.py b/githubkit/versions/v2022_11_28/types/group_0963.py index 2628f5b1a..b4d610e84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0963.py +++ b/githubkit/versions/v2022_11_28/types/group_0963.py @@ -9,29 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] + role: NotRequired[Literal["member", "maintainer"]] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", -) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0964.py b/githubkit/versions/v2022_11_28/types/group_0964.py index c4d1b64db..8466dce90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0964.py +++ b/githubkit/versions/v2022_11_28/types/group_0964.py @@ -9,28 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] - ] + permission: NotRequired[Literal["read", "write", "admin"]] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", -) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0965.py b/githubkit/versions/v2022_11_28/types/group_0965.py index 62ebaaaef..a637157e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0965.py +++ b/githubkit/versions/v2022_11_28/types/group_0965.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - name: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0966.py b/githubkit/versions/v2022_11_28/types/group_0966.py index 1fdc1bf2e..b42f638ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0966.py +++ b/githubkit/versions/v2022_11_28/types/group_0966.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - note: Union[str, None] + permission: NotRequired[str] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0967.py b/githubkit/versions/v2022_11_28/types/group_0967.py index 93c271e2e..edc438335 100644 --- a/githubkit/versions/v2022_11_28/types/group_0967.py +++ b/githubkit/versions/v2022_11_28/types/group_0967.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - content_id: int - content_type: str + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0968.py b/githubkit/versions/v2022_11_28/types/group_0968.py index 4b4ed0962..8710755b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0968.py +++ b/githubkit/versions/v2022_11_28/types/group_0968.py @@ -12,25 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - code: NotRequired[str] message: NotRequired[str] documentation_url: NotRequired[str] - errors: NotRequired[ - list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + errors: NotRequired[list[str]] -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", - "ProjectsColumnsColumnIdCardsPostResponse503Type", -) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0969.py b/githubkit/versions/v2022_11_28/types/group_0969.py index 1eee63273..3481963bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0969.py +++ b/githubkit/versions/v2022_11_28/types/group_0969.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - position: str + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0970.py b/githubkit/versions/v2022_11_28/types/group_0970.py index 7df563c61..ab2395816 100644 --- a/githubkit/versions/v2022_11_28/types/group_0970.py +++ b/githubkit/versions/v2022_11_28/types/group_0970.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" + position: str + column_id: NotRequired[int] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0971.py b/githubkit/versions/v2022_11_28/types/group_0971.py index 36d491ce7..7c136f63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0971.py +++ b/githubkit/versions/v2022_11_28/types/group_0971.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[list[str]] - -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0972.py b/githubkit/versions/v2022_11_28/types/group_0972.py index 31f864cbd..2628f5b1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0972.py +++ b/githubkit/versions/v2022_11_28/types/group_0972.py @@ -9,18 +9,29 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] -__all__ = ("ProjectsProjectIdPatchBodyType",) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0973.py b/githubkit/versions/v2022_11_28/types/group_0973.py index 6e093b913..c4d1b64db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0973.py +++ b/githubkit/versions/v2022_11_28/types/group_0973.py @@ -12,12 +12,25 @@ from typing_extensions import NotRequired, TypedDict -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" + code: NotRequired[str] message: NotRequired[str] documentation_url: NotRequired[str] - errors: NotRequired[list[str]] + errors: NotRequired[ + list[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0974.py b/githubkit/versions/v2022_11_28/types/group_0974.py index e3cd89b33..62ebaaaef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0974.py +++ b/githubkit/versions/v2022_11_28/types/group_0974.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + name: str -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0975.py b/githubkit/versions/v2022_11_28/types/group_0975.py index 8c02d8953..1fdc1bf2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0975.py +++ b/githubkit/versions/v2022_11_28/types/group_0975.py @@ -9,13 +9,14 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - name: str + note: Union[str, None] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0976.py b/githubkit/versions/v2022_11_28/types/group_0976.py index a7224c5e8..93c271e2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0976.py +++ b/githubkit/versions/v2022_11_28/types/group_0976.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - message: NotRequired[str] - documentation_url: NotRequired[str] + content_id: int + content_type: str -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0977.py b/githubkit/versions/v2022_11_28/types/group_0977.py index 16638fde9..4b4ed0962 100644 --- a/githubkit/versions/v2022_11_28/types/group_0977.py +++ b/githubkit/versions/v2022_11_28/types/group_0977.py @@ -9,168 +9,28 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - name: NotRequired[str] - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private"]] - security_and_analysis: NotRequired[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + list[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] ] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - is_template: NotRequired[bool] - default_branch: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - archived: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - code_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_ai_detection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType - ] - secret_scanning_non_provider_patterns: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity - - Use the `status` property to enable or disable GitHub Code Security for this - repository. - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection - - Use the `status` property to enable or disable secret scanning AI detection for - this repository. For more information, see "[Responsible detection of generic - secrets with AI](https://docs.github.com/code-security/secret-scanning/using- - advanced-secret-scanning-and-push-protection-features/generic-secret- - detection/responsible-ai-generic-secrets)." - """ - - status: NotRequired[str] - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte - rns - Use the `status` property to enable or disable secret scanning non-provider - patterns for this repository. For more information, see "[Supported secret - scanning patterns](/code-security/secret-scanning/introduction/supported-secret- - scanning-patterns#supported-secrets)." - """ +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - status: NotRequired[str] + code: NotRequired[str] + message: NotRequired[str] __all__ = ( - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyType", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", + "ProjectsColumnsColumnIdCardsPostResponse503Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0978.py b/githubkit/versions/v2022_11_28/types/group_0978.py index cae86760a..1eee63273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0978.py +++ b/githubkit/versions/v2022_11_28/types/group_0978.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0196 import ArtifactType +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + position: str - total_count: int - artifacts: list[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0979.py b/githubkit/versions/v2022_11_28/types/group_0979.py index 8552ab8cf..7df563c61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0979.py +++ b/githubkit/versions/v2022_11_28/types/group_0979.py @@ -9,13 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - enable_debug_logging: NotRequired[bool] - -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0980.py b/githubkit/versions/v2022_11_28/types/group_0980.py index 19c3d652d..36d491ce7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0980.py +++ b/githubkit/versions/v2022_11_28/types/group_0980.py @@ -12,14 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" - Actions OIDC subject customization for a repository - """ + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] - use_default: bool - include_claim_keys: NotRequired[list[str]] - -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0981.py b/githubkit/versions/v2022_11_28/types/group_0981.py index 47cb761a4..31f864cbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0981.py +++ b/githubkit/versions/v2022_11_28/types/group_0981.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0200 import ActionsSecretType +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0982.py b/githubkit/versions/v2022_11_28/types/group_0982.py index 1d89420e5..6e093b913 100644 --- a/githubkit/versions/v2022_11_28/types/group_0982.py +++ b/githubkit/versions/v2022_11_28/types/group_0982.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0201 import ActionsVariableType +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[list[str]] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0983.py b/githubkit/versions/v2022_11_28/types/group_0983.py index fc3874a09..e3cd89b33 100644 --- a/githubkit/versions/v2022_11_28/types/group_0983.py +++ b/githubkit/versions/v2022_11_28/types/group_0983.py @@ -13,11 +13,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0984.py b/githubkit/versions/v2022_11_28/types/group_0984.py index 189e516a3..8c02d8953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0984.py +++ b/githubkit/versions/v2022_11_28/types/group_0984.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0075 import RunnerType +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + name: str - total_count: int - runners: list[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0985.py b/githubkit/versions/v2022_11_28/types/group_0985.py index 5036c414c..a7224c5e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0985.py +++ b/githubkit/versions/v2022_11_28/types/group_0985.py @@ -12,13 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - name: str - runner_group_id: int - labels: list[str] - work_folder: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0986.py b/githubkit/versions/v2022_11_28/types/group_0986.py index 9ca36f6ff..16638fde9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0986.py +++ b/githubkit/versions/v2022_11_28/types/group_0986.py @@ -9,13 +9,168 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - labels: list[str] + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + code_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_ai_detection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurity + + Use the `status` property to enable or disable GitHub Code Security for this + repository. + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetection + + Use the `status` property to enable or disable secret scanning AI detection for + this repository. For more information, see "[Responsible detection of generic + secrets with AI](https://docs.github.com/code-security/secret-scanning/using- + advanced-secret-scanning-and-push-protection-features/generic-secret- + detection/responsible-ai-generic-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Supported secret + scanning patterns](/code-security/secret-scanning/introduction/supported-secret- + scanning-patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropCodeSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningAiDetectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0987.py b/githubkit/versions/v2022_11_28/types/group_0987.py index 17c2e6d71..44beab7ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0987.py +++ b/githubkit/versions/v2022_11_28/types/group_0987.py @@ -11,11 +11,14 @@ from typing_extensions import TypedDict +from .group_0200 import ArtifactType -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - labels: list[str] +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0988.py b/githubkit/versions/v2022_11_28/types/group_0988.py index 25114726d..8552ab8cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0988.py +++ b/githubkit/versions/v2022_11_28/types/group_0988.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0206 import WorkflowRunType +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - workflow_runs: list[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0989.py b/githubkit/versions/v2022_11_28/types/group_0989.py index a2320abec..19c3d652d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0989.py +++ b/githubkit/versions/v2022_11_28/types/group_0989.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0196 import ArtifactType +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int - artifacts: list[ArtifactType] + use_default: bool + include_claim_keys: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0990.py b/githubkit/versions/v2022_11_28/types/group_0990.py index 9d9c5c299..76fca5540 100644 --- a/githubkit/versions/v2022_11_28/types/group_0990.py +++ b/githubkit/versions/v2022_11_28/types/group_0990.py @@ -11,16 +11,14 @@ from typing_extensions import TypedDict -from .group_0198 import JobType +from .group_0204 import ActionsSecretType -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int - jobs: list[JobType] + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0991.py b/githubkit/versions/v2022_11_28/types/group_0991.py index b56211499..ea460f9cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0991.py +++ b/githubkit/versions/v2022_11_28/types/group_0991.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0198 import JobType +from .group_0205 import ActionsVariableType -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" total_count: int - jobs: list[JobType] + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0992.py b/githubkit/versions/v2022_11_28/types/group_0992.py index 76bdf5b5d..fc3874a09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0992.py +++ b/githubkit/versions/v2022_11_28/types/group_0992.py @@ -10,15 +10,14 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" - environment_ids: list[int] - state: Literal["approved", "rejected"] - comment: str + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0993.py b/githubkit/versions/v2022_11_28/types/group_0993.py index 41d795f26..92543f99e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0993.py +++ b/githubkit/versions/v2022_11_28/types/group_0993.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0079 import RunnerType -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: list[RunnerType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0994.py b/githubkit/versions/v2022_11_28/types/group_0994.py index d27f156d2..5036c414c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0994.py +++ b/githubkit/versions/v2022_11_28/types/group_0994.py @@ -12,10 +12,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - enable_debug_logging: NotRequired[bool] + name: str + runner_group_id: int + labels: list[str] + work_folder: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0995.py b/githubkit/versions/v2022_11_28/types/group_0995.py index ce973d771..9ca36f6ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0995.py +++ b/githubkit/versions/v2022_11_28/types/group_0995.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0200 import ActionsSecretType +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + labels: list[str] - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0996.py b/githubkit/versions/v2022_11_28/types/group_0996.py index 335280e49..17c2e6d71 100644 --- a/githubkit/versions/v2022_11_28/types/group_0996.py +++ b/githubkit/versions/v2022_11_28/types/group_0996.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - encrypted_value: str - key_id: str + labels: list[str] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0997.py b/githubkit/versions/v2022_11_28/types/group_0997.py index 18b1fce0b..7cc475020 100644 --- a/githubkit/versions/v2022_11_28/types/group_0997.py +++ b/githubkit/versions/v2022_11_28/types/group_0997.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0201 import ActionsVariableType +from .group_0210 import WorkflowRunType -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" total_count: int - variables: list[ActionsVariableType] + workflow_runs: list[WorkflowRunType] -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0998.py b/githubkit/versions/v2022_11_28/types/group_0998.py index a5b1bcda1..e99e90fe7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0998.py +++ b/githubkit/versions/v2022_11_28/types/group_0998.py @@ -11,12 +11,14 @@ from typing_extensions import TypedDict +from .group_0200 import ArtifactType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int + artifacts: list[ArtifactType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0999.py b/githubkit/versions/v2022_11_28/types/group_0999.py index 9dc60de46..9b5ddd291 100644 --- a/githubkit/versions/v2022_11_28/types/group_0999.py +++ b/githubkit/versions/v2022_11_28/types/group_0999.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0202 import JobType -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + total_count: int + jobs: list[JobType] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1000.py b/githubkit/versions/v2022_11_28/types/group_1000.py index 567412f15..47d200df6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1000.py +++ b/githubkit/versions/v2022_11_28/types/group_1000.py @@ -9,40 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0202 import JobType -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" + +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" total_count: int - workflows: list[WorkflowType] - - -class WorkflowType(TypedDict): - """Workflow - - A GitHub Actions workflow - """ - - id: int - node_id: str - name: str - path: str - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] - created_at: datetime - updated_at: datetime - url: str - html_url: str - badge_url: str - deleted_at: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", -) + jobs: list[JobType] + + +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1001.py b/githubkit/versions/v2022_11_28/types/group_1001.py index 3e172dbfe..76bdf5b5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1001.py +++ b/githubkit/versions/v2022_11_28/types/group_1001.py @@ -9,31 +9,16 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] + environment_ids: list[int] + state: Literal["approved", "rejected"] + comment: str -ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - -Input keys and values configured in the workflow file. The maximum number of -properties is 10. Any default properties configured in the workflow file will be -used when `inputs` are omitted. -""" - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1002.py b/githubkit/versions/v2022_11_28/types/group_1002.py index 8a05b47ce..41d795f26 100644 --- a/githubkit/versions/v2022_11_28/types/group_1002.py +++ b/githubkit/versions/v2022_11_28/types/group_1002.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0206 import WorkflowRunType +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - workflow_runs: list[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1003.py b/githubkit/versions/v2022_11_28/types/group_1003.py index e197b3b3a..d27f156d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1003.py +++ b/githubkit/versions/v2022_11_28/types/group_1003.py @@ -9,51 +9,13 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoAttestationsPostBodyType(TypedDict): - """ReposOwnerRepoAttestationsPostBody""" +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + enable_debug_logging: NotRequired[bool] -class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): - """ReposOwnerRepoAttestationsPostBodyPropBundle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType - ] - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( - dict[str, Any] -) -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial -""" - - -ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope -""" - - -__all__ = ( - "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsPostBodyPropBundleType", - "ReposOwnerRepoAttestationsPostBodyType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1004.py b/githubkit/versions/v2022_11_28/types/group_1004.py index 79c9aa002..dc4d14722 100644 --- a/githubkit/versions/v2022_11_28/types/group_1004.py +++ b/githubkit/versions/v2022_11_28/types/group_1004.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0204 import ActionsSecretType -class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): - """ReposOwnerRepoAttestationsPostResponse201""" - id: NotRequired[int] +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) + +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1005.py b/githubkit/versions/v2022_11_28/types/group_1005.py index 8a6a46fe3..335280e49 100644 --- a/githubkit/versions/v2022_11_28/types/group_1005.py +++ b/githubkit/versions/v2022_11_28/types/group_1005.py @@ -9,73 +9,14 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - attestations: NotRequired[ - list[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] + encrypted_value: str + key_id: str -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu - ndle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropVerificationMaterial -""" - - -ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu -ndlePropDsseEnvelope -""" - - -__all__ = ( - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1006.py b/githubkit/versions/v2022_11_28/types/group_1006.py index d3cf0850b..9e1c38de1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1006.py +++ b/githubkit/versions/v2022_11_28/types/group_1006.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0205 import ActionsVariableType -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1007.py b/githubkit/versions/v2022_11_28/types/group_1007.py index bca1d637c..a5b1bcda1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1007.py +++ b/githubkit/versions/v2022_11_28/types/group_1007.py @@ -9,132 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None - ] - enforce_admins: Union[bool, None] - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, - None, - ] - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None - ] - required_linear_history: NotRequired[bool] - allow_force_pushes: NotRequired[Union[bool, None]] - allow_deletions: NotRequired[bool] - block_creations: NotRequired[bool] - required_conversation_resolution: NotRequired[bool] - lock_branch: NotRequired[bool] - allow_fork_syncing: NotRequired[bool] + name: str + value: str -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool - contexts: list[str] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str - app_id: NotRequired[int] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: list[str] - teams: list[str] - apps: NotRequired[list[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", -) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1008.py b/githubkit/versions/v2022_11_28/types/group_1008.py index 663ec3e19..9dc60de46 100644 --- a/githubkit/versions/v2022_11_28/types/group_1008.py +++ b/githubkit/versions/v2022_11_28/types/group_1008.py @@ -12,56 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType - ] + name: NotRequired[str] + value: NotRequired[str] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[list[str]] - teams: NotRequired[list[str]] - apps: NotRequired[list[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", -) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1009.py b/githubkit/versions/v2022_11_28/types/group_1009.py index 0e57487fc..567412f15 100644 --- a/githubkit/versions/v2022_11_28/types/group_1009.py +++ b/githubkit/versions/v2022_11_28/types/group_1009.py @@ -9,35 +9,40 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int + workflows: list[WorkflowType] - strict: NotRequired[bool] - contexts: NotRequired[list[str]] - checks: NotRequired[ - list[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] +class WorkflowType(TypedDict): + """Workflow -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms + A GitHub Actions workflow """ - context: str - app_id: NotRequired[int] + id: int + node_id: str + name: str + path: str + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] + created_at: datetime + updated_at: datetime + url: str + html_url: str + badge_url: str + deleted_at: NotRequired[datetime] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoActionsWorkflowsGetResponse200Type", + "WorkflowType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1010.py b/githubkit/versions/v2022_11_28/types/group_1010.py index e1f78ac45..3e172dbfe 100644 --- a/githubkit/versions/v2022_11_28/types/group_1010.py +++ b/githubkit/versions/v2022_11_28/types/group_1010.py @@ -9,21 +9,31 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - Examples: - {'contexts': ['contexts']} - """ + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] - contexts: list[str] + +ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs + +Input keys and values configured in the workflow file. The maximum number of +properties is 10. Any default properties configured in the workflow file will be +used when `inputs` are omitted. +""" __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1011.py b/githubkit/versions/v2022_11_28/types/group_1011.py index 7953af035..0a16c2ce3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1011.py +++ b/githubkit/versions/v2022_11_28/types/group_1011.py @@ -11,19 +11,14 @@ from typing_extensions import TypedDict +from .group_0210 import WorkflowRunType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - contexts: list[str] + total_count: int + workflow_runs: list[WorkflowRunType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1012.py b/githubkit/versions/v2022_11_28/types/group_1012.py index b4a0d30f6..e197b3b3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1012.py +++ b/githubkit/versions/v2022_11_28/types/group_1012.py @@ -9,22 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" - Examples: - {'contexts': ['contexts']} + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType + + +class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - contexts: list[str] + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType: TypeAlias = ( + dict[str, Any] +) +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope +""" __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1013.py b/githubkit/versions/v2022_11_28/types/group_1013.py index 1f154c587..79c9aa002 100644 --- a/githubkit/versions/v2022_11_28/types/group_1013.py +++ b/githubkit/versions/v2022_11_28/types/group_1013.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - Examples: - {'apps': ['my-app']} - """ + id: NotRequired[int] - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1014.py b/githubkit/versions/v2022_11_28/types/group_1014.py index e8ab2de74..8a6a46fe3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1014.py +++ b/githubkit/versions/v2022_11_28/types/group_1014.py @@ -9,17 +9,73 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" - Examples: - {'apps': ['my-app']} + attestations: NotRequired[ + list[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. """ - apps: list[str] + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropVerificationMaterial +""" + + +ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu +ndlePropDsseEnvelope +""" -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1015.py b/githubkit/versions/v2022_11_28/types/group_1015.py index 26bc12cd2..d3cf0850b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1015.py +++ b/githubkit/versions/v2022_11_28/types/group_1015.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - Examples: - {'apps': ['my-app']} - """ + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] - apps: list[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1016.py b/githubkit/versions/v2022_11_28/types/group_1016.py index db6c7e46c..bca1d637c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1016.py +++ b/githubkit/versions/v2022_11_28/types/group_1016.py @@ -9,19 +9,132 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" + + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None + ] + enforce_admins: Union[bool, None] + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, + None, + ] + restrictions: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, None + ] + required_linear_history: NotRequired[bool] + allow_force_pushes: NotRequired[Union[bool, None]] + allow_deletions: NotRequired[bool] + block_creations: NotRequired[bool] + required_conversation_resolution: NotRequired[bool] + lock_branch: NotRequired[bool] + allow_fork_syncing: NotRequired[bool] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool + contexts: list[str] + checks: NotRequired[ + list[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str + app_id: NotRequired[int] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - Examples: - {'teams': ['justice-league']} + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. """ + users: list[str] teams: list[str] + apps: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1017.py b/githubkit/versions/v2022_11_28/types/group_1017.py index d74b8d070..663ec3e19 100644 --- a/githubkit/versions/v2022_11_28/types/group_1017.py +++ b/githubkit/versions/v2022_11_28/types/group_1017.py @@ -9,19 +9,59 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - Examples: - {'teams': ['my-team']} + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType + ] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - teams: list[str] + users: NotRequired[list[str]] + teams: NotRequired[list[str]] + apps: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1018.py b/githubkit/versions/v2022_11_28/types/group_1018.py index 85e315c26..0e57487fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_1018.py +++ b/githubkit/versions/v2022_11_28/types/group_1018.py @@ -9,21 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - Examples: - {'teams': ['my-team']} + strict: NotRequired[bool] + contexts: NotRequired[list[str]] + checks: NotRequired[ + list[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms """ - teams: list[str] + context: str + app_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1019.py b/githubkit/versions/v2022_11_28/types/group_1019.py index 14d747f27..e1f78ac45 100644 --- a/githubkit/versions/v2022_11_28/types/group_1019.py +++ b/githubkit/versions/v2022_11_28/types/group_1019.py @@ -12,14 +12,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] + contexts: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1020.py b/githubkit/versions/v2022_11_28/types/group_1020.py index a879b8e99..7953af035 100644 --- a/githubkit/versions/v2022_11_28/types/group_1020.py +++ b/githubkit/versions/v2022_11_28/types/group_1020.py @@ -12,14 +12,18 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] + contexts: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1021.py b/githubkit/versions/v2022_11_28/types/group_1021.py index 88f98adfd..b4a0d30f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1021.py +++ b/githubkit/versions/v2022_11_28/types/group_1021.py @@ -12,14 +12,19 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 Examples: - {'users': ['mona']} + {'contexts': ['contexts']} """ - users: list[str] + contexts: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1022.py b/githubkit/versions/v2022_11_28/types/group_1022.py index b46802659..1f154c587 100644 --- a/githubkit/versions/v2022_11_28/types/group_1022.py +++ b/githubkit/versions/v2022_11_28/types/group_1022.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBody - new_name: str + Examples: + {'apps': ['my-app']} + """ + apps: list[str] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1023.py b/githubkit/versions/v2022_11_28/types/group_1023.py index 0e96d896e..e8ab2de74 100644 --- a/githubkit/versions/v2022_11_28/types/group_1023.py +++ b/githubkit/versions/v2022_11_28/types/group_1023.py @@ -9,62 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBody - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. + Examples: + {'apps': ['my-app']} """ - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] + apps: list[str] -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1024.py b/githubkit/versions/v2022_11_28/types/group_1024.py index 30e57a23e..26bc12cd2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1024.py +++ b/githubkit/versions/v2022_11_28/types/group_1024.py @@ -9,38 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1023 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: Literal["completed"] - started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBody + + Examples: + {'apps': ['my-app']} + """ + + apps: list[str] + + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1025.py b/githubkit/versions/v2022_11_28/types/group_1025.py index f8dbe756a..db6c7e46c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1025.py +++ b/githubkit/versions/v2022_11_28/types/group_1025.py @@ -9,42 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1023 import ( - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsPostBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[ - Literal["queued", "in_progress", "waiting", "requested", "pending"] - ] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + + Examples: + {'teams': ['justice-league']} + """ + + teams: list[str] + + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1026.py b/githubkit/versions/v2022_11_28/types/group_1026.py index cdd81f62e..d74b8d070 100644 --- a/githubkit/versions/v2022_11_28/types/group_1026.py +++ b/githubkit/versions/v2022_11_28/types/group_1026.py @@ -9,68 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ - list[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType - ] - ] - images: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] - ] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + Examples: + {'teams': ['my-team']} + """ - label: str - description: str - identifier: str + teams: list[str] -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1027.py b/githubkit/versions/v2022_11_28/types/group_1027.py index 8cf3678ee..85e315c26 100644 --- a/githubkit/versions/v2022_11_28/types/group_1027.py +++ b/githubkit/versions/v2022_11_28/types/group_1027.py @@ -9,39 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_1026 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 + + Examples: + {'teams': ['my-team']} + """ + + teams: list[str] -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["completed"]] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1028.py b/githubkit/versions/v2022_11_28/types/group_1028.py index 1a890f0ad..14d747f27 100644 --- a/githubkit/versions/v2022_11_28/types/group_1028.py +++ b/githubkit/versions/v2022_11_28/types/group_1028.py @@ -9,41 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict - -from .group_1026 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, -) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - - name: NotRequired[str] - details_url: NotRequired[str] - external_id: NotRequired[str] - started_at: NotRequired[datetime] - status: NotRequired[Literal["queued", "in_progress"]] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] - - -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +from typing_extensions import TypedDict + + +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBody + + Examples: + {'users': ['mona']} + """ + + users: list[str] + + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1029.py b/githubkit/versions/v2022_11_28/types/group_1029.py index 5d8ac49c1..a879b8e99 100644 --- a/githubkit/versions/v2022_11_28/types/group_1029.py +++ b/githubkit/versions/v2022_11_28/types/group_1029.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBody - head_sha: str + Examples: + {'users': ['mona']} + """ + users: list[str] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1030.py b/githubkit/versions/v2022_11_28/types/group_1030.py index 5f72161c7..88f98adfd 100644 --- a/githubkit/versions/v2022_11_28/types/group_1030.py +++ b/githubkit/versions/v2022_11_28/types/group_1030.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBody - auto_trigger_checks: NotRequired[ - list[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] + Examples: + {'users': ['mona']} + """ + users: list[str] -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( - TypedDict -): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - app_id: int - setting: bool - - -__all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1031.py b/githubkit/versions/v2022_11_28/types/group_1031.py index 6ec47b5e5..b46802659 100644 --- a/githubkit/versions/v2022_11_28/types/group_1031.py +++ b/githubkit/versions/v2022_11_28/types/group_1031.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0232 import CheckRunType +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + new_name: str - total_count: int - check_runs: list[CheckRunType] - -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1032.py b/githubkit/versions/v2022_11_28/types/group_1032.py index d8d166808..0e96d896e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1032.py +++ b/githubkit/versions/v2022_11_28/types/group_1032.py @@ -9,19 +9,62 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] ] - dismissed_comment: NotRequired[Union[str, None]] - create_request: NotRequired[bool] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1033.py b/githubkit/versions/v2022_11_28/types/group_1033.py index 31cc88a9b..094992e60 100644 --- a/githubkit/versions/v2022_11_28/types/group_1033.py +++ b/githubkit/versions/v2022_11_28/types/group_1033.py @@ -9,20 +9,38 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict - -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" +from .group_1032 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", ] - query_pack: str - repositories: list[str] - repository_lists: NotRequired[list[str]] - repository_owners: NotRequired[list[str]] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1034.py b/githubkit/versions/v2022_11_28/types/group_1034.py index 15b2259e7..a51239d65 100644 --- a/githubkit/versions/v2022_11_28/types/group_1034.py +++ b/githubkit/versions/v2022_11_28/types/group_1034.py @@ -9,20 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1032 import ( + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsPostBodyPropOutputType, +) -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[ + Literal["queued", "in_progress", "waiting", "requested", "pending"] + ] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: list[str] - repository_owners: NotRequired[list[str]] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[list[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1035.py b/githubkit/versions/v2022_11_28/types/group_1035.py index 3b669027d..cdd81f62e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1035.py +++ b/githubkit/versions/v2022_11_28/types/group_1035.py @@ -13,16 +13,64 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + list[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] ] - query_pack: str - repositories: NotRequired[list[str]] - repository_lists: NotRequired[list[str]] - repository_owners: list[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1036.py b/githubkit/versions/v2022_11_28/types/group_1036.py index e9eb27946..681d64394 100644 --- a/githubkit/versions/v2022_11_28/types/group_1036.py +++ b/githubkit/versions/v2022_11_28/types/group_1036.py @@ -10,19 +10,38 @@ from __future__ import annotations from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1035 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" - - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1037.py b/githubkit/versions/v2022_11_28/types/group_1037.py index 6e2c097f2..84159635a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1037.py +++ b/githubkit/versions/v2022_11_28/types/group_1037.py @@ -9,16 +9,41 @@ from __future__ import annotations -from typing_extensions import TypedDict - -from .group_0087 import CodespaceType - - -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" - - total_count: int - codespaces: list[CodespaceType] - - -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict + +from .group_1035 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + list[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1038.py b/githubkit/versions/v2022_11_28/types/group_1038.py index 88f53eda8..5d8ac49c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1038.py +++ b/githubkit/versions/v2022_11_28/types/group_1038.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] + head_sha: str -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1039.py b/githubkit/versions/v2022_11_28/types/group_1039.py index 2b6a98e8b..5f72161c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1039.py +++ b/githubkit/versions/v2022_11_28/types/group_1039.py @@ -12,26 +12,26 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - total_count: int - devcontainers: list[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + auto_trigger_checks: NotRequired[ + list[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] ] -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( TypedDict ): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - path: str - name: NotRequired[str] - display_name: NotRequired[str] + app_id: int + setting: bool __all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1040.py b/githubkit/versions/v2022_11_28/types/group_1040.py index 7190a4e8b..3f49b9362 100644 --- a/githubkit/versions/v2022_11_28/types/group_1040.py +++ b/githubkit/versions/v2022_11_28/types/group_1040.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0086 import CodespaceMachineType +from .group_0236 import CheckRunType -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" total_count: int - machines: list[CodespaceMachineType] + check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1041.py b/githubkit/versions/v2022_11_28/types/group_1041.py index 1da0f80f8..d8d166808 100644 --- a/githubkit/versions/v2022_11_28/types/group_1041.py +++ b/githubkit/versions/v2022_11_28/types/group_1041.py @@ -9,27 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0003 import SimpleUserType +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] + dismissed_comment: NotRequired[Union[str, None]] + create_request: NotRequired[bool] - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", - "ReposOwnerRepoCodespacesNewGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1042.py b/githubkit/versions/v2022_11_28/types/group_1042.py index fe71c65ab..31cc88a9b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1042.py +++ b/githubkit/versions/v2022_11_28/types/group_1042.py @@ -9,29 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - total_count: int - secrets: list[RepoCodespacesSecretType] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack: str + repositories: list[str] + repository_lists: NotRequired[list[str]] + repository_owners: NotRequired[list[str]] -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "RepoCodespacesSecretType", - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1043.py b/githubkit/versions/v2022_11_28/types/group_1043.py index 4e9617e8c..15b2259e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1043.py +++ b/githubkit/versions/v2022_11_28/types/group_1043.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack: str + repositories: NotRequired[list[str]] + repository_lists: list[str] + repository_owners: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1044.py b/githubkit/versions/v2022_11_28/types/group_1044.py index 4cccc4ae5..3b669027d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1044.py +++ b/githubkit/versions/v2022_11_28/types/group_1044.py @@ -9,13 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - permission: NotRequired[str] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "rust", "swift" + ] + query_pack: str + repositories: NotRequired[list[str]] + repository_lists: NotRequired[list[str]] + repository_owners: list[str] -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1045.py b/githubkit/versions/v2022_11_28/types/group_1045.py index 25f26d78b..e9eb27946 100644 --- a/githubkit/versions/v2022_11_28/types/group_1045.py +++ b/githubkit/versions/v2022_11_28/types/group_1045.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - body: str + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1046.py b/githubkit/versions/v2022_11_28/types/group_1046.py index ce91eec32..0c132691a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1046.py +++ b/githubkit/versions/v2022_11_28/types/group_1046.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict +from .group_0091 import CodespaceType -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1047.py b/githubkit/versions/v2022_11_28/types/group_1047.py index 36d63c915..88f53eda8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1047.py +++ b/githubkit/versions/v2022_11_28/types/group_1047.py @@ -9,16 +9,24 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1048.py b/githubkit/versions/v2022_11_28/types/group_1048.py index 119d24316..2b6a98e8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1048.py +++ b/githubkit/versions/v2022_11_28/types/group_1048.py @@ -9,16 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0232 import CheckRunType - -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" total_count: int - check_runs: list[CheckRunType] + devcontainers: list[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str + name: NotRequired[str] + display_name: NotRequired[str] -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1049.py b/githubkit/versions/v2022_11_28/types/group_1049.py index a33d63ac7..ef01177fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_1049.py +++ b/githubkit/versions/v2022_11_28/types/group_1049.py @@ -9,45 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0090 import CodespaceMachineType -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - The person that committed the file. Default: the authenticated user. - """ - - name: str - email: str - date: NotRequired[str] - - -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str - email: str - date: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyType", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1050.py b/githubkit/versions/v2022_11_28/types/group_1050.py index 1a6415115..1da0f80f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1050.py +++ b/githubkit/versions/v2022_11_28/types/group_1050.py @@ -9,41 +9,27 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict +from .group_0003 import SimpleUserType -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - object containing information about the committer. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - name: NotRequired[str] - email: NotRequired[str] - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: NotRequired[str] - email: NotRequired[str] + location: str + devcontainer_path: Union[str, None] __all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyType", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1051.py b/githubkit/versions/v2022_11_28/types/group_1051.py index b6eb59e50..fe71c65ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_1051.py +++ b/githubkit/versions/v2022_11_28/types/group_1051.py @@ -9,20 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] + total_count: int + secrets: list[RepoCodespacesSecretType] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "RepoCodespacesSecretType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1052.py b/githubkit/versions/v2022_11_28/types/group_1052.py index 61528dc95..4e9617e8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1052.py +++ b/githubkit/versions/v2022_11_28/types/group_1052.py @@ -9,29 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - total_count: int - secrets: list[DependabotSecretType] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "DependabotSecretType", - "ReposOwnerRepoDependabotSecretsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1053.py b/githubkit/versions/v2022_11_28/types/group_1053.py index 95231af1a..4cccc4ae5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1053.py +++ b/githubkit/versions/v2022_11_28/types/group_1053.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1054.py b/githubkit/versions/v2022_11_28/types/group_1054.py index 6e9243ec2..25f26d78b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1054.py +++ b/githubkit/versions/v2022_11_28/types/group_1054.py @@ -12,13 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - id: int - created_at: str - result: str - message: str + body: str -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1055.py b/githubkit/versions/v2022_11_28/types/group_1055.py index 149bc226e..ce91eec32 100644 --- a/githubkit/versions/v2022_11_28/types/group_1055.py +++ b/githubkit/versions/v2022_11_28/types/group_1055.py @@ -9,32 +9,16 @@ from __future__ import annotations -from typing import Any, Union -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - ref: str - task: NotRequired[str] - auto_merge: NotRequired[bool] - required_contexts: NotRequired[list[str]] - payload: NotRequired[ - Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] - environment: NotRequired[str] - description: NotRequired[Union[str, None]] - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] -ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 -""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", - "ReposOwnerRepoDeploymentsPostBodyType", -) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1056.py b/githubkit/versions/v2022_11_28/types/group_1056.py index 8dce1979d..36d63c915 100644 --- a/githubkit/versions/v2022_11_28/types/group_1056.py +++ b/githubkit/versions/v2022_11_28/types/group_1056.py @@ -12,10 +12,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - message: NotRequired[str] + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1057.py b/githubkit/versions/v2022_11_28/types/group_1057.py index cc93f9515..b8706c79e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1057.py +++ b/githubkit/versions/v2022_11_28/types/group_1057.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0236 import CheckRunType -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] - target_url: NotRequired[str] - log_url: NotRequired[str] - description: NotRequired[str] - environment: NotRequired[str] - environment_url: NotRequired[str] - auto_inactive: NotRequired[bool] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: list[CheckRunType] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1058.py b/githubkit/versions/v2022_11_28/types/group_1058.py index d1e750ab3..a33d63ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1058.py +++ b/githubkit/versions/v2022_11_28/types/group_1058.py @@ -9,27 +9,45 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] -ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] -"""ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter -JSON payload with extra information about the webhook event that your action or -workflow may use. The maximum number of top-level properties is 10. The total -size of the JSON payload must be less than 64KB. -""" + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str + email: str + date: NotRequired[str] __all__ = ( - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", - "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1059.py b/githubkit/versions/v2022_11_28/types/group_1059.py index 8936fd649..1a6415115 100644 --- a/githubkit/versions/v2022_11_28/types/group_1059.py +++ b/githubkit/versions/v2022_11_28/types/group_1059.py @@ -9,38 +9,41 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_0288 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - list[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + object containing information about the committer. + """ - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] + name: NotRequired[str] + email: NotRequired[str] + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: NotRequired[str] + email: NotRequired[str] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1060.py b/githubkit/versions/v2022_11_28/types/group_1060.py index ab59e0b4e..b6eb59e50 100644 --- a/githubkit/versions/v2022_11_28/types/group_1060.py +++ b/githubkit/versions/v2022_11_28/types/group_1060.py @@ -13,28 +13,16 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - total_count: int - branch_policies: list[DeploymentBranchPolicyType] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] - - -__all__ = ( - "DeploymentBranchPolicyType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1061.py b/githubkit/versions/v2022_11_28/types/group_1061.py index bb2b4e614..61528dc95 100644 --- a/githubkit/versions/v2022_11_28/types/group_1061.py +++ b/githubkit/versions/v2022_11_28/types/group_1061.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - integration_id: NotRequired[int] + total_count: int + secrets: list[DependabotSecretType] + + +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", + "DependabotSecretType", + "ReposOwnerRepoDependabotSecretsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1062.py b/githubkit/versions/v2022_11_28/types/group_1062.py index 73345278a..95231af1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1062.py +++ b/githubkit/versions/v2022_11_28/types/group_1062.py @@ -11,22 +11,12 @@ from typing_extensions import NotRequired, TypedDict -from .group_0294 import CustomDeploymentRuleAppType +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + encrypted_value: NotRequired[str] + key_id: NotRequired[str] - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - list[CustomDeploymentRuleAppType] - ] - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1063.py b/githubkit/versions/v2022_11_28/types/group_1063.py index ed5669cfd..6e9243ec2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1063.py +++ b/githubkit/versions/v2022_11_28/types/group_1063.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0200 import ActionsSecretType +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + id: int + created_at: str + result: str + message: str - total_count: int - secrets: list[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1064.py b/githubkit/versions/v2022_11_28/types/group_1064.py index 3ec440fb1..149bc226e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1064.py +++ b/githubkit/versions/v2022_11_28/types/group_1064.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Any, Union +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - encrypted_value: str - key_id: str + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[list[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) +ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 +""" + + +__all__ = ( + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", + "ReposOwnerRepoDeploymentsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1065.py b/githubkit/versions/v2022_11_28/types/group_1065.py index 086bb48e3..8dce1979d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1065.py +++ b/githubkit/versions/v2022_11_28/types/group_1065.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -from .group_0201 import ActionsVariableType +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + message: NotRequired[str] - total_count: int - variables: list[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1066.py b/githubkit/versions/v2022_11_28/types/group_1066.py index f3a29926f..cc93f9515 100644 --- a/githubkit/versions/v2022_11_28/types/group_1066.py +++ b/githubkit/versions/v2022_11_28/types/group_1066.py @@ -9,14 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - name: str - value: str + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] + target_url: NotRequired[str] + log_url: NotRequired[str] + description: NotRequired[str] + environment: NotRequired[str] + environment_url: NotRequired[str] + auto_inactive: NotRequired[bool] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1067.py b/githubkit/versions/v2022_11_28/types/group_1067.py index adee73102..d1e750ab3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1067.py +++ b/githubkit/versions/v2022_11_28/types/group_1067.py @@ -9,14 +9,27 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - name: NotRequired[str] - value: NotRequired[str] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +ReposOwnerRepoDispatchesPostBodyPropClientPayloadType: TypeAlias = dict[str, Any] +"""ReposOwnerRepoDispatchesPostBodyPropClientPayload + +JSON payload with extra information about the webhook event that your action or +workflow may use. The maximum number of top-level properties is 10. The total +size of the JSON payload must be less than 64KB. +""" + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", + "ReposOwnerRepoDispatchesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1068.py b/githubkit/versions/v2022_11_28/types/group_1068.py index eb686a699..6ca8ec795 100644 --- a/githubkit/versions/v2022_11_28/types/group_1068.py +++ b/githubkit/versions/v2022_11_28/types/group_1068.py @@ -9,15 +9,38 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0292 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + list[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -__all__ = ("ReposOwnerRepoForksPostBodyType",) + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1069.py b/githubkit/versions/v2022_11_28/types/group_1069.py index 4c2ef3730..ab59e0b4e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1069.py +++ b/githubkit/versions/v2022_11_28/types/group_1069.py @@ -9,14 +9,32 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - content: str - encoding: NotRequired[str] + total_count: int + branch_policies: list[DeploymentBranchPolicyType] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] + + +__all__ = ( + "DeploymentBranchPolicyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1070.py b/githubkit/versions/v2022_11_28/types/group_1070.py index 73106315f..bb2b4e614 100644 --- a/githubkit/versions/v2022_11_28/types/group_1070.py +++ b/githubkit/versions/v2022_11_28/types/group_1070.py @@ -9,49 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - message: str - tree: str - parents: NotRequired[list[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - name: str - email: str - date: NotRequired[datetime] - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[datetime] + integration_id: NotRequired[int] __all__ = ( - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", - "ReposOwnerRepoGitCommitsPostBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1071.py b/githubkit/versions/v2022_11_28/types/group_1071.py index aa4d83aff..3804d463b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1071.py +++ b/githubkit/versions/v2022_11_28/types/group_1071.py @@ -9,14 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0298 import CustomDeploymentRuleAppType -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" - ref: str - sha: str +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + list[CustomDeploymentRuleAppType] + ] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1072.py b/githubkit/versions/v2022_11_28/types/group_1072.py index 95219ce12..189772db9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1072.py +++ b/githubkit/versions/v2022_11_28/types/group_1072.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0204 import ActionsSecretType -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" - sha: str - force: NotRequired[bool] +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: list[ActionsSecretType] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1073.py b/githubkit/versions/v2022_11_28/types/group_1073.py index bf927c780..3ec440fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1073.py +++ b/githubkit/versions/v2022_11_28/types/group_1073.py @@ -9,33 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + encrypted_value: str + key_id: str -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", - "ReposOwnerRepoGitTagsPostBodyType", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1074.py b/githubkit/versions/v2022_11_28/types/group_1074.py index 62d4e64ac..89acfe950 100644 --- a/githubkit/versions/v2022_11_28/types/group_1074.py +++ b/githubkit/versions/v2022_11_28/types/group_1074.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0205 import ActionsVariableType -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" - tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: list[ActionsVariableType] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", - "ReposOwnerRepoGitTreesPostBodyType", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1075.py b/githubkit/versions/v2022_11_28/types/group_1075.py index 44bb98073..f3a29926f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1075.py +++ b/githubkit/versions/v2022_11_28/types/group_1075.py @@ -9,32 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[list[str]] - active: NotRequired[bool] + name: str + value: str -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "ReposOwnerRepoHooksPostBodyPropConfigType", - "ReposOwnerRepoHooksPostBodyType", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1076.py b/githubkit/versions/v2022_11_28/types/group_1076.py index 616829ef4..adee73102 100644 --- a/githubkit/versions/v2022_11_28/types/group_1076.py +++ b/githubkit/versions/v2022_11_28/types/group_1076.py @@ -11,17 +11,12 @@ from typing_extensions import NotRequired, TypedDict -from .group_0011 import WebhookConfigType +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" + name: NotRequired[str] + value: NotRequired[str] - config: NotRequired[WebhookConfigType] - events: NotRequired[list[str]] - add_events: NotRequired[list[str]] - remove_events: NotRequired[list[str]] - active: NotRequired[bool] - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1077.py b/githubkit/versions/v2022_11_28/types/group_1077.py index 2de12ce93..eb686a699 100644 --- a/githubkit/versions/v2022_11_28/types/group_1077.py +++ b/githubkit/versions/v2022_11_28/types/group_1077.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1078.py b/githubkit/versions/v2022_11_28/types/group_1078.py index 02673d9bf..4c2ef3730 100644 --- a/githubkit/versions/v2022_11_28/types/group_1078.py +++ b/githubkit/versions/v2022_11_28/types/group_1078.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1079.py b/githubkit/versions/v2022_11_28/types/group_1079.py index 5f68422b7..73106315f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1079.py +++ b/githubkit/versions/v2022_11_28/types/group_1079.py @@ -9,17 +9,49 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] + message: str + tree: str + parents: NotRequired[list[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", + "ReposOwnerRepoGitCommitsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1080.py b/githubkit/versions/v2022_11_28/types/group_1080.py index f2dee5034..aa4d83aff 100644 --- a/githubkit/versions/v2022_11_28/types/group_1080.py +++ b/githubkit/versions/v2022_11_28/types/group_1080.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - email: NotRequired[str] - name: NotRequired[str] + ref: str + sha: str -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1081.py b/githubkit/versions/v2022_11_28/types/group_1081.py index f8207f6ea..95219ce12 100644 --- a/githubkit/versions/v2022_11_28/types/group_1081.py +++ b/githubkit/versions/v2022_11_28/types/group_1081.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - use_lfs: Literal["opt_in", "opt_out"] + sha: str + force: NotRequired[bool] -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1082.py b/githubkit/versions/v2022_11_28/types/group_1082.py index ca60a7364..bf927c780 100644 --- a/githubkit/versions/v2022_11_28/types/group_1082.py +++ b/githubkit/versions/v2022_11_28/types/group_1082.py @@ -9,11 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ + + name: str + email: str + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", + "ReposOwnerRepoGitTagsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1083.py b/githubkit/versions/v2022_11_28/types/group_1083.py index 9285f63d1..62d4e64ac 100644 --- a/githubkit/versions/v2022_11_28/types/group_1083.py +++ b/githubkit/versions/v2022_11_28/types/group_1083.py @@ -9,14 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] + tree: list[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoGitTreesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1084.py b/githubkit/versions/v2022_11_28/types/group_1084.py index 9bb94a509..44bb98073 100644 --- a/githubkit/versions/v2022_11_28/types/group_1084.py +++ b/githubkit/versions/v2022_11_28/types/group_1084.py @@ -13,30 +13,28 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - title: Union[str, int] - body: NotRequired[str] - assignee: NotRequired[Union[str, None]] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[list[str]] + active: NotRequired[bool] -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + Key/value pairs to provide settings for this webhook. + """ + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] __all__ = ( - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoHooksPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1085.py b/githubkit/versions/v2022_11_28/types/group_1085.py index 4b0c546c3..616829ef4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1085.py +++ b/githubkit/versions/v2022_11_28/types/group_1085.py @@ -9,13 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict +from .group_0011 import WebhookConfigType -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - body: str +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + config: NotRequired[WebhookConfigType] + events: NotRequired[list[str]] + add_events: NotRequired[list[str]] + remove_events: NotRequired[list[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1086.py b/githubkit/versions/v2022_11_28/types/group_1086.py index 77f77960c..2de12ce93 100644 --- a/githubkit/versions/v2022_11_28/types/group_1086.py +++ b/githubkit/versions/v2022_11_28/types/group_1086.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1087.py b/githubkit/versions/v2022_11_28/types/group_1087.py index 51b150f12..02673d9bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1087.py +++ b/githubkit/versions/v2022_11_28/types/group_1087.py @@ -9,42 +9,18 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - list[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[list[str]] - type: NotRequired[Union[str, None]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", -) +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" + + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] + + +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1088.py b/githubkit/versions/v2022_11_28/types/group_1088.py index 0f0f4ae84..5f68422b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1088.py +++ b/githubkit/versions/v2022_11_28/types/group_1088.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - assignees: NotRequired[list[str]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1089.py b/githubkit/versions/v2022_11_28/types/group_1089.py index 2795b587e..f2dee5034 100644 --- a/githubkit/versions/v2022_11_28/types/group_1089.py +++ b/githubkit/versions/v2022_11_28/types/group_1089.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - assignees: NotRequired[list[str]] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1090.py b/githubkit/versions/v2022_11_28/types/group_1090.py index 2585a1e0c..f8207f6ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_1090.py +++ b/githubkit/versions/v2022_11_28/types/group_1090.py @@ -9,13 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - body: str + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1091.py b/githubkit/versions/v2022_11_28/types/group_1091.py index 8653eeddb..ca60a7364 100644 --- a/githubkit/versions/v2022_11_28/types/group_1091.py +++ b/githubkit/versions/v2022_11_28/types/group_1091.py @@ -9,13 +9,11 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - labels: NotRequired[list[str]] - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1092.py b/githubkit/versions/v2022_11_28/types/group_1092.py index 28a5135d1..9285f63d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1092.py +++ b/githubkit/versions/v2022_11_28/types/group_1092.py @@ -9,24 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1093.py b/githubkit/versions/v2022_11_28/types/group_1093.py index 4b61c7722..9bb94a509 100644 --- a/githubkit/versions/v2022_11_28/types/group_1093.py +++ b/githubkit/versions/v2022_11_28/types/group_1093.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - name: str + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1094.py b/githubkit/versions/v2022_11_28/types/group_1094.py index a0fe1957d..4b0c546c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1094.py +++ b/githubkit/versions/v2022_11_28/types/group_1094.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - labels: NotRequired[list[str]] + body: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1095.py b/githubkit/versions/v2022_11_28/types/group_1095.py index 672fc26ff..77f77960c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1095.py +++ b/githubkit/versions/v2022_11_28/types/group_1095.py @@ -9,24 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - labels: NotRequired[ - list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" ] -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", -) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1096.py b/githubkit/versions/v2022_11_28/types/group_1096.py index 6872247a2..51b150f12 100644 --- a/githubkit/versions/v2022_11_28/types/group_1096.py +++ b/githubkit/versions/v2022_11_28/types/group_1096.py @@ -9,13 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - - name: str - - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: NotRequired[Union[str, int, None]] + body: NotRequired[Union[str, None]] + assignee: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + list[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[list[str]] + type: NotRequired[Union[str, None]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1097.py b/githubkit/versions/v2022_11_28/types/group_1097.py index 392d8c14f..0f0f4ae84 100644 --- a/githubkit/versions/v2022_11_28/types/group_1097.py +++ b/githubkit/versions/v2022_11_28/types/group_1097.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1098.py b/githubkit/versions/v2022_11_28/types/group_1098.py index 5d8ff2645..2795b587e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1098.py +++ b/githubkit/versions/v2022_11_28/types/group_1098.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + assignees: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1099.py b/githubkit/versions/v2022_11_28/types/group_1099.py index 6e796683c..2585a1e0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1099.py +++ b/githubkit/versions/v2022_11_28/types/group_1099.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - sub_issue_id: int + body: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1100.py b/githubkit/versions/v2022_11_28/types/group_1100.py index 294d951b6..8653eeddb 100644 --- a/githubkit/versions/v2022_11_28/types/group_1100.py +++ b/githubkit/versions/v2022_11_28/types/group_1100.py @@ -12,11 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" - sub_issue_id: int - replace_parent: NotRequired[bool] + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1101.py b/githubkit/versions/v2022_11_28/types/group_1101.py index 6ffa90a5b..28a5135d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1101.py +++ b/githubkit/versions/v2022_11_28/types/group_1101.py @@ -12,12 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - sub_issue_id: int - after_id: NotRequired[int] - before_id: NotRequired[int] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1102.py b/githubkit/versions/v2022_11_28/types/group_1102.py index acb0bbfba..4b61c7722 100644 --- a/githubkit/versions/v2022_11_28/types/group_1102.py +++ b/githubkit/versions/v2022_11_28/types/group_1102.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + name: str -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1103.py b/githubkit/versions/v2022_11_28/types/group_1103.py index 7cc0b1b26..a0fe1957d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1103.py +++ b/githubkit/versions/v2022_11_28/types/group_1103.py @@ -12,12 +12,10 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - name: str - color: NotRequired[str] - description: NotRequired[str] + labels: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1104.py b/githubkit/versions/v2022_11_28/types/group_1104.py index 607085961..672fc26ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_1104.py +++ b/githubkit/versions/v2022_11_28/types/group_1104.py @@ -12,12 +12,21 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] + labels: NotRequired[ + list[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1105.py b/githubkit/versions/v2022_11_28/types/group_1105.py index ac724c353..6872247a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1105.py +++ b/githubkit/versions/v2022_11_28/types/group_1105.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - branch: str + name: str -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1106.py b/githubkit/versions/v2022_11_28/types/group_1106.py index f33bb6f09..392d8c14f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1106.py +++ b/githubkit/versions/v2022_11_28/types/group_1106.py @@ -9,15 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - base: str - head: str - commit_message: NotRequired[str] + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1107.py b/githubkit/versions/v2022_11_28/types/group_1107.py index 17d426f88..5d8ff2645 100644 --- a/githubkit/versions/v2022_11_28/types/group_1107.py +++ b/githubkit/versions/v2022_11_28/types/group_1107.py @@ -9,18 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1108.py b/githubkit/versions/v2022_11_28/types/group_1108.py index 1eaa2807a..6e796683c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1108.py +++ b/githubkit/versions/v2022_11_28/types/group_1108.py @@ -9,18 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBody""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + sub_issue_id: int -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssueDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1109.py b/githubkit/versions/v2022_11_28/types/group_1109.py index c350dcdf7..294d951b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1109.py +++ b/githubkit/versions/v2022_11_28/types/group_1109.py @@ -9,14 +9,14 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPostBody""" - last_read_at: NotRequired[datetime] + sub_issue_id: int + replace_parent: NotRequired[bool] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1110.py b/githubkit/versions/v2022_11_28/types/group_1110.py index 7ab2c0401..6ffa90a5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1110.py +++ b/githubkit/versions/v2022_11_28/types/group_1110.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBody""" - message: NotRequired[str] - url: NotRequired[str] + sub_issue_id: int + after_id: NotRequired[int] + before_id: NotRequired[int] -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberSubIssuesPriorityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1111.py b/githubkit/versions/v2022_11_28/types/group_1111.py index cd3deab02..acb0bbfba 100644 --- a/githubkit/versions/v2022_11_28/types/group_1111.py +++ b/githubkit/versions/v2022_11_28/types/group_1111.py @@ -9,18 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - Update the source for the repository. Must include the branch name and path. - """ + title: NotRequired[str] + key: str + read_only: NotRequired[bool] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1112.py b/githubkit/versions/v2022_11_28/types/group_1112.py index 3290e4db5..7cc0b1b26 100644 --- a/githubkit/versions/v2022_11_28/types/group_1112.py +++ b/githubkit/versions/v2022_11_28/types/group_1112.py @@ -9,24 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" + name: str + color: NotRequired[str] + description: NotRequired[str] - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1113.py b/githubkit/versions/v2022_11_28/types/group_1113.py index 09517d8e1..607085961 100644 --- a/githubkit/versions/v2022_11_28/types/group_1113.py +++ b/githubkit/versions/v2022_11_28/types/group_1113.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1114.py b/githubkit/versions/v2022_11_28/types/group_1114.py index 38ba1f36c..ac724c353 100644 --- a/githubkit/versions/v2022_11_28/types/group_1114.py +++ b/githubkit/versions/v2022_11_28/types/group_1114.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing import Literal, Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" + branch: str - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1115.py b/githubkit/versions/v2022_11_28/types/group_1115.py index 1acc2b917..f33bb6f09 100644 --- a/githubkit/versions/v2022_11_28/types/group_1115.py +++ b/githubkit/versions/v2022_11_28/types/group_1115.py @@ -9,24 +9,15 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" + base: str + head: str + commit_message: NotRequired[str] - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1116.py b/githubkit/versions/v2022_11_28/types/group_1116.py index 89a35cb77..17d426f88 100644 --- a/githubkit/versions/v2022_11_28/types/group_1116.py +++ b/githubkit/versions/v2022_11_28/types/group_1116.py @@ -9,24 +9,18 @@ from __future__ import annotations -from typing import Literal, Union +from datetime import datetime +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1111 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1117.py b/githubkit/versions/v2022_11_28/types/group_1117.py index 1f79f8c8a..1eaa2807a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1117.py +++ b/githubkit/versions/v2022_11_28/types/group_1117.py @@ -9,18 +9,18 @@ from __future__ import annotations +from datetime import datetime from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - The source branch and directory used to publish your Pages site. - """ + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] - branch: str - path: NotRequired[Literal["/", "/docs"]] - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1118.py b/githubkit/versions/v2022_11_28/types/group_1118.py index 724d81209..c350dcdf7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1118.py +++ b/githubkit/versions/v2022_11_28/types/group_1118.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import NotRequired, TypedDict -from .group_1117 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + last_read_at: NotRequired[datetime] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1119.py b/githubkit/versions/v2022_11_28/types/group_1119.py index d2e8d3c83..7ab2c0401 100644 --- a/githubkit/versions/v2022_11_28/types/group_1119.py +++ b/githubkit/versions/v2022_11_28/types/group_1119.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_1117 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + message: NotRequired[str] + url: NotRequired[str] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1120.py b/githubkit/versions/v2022_11_28/types/group_1120.py index 4bdb60454..cd3deab02 100644 --- a/githubkit/versions/v2022_11_28/types/group_1120.py +++ b/githubkit/versions/v2022_11_28/types/group_1120.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - The object used to create GitHub Pages deployment + Update the source for the repository. Must include the branch name and path. """ - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1121.py b/githubkit/versions/v2022_11_28/types/group_1121.py index c22c267f3..b65647f08 100644 --- a/githubkit/versions/v2022_11_28/types/group_1121.py +++ b/githubkit/versions/v2022_11_28/types/group_1121.py @@ -9,13 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - enabled: bool +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1122.py b/githubkit/versions/v2022_11_28/types/group_1122.py index 5d8355086..97be1a8b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1122.py +++ b/githubkit/versions/v2022_11_28/types/group_1122.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" - name: str - body: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1123.py b/githubkit/versions/v2022_11_28/types/group_1123.py index 657fb9d75..abcade32d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1123.py +++ b/githubkit/versions/v2022_11_28/types/group_1123.py @@ -9,15 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -from .group_0117 import CustomPropertyValueType +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" - properties: list[CustomPropertyValueType] + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1124.py b/githubkit/versions/v2022_11_28/types/group_1124.py index 8e9e41f56..76dd284d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1124.py +++ b/githubkit/versions/v2022_11_28/types/group_1124.py @@ -9,20 +9,24 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" - title: NotRequired[str] - head: str - head_repo: NotRequired[str] - base: str - body: NotRequired[str] - maintainer_can_modify: NotRequired[bool] - draft: NotRequired[bool] - issue: NotRequired[int] +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1125.py b/githubkit/versions/v2022_11_28/types/group_1125.py index 160987b13..920f86084 100644 --- a/githubkit/versions/v2022_11_28/types/group_1125.py +++ b/githubkit/versions/v2022_11_28/types/group_1125.py @@ -9,13 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict +from .group_1120 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - body: str +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1126.py b/githubkit/versions/v2022_11_28/types/group_1126.py index 4dc9e5008..1f79f8c8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1126.py +++ b/githubkit/versions/v2022_11_28/types/group_1126.py @@ -10,15 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1127.py b/githubkit/versions/v2022_11_28/types/group_1127.py index 1bb472545..09c531b45 100644 --- a/githubkit/versions/v2022_11_28/types/group_1127.py +++ b/githubkit/versions/v2022_11_28/types/group_1127.py @@ -12,15 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1126 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" - title: NotRequired[str] - body: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1128.py b/githubkit/versions/v2022_11_28/types/group_1128.py index b0eda78e6..d84e2e272 100644 --- a/githubkit/versions/v2022_11_28/types/group_1128.py +++ b/githubkit/versions/v2022_11_28/types/group_1128.py @@ -12,20 +12,14 @@ from typing import Literal from typing_extensions import NotRequired, TypedDict +from .group_1126 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1129.py b/githubkit/versions/v2022_11_28/types/group_1129.py index f15be5df1..4bdb60454 100644 --- a/githubkit/versions/v2022_11_28/types/group_1129.py +++ b/githubkit/versions/v2022_11_28/types/group_1129.py @@ -9,23 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody - body: str - commit_id: str - path: str - position: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - line: NotRequired[int] - start_line: NotRequired[int] - start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] - in_reply_to: NotRequired[int] - subject_type: NotRequired[Literal["line", "file"]] + The object used to create GitHub Pages deployment + """ + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1130.py b/githubkit/versions/v2022_11_28/types/group_1130.py index fdc9c5a0e..c22c267f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1130.py +++ b/githubkit/versions/v2022_11_28/types/group_1130.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - body: str + enabled: bool -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1131.py b/githubkit/versions/v2022_11_28/types/group_1131.py index 743310547..5d8355086 100644 --- a/githubkit/versions/v2022_11_28/types/group_1131.py +++ b/githubkit/versions/v2022_11_28/types/group_1131.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1132.py b/githubkit/versions/v2022_11_28/types/group_1132.py index 797f629f0..3976d0691 100644 --- a/githubkit/versions/v2022_11_28/types/group_1132.py +++ b/githubkit/versions/v2022_11_28/types/group_1132.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0121 import CustomPropertyValueType -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: list[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1133.py b/githubkit/versions/v2022_11_28/types/group_1133.py index 8525d9950..8e9e41f56 100644 --- a/githubkit/versions/v2022_11_28/types/group_1133.py +++ b/githubkit/versions/v2022_11_28/types/group_1133.py @@ -12,11 +12,17 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str + body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + draft: NotRequired[bool] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1134.py b/githubkit/versions/v2022_11_28/types/group_1134.py index c92fe8585..160987b13 100644 --- a/githubkit/versions/v2022_11_28/types/group_1134.py +++ b/githubkit/versions/v2022_11_28/types/group_1134.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1135.py b/githubkit/versions/v2022_11_28/types/group_1135.py index e461ce1cf..4dc9e5008 100644 --- a/githubkit/versions/v2022_11_28/types/group_1135.py +++ b/githubkit/versions/v2022_11_28/types/group_1135.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - reviewers: NotRequired[list[str]] - team_reviewers: list[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1136.py b/githubkit/versions/v2022_11_28/types/group_1136.py index 43201ae1f..1bb472545 100644 --- a/githubkit/versions/v2022_11_28/types/group_1136.py +++ b/githubkit/versions/v2022_11_28/types/group_1136.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - reviewers: list[str] - team_reviewers: NotRequired[list[str]] + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1137.py b/githubkit/versions/v2022_11_28/types/group_1137.py index bf17592a6..b0eda78e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1137.py +++ b/githubkit/versions/v2022_11_28/types/group_1137.py @@ -13,30 +13,19 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] - - -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", -) +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" + + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] + + +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1138.py b/githubkit/versions/v2022_11_28/types/group_1138.py index 05cccf0c0..f15be5df1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1138.py +++ b/githubkit/versions/v2022_11_28/types/group_1138.py @@ -9,13 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" body: str - - -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) + commit_id: str + path: str + position: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + line: NotRequired[int] + start_line: NotRequired[int] + start_side: NotRequired[Literal["LEFT", "RIGHT", "side"]] + in_reply_to: NotRequired[int] + subject_type: NotRequired[Literal["line", "file"]] + + +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1139.py b/githubkit/versions/v2022_11_28/types/group_1139.py index 412543923..fdc9c5a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1139.py +++ b/githubkit/versions/v2022_11_28/types/group_1139.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - message: str - event: NotRequired[Literal["DISMISS"]] + body: str -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1140.py b/githubkit/versions/v2022_11_28/types/group_1140.py index d03c573ae..743310547 100644 --- a/githubkit/versions/v2022_11_28/types/group_1140.py +++ b/githubkit/versions/v2022_11_28/types/group_1140.py @@ -13,11 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1141.py b/githubkit/versions/v2022_11_28/types/group_1141.py index c102fe4d6..797f629f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1141.py +++ b/githubkit/versions/v2022_11_28/types/group_1141.py @@ -12,10 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - expected_head_sha: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1142.py b/githubkit/versions/v2022_11_28/types/group_1142.py index e633d70f9..8525d9950 100644 --- a/githubkit/versions/v2022_11_28/types/group_1142.py +++ b/githubkit/versions/v2022_11_28/types/group_1142.py @@ -12,11 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" message: NotRequired[str] - url: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1143.py b/githubkit/versions/v2022_11_28/types/group_1143.py index 4065bba0c..c92fe8585 100644 --- a/githubkit/versions/v2022_11_28/types/group_1143.py +++ b/githubkit/versions/v2022_11_28/types/group_1143.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - tag_name: str - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - discussion_category_name: NotRequired[str] - generate_release_notes: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1144.py b/githubkit/versions/v2022_11_28/types/group_1144.py index 0ddd0a8bf..e461ce1cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1144.py +++ b/githubkit/versions/v2022_11_28/types/group_1144.py @@ -12,12 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] + reviewers: NotRequired[list[str]] + team_reviewers: list[str] -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1145.py b/githubkit/versions/v2022_11_28/types/group_1145.py index 2f21e468e..43201ae1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1145.py +++ b/githubkit/versions/v2022_11_28/types/group_1145.py @@ -12,13 +12,11 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] + reviewers: list[str] + team_reviewers: NotRequired[list[str]] -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1146.py b/githubkit/versions/v2022_11_28/types/group_1146.py index 2300351d5..bf17592a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1146.py +++ b/githubkit/versions/v2022_11_28/types/group_1146.py @@ -13,17 +13,30 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - name: NotRequired[str] + commit_id: NotRequired[str] body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] - discussion_category_name: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + list[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1147.py b/githubkit/versions/v2022_11_28/types/group_1147.py index d85bf8d37..05cccf0c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1147.py +++ b/githubkit/versions/v2022_11_28/types/group_1147.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + body: str -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1148.py b/githubkit/versions/v2022_11_28/types/group_1148.py index 8175b87d7..412543923 100644 --- a/githubkit/versions/v2022_11_28/types/group_1148.py +++ b/githubkit/versions/v2022_11_28/types/group_1148.py @@ -9,71 +9,15 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0121 import RepositoryRulesetBypassActorType -from .group_0122 import RepositoryRulesetConditionsType -from .group_0133 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0134 import RepositoryRuleUpdateType -from .group_0136 import RepositoryRuleRequiredLinearHistoryType -from .group_0137 import RepositoryRuleMergeQueueType -from .group_0139 import RepositoryRuleRequiredDeploymentsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0156 import RepositoryRuleFilePathRestrictionType -from .group_0158 import RepositoryRuleMaxFilePathLengthType -from .group_0160 import RepositoryRuleFileExtensionRestrictionType -from .group_0162 import RepositoryRuleMaxFileSizeType -from .group_0165 import RepositoryRuleWorkflowsType -from .group_0167 import RepositoryRuleCodeScanningType +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + message: str + event: NotRequired[Literal["DISMISS"]] - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1149.py b/githubkit/versions/v2022_11_28/types/group_1149.py index 7528ad835..d03c573ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_1149.py +++ b/githubkit/versions/v2022_11_28/types/group_1149.py @@ -9,71 +9,15 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -from .group_0121 import RepositoryRulesetBypassActorType -from .group_0122 import RepositoryRulesetConditionsType -from .group_0133 import ( - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) -from .group_0134 import RepositoryRuleUpdateType -from .group_0136 import RepositoryRuleRequiredLinearHistoryType -from .group_0137 import RepositoryRuleMergeQueueType -from .group_0139 import RepositoryRuleRequiredDeploymentsType -from .group_0142 import RepositoryRulePullRequestType -from .group_0144 import RepositoryRuleRequiredStatusChecksType -from .group_0146 import RepositoryRuleCommitMessagePatternType -from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0150 import RepositoryRuleCommitterEmailPatternType -from .group_0152 import RepositoryRuleBranchNamePatternType -from .group_0154 import RepositoryRuleTagNamePatternType -from .group_0156 import RepositoryRuleFilePathRestrictionType -from .group_0158 import RepositoryRuleMaxFilePathLengthType -from .group_0160 import RepositoryRuleFileExtensionRestrictionType -from .group_0162 import RepositoryRuleMaxFileSizeType -from .group_0165 import RepositoryRuleWorkflowsType -from .group_0167 import RepositoryRuleCodeScanningType +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - list[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleMergeQueueType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleFilePathRestrictionType, - RepositoryRuleMaxFilePathLengthType, - RepositoryRuleFileExtensionRestrictionType, - RepositoryRuleMaxFileSizeType, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1150.py b/githubkit/versions/v2022_11_28/types/group_1150.py index a4f75ebc8..c102fe4d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1150.py +++ b/githubkit/versions/v2022_11_28/types/group_1150.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + expected_head_sha: NotRequired[str] -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1151.py b/githubkit/versions/v2022_11_28/types/group_1151.py index ca4fd9976..e633d70f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1151.py +++ b/githubkit/versions/v2022_11_28/types/group_1151.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): - """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - reason: Literal["false_positive", "used_in_tests", "will_fix_later"] - placeholder_id: str + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1152.py b/githubkit/versions/v2022_11_28/types/group_1152.py index f5eb2b08d..4065bba0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1152.py +++ b/githubkit/versions/v2022_11_28/types/group_1152.py @@ -9,17 +9,22 @@ from __future__ import annotations -from typing import Literal, Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + tag_name: str + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + discussion_category_name: NotRequired[str] + generate_release_notes: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1153.py b/githubkit/versions/v2022_11_28/types/group_1153.py index bf3b98dcb..0ddd0a8bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1153.py +++ b/githubkit/versions/v2022_11_28/types/group_1153.py @@ -12,11 +12,12 @@ from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1154.py b/githubkit/versions/v2022_11_28/types/group_1154.py index 492fdc91e..2f21e468e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1154.py +++ b/githubkit/versions/v2022_11_28/types/group_1154.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - pattern: str + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1155.py b/githubkit/versions/v2022_11_28/types/group_1155.py index f6f94cfa4..2300351d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1155.py +++ b/githubkit/versions/v2022_11_28/types/group_1155.py @@ -9,13 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - names: list[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] + discussion_category_name: NotRequired[str] -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1156.py b/githubkit/versions/v2022_11_28/types/group_1156.py index 4f00c0f54..d85bf8d37 100644 --- a/githubkit/versions/v2022_11_28/types/group_1156.py +++ b/githubkit/versions/v2022_11_28/types/group_1156.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[list[int]] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1157.py b/githubkit/versions/v2022_11_28/types/group_1157.py index f8f62bc0c..60ec9fb54 100644 --- a/githubkit/versions/v2022_11_28/types/group_1157.py +++ b/githubkit/versions/v2022_11_28/types/group_1157.py @@ -9,17 +9,71 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0125 import RepositoryRulesetBypassActorType +from .group_0126 import RepositoryRulesetConditionsType +from .group_0137 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0138 import RepositoryRuleUpdateType +from .group_0140 import RepositoryRuleRequiredLinearHistoryType +from .group_0141 import RepositoryRuleMergeQueueType +from .group_0143 import RepositoryRuleRequiredDeploymentsType +from .group_0146 import RepositoryRulePullRequestType +from .group_0148 import RepositoryRuleRequiredStatusChecksType +from .group_0150 import RepositoryRuleCommitMessagePatternType +from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0154 import RepositoryRuleCommitterEmailPatternType +from .group_0156 import RepositoryRuleBranchNamePatternType +from .group_0158 import RepositoryRuleTagNamePatternType +from .group_0160 import RepositoryRuleFilePathRestrictionType +from .group_0162 import RepositoryRuleMaxFilePathLengthType +from .group_0164 import RepositoryRuleFileExtensionRestrictionType +from .group_0166 import RepositoryRuleMaxFileSizeType +from .group_0169 import RepositoryRuleWorkflowsType +from .group_0171 import RepositoryRuleCodeScanningType -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - owner: NotRequired[str] +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" + name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1158.py b/githubkit/versions/v2022_11_28/types/group_1158.py index 6accad501..cd47c5932 100644 --- a/githubkit/versions/v2022_11_28/types/group_1158.py +++ b/githubkit/versions/v2022_11_28/types/group_1158.py @@ -12,18 +12,68 @@ from typing import Literal, Union from typing_extensions import NotRequired, TypedDict +from .group_0125 import RepositoryRulesetBypassActorType +from .group_0126 import RepositoryRulesetConditionsType +from .group_0137 import ( + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) +from .group_0138 import RepositoryRuleUpdateType +from .group_0140 import RepositoryRuleRequiredLinearHistoryType +from .group_0141 import RepositoryRuleMergeQueueType +from .group_0143 import RepositoryRuleRequiredDeploymentsType +from .group_0146 import RepositoryRulePullRequestType +from .group_0148 import RepositoryRuleRequiredStatusChecksType +from .group_0150 import RepositoryRuleCommitMessagePatternType +from .group_0152 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0154 import RepositoryRuleCommitterEmailPatternType +from .group_0156 import RepositoryRuleBranchNamePatternType +from .group_0158 import RepositoryRuleTagNamePatternType +from .group_0160 import RepositoryRuleFilePathRestrictionType +from .group_0162 import RepositoryRuleMaxFilePathLengthType +from .group_0164 import RepositoryRuleFileExtensionRestrictionType +from .group_0166 import RepositoryRuleMaxFileSizeType +from .group_0169 import RepositoryRuleWorkflowsType +from .group_0171 import RepositoryRuleCodeScanningType -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" - name: str - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[list[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + list[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleMergeQueueType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleFilePathRestrictionType, + RepositoryRuleMaxFilePathLengthType, + RepositoryRuleFileExtensionRestrictionType, + RepositoryRuleMaxFileSizeType, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1159.py b/githubkit/versions/v2022_11_28/types/group_1159.py index 5fc734f17..a4f75ebc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1159.py +++ b/githubkit/versions/v2022_11_28/types/group_1159.py @@ -9,15 +9,18 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - title: str - body: str - private: NotRequired[bool] + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1160.py b/githubkit/versions/v2022_11_28/types/group_1160.py index 97be26f9a..ca4fd9976 100644 --- a/githubkit/versions/v2022_11_28/types/group_1160.py +++ b/githubkit/versions/v2022_11_28/types/group_1160.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing import Literal +from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType(TypedDict): + """ReposOwnerRepoSecretScanningPushProtectionBypassesPostBody""" - title: NotRequired[str] - body: NotRequired[str] + reason: Literal["false_positive", "used_in_tests", "will_fix_later"] + placeholder_id: str -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoSecretScanningPushProtectionBypassesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1161.py b/githubkit/versions/v2022_11_28/types/group_1161.py index 49b6126e3..f5eb2b08d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1161.py +++ b/githubkit/versions/v2022_11_28/types/group_1161.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal, Union +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - body: str + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1162.py b/githubkit/versions/v2022_11_28/types/group_1162.py index aba26488a..bf3b98dcb 100644 --- a/githubkit/versions/v2022_11_28/types/group_1162.py +++ b/githubkit/versions/v2022_11_28/types/group_1162.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - body: str + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1163.py b/githubkit/versions/v2022_11_28/types/group_1163.py index ea06c9bbf..492fdc91e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1163.py +++ b/githubkit/versions/v2022_11_28/types/group_1163.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + pattern: str -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1164.py b/githubkit/versions/v2022_11_28/types/group_1164.py index 02edb1cc8..f6f94cfa4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1164.py +++ b/githubkit/versions/v2022_11_28/types/group_1164.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + names: list[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1165.py b/githubkit/versions/v2022_11_28/types/group_1165.py index 4c1b9ea73..4f00c0f54 100644 --- a/githubkit/versions/v2022_11_28/types/group_1165.py +++ b/githubkit/versions/v2022_11_28/types/group_1165.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[list[int]] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1166.py b/githubkit/versions/v2022_11_28/types/group_1166.py index 0fc6bc372..f8f62bc0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1166.py +++ b/githubkit/versions/v2022_11_28/types/group_1166.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1167.py b/githubkit/versions/v2022_11_28/types/group_1167.py index 27e574fd9..6accad501 100644 --- a/githubkit/versions/v2022_11_28/types/group_1167.py +++ b/githubkit/versions/v2022_11_28/types/group_1167.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Literal, Union from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: str + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1168.py b/githubkit/versions/v2022_11_28/types/group_1168.py index 218231963..5fc734f17 100644 --- a/githubkit/versions/v2022_11_28/types/group_1168.py +++ b/githubkit/versions/v2022_11_28/types/group_1168.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import NotRequired, TypedDict -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - permission: NotRequired[Literal["pull", "push", "admin"]] + title: str + body: str + private: NotRequired[bool] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1169.py b/githubkit/versions/v2022_11_28/types/group_1169.py index 0cc0c51fd..97be26f9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1169.py +++ b/githubkit/versions/v2022_11_28/types/group_1169.py @@ -9,21 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import NotRequired, TypedDict -class UserPatchBodyType(TypedDict): - """UserPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - name: NotRequired[str] - email: NotRequired[str] - blog: NotRequired[str] - twitter_username: NotRequired[Union[str, None]] - company: NotRequired[str] - location: NotRequired[str] - hireable: NotRequired[bool] - bio: NotRequired[str] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("UserPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1170.py b/githubkit/versions/v2022_11_28/types/group_1170.py index 3220139b6..49b6126e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1170.py +++ b/githubkit/versions/v2022_11_28/types/group_1170.py @@ -11,14 +11,11 @@ from typing_extensions import TypedDict -from .group_0087 import CodespaceType +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + body: str - total_count: int - codespaces: list[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1171.py b/githubkit/versions/v2022_11_28/types/group_1171.py index ca44ecf9e..aba26488a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1171.py +++ b/githubkit/versions/v2022_11_28/types/group_1171.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - repository_id: int - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] + body: str -__all__ = ("UserCodespacesPostBodyOneof0Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1172.py b/githubkit/versions/v2022_11_28/types/group_1172.py index ad32a685a..ea06c9bbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1172.py +++ b/githubkit/versions/v2022_11_28/types/group_1172.py @@ -10,32 +10,19 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequestType - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - - -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] __all__ = ( - "UserCodespacesPostBodyOneof1PropPullRequestType", - "UserCodespacesPostBodyOneof1Type", + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_1173.py b/githubkit/versions/v2022_11_28/types/group_1173.py index 1e27e71b8..02edb1cc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1173.py +++ b/githubkit/versions/v2022_11_28/types/group_1173.py @@ -9,32 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import Literal from typing_extensions import TypedDict -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - total_count: int - secrets: list[CodespacesSecretType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -class CodespacesSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str - - -__all__ = ( - "CodespacesSecretType", - "UserCodespacesSecretsGetResponse200Type", -) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1174.py b/githubkit/versions/v2022_11_28/types/group_1174.py index 6ec0707c1..4c1b9ea73 100644 --- a/githubkit/versions/v2022_11_28/types/group_1174.py +++ b/githubkit/versions/v2022_11_28/types/group_1174.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[list[Union[int, str]]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1175.py b/githubkit/versions/v2022_11_28/types/group_1175.py index 078baf468..0fc6bc372 100644 --- a/githubkit/versions/v2022_11_28/types/group_1175.py +++ b/githubkit/versions/v2022_11_28/types/group_1175.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -from .group_0058 import MinimalRepositoryType +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - repositories: list[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1176.py b/githubkit/versions/v2022_11_28/types/group_1176.py index 69b6c64de..27e574fd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1176.py +++ b/githubkit/versions/v2022_11_28/types/group_1176.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - selected_repository_ids: list[int] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1177.py b/githubkit/versions/v2022_11_28/types/group_1177.py index 73deadc8f..218231963 100644 --- a/githubkit/versions/v2022_11_28/types/group_1177.py +++ b/githubkit/versions/v2022_11_28/types/group_1177.py @@ -9,15 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import NotRequired, TypedDict -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[list[str]] + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1178.py b/githubkit/versions/v2022_11_28/types/group_1178.py index da5ad908e..0cc0c51fd 100644 --- a/githubkit/versions/v2022_11_28/types/group_1178.py +++ b/githubkit/versions/v2022_11_28/types/group_1178.py @@ -9,16 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import NotRequired, TypedDict -from .group_0086 import CodespaceMachineType +class UserPatchBodyType(TypedDict): + """UserPatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + name: NotRequired[str] + email: NotRequired[str] + blog: NotRequired[str] + twitter_username: NotRequired[Union[str, None]] + company: NotRequired[str] + location: NotRequired[str] + hireable: NotRequired[bool] + bio: NotRequired[str] - total_count: int - machines: list[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1179.py b/githubkit/versions/v2022_11_28/types/group_1179.py index 90f680aa4..6659b913f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1179.py +++ b/githubkit/versions/v2022_11_28/types/group_1179.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0091 import CodespaceType -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" - name: NotRequired[str] - private: NotRequired[bool] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: list[CodespaceType] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1180.py b/githubkit/versions/v2022_11_28/types/group_1180.py index 741f85377..ca44ecf9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1180.py +++ b/githubkit/versions/v2022_11_28/types/group_1180.py @@ -10,13 +10,24 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" - visibility: Literal["public", "private"] + repository_id: int + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("UserEmailVisibilityPatchBodyType",) +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1181.py b/githubkit/versions/v2022_11_28/types/group_1181.py index fa445ed2c..ad32a685a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1181.py +++ b/githubkit/versions/v2022_11_28/types/group_1181.py @@ -9,17 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import NotRequired, TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + + +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace """ - emails: list[str] + pull_request_number: int + repository_id: int -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ( + "UserCodespacesPostBodyOneof1PropPullRequestType", + "UserCodespacesPostBodyOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1182.py b/githubkit/versions/v2022_11_28/types/group_1182.py index 85a754f60..1e27e71b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1182.py +++ b/githubkit/versions/v2022_11_28/types/group_1182.py @@ -9,22 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import Literal from typing_extensions import TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. + total_count: int + secrets: list[CodespacesSecretType] - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} + +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. """ - emails: list[str] + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ( + "CodespacesSecretType", + "UserCodespacesSecretsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1183.py b/githubkit/versions/v2022_11_28/types/group_1183.py index bef46dc62..6ec0707c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1183.py +++ b/githubkit/versions/v2022_11_28/types/group_1183.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import Union from typing_extensions import NotRequired, TypedDict -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" - name: NotRequired[str] - armored_public_key: str + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[list[Union[int, str]]] -__all__ = ("UserGpgKeysPostBodyType",) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1184.py b/githubkit/versions/v2022_11_28/types/group_1184.py index 069eb3383..d62740f9b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1184.py +++ b/githubkit/versions/v2022_11_28/types/group_1184.py @@ -11,14 +11,14 @@ from typing_extensions import TypedDict -from .group_0018 import InstallationType +from .group_0061 import MinimalRepositoryType -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" total_count: int - installations: list[InstallationType] + repositories: list[MinimalRepositoryType] -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1185.py b/githubkit/versions/v2022_11_28/types/group_1185.py index 8e85a1d81..69b6c64de 100644 --- a/githubkit/versions/v2022_11_28/types/group_1185.py +++ b/githubkit/versions/v2022_11_28/types/group_1185.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -from .group_0020 import RepositoryType +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" + selected_repository_ids: list[int] - total_count: int - repository_selection: NotRequired[str] - repositories: list[RepositoryType] - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1186.py b/githubkit/versions/v2022_11_28/types/group_1186.py index 9f9dd053b..73deadc8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_1186.py +++ b/githubkit/versions/v2022_11_28/types/group_1186.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[list[str]] -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1187.py b/githubkit/versions/v2022_11_28/types/group_1187.py index 5ec08a5e0..8e998edbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1187.py +++ b/githubkit/versions/v2022_11_28/types/group_1187.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict +from .group_0090 import CodespaceMachineType -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" - title: NotRequired[str] - key: str +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + total_count: int + machines: list[CodespaceMachineType] -__all__ = ("UserKeysPostBodyType",) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1188.py b/githubkit/versions/v2022_11_28/types/group_1188.py index 718052573..90f680aa4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1188.py +++ b/githubkit/versions/v2022_11_28/types/group_1188.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" - state: Literal["active"] + name: NotRequired[str] + private: NotRequired[bool] -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1189.py b/githubkit/versions/v2022_11_28/types/group_1189.py index 586d41155..741f85377 100644 --- a/githubkit/versions/v2022_11_28/types/group_1189.py +++ b/githubkit/versions/v2022_11_28/types/group_1189.py @@ -10,21 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[list[Literal["repositories"]]] - repositories: list[str] + visibility: Literal["public", "private"] -__all__ = ("UserMigrationsPostBodyType",) +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1190.py b/githubkit/versions/v2022_11_28/types/group_1190.py index 6393094b2..fa445ed2c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1190.py +++ b/githubkit/versions/v2022_11_28/types/group_1190.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import NotRequired, TypedDict +from typing_extensions import TypedDict -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 - name: str - body: NotRequired[Union[str, None]] + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + emails: list[str] -__all__ = ("UserProjectsPostBodyType",) + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1191.py b/githubkit/versions/v2022_11_28/types/group_1191.py index 354d7b410..85a754f60 100644 --- a/githubkit/versions/v2022_11_28/types/group_1191.py +++ b/githubkit/versions/v2022_11_28/types/group_1191.py @@ -9,38 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import NotRequired, TypedDict - - -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) +from typing_extensions import TypedDict + + +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: list[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1192.py b/githubkit/versions/v2022_11_28/types/group_1192.py index 7c5bf8edc..bef46dc62 100644 --- a/githubkit/versions/v2022_11_28/types/group_1192.py +++ b/githubkit/versions/v2022_11_28/types/group_1192.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + name: NotRequired[str] + armored_public_key: str - account_urls: list[str] - -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1193.py b/githubkit/versions/v2022_11_28/types/group_1193.py index 5e8ecaf24..069eb3383 100644 --- a/githubkit/versions/v2022_11_28/types/group_1193.py +++ b/githubkit/versions/v2022_11_28/types/group_1193.py @@ -11,16 +11,14 @@ from typing_extensions import TypedDict +from .group_0018 import InstallationType -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" - account_urls: list[str] + total_count: int + installations: list[InstallationType] -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1194.py b/githubkit/versions/v2022_11_28/types/group_1194.py index 712df953e..8e85a1d81 100644 --- a/githubkit/versions/v2022_11_28/types/group_1194.py +++ b/githubkit/versions/v2022_11_28/types/group_1194.py @@ -11,12 +11,15 @@ from typing_extensions import NotRequired, TypedDict +from .group_0020 import RepositoryType -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" - title: NotRequired[str] - key: str +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + total_count: int + repository_selection: NotRequired[str] + repositories: list[RepositoryType] -__all__ = ("UserSshSigningKeysPostBodyType",) + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1195.py b/githubkit/versions/v2022_11_28/types/group_1195.py index 86ef1dfd9..9f9dd053b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1195.py +++ b/githubkit/versions/v2022_11_28/types/group_1195.py @@ -9,73 +9,11 @@ from __future__ import annotations -from typing import Any -from typing_extensions import NotRequired, TypeAlias, TypedDict +from typing_extensions import TypedDict -class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): - """UsersUsernameAttestationsSubjectDigestGetResponse200""" +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" - attestations: NotRequired[ - list[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType - ] - ] - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" - - bundle: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType - ] - repository_id: NotRequired[int] - bundle_url: NotRequired[str] - - -class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( - TypedDict -): - """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun - dle - - The attestation's Sigstore Bundle. - Refer to the [Sigstore Bundle - Specification](https://github.com/sigstore/protobuf- - specs/blob/main/protos/sigstore_bundle.proto) for more information. - """ - - media_type: NotRequired[str] - verification_material: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType - ] - dsse_envelope: NotRequired[ - UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType - ] - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropVerificationMaterial -""" - - -UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ - str, Any -] -"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun -dlePropDsseEnvelope -""" - - -__all__ = ( - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", - "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", - "UsersUsernameAttestationsSubjectDigestGetResponse200Type", -) +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1196.py b/githubkit/versions/v2022_11_28/types/group_1196.py new file mode 100644 index 000000000..5ec08a5e0 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1196.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1197.py b/githubkit/versions/v2022_11_28/types/group_1197.py new file mode 100644 index 000000000..718052573 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1197.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] + + +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1198.py b/githubkit/versions/v2022_11_28/types/group_1198.py new file mode 100644 index 000000000..586d41155 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1198.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" + + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[list[Literal["repositories"]]] + repositories: list[str] + + +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1199.py b/githubkit/versions/v2022_11_28/types/group_1199.py new file mode 100644 index 000000000..6393094b2 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1199.py @@ -0,0 +1,23 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import NotRequired, TypedDict + + +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" + + name: str + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1200.py b/githubkit/versions/v2022_11_28/types/group_1200.py new file mode 100644 index 000000000..354d7b410 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1200.py @@ -0,0 +1,46 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import NotRequired, TypedDict + + +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1201.py b/githubkit/versions/v2022_11_28/types/group_1201.py new file mode 100644 index 000000000..7c5bf8edc --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1201.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1202.py b/githubkit/versions/v2022_11_28/types/group_1202.py new file mode 100644 index 000000000..5e8ecaf24 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1202.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: list[str] + + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1203.py b/githubkit/versions/v2022_11_28/types/group_1203.py new file mode 100644 index 000000000..712df953e --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1203.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import NotRequired, TypedDict + + +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1204.py b/githubkit/versions/v2022_11_28/types/group_1204.py new file mode 100644 index 000000000..5145f707c --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1204.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof0""" + + subject_digests: list[str] + + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1205.py b/githubkit/versions/v2022_11_28/types/group_1205.py new file mode 100644 index 000000000..913848fca --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1205.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type(TypedDict): + """UsersUsernameAttestationsDeleteRequestPostBodyOneof1""" + + attestation_ids: list[int] + + +__all__ = ("UsersUsernameAttestationsDeleteRequestPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1206.py b/githubkit/versions/v2022_11_28/types/group_1206.py new file mode 100644 index 000000000..86ef1dfd9 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1206.py @@ -0,0 +1,81 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Any +from typing_extensions import NotRequired, TypeAlias, TypedDict + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + list[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + bundle_url: NotRequired[str] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun + dle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropVerificationMaterial +""" + + +UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType: TypeAlias = dict[ + str, Any +] +"""UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBun +dlePropDsseEnvelope +""" + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", +) diff --git a/poetry.lock b/poetry.lock index 4c55fdb57..08b5a7ab2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -319,75 +319,79 @@ markers = {test = "sys_platform == \"win32\""} [[package]] name = "coverage" -version = "7.8.0" +version = "7.9.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.9" groups = ["test"] files = [ - {file = "coverage-7.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2931f66991175369859b5fd58529cd4b73582461877ecfd859b6549869287ffe"}, - {file = "coverage-7.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:52a523153c568d2c0ef8826f6cc23031dc86cffb8c6aeab92c4ff776e7951b28"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c8a5c139aae4c35cbd7cadca1df02ea8cf28a911534fc1b0456acb0b14234f3"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a26c0c795c3e0b63ec7da6efded5f0bc856d7c0b24b2ac84b4d1d7bc578d676"}, - {file = "coverage-7.8.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:821f7bcbaa84318287115d54becb1915eece6918136c6f91045bb84e2f88739d"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a321c61477ff8ee705b8a5fed370b5710c56b3a52d17b983d9215861e37b642a"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:ed2144b8a78f9d94d9515963ed273d620e07846acd5d4b0a642d4849e8d91a0c"}, - {file = "coverage-7.8.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:042e7841a26498fff7a37d6fda770d17519982f5b7d8bf5278d140b67b61095f"}, - {file = "coverage-7.8.0-cp310-cp310-win32.whl", hash = "sha256:f9983d01d7705b2d1f7a95e10bbe4091fabc03a46881a256c2787637b087003f"}, - {file = "coverage-7.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:5a570cd9bd20b85d1a0d7b009aaf6c110b52b5755c17be6962f8ccd65d1dbd23"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e7ac22a0bb2c7c49f441f7a6d46c9c80d96e56f5a8bc6972529ed43c8b694e27"}, - {file = "coverage-7.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bf13d564d310c156d1c8e53877baf2993fb3073b2fc9f69790ca6a732eb4bfea"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5761c70c017c1b0d21b0815a920ffb94a670c8d5d409d9b38857874c21f70d7"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e5ff52d790c7e1628241ffbcaeb33e07d14b007b6eb00a19320c7b8a7024c040"}, - {file = "coverage-7.8.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d39fc4817fd67b3915256af5dda75fd4ee10621a3d484524487e33416c6f3543"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b44674870709017e4b4036e3d0d6c17f06a0e6d4436422e0ad29b882c40697d2"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8f99eb72bf27cbb167b636eb1726f590c00e1ad375002230607a844d9e9a2318"}, - {file = "coverage-7.8.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b571bf5341ba8c6bc02e0baeaf3b061ab993bf372d982ae509807e7f112554e9"}, - {file = "coverage-7.8.0-cp311-cp311-win32.whl", hash = "sha256:e75a2ad7b647fd8046d58c3132d7eaf31b12d8a53c0e4b21fa9c4d23d6ee6d3c"}, - {file = "coverage-7.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:3043ba1c88b2139126fc72cb48574b90e2e0546d4c78b5299317f61b7f718b78"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bbb5cc845a0292e0c520656d19d7ce40e18d0e19b22cb3e0409135a575bf79fc"}, - {file = "coverage-7.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4dfd9a93db9e78666d178d4f08a5408aa3f2474ad4d0e0378ed5f2ef71640cb6"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f017a61399f13aa6d1039f75cd467be388d157cd81f1a119b9d9a68ba6f2830d"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0915742f4c82208ebf47a2b154a5334155ed9ef9fe6190674b8a46c2fb89cb05"}, - {file = "coverage-7.8.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a40fcf208e021eb14b0fac6bdb045c0e0cab53105f93ba0d03fd934c956143a"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a1f406a8e0995d654b2ad87c62caf6befa767885301f3b8f6f73e6f3c31ec3a6"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:77af0f6447a582fdc7de5e06fa3757a3ef87769fbb0fdbdeba78c23049140a47"}, - {file = "coverage-7.8.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f2d32f95922927186c6dbc8bc60df0d186b6edb828d299ab10898ef3f40052fe"}, - {file = "coverage-7.8.0-cp312-cp312-win32.whl", hash = "sha256:769773614e676f9d8e8a0980dd7740f09a6ea386d0f383db6821df07d0f08545"}, - {file = "coverage-7.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:e5d2b9be5b0693cf21eb4ce0ec8d211efb43966f6657807f6859aab3814f946b"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5ac46d0c2dd5820ce93943a501ac5f6548ea81594777ca585bf002aa8854cacd"}, - {file = "coverage-7.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:771eb7587a0563ca5bb6f622b9ed7f9d07bd08900f7589b4febff05f469bea00"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42421e04069fb2cbcbca5a696c4050b84a43b05392679d4068acbe65449b5c64"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:554fec1199d93ab30adaa751db68acec2b41c5602ac944bb19187cb9a41a8067"}, - {file = "coverage-7.8.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5aaeb00761f985007b38cf463b1d160a14a22c34eb3f6a39d9ad6fc27cb73008"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:581a40c7b94921fffd6457ffe532259813fc68eb2bdda60fa8cc343414ce3733"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:f319bae0321bc838e205bf9e5bc28f0a3165f30c203b610f17ab5552cff90323"}, - {file = "coverage-7.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:04bfec25a8ef1c5f41f5e7e5c842f6b615599ca8ba8391ec33a9290d9d2db3a3"}, - {file = "coverage-7.8.0-cp313-cp313-win32.whl", hash = "sha256:dd19608788b50eed889e13a5d71d832edc34fc9dfce606f66e8f9f917eef910d"}, - {file = "coverage-7.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:a9abbccd778d98e9c7e85038e35e91e67f5b520776781d9a1e2ee9d400869487"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:18c5ae6d061ad5b3e7eef4363fb27a0576012a7447af48be6c75b88494c6cf25"}, - {file = "coverage-7.8.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:95aa6ae391a22bbbce1b77ddac846c98c5473de0372ba5c463480043a07bff42"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e013b07ba1c748dacc2a80e69a46286ff145935f260eb8c72df7185bf048f502"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d766a4f0e5aa1ba056ec3496243150698dc0481902e2b8559314368717be82b1"}, - {file = "coverage-7.8.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad80e6b4a0c3cb6f10f29ae4c60e991f424e6b14219d46f1e7d442b938ee68a4"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b87eb6fc9e1bb8f98892a2458781348fa37e6925f35bb6ceb9d4afd54ba36c73"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:d1ba00ae33be84066cfbe7361d4e04dec78445b2b88bdb734d0d1cbab916025a"}, - {file = "coverage-7.8.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f3c38e4e5ccbdc9198aecc766cedbb134b2d89bf64533973678dfcf07effd883"}, - {file = "coverage-7.8.0-cp313-cp313t-win32.whl", hash = "sha256:379fe315e206b14e21db5240f89dc0774bdd3e25c3c58c2c733c99eca96f1ada"}, - {file = "coverage-7.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:2e4b6b87bb0c846a9315e3ab4be2d52fac905100565f4b92f02c445c8799e257"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fa260de59dfb143af06dcf30c2be0b200bed2a73737a8a59248fcb9fa601ef0f"}, - {file = "coverage-7.8.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:96121edfa4c2dfdda409877ea8608dd01de816a4dc4a0523356067b305e4e17a"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b8af63b9afa1031c0ef05b217faa598f3069148eeee6bb24b79da9012423b82"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:89b1f4af0d4afe495cd4787a68e00f30f1d15939f550e869de90a86efa7e0814"}, - {file = "coverage-7.8.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94ec0be97723ae72d63d3aa41961a0b9a6f5a53ff599813c324548d18e3b9e8c"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:8a1d96e780bdb2d0cbb297325711701f7c0b6f89199a57f2049e90064c29f6bd"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:f1d8a2a57b47142b10374902777e798784abf400a004b14f1b0b9eaf1e528ba4"}, - {file = "coverage-7.8.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:cf60dd2696b457b710dd40bf17ad269d5f5457b96442f7f85722bdb16fa6c899"}, - {file = "coverage-7.8.0-cp39-cp39-win32.whl", hash = "sha256:be945402e03de47ba1872cd5236395e0f4ad635526185a930735f66710e1bd3f"}, - {file = "coverage-7.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:90e7fbc6216ecaffa5a880cdc9c77b7418c1dcb166166b78dbc630d07f278cc3"}, - {file = "coverage-7.8.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:b8194fb8e50d556d5849753de991d390c5a1edeeba50f68e3a9253fbd8bf8ccd"}, - {file = "coverage-7.8.0-py3-none-any.whl", hash = "sha256:dbf364b4c5e7bae9250528167dfe40219b62e2d573c854d74be213e1e52069f7"}, - {file = "coverage-7.8.0.tar.gz", hash = "sha256:7a3d62b3b03b4b6fd41a085f3574874cf946cb4604d2b4d3e8dca8cd570ca501"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3d494fa4256e3cb161ca1df14a91d2d703c27d60452eb0d4a58bb05f52f676e4"}, + {file = "coverage-7.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b613efceeabf242978d14e1a65626ec3be67c5261918a82a985f56c2a05475ee"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:673a4d2cb7ec78e1f2f6f41039f6785f27bca0f6bc0e722b53a58286d12754e1"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1edc2244932e9fed92ad14428b9480a97ecd37c970333688bd35048f6472f260"}, + {file = "coverage-7.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec8b92a7617faa2017bd44c94583830bab8be175722d420501680abc4f5bc794"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d8f3ca1f128f11812d3baf0a482e7f36ffb856ac1ae14de3b5d1adcfb7af955d"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:c30eed34eb8206d9b8c2d0d9fa342fa98e10f34b1e9e1eb05f79ccbf4499c8ff"}, + {file = "coverage-7.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:24e6f8e5f125cd8bff33593a484a079305c9f0be911f76c6432f580ade5c1a17"}, + {file = "coverage-7.9.0-cp310-cp310-win32.whl", hash = "sha256:a1b0317b4a8ff4d3703cd7aa642b4f963a71255abe4e878659f768238fab6602"}, + {file = "coverage-7.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:512b1ea57a11dfa23b7f3d8fe8690fcf8cd983a70ae4c2c262cf5c972618fa15"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:55b7b9df45174956e0f719a56cf60c0cb4a7f155668881d00de6384e2a3402f4"}, + {file = "coverage-7.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:87bceebbc91a58c9264c43638729fcb45910805b9f86444f93654d988305b3a2"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:81da3b6e289bf9fc7dc159ab6d5222f5330ac6e94a6d06f147ba46e53fa6ec82"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b361684a91224d4362879c1b1802168d2435ff76666f1b7ba52fc300ad832dbc"}, + {file = "coverage-7.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9a384ea4f77ac0a7e36c9a805ed95ef10f423bdb68b4e9487646cdf548a6a05"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:38a5642aa82ea6de0e4331e346f5ba188a9fdb7d727e00199f55031b85135d0a"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8c5ff4ca4890c0b57d3e80850534609493280c0f9e6ea2bd314b10cb8cbd76e0"}, + {file = "coverage-7.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cd052a0c4727ede06393da3c1df1ae6ef6c079e6bdfefb39079877404b3edc22"}, + {file = "coverage-7.9.0-cp311-cp311-win32.whl", hash = "sha256:f73fd1128165e1d665cb7f863a91d00f073044a672c7dfa04ab400af4d1a9226"}, + {file = "coverage-7.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:dd62d62e782d3add529c8e7943f5600efd0d07dadf3819e5f9917edb4acf85d8"}, + {file = "coverage-7.9.0-cp311-cp311-win_arm64.whl", hash = "sha256:f75288785cc9a67aff3b04dafd8d0f0be67306018b224d319d23867a161578d6"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:969ed1ed0ab0325b50af3204f9024782180e64fb281f5a2952f479ec60a02aba"}, + {file = "coverage-7.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1abd41781c874e716aaeecb8b27db5f4f2bc568f2ed8d41228aa087d567674f0"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0eb6e99487dffd28c88a4fc2ea4286beaf0207a43388775900c93e56cc5a8ae3"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c425c85ddb62b32d44f83fb20044fe32edceceee1db1f978c062eec020a73ea5"}, + {file = "coverage-7.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d0a1f7676bc90ceba67caa66850d689947d586f204ccf6478400c2bf39da5790"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f17055c50768d710d6abc789c9469d0353574780935e1381b83e63edc49ff530"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:298d2917a6bfadbb272e08545ed026af3965e4d2fe71e3f38bf0a816818b226e"}, + {file = "coverage-7.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d9be5d26e5f817d478506e4d3c4ff7b92f17d980670b4791bf05baaa37ce2f88"}, + {file = "coverage-7.9.0-cp312-cp312-win32.whl", hash = "sha256:dc2784edd9ac9fe8692fc5505667deb0b05d895c016aaaf641031ed4a5f93d53"}, + {file = "coverage-7.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:18223198464a6d5549db1934cf77a15deb24bb88652c4f5f7cb21cd3ad853704"}, + {file = "coverage-7.9.0-cp312-cp312-win_arm64.whl", hash = "sha256:3b00194ff3c84d4b821822ff6c041f245fc55d0d5c7833fc4311d082e97595e8"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:122c60e92ab66c9c88e17565f67a91b3b3be5617cb50f73cfd34a4c60ed4aab0"}, + {file = "coverage-7.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:813c11b367a6b3cf37212ec36b230f8d086c22b69dbf62877b40939fb2c79e74"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3f05e0f5e87f23d43fefe49e86655c6209dd4f9f034786b983e6803cf4554183"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62f465886fa4f86d5515da525aead97c5dff13a5cf997fc4c5097a1a59e063b2"}, + {file = "coverage-7.9.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:549ea4ca901595bbe3270e1afdef98bf5d4d5791596efbdc90b00449a2bb1f91"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8cae1d4450945c74a6a65a09864ed3eaa917055cf70aa65f83ac1b9b0d8d5f9a"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d7b263910234c0d5ec913ec79ca921152fe874b805a7bcaf67118ef71708e5d2"}, + {file = "coverage-7.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7d7b7425215963da8f5968096a20c5b5c9af4a86a950fcc25dcc2177ab33e9e5"}, + {file = "coverage-7.9.0-cp313-cp313-win32.whl", hash = "sha256:e7dcfa92867b0c53d2e22e985c66af946dc09e8bb13c556709e396e90a0adf5c"}, + {file = "coverage-7.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:aa34ca040785a2b768da489df0c036364d47a6c1c00bdd8f662b98fd3277d3d4"}, + {file = "coverage-7.9.0-cp313-cp313-win_arm64.whl", hash = "sha256:9c5dcb5cd3c52d84c5f52045e1c87c16bf189c2fbfa57cc0d811a3b4059939df"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:b52d2fdc1940f90c4572bd48211475a7b102f75a7f9a5e6cfc6e3da7dc380c44"}, + {file = "coverage-7.9.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4cc555a3e6ceb8841df01a4634374f5f9635e661f5c307da00bce19819e8bcdf"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:244f613617876b7cd32a097788d49c952a8f1698afb25275b2a825a4e895854e"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5c335d77539e66bc6f83e8f1ef207d038129d9b9acd9dc9f0ca42fa9eedf564a"}, + {file = "coverage-7.9.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b335c7077c8da7bb8173d4f9ebd90ff1a97af6a6bec4fc4e6db4856ae80b31e"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:01cbc2c36895b7ab906514042c92b3fc9dd0526bf1c3251cb6aefd9c71ae6dda"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:1ac62880a9dff0726a193ce77a1bcdd4e8491009cb3a0510d31381e8b2c46d7a"}, + {file = "coverage-7.9.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:95314eb306cf54af3d1147e27ba008cf78eed6f1309a1310772f4f05b12c9c65"}, + {file = "coverage-7.9.0-cp313-cp313t-win32.whl", hash = "sha256:c5cbf3ddfb68de8dc8ce33caa9321df27297a032aeaf2e99b278f183fb4ebc37"}, + {file = "coverage-7.9.0-cp313-cp313t-win_amd64.whl", hash = "sha256:e3ec9e1525eb7a0f89d31083539b398d921415d884e9f55400002a1e9fe0cf63"}, + {file = "coverage-7.9.0-cp313-cp313t-win_arm64.whl", hash = "sha256:a02efe6769f74245ce476e89db3d4e110db07b4c0c3d3f81728e2464bbbbcb8e"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:64dab59d812c1cbfc9cebadada377365874964acdf59b12e86487d25c2e0c29f"}, + {file = "coverage-7.9.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:46b9dc640c6309fb49625d3569d4ba7abe2afcba645eb1e52bad97510f60ac26"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89358f4025ed424861311b33815a2866f7c94856c932b0ffc98180f655e813e2"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:589e37ae75d81fd53cd1ca624e07af4466e9e4ce259e3bfe2b147896857c06ea"}, + {file = "coverage-7.9.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:29dea81eef5432076cee561329b3831bc988a4ce1bfaec90eee2078ff5311e6e"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7b3482588772b6b24601d1677aef299af28d6c212c70b0be27bdfc2e10fb00fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2debc0b9481b5fc76f771b3b31e89a0cd8791ad977654940a3523f3f2e5d98fe"}, + {file = "coverage-7.9.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:304ded640bc2a60f14a2ff0fec98cce4c3f2e573c122f0548728c8dceba5abe7"}, + {file = "coverage-7.9.0-cp39-cp39-win32.whl", hash = "sha256:8e0a3a3f9b968007e1f56418a3586f9a983c84ac4e84d28d1c4f8b76c4226282"}, + {file = "coverage-7.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:cb3c07dd71d1ff52156d35ee6fa48458c3cec1add7fcce6a934f977fb80c48a5"}, + {file = "coverage-7.9.0-pp39.pp310.pp311-none-any.whl", hash = "sha256:ccf1540a0e82ff525844880f988f6caaa2d037005e57bfe203b71cac7626145d"}, + {file = "coverage-7.9.0-py3-none-any.whl", hash = "sha256:79ea9a26b27c963cdf541e1eb9ac05311b012bc367d0e31816f1833b06c81c02"}, + {file = "coverage-7.9.0.tar.gz", hash = "sha256:1a93b43de2233a7670a8bf2520fed8ebd5eea6a65b47417500a9d882b0533fa2"}, ] [package.dependencies] @@ -683,14 +687,14 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "identify" -version = "2.6.10" +version = "2.6.12" description = "File identification library for Python" optional = false python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "identify-2.6.10-py2.py3-none-any.whl", hash = "sha256:5f34248f54136beed1a7ba6a6b5c4b6cf21ff495aac7c359e1ef831ae3b8ab25"}, - {file = "identify-2.6.10.tar.gz", hash = "sha256:45e92fd704f3da71cc3880036633f48b4b7265fd4de2b57627cb157216eb7eb8"}, + {file = "identify-2.6.12-py2.py3-none-any.whl", hash = "sha256:ad9672d5a72e0d2ff7c5c8809b62dfa60458626352fb0eb7b55e69bdc45334a2"}, + {file = "identify-2.6.12.tar.gz", hash = "sha256:d8de45749f1efb108badef65ee8386f0f7bb19a7f26185f74de6367bffbaf0e6"}, ] [package.extras] @@ -949,14 +953,14 @@ requests = "*" [[package]] name = "mkdocs-git-revision-date-localized-plugin" -version = "1.4.5" +version = "1.4.7" description = "Mkdocs plugin that enables displaying the localized date of the last git modification of a markdown file." optional = false python-versions = ">=3.8" groups = ["docs"] files = [ - {file = "mkdocs_git_revision_date_localized_plugin-1.4.5-py3-none-any.whl", hash = "sha256:395ae0b9eec565c78a76fffc938b70f52774bf2971245482d31aba47018c5fa9"}, - {file = "mkdocs_git_revision_date_localized_plugin-1.4.5.tar.gz", hash = "sha256:9e37f1343d314c9cd8f9cbbf117c4bdc1d2d24a0653c5bbd7059d072f2cd0972"}, + {file = "mkdocs_git_revision_date_localized_plugin-1.4.7-py3-none-any.whl", hash = "sha256:056c0a90242409148f1dc94d5c9d2c25b5b8ddd8de45489fa38f7fa7ccad2bc4"}, + {file = "mkdocs_git_revision_date_localized_plugin-1.4.7.tar.gz", hash = "sha256:10a49eff1e1c3cb766e054b9d8360c904ce4fe8c33ac3f6cc083ac6459c91953"}, ] [package.dependencies] @@ -967,14 +971,14 @@ pytz = ">=2025.1" [[package]] name = "mkdocs-material" -version = "9.6.13" +version = "9.6.14" description = "Documentation that simply works" optional = false python-versions = ">=3.8" groups = ["docs"] files = [ - {file = "mkdocs_material-9.6.13-py3-none-any.whl", hash = "sha256:3730730314e065f422cc04eacbc8c6084530de90f4654a1482472283a38e30d3"}, - {file = "mkdocs_material-9.6.13.tar.gz", hash = "sha256:7bde7ebf33cfd687c1c86c08ed8f6470d9a5ba737bd89e7b3e5d9f94f8c72c16"}, + {file = "mkdocs_material-9.6.14-py3-none-any.whl", hash = "sha256:3b9cee6d3688551bf7a8e8f41afda97a3c39a12f0325436d76c86706114b721b"}, + {file = "mkdocs_material-9.6.14.tar.gz", hash = "sha256:39d795e90dce6b531387c255bd07e866e027828b7346d3eba5ac3de265053754"}, ] [package.dependencies] @@ -1123,19 +1127,19 @@ type = ["mypy (>=1.14.1)"] [[package]] name = "pluggy" -version = "1.5.0" +version = "1.6.0" description = "plugin and hook calling mechanisms for python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["test"] files = [ - {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, - {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, + {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, + {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, ] [package.extras] dev = ["pre-commit", "tox"] -testing = ["pytest", "pytest-benchmark"] +testing = ["coverage", "pytest", "pytest-benchmark"] [[package]] name = "pre-commit" @@ -1186,14 +1190,14 @@ files = [ [[package]] name = "pydantic" -version = "2.11.4" +version = "2.11.5" description = "Data validation using Python type hints" optional = false python-versions = ">=3.9" groups = ["main", "dev"] files = [ - {file = "pydantic-2.11.4-py3-none-any.whl", hash = "sha256:d9615eaa9ac5a063471da949c8fc16376a84afb5024688b3ff885693506764eb"}, - {file = "pydantic-2.11.4.tar.gz", hash = "sha256:32738d19d63a226a52eed76645a98ee07c1f410ee41d93b4afbfa85ed8111c2d"}, + {file = "pydantic-2.11.5-py3-none-any.whl", hash = "sha256:f9c26ba06f9747749ca1e5c94d6a85cb84254577553c8785576fd38fa64dc0f7"}, + {file = "pydantic-2.11.5.tar.gz", hash = "sha256:7f853db3d0ce78ce8bbb148c401c2cdd6431b3473c0cdff2755c7690952a7b7a"}, ] [package.dependencies] @@ -1324,7 +1328,7 @@ version = "2.19.1" description = "Pygments is a syntax highlighting package written in Python." optional = false python-versions = ">=3.8" -groups = ["docs"] +groups = ["docs", "test"] files = [ {file = "pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c"}, {file = "pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f"}, @@ -1376,37 +1380,38 @@ extra = ["pygments (>=2.19.1)"] [[package]] name = "pytest" -version = "8.3.5" +version = "8.4.0" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["test"] files = [ - {file = "pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820"}, - {file = "pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845"}, + {file = "pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e"}, + {file = "pytest-8.4.0.tar.gz", hash = "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6"}, ] [package.dependencies] -colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} -iniconfig = "*" -packaging = "*" +colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1", markers = "python_version < \"3.11\""} +iniconfig = ">=1" +packaging = ">=20" pluggy = ">=1.5,<2" +pygments = ">=2.7.2" tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] -dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"] [[package]] name = "pytest-cov" -version = "6.1.1" +version = "6.2.0" description = "Pytest plugin for measuring coverage." optional = false python-versions = ">=3.9" groups = ["test"] files = [ - {file = "pytest_cov-6.1.1-py3-none-any.whl", hash = "sha256:bddf29ed2d0ab6f4df17b4c55b0a657287db8684af9c42ea546b21b1041b3dde"}, - {file = "pytest_cov-6.1.1.tar.gz", hash = "sha256:46935f7aaefba760e716c2ebfbe1c216240b9592966e7da99ea8292d4d3e2a0a"}, + {file = "pytest_cov-6.2.0-py3-none-any.whl", hash = "sha256:bd19301caf600ead1169db089ed0ad7b8f2b962214330a696b8c85a0b497b2ff"}, + {file = "pytest_cov-6.2.0.tar.gz", hash = "sha256:9a4331e087a0f5074dc1e19fe0485a07a462b346cbb91e2ac903ec5504abce10"}, ] [package.dependencies] @@ -1418,14 +1423,14 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] [[package]] name = "pytest-xdist" -version = "3.6.1" +version = "3.7.0" description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["test"] files = [ - {file = "pytest_xdist-3.6.1-py3-none-any.whl", hash = "sha256:9ed4adfb68a016610848639bb7e02c9352d5d9f03d04809919e2dafc3be4cca7"}, - {file = "pytest_xdist-3.6.1.tar.gz", hash = "sha256:ead156a4db231eec769737f57668ef58a2084a34b2e55c4a8fa20d861107300d"}, + {file = "pytest_xdist-3.7.0-py3-none-any.whl", hash = "sha256:7d3fbd255998265052435eb9daa4e99b62e6fb9cfb6efd1f858d4d8c0c7f0ca0"}, + {file = "pytest_xdist-3.7.0.tar.gz", hash = "sha256:f9248c99a7c15b7d2f90715df93610353a485827bc06eefb6566d23f6400f126"}, ] [package.dependencies] @@ -1529,14 +1534,14 @@ files = [ [[package]] name = "pyyaml-env-tag" -version = "1.0" +version = "1.1" description = "A custom YAML tag for referencing environment variables in YAML files." optional = false python-versions = ">=3.9" groups = ["docs"] files = [ - {file = "pyyaml_env_tag-1.0-py3-none-any.whl", hash = "sha256:37f081041b8dca44ed8eb931ce0056f97de17251450f0ed08773dc2bcaf9e683"}, - {file = "pyyaml_env_tag-1.0.tar.gz", hash = "sha256:bc952534a872b583f66f916e2dd83e7a7b9087847f4afca6d9c957c48b258ed2"}, + {file = "pyyaml_env_tag-1.1-py3-none-any.whl", hash = "sha256:17109e1a528561e32f026364712fee1264bc2ea6715120891174ed1b980d2e04"}, + {file = "pyyaml_env_tag-1.1.tar.gz", hash = "sha256:2eb38b75a2d21ee0475d6d97ec19c63287a7e140231e4214969d0eac923cd7ff"}, ] [package.dependencies] @@ -1544,39 +1549,39 @@ pyyaml = "*" [[package]] name = "redis" -version = "6.0.0" +version = "6.2.0" description = "Python client for Redis database and key-value store" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev", "test"] files = [ - {file = "redis-6.0.0-py3-none-any.whl", hash = "sha256:a2e040aee2cdd947be1fa3a32e35a956cd839cc4c1dbbe4b2cdee5b9623fd27c"}, - {file = "redis-6.0.0.tar.gz", hash = "sha256:5446780d2425b787ed89c91ddbfa1be6d32370a636c8fdb687f11b1c26c1fa88"}, + {file = "redis-6.2.0-py3-none-any.whl", hash = "sha256:c8ddf316ee0aab65f04a11229e94a64b2618451dab7a67cb2f77eb799d872d5e"}, + {file = "redis-6.2.0.tar.gz", hash = "sha256:e821f129b75dde6cb99dd35e5c76e8c49512a5a0d8dfdc560b2fbd44b85ca977"}, ] [package.dependencies] async-timeout = {version = ">=4.0.3", markers = "python_full_version < \"3.11.3\""} [package.extras] -hiredis = ["hiredis (>=3.0.0)"] -jwt = ["pyjwt (>=2.9.0,<2.10.0)"] +hiredis = ["hiredis (>=3.2.0)"] +jwt = ["pyjwt (>=2.9.0)"] ocsp = ["cryptography (>=36.0.1)", "pyopenssl (>=20.0.1)", "requests (>=2.31.0)"] [[package]] name = "requests" -version = "2.32.3" +version = "2.32.4" description = "Python HTTP for Humans." optional = false python-versions = ">=3.8" groups = ["docs"] files = [ - {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, - {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, + {file = "requests-2.32.4-py3-none-any.whl", hash = "sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c"}, + {file = "requests-2.32.4.tar.gz", hash = "sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422"}, ] [package.dependencies] certifi = ">=2017.4.17" -charset-normalizer = ">=2,<4" +charset_normalizer = ">=2,<4" idna = ">=2.5,<4" urllib3 = ">=1.21.1,<3" @@ -1586,30 +1591,30 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] [[package]] name = "ruff" -version = "0.11.9" +version = "0.11.13" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" groups = ["dev"] files = [ - {file = "ruff-0.11.9-py3-none-linux_armv6l.whl", hash = "sha256:a31a1d143a5e6f499d1fb480f8e1e780b4dfdd580f86e05e87b835d22c5c6f8c"}, - {file = "ruff-0.11.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:66bc18ca783b97186a1f3100e91e492615767ae0a3be584e1266aa9051990722"}, - {file = "ruff-0.11.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:bd576cd06962825de8aece49f28707662ada6a1ff2db848d1348e12c580acbf1"}, - {file = "ruff-0.11.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b1d18b4be8182cc6fddf859ce432cc9631556e9f371ada52f3eaefc10d878de"}, - {file = "ruff-0.11.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0f3f46f759ac623e94824b1e5a687a0df5cd7f5b00718ff9c24f0a894a683be7"}, - {file = "ruff-0.11.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f34847eea11932d97b521450cf3e1d17863cfa5a94f21a056b93fb86f3f3dba2"}, - {file = "ruff-0.11.9-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:f33b15e00435773df97cddcd263578aa83af996b913721d86f47f4e0ee0ff271"}, - {file = "ruff-0.11.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7b27613a683b086f2aca8996f63cb3dd7bc49e6eccf590563221f7b43ded3f65"}, - {file = "ruff-0.11.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9e0d88756e63e8302e630cee3ce2ffb77859797cc84a830a24473939e6da3ca6"}, - {file = "ruff-0.11.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:537c82c9829d7811e3aa680205f94c81a2958a122ac391c0eb60336ace741a70"}, - {file = "ruff-0.11.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:440ac6a7029f3dee7d46ab7de6f54b19e34c2b090bb4f2480d0a2d635228f381"}, - {file = "ruff-0.11.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:71c539bac63d0788a30227ed4d43b81353c89437d355fdc52e0cda4ce5651787"}, - {file = "ruff-0.11.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:c67117bc82457e4501473c5f5217d49d9222a360794bfb63968e09e70f340abd"}, - {file = "ruff-0.11.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:e4b78454f97aa454586e8a5557facb40d683e74246c97372af3c2d76901d697b"}, - {file = "ruff-0.11.9-py3-none-win32.whl", hash = "sha256:7fe1bc950e7d7b42caaee2a8a3bc27410547cc032c9558ee2e0f6d3b209e845a"}, - {file = "ruff-0.11.9-py3-none-win_amd64.whl", hash = "sha256:52edaa4a6d70f8180343a5b7f030c7edd36ad180c9f4d224959c2d689962d964"}, - {file = "ruff-0.11.9-py3-none-win_arm64.whl", hash = "sha256:bcf42689c22f2e240f496d0c183ef2c6f7b35e809f12c1db58f75d9aa8d630ca"}, - {file = "ruff-0.11.9.tar.gz", hash = "sha256:ebd58d4f67a00afb3a30bf7d383e52d0e036e6195143c6db7019604a05335517"}, + {file = "ruff-0.11.13-py3-none-linux_armv6l.whl", hash = "sha256:4bdfbf1240533f40042ec00c9e09a3aade6f8c10b6414cf11b519488d2635d46"}, + {file = "ruff-0.11.13-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:aef9c9ed1b5ca28bb15c7eac83b8670cf3b20b478195bd49c8d756ba0a36cf48"}, + {file = "ruff-0.11.13-py3-none-macosx_11_0_arm64.whl", hash = "sha256:53b15a9dfdce029c842e9a5aebc3855e9ab7771395979ff85b7c1dedb53ddc2b"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab153241400789138d13f362c43f7edecc0edfffce2afa6a68434000ecd8f69a"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6c51f93029d54a910d3d24f7dd0bb909e31b6cd989a5e4ac513f4eb41629f0dc"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1808b3ed53e1a777c2ef733aca9051dc9bf7c99b26ece15cb59a0320fbdbd629"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:d28ce58b5ecf0f43c1b71edffabe6ed7f245d5336b17805803312ec9bc665933"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:55e4bc3a77842da33c16d55b32c6cac1ec5fb0fbec9c8c513bdce76c4f922165"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:633bf2c6f35678c56ec73189ba6fa19ff1c5e4807a78bf60ef487b9dd272cc71"}, + {file = "ruff-0.11.13-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ffbc82d70424b275b089166310448051afdc6e914fdab90e08df66c43bb5ca9"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:4a9ddd3ec62a9a89578c85842b836e4ac832d4a2e0bfaad3b02243f930ceafcc"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d237a496e0778d719efb05058c64d28b757c77824e04ffe8796c7436e26712b7"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_i686.whl", hash = "sha256:26816a218ca6ef02142343fd24c70f7cd8c5aa6c203bca284407adf675984432"}, + {file = "ruff-0.11.13-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:51c3f95abd9331dc5b87c47ac7f376db5616041173826dfd556cfe3d4977f492"}, + {file = "ruff-0.11.13-py3-none-win32.whl", hash = "sha256:96c27935418e4e8e77a26bb05962817f28b8ef3843a6c6cc49d8783b5507f250"}, + {file = "ruff-0.11.13-py3-none-win_amd64.whl", hash = "sha256:29c3189895a8a6a657b7af4e97d330c8a3afd2c9c8f46c81e2fc5a31866517e3"}, + {file = "ruff-0.11.13-py3-none-win_arm64.whl", hash = "sha256:b4385285e9179d608ff1d2fb9922062663c658605819a6876d8beef0c30b7f3b"}, + {file = "ruff-0.11.13.tar.gz", hash = "sha256:26fa247dc68d1d4e72c179e08889a25ac0c7ba4d78aecfc835d49cbfd60bf514"}, ] [[package]] @@ -1693,26 +1698,26 @@ markers = {dev = "python_version < \"3.11\"", test = "python_full_version <= \"3 [[package]] name = "typing-extensions" -version = "4.13.2" -description = "Backported and Experimental Type Hints for Python 3.8+" +version = "4.14.0" +description = "Backported and Experimental Type Hints for Python 3.9+" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main", "dev", "test"] files = [ - {file = "typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c"}, - {file = "typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"}, + {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"}, + {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"}, ] [[package]] name = "typing-inspection" -version = "0.4.0" +version = "0.4.1" description = "Runtime typing introspection tools" optional = false python-versions = ">=3.9" groups = ["main", "dev"] files = [ - {file = "typing_inspection-0.4.0-py3-none-any.whl", hash = "sha256:50e72559fcd2a6367a19f7a7e610e6afcb9fac940c650290eed893d61386832f"}, - {file = "typing_inspection-0.4.0.tar.gz", hash = "sha256:9765c87de36671694a67904bf2c96e395be9c6439bb6c87b5142569dcdd65122"}, + {file = "typing_inspection-0.4.1-py3-none-any.whl", hash = "sha256:389055682238f53b04f7badcb49b989835495a96700ced5dab2d8feae4b26f51"}, + {file = "typing_inspection-0.4.1.tar.gz", hash = "sha256:6ae134cc0203c33377d43188d4064e9b357dba58cff3185f22924610e70a9d28"}, ] [package.dependencies] @@ -1814,15 +1819,15 @@ files = [ [[package]] name = "zipp" -version = "3.21.0" +version = "3.23.0" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.9" groups = ["docs", "test"] markers = "python_version == \"3.9\"" files = [ - {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"}, - {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"}, + {file = "zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e"}, + {file = "zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166"}, ] [package.extras] @@ -1830,7 +1835,7 @@ check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \" cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] enabler = ["pytest-enabler (>=2.2)"] -test = ["big-O", "importlib-resources ; python_version < \"3.9\"", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] +test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more_itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] type = ["pytest-mypy"] [extras] diff --git a/pyproject.toml b/pyproject.toml index 88956b110..1f9c92cac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "GitHubKit" -version = "0.12.13" +version = "0.12.14" description = "GitHub SDK for Python" authors = ["yanyongyu "] license = "MIT"